@pikku/cli 0.11.1 → 0.11.3
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.
- package/.pikku/channel/pikku-channel-types.gen.ts +73 -17
- package/.pikku/channel/pikku-channels-map.gen.d.ts +11 -11
- package/.pikku/channel/pikku-channels-meta.gen.json +1 -0
- package/.pikku/channel/pikku-channels-meta.gen.ts +4 -2
- package/.pikku/channel/pikku-channels.gen.ts +1 -1
- package/.pikku/cli/pikku-cli-channel.ts +2 -2
- package/.pikku/cli/pikku-cli-client.gen.ts +1 -3
- package/.pikku/cli/pikku-cli-types.gen.ts +3 -3
- package/.pikku/cli/pikku-cli-wirings-meta.gen.json +147 -0
- package/.pikku/cli/pikku-cli-wirings-meta.gen.ts +4 -157
- package/.pikku/cli/pikku-cli-wirings.gen.ts +3 -3
- package/.pikku/cli/pikku-cli.gen.ts +3 -3
- package/.pikku/forge/pikku-forge-types.gen.ts +83 -0
- package/.pikku/function/pikku-function-types.gen.ts +223 -91
- package/.pikku/function/pikku-functions-meta-verbose.gen.json +1030 -0
- package/.pikku/function/pikku-functions-meta.gen.json +656 -0
- package/.pikku/function/pikku-functions-meta.gen.ts +4 -970
- package/.pikku/http/pikku-http-types.gen.ts +20 -4
- package/.pikku/http/pikku-http-wirings-map.gen.d.ts +11 -11
- package/.pikku/http/pikku-http-wirings-meta.gen.json +9 -0
- package/.pikku/http/pikku-http-wirings-meta.gen.ts +4 -10
- package/.pikku/http/pikku-http-wirings.gen.ts +1 -1
- package/.pikku/mcp/pikku-mcp-types.gen.ts +72 -20
- package/.pikku/mcp/pikku-mcp-wirings-meta.gen.json +5 -0
- package/.pikku/mcp/pikku-mcp-wirings-meta.gen.ts +6 -4
- package/.pikku/mcp/pikku-mcp-wirings.gen.ts +1 -1
- package/.pikku/pikku-bootstrap.gen.ts +7 -12
- package/.pikku/pikku-services.gen.ts +6 -7
- package/.pikku/pikku-types.gen.ts +4 -1
- package/.pikku/pikku-websocket.gen.ts +1 -1
- package/.pikku/queue/pikku-queue-types.gen.ts +2 -2
- package/.pikku/queue/pikku-queue-workers-wirings-map.gen.d.ts +11 -11
- package/.pikku/queue/pikku-queue-workers-wirings-meta.gen.json +1 -0
- package/.pikku/queue/pikku-queue-workers-wirings-meta.gen.ts +5 -7
- package/.pikku/queue/pikku-queue-workers-wirings.gen.ts +1 -1
- package/.pikku/rpc/pikku-remote-rpc-workers.gen.ts +5 -2
- package/.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts +19 -14
- package/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +46 -39
- package/.pikku/scheduler/pikku-scheduler-types.gen.ts +2 -2
- package/.pikku/scheduler/pikku-schedulers-wirings-meta.gen.json +1 -0
- package/.pikku/scheduler/pikku-schedulers-wirings-meta.gen.ts +5 -2
- package/.pikku/scheduler/pikku-schedulers-wirings.gen.ts +1 -1
- package/.pikku/schemas/register.gen.ts +31 -23
- package/.pikku/schemas/schemas/PikkuCLIConfig.schema.json +1 -1
- package/.pikku/schemas/schemas/PikkuCLIOutput.schema.json +1 -1
- package/.pikku/schemas/schemas/PikkuChannelsOutput.schema.json +1 -1
- package/.pikku/schemas/schemas/PikkuForgeNodesOutput.schema.json +1 -0
- package/.pikku/schemas/schemas/PikkuFunctionsOutput.schema.json +1 -1
- package/.pikku/schemas/schemas/PikkuHTTPOutput.schema.json +1 -1
- package/.pikku/schemas/schemas/PikkuMCPOutput.schema.json +1 -1
- package/.pikku/schemas/schemas/PikkuMiddlewareOutput.schema.json +1 -1
- package/.pikku/schemas/schemas/PikkuPackageOutput.schema.json +1 -0
- package/.pikku/schemas/schemas/PikkuPermissionsOutput.schema.json +1 -1
- package/.pikku/schemas/schemas/PikkuPublicRPCOutput.schema.json +1 -1
- package/.pikku/schemas/schemas/PikkuQueueOutput.schema.json +1 -1
- package/.pikku/schemas/schemas/PikkuRPCOutput.schema.json +1 -1
- package/.pikku/schemas/schemas/PikkuRemoteRPCOutput.schema.json +1 -1
- package/.pikku/schemas/schemas/PikkuSchedulerOutput.schema.json +1 -1
- package/.pikku/schemas/schemas/PikkuSchemasOutput.schema.json +1 -1
- package/.pikku/schemas/schemas/PikkuWorkflowOutput.schema.json +1 -1
- package/.pikku/services/config.gen.json +104 -0
- package/.pikku/services/getInspectorState.gen.json +10 -0
- package/.pikku/services/jwt.gen.json +13 -0
- package/.pikku/services/logger.gen.json +25 -0
- package/.pikku/services/queueService.gen.json +14 -0
- package/.pikku/services/schedulerService.gen.json +17 -0
- package/.pikku/services/schema.gen.json +14 -0
- package/.pikku/services/secrets.gen.json +13 -0
- package/.pikku/services/variables.gen.json +13 -0
- package/.pikku/services/workflowService.gen.json +31 -0
- package/.pikku/workflow/pikku-workflow-map.gen.d.ts +2 -36
- package/.pikku/workflow/pikku-workflow-types.gen.ts +305 -48
- package/.pikku/workflow/pikku-workflow-wirings-meta.gen.ts +6 -2
- package/.pikku/workflow/pikku-workflow-wirings.gen.ts +1 -2
- package/CHANGELOG.md +44 -1
- package/bin/pikku.ts +6 -32
- package/build.sh +53 -31
- package/cli.schema.json +1 -1
- package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +51 -10
- package/dist/.pikku/channel/pikku-channel-types.gen.js +3 -13
- package/dist/.pikku/channel/pikku-channels-meta.gen.js +3 -2
- package/dist/.pikku/channel/pikku-channels-meta.gen.json +1 -0
- package/dist/.pikku/channel/pikku-channels.gen.d.ts +1 -1
- package/dist/.pikku/channel/pikku-channels.gen.js +1 -1
- package/dist/.pikku/cli/pikku-cli-channel.js +2 -2
- package/dist/.pikku/cli/pikku-cli-client.gen.d.ts +1 -1
- package/dist/.pikku/cli/pikku-cli-client.gen.js +1 -3
- package/dist/.pikku/cli/pikku-cli-types.gen.d.ts +3 -3
- package/dist/.pikku/cli/pikku-cli-types.gen.js +1 -1
- package/dist/.pikku/cli/pikku-cli-wirings-meta.gen.js +3 -157
- package/dist/.pikku/cli/pikku-cli-wirings-meta.gen.json +147 -0
- package/dist/.pikku/cli/pikku-cli-wirings.gen.d.ts +2 -2
- package/dist/.pikku/cli/pikku-cli-wirings.gen.js +2 -2
- package/dist/.pikku/cli/pikku-cli.gen.d.ts +1 -1
- package/dist/.pikku/cli/pikku-cli.gen.js +3 -3
- package/dist/.pikku/forge/pikku-forge-types.gen.d.ts +72 -0
- package/dist/.pikku/forge/pikku-forge-types.gen.js +55 -0
- package/dist/.pikku/function/pikku-function-types.gen.d.ts +141 -99
- package/dist/.pikku/function/pikku-function-types.gen.js +52 -62
- package/dist/.pikku/function/pikku-functions-meta.gen.js +3 -969
- package/dist/.pikku/function/pikku-functions-meta.gen.json +656 -0
- package/dist/.pikku/http/pikku-http-types.gen.d.ts +19 -4
- package/dist/.pikku/http/pikku-http-types.gen.js +1 -1
- package/dist/.pikku/http/pikku-http-wirings-meta.gen.js +3 -10
- package/dist/.pikku/http/pikku-http-wirings-meta.gen.json +9 -0
- package/dist/.pikku/http/pikku-http-wirings.gen.d.ts +1 -1
- package/dist/.pikku/http/pikku-http-wirings.gen.js +1 -1
- package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts +57 -17
- package/dist/.pikku/mcp/pikku-mcp-types.gen.js +7 -31
- package/dist/.pikku/mcp/pikku-mcp-wirings-meta.gen.js +5 -4
- package/dist/.pikku/mcp/pikku-mcp-wirings-meta.gen.json +5 -0
- package/dist/.pikku/mcp/pikku-mcp-wirings.gen.d.ts +1 -1
- package/dist/.pikku/mcp/pikku-mcp-wirings.gen.js +1 -1
- package/dist/.pikku/pikku-bootstrap.gen.d.ts +7 -12
- package/dist/.pikku/pikku-bootstrap.gen.js +7 -12
- package/dist/.pikku/pikku-services.gen.d.ts +5 -7
- package/dist/.pikku/pikku-services.gen.js +3 -5
- package/dist/.pikku/pikku-types.gen.d.ts +2 -1
- package/dist/.pikku/pikku-types.gen.js +3 -1
- package/dist/.pikku/pikku-websocket.gen.d.ts +1 -1
- package/dist/.pikku/pikku-websocket.gen.js +1 -1
- package/dist/.pikku/queue/pikku-queue-types.gen.d.ts +2 -2
- package/dist/.pikku/queue/pikku-queue-types.gen.js +1 -1
- package/dist/.pikku/queue/pikku-queue-workers-wirings-meta.gen.js +3 -7
- package/dist/.pikku/queue/pikku-queue-workers-wirings-meta.gen.json +1 -0
- package/dist/.pikku/queue/pikku-queue-workers-wirings.gen.d.ts +1 -1
- package/dist/.pikku/queue/pikku-queue-workers-wirings.gen.js +1 -1
- package/dist/.pikku/rpc/pikku-remote-rpc-workers.gen.d.ts +9 -9
- package/dist/.pikku/rpc/pikku-remote-rpc-workers.gen.js +5 -2
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +2 -2
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js +1 -1
- package/dist/.pikku/scheduler/pikku-schedulers-wirings-meta.gen.js +3 -2
- package/dist/.pikku/scheduler/pikku-schedulers-wirings-meta.gen.json +1 -0
- package/dist/.pikku/scheduler/pikku-schedulers-wirings.gen.d.ts +1 -1
- package/dist/.pikku/scheduler/pikku-schedulers-wirings.gen.js +1 -1
- package/dist/.pikku/schemas/register.gen.js +19 -15
- package/dist/.pikku/schemas/schemas/PikkuCLIConfig.schema.json +1 -1
- package/dist/.pikku/schemas/schemas/PikkuCLIOutput.schema.json +1 -1
- package/dist/.pikku/schemas/schemas/PikkuChannelsOutput.schema.json +1 -1
- package/dist/.pikku/schemas/schemas/PikkuForgeNodesOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PikkuFunctionsOutput.schema.json +1 -1
- package/dist/.pikku/schemas/schemas/PikkuHTTPOutput.schema.json +1 -1
- package/dist/.pikku/schemas/schemas/PikkuMCPOutput.schema.json +1 -1
- package/dist/.pikku/schemas/schemas/PikkuMiddlewareOutput.schema.json +1 -1
- package/dist/.pikku/schemas/schemas/PikkuPackageOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PikkuPermissionsOutput.schema.json +1 -1
- package/dist/.pikku/schemas/schemas/PikkuPublicRPCOutput.schema.json +1 -1
- package/dist/.pikku/schemas/schemas/PikkuQueueOutput.schema.json +1 -1
- package/dist/.pikku/schemas/schemas/PikkuRPCOutput.schema.json +1 -1
- package/dist/.pikku/schemas/schemas/PikkuRemoteRPCOutput.schema.json +1 -1
- package/dist/.pikku/schemas/schemas/PikkuSchedulerOutput.schema.json +1 -1
- package/dist/.pikku/schemas/schemas/PikkuSchemasOutput.schema.json +1 -1
- package/dist/.pikku/schemas/schemas/PikkuWorkflowOutput.schema.json +1 -1
- package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +213 -39
- package/dist/.pikku/workflow/pikku-workflow-types.gen.js +106 -16
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +3 -2
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts +1 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +1 -2
- package/dist/bin/pikku.js +5 -26
- package/dist/src/cli.wiring.js +4 -4
- package/dist/src/functions/commands/all.js +172 -94
- package/dist/src/functions/commands/bootstrap.js +21 -16
- package/dist/src/functions/commands/watch.js +6 -3
- package/dist/src/functions/runtimes/nextjs/pikku-command-nextjs.js +12 -8
- package/dist/src/functions/runtimes/nextjs/serialize-nextjs-backend-wrapper.d.ts +1 -1
- package/dist/src/functions/runtimes/nextjs/serialize-nextjs-backend-wrapper.js +74 -22
- package/dist/src/functions/runtimes/nextjs/serialize-nextjs-http-wrapper.d.ts +1 -1
- package/dist/src/functions/runtimes/nextjs/serialize-nextjs-http-wrapper.js +72 -20
- package/dist/src/functions/wirings/channels/pikku-channels.js +9 -2
- package/dist/src/functions/wirings/channels/pikku-command-channels.js +18 -2
- package/dist/src/functions/wirings/channels/serialize-channel-types.js +72 -16
- package/dist/src/functions/wirings/channels/serialize-typed-channel-map.js +1 -2
- package/dist/src/functions/wirings/cli/pikku-command-cli-entry.js +4 -4
- package/dist/src/functions/wirings/cli/pikku-command-cli-types.js +1 -1
- package/dist/src/functions/wirings/cli/pikku-command-cli.js +17 -3
- package/dist/src/functions/wirings/cli/serialize-channel-cli.js +1 -1
- package/dist/src/functions/wirings/cli/serialize-cli-types.js +2 -2
- package/dist/src/functions/wirings/cli/serialize-local-cli-bootstrap.d.ts +1 -1
- package/dist/src/functions/wirings/cli/serialize-local-cli-bootstrap.js +4 -4
- package/dist/src/functions/wirings/forge/pikku-command-forge-nodes.d.ts +1 -0
- package/dist/src/functions/wirings/forge/pikku-command-forge-nodes.js +90 -0
- package/dist/src/functions/wirings/forge/pikku-command-forge-types.d.ts +1 -0
- package/dist/src/functions/wirings/forge/pikku-command-forge-types.js +26 -0
- package/dist/src/functions/wirings/forge/serialize-forge-types.d.ts +4 -0
- package/dist/src/functions/wirings/forge/serialize-forge-types.js +90 -0
- package/dist/src/functions/wirings/functions/pikku-command-function-types-split.js +4 -4
- package/dist/src/functions/wirings/functions/pikku-command-function-types.js +7 -2
- package/dist/src/functions/wirings/functions/pikku-command-functions.js +35 -10
- package/dist/src/functions/wirings/functions/pikku-command-services.d.ts +1 -1
- package/dist/src/functions/wirings/functions/pikku-command-services.js +24 -24
- package/dist/src/functions/wirings/functions/pikku-function-types.js +2 -2
- package/dist/src/functions/wirings/functions/schemas.d.ts +1 -1
- package/dist/src/functions/wirings/functions/schemas.js +5 -4
- package/dist/src/functions/wirings/functions/serialize-function-imports.d.ts +3 -1
- package/dist/src/functions/wirings/functions/serialize-function-imports.js +7 -3
- package/dist/src/functions/wirings/functions/serialize-function-types.d.ts +1 -1
- package/dist/src/functions/wirings/functions/serialize-function-types.js +224 -91
- package/dist/src/functions/wirings/functions/serialize-pikku-types-hub.d.ts +1 -1
- package/dist/src/functions/wirings/functions/serialize-pikku-types-hub.js +19 -21
- package/dist/src/functions/wirings/http/openapi-spec-generator.js +5 -5
- package/dist/src/functions/wirings/http/pikku-command-http-routes.js +18 -2
- package/dist/src/functions/wirings/http/pikku-command-openapi.js +2 -2
- package/dist/src/functions/wirings/http/pikku-http-routes.js +9 -2
- package/dist/src/functions/wirings/http/serialize-http-types.js +19 -3
- package/dist/src/functions/wirings/http/serialize-typed-http-map.js +33 -8
- package/dist/src/functions/wirings/mcp/pikku-command-mcp.js +29 -6
- package/dist/src/functions/wirings/mcp/serialize-mcp-json.js +3 -2
- package/dist/src/functions/wirings/mcp/serialize-mcp-types.js +71 -19
- package/dist/src/functions/wirings/middleware/pikku-command-middleware.js +29 -2
- package/dist/src/functions/wirings/middleware/serialize-middleware-groups-meta.d.ts +5 -2
- package/dist/src/functions/wirings/middleware/serialize-middleware-groups-meta.js +5 -13
- package/dist/src/functions/wirings/package/pikku-command-package.d.ts +1 -0
- package/dist/src/functions/wirings/package/pikku-command-package.js +58 -0
- package/dist/src/functions/wirings/package/serialize-package.d.ts +5 -0
- package/dist/src/functions/wirings/package/serialize-package.js +32 -0
- package/dist/src/functions/wirings/queue/pikku-command-queue.js +17 -3
- package/dist/src/functions/wirings/queue/pikku-queue.js +9 -11
- package/dist/src/functions/wirings/queue/serialize-queue-map.js +20 -3
- package/dist/src/functions/wirings/queue/serialize-queue-meta.d.ts +2 -1
- package/dist/src/functions/wirings/queue/serialize-queue-meta.js +10 -1
- package/dist/src/functions/wirings/queue/serialize-queue-types.js +1 -1
- package/dist/src/functions/wirings/rpc/pikku-command-rpc-map.js +4 -4
- package/dist/src/functions/wirings/rpc/pikku-command-rpc.js +9 -2
- package/dist/src/functions/wirings/rpc/serialize-public-rpc.js +11 -4
- package/dist/src/functions/wirings/rpc/serialize-remote-rpc.js +4 -1
- package/dist/src/functions/wirings/rpc/serialize-rpc-wrapper.js +3 -3
- package/dist/src/functions/wirings/rpc/serialize-typed-rpc-map.d.ts +1 -1
- package/dist/src/functions/wirings/rpc/serialize-typed-rpc-map.js +54 -8
- package/dist/src/functions/wirings/scheduler/pikku-command-scheduler.js +15 -3
- package/dist/src/functions/wirings/scheduler/serialize-scheduler-meta.d.ts +2 -1
- package/dist/src/functions/wirings/scheduler/serialize-scheduler-meta.js +11 -1
- package/dist/src/functions/wirings/scheduler/serialize-scheduler-types.js +1 -1
- package/dist/src/functions/wirings/services/pikku-command-service-metadata.d.ts +1 -0
- package/dist/src/functions/wirings/services/pikku-command-service-metadata.js +22 -0
- package/dist/src/functions/wirings/workflow/pikku-command-workflow.js +58 -16
- package/dist/src/functions/wirings/workflow/serialize-workflow-map.d.ts +3 -0
- package/dist/src/functions/wirings/workflow/serialize-workflow-map.js +30 -32
- package/dist/src/functions/wirings/workflow/serialize-workflow-meta.d.ts +1 -2
- package/dist/src/functions/wirings/workflow/serialize-workflow-meta.js +43 -8
- package/dist/src/functions/wirings/workflow/serialize-workflow-registration.d.ts +7 -0
- package/dist/src/functions/wirings/workflow/serialize-workflow-registration.js +53 -0
- package/dist/src/functions/wirings/workflow/serialize-workflow-types.d.ts +4 -2
- package/dist/src/functions/wirings/workflow/serialize-workflow-types.js +308 -49
- package/dist/src/functions/wirings/workflow/serialize-workflow-workers.d.ts +1 -1
- package/dist/src/functions/wirings/workflow/serialize-workflow-workers.js +16 -29
- package/dist/src/middleware/log-command-info-and-time.d.ts +2 -2
- package/dist/src/middleware/log-command-info-and-time.js +1 -4
- package/dist/src/services/cli-logger-forwarder.service.js +1 -1
- package/dist/src/services.d.ts +2 -7
- package/dist/src/services.js +18 -13
- package/dist/src/utils/check-required-types.d.ts +2 -2
- package/dist/src/utils/check-required-types.js +2 -3
- package/dist/src/utils/command-summary.d.ts +2 -0
- package/dist/src/utils/command-summary.js +2 -0
- package/dist/src/utils/custom-types-generator.js +13 -15
- package/dist/src/utils/generate-bootstrap-file.js +1 -1
- package/dist/src/utils/pikku-cli-config.js +65 -4
- package/dist/src/utils/pikku-files-and-methods.d.ts +2 -2
- package/dist/src/utils/pikku-files-and-methods.js +4 -4
- package/dist/src/utils/schema-generator.d.ts +4 -3
- package/dist/src/utils/schema-generator.js +135 -15
- package/dist/src/utils/strip-verbose-meta.d.ts +43 -0
- package/dist/src/utils/strip-verbose-meta.js +210 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +11 -9
- package/src/cli.wiring.ts +4 -4
- package/src/functions/commands/all.ts +203 -107
- package/src/functions/commands/bootstrap.ts +23 -16
- package/src/functions/commands/watch.ts +6 -3
- package/src/functions/runtimes/nextjs/pikku-command-nextjs.ts +26 -6
- package/src/functions/runtimes/nextjs/serialize-nextjs-backend-wrapper.ts +75 -22
- package/src/functions/runtimes/nextjs/serialize-nextjs-http-wrapper.ts +72 -19
- package/src/functions/wirings/channels/pikku-channels.ts +27 -3
- package/src/functions/wirings/channels/pikku-command-channels.ts +46 -3
- package/src/functions/wirings/channels/serialize-channel-types.ts +72 -16
- package/src/functions/wirings/channels/serialize-typed-channel-map.ts +3 -2
- package/src/functions/wirings/cli/pikku-command-cli-entry.ts +4 -4
- package/src/functions/wirings/cli/pikku-command-cli-types.ts +1 -1
- package/src/functions/wirings/cli/pikku-command-cli.ts +45 -3
- package/src/functions/wirings/cli/serialize-channel-cli.ts +1 -1
- package/src/functions/wirings/cli/serialize-cli-types.ts +2 -2
- package/src/functions/wirings/cli/serialize-local-cli-bootstrap.ts +5 -5
- package/src/functions/wirings/forge/pikku-command-forge-nodes.ts +135 -0
- package/src/functions/wirings/forge/pikku-command-forge-types.ts +38 -0
- package/src/functions/wirings/forge/serialize-forge-types.ts +94 -0
- package/src/functions/wirings/functions/pikku-command-function-types-split.ts +9 -8
- package/src/functions/wirings/functions/pikku-command-function-types.ts +17 -10
- package/src/functions/wirings/functions/pikku-command-functions.ts +59 -14
- package/src/functions/wirings/functions/pikku-command-services.ts +26 -26
- package/src/functions/wirings/functions/pikku-function-types.ts +3 -1
- package/src/functions/wirings/functions/schemas.ts +14 -4
- package/src/functions/wirings/functions/serialize-function-imports.ts +12 -3
- package/src/functions/wirings/functions/serialize-function-types.ts +227 -93
- package/src/functions/wirings/functions/serialize-pikku-types-hub.ts +27 -26
- package/src/functions/wirings/http/openapi-spec-generator.ts +15 -6
- package/src/functions/wirings/http/pikku-command-http-routes.ts +46 -2
- package/src/functions/wirings/http/pikku-command-openapi.ts +3 -2
- package/src/functions/wirings/http/pikku-http-routes.ts +28 -2
- package/src/functions/wirings/http/serialize-http-types.ts +19 -3
- package/src/functions/wirings/http/serialize-typed-http-map.ts +32 -8
- package/src/functions/wirings/mcp/pikku-command-mcp.ts +58 -10
- package/src/functions/wirings/mcp/serialize-mcp-json.ts +8 -6
- package/src/functions/wirings/mcp/serialize-mcp-types.ts +71 -19
- package/src/functions/wirings/middleware/pikku-command-middleware.ts +39 -2
- package/src/functions/wirings/middleware/serialize-middleware-groups-meta.ts +4 -19
- package/src/functions/wirings/package/pikku-command-package.ts +81 -0
- package/src/functions/wirings/package/serialize-package.ts +69 -0
- package/src/functions/wirings/permissions/pikku-command-permissions.ts +2 -2
- package/src/functions/wirings/queue/pikku-command-queue.ts +47 -2
- package/src/functions/wirings/queue/pikku-queue.ts +26 -10
- package/src/functions/wirings/queue/serialize-queue-map.ts +18 -3
- package/src/functions/wirings/queue/serialize-queue-meta.ts +15 -1
- package/src/functions/wirings/queue/serialize-queue-types.ts +1 -1
- package/src/functions/wirings/rpc/pikku-command-rpc-map.ts +7 -4
- package/src/functions/wirings/rpc/pikku-command-rpc.ts +25 -2
- package/src/functions/wirings/rpc/serialize-public-rpc.ts +11 -4
- package/src/functions/wirings/rpc/serialize-remote-rpc.ts +4 -1
- package/src/functions/wirings/rpc/serialize-rpc-wrapper.ts +3 -3
- package/src/functions/wirings/rpc/serialize-typed-rpc-map.ts +74 -8
- package/src/functions/wirings/scheduler/pikku-command-scheduler.ts +51 -4
- package/src/functions/wirings/scheduler/serialize-scheduler-meta.ts +20 -1
- package/src/functions/wirings/scheduler/serialize-scheduler-types.ts +1 -1
- package/src/functions/wirings/services/pikku-command-service-metadata.ts +25 -0
- package/src/functions/wirings/workflow/pikku-command-workflow.ts +114 -19
- package/src/functions/wirings/workflow/serialize-workflow-map.ts +38 -40
- package/src/functions/wirings/workflow/serialize-workflow-meta.ts +68 -11
- package/src/functions/wirings/workflow/serialize-workflow-registration.ts +83 -0
- package/src/functions/wirings/workflow/serialize-workflow-types.ts +311 -49
- package/src/functions/wirings/workflow/serialize-workflow-workers.ts +16 -29
- package/src/middleware/log-command-info-and-time.ts +3 -6
- package/src/services/cli-logger-forwarder.service.ts +1 -1
- package/src/services.ts +23 -16
- package/src/utils/check-required-types.ts +4 -7
- package/src/utils/command-summary.ts +4 -0
- package/src/utils/custom-types-generator.ts +15 -15
- package/src/utils/generate-bootstrap-file.ts +1 -1
- package/src/utils/pikku-cli-config.ts +105 -5
- package/src/utils/pikku-files-and-methods.ts +10 -13
- package/src/utils/schema-generator.ts +185 -22
- package/src/utils/strip-verbose-meta.ts +254 -0
- package/types/application-types.d.ts +1 -1
- package/types/config.d.ts +47 -2
- package/.pikku/function/pikku-functions-meta.min.gen.ts +0 -211
- package/.pikku/function/pikku-functions.gen.ts +0 -84
- package/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.ts +0 -47
- package/dist/.pikku/function/pikku-functions-meta.min.gen.d.ts +0 -1
- package/dist/.pikku/function/pikku-functions-meta.min.gen.js +0 -211
- package/dist/.pikku/function/pikku-functions.gen.d.ts +0 -1
- package/dist/.pikku/function/pikku-functions.gen.js +0 -83
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.d.ts +0 -1
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +0 -47
- package/dist/.pikku/schemas/schemas/PikkuRemoteInternalRPCInput.schema.json +0 -1
- package/dist/src/functions/wirings/workflow/pikku-command-workflow-map.d.ts +0 -1
- package/dist/src/functions/wirings/workflow/pikku-command-workflow-map.js +0 -12
- package/dist/src/functions/wirings/workflow/pikku-command-workflow-types.d.ts +0 -1
- package/dist/src/functions/wirings/workflow/pikku-command-workflow-types.js +0 -11
- package/src/functions/wirings/workflow/pikku-command-workflow-map.ts +0 -24
- package/src/functions/wirings/workflow/pikku-command-workflow-types.ts +0 -22
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.11.
|
|
2
|
+
* This file was generated by @pikku/cli@0.11.3
|
|
3
3
|
*/
|
|
4
4
|
import { pikkuState } from '@pikku/core';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
"post": {},
|
|
8
|
-
"put": {},
|
|
9
|
-
"delete": {},
|
|
10
|
-
"head": {},
|
|
11
|
-
"patch": {},
|
|
12
|
-
"options": {}
|
|
13
|
-
});
|
|
5
|
+
import metaData from './pikku-http-wirings-meta.gen.json' with { type: 'json' };
|
|
6
|
+
pikkuState(null, 'http', 'meta', metaData);
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.11.
|
|
2
|
+
* This file was generated by @pikku/cli@0.11.3
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* MCP-specific type definitions for tree-shaking optimization
|
|
6
6
|
*/
|
|
7
7
|
import { CoreMCPResource, CoreMCPTool, CoreMCPPrompt, MCPResourceResponse, MCPToolResponse, MCPPromptResponse, AssertMCPResourceURIParams } from '@pikku/core/mcp';
|
|
8
|
-
import type { PikkuFunctionConfig, PikkuFunctionSessionless } from '../function/pikku-function-types.gen.js';
|
|
8
|
+
import type { PikkuFunctionConfig, PikkuFunctionSessionless, InferZodOutput } from '../function/pikku-function-types.gen.js';
|
|
9
|
+
import type { ZodLike } from '@pikku/core';
|
|
9
10
|
/**
|
|
10
11
|
* Type definition for MCP resources that provide data to AI models.
|
|
11
12
|
*
|
|
12
13
|
* @template In - Input type for the resource request
|
|
13
14
|
* @template URI - URI template string type for compile-time parameter validation
|
|
14
15
|
*/
|
|
15
|
-
type MCPResourceWiring<In, URI extends string> = CoreMCPResource<PikkuFunctionConfig<In, MCPResourceResponse>> & {
|
|
16
|
+
type MCPResourceWiring<In, URI extends string> = CoreMCPResource<PikkuFunctionConfig<In, MCPResourceResponse, 'rpc' | 'session' | 'mcp'>> & {
|
|
16
17
|
uri: URI;
|
|
17
18
|
};
|
|
18
19
|
/**
|
|
@@ -20,13 +21,13 @@ type MCPResourceWiring<In, URI extends string> = CoreMCPResource<PikkuFunctionCo
|
|
|
20
21
|
*
|
|
21
22
|
* @template In - Input type for the tool invocation
|
|
22
23
|
*/
|
|
23
|
-
type MCPToolWiring<In> = CoreMCPTool<PikkuFunctionConfig<In, MCPToolResponse>>;
|
|
24
|
+
type MCPToolWiring<In> = CoreMCPTool<PikkuFunctionConfig<In, MCPToolResponse, 'rpc' | 'session' | 'mcp'>>;
|
|
24
25
|
/**
|
|
25
26
|
* Type definition for MCP prompts that provide templates to AI models.
|
|
26
27
|
*
|
|
27
28
|
* @template In - Input type for the prompt parameters
|
|
28
29
|
*/
|
|
29
|
-
type MCPPromptWiring<In> = CoreMCPPrompt<PikkuFunctionConfig<In, MCPPromptResponse>>;
|
|
30
|
+
type MCPPromptWiring<In> = CoreMCPPrompt<PikkuFunctionConfig<In, MCPPromptResponse, 'rpc' | 'session' | 'mcp'>>;
|
|
30
31
|
/**
|
|
31
32
|
* Registers an MCP resource with the Pikku framework.
|
|
32
33
|
* Resources provide data that AI models can access.
|
|
@@ -52,40 +53,79 @@ export declare const wireMCPTool: <In>(mcpTool: MCPToolWiring<In>) => void;
|
|
|
52
53
|
* @param mcpPrompt - MCP prompt definition with template function
|
|
53
54
|
*/
|
|
54
55
|
export declare const wireMCPPrompt: <In>(mcpPrompt: MCPPromptWiring<In>) => void;
|
|
56
|
+
/**
|
|
57
|
+
* Configuration for MCP prompt with Zod schema input validation.
|
|
58
|
+
*/
|
|
59
|
+
type MCPPromptFuncConfigWithSchema<InputSchema extends ZodLike> = {
|
|
60
|
+
func: PikkuFunctionSessionless<InferZodOutput<InputSchema>, MCPPromptResponse, 'mcp' | 'rpc'>;
|
|
61
|
+
name?: string;
|
|
62
|
+
input: InputSchema;
|
|
63
|
+
};
|
|
55
64
|
/**
|
|
56
65
|
* Creates a function for handling MCP prompt requests.
|
|
57
66
|
* These functions generate prompt templates for AI models.
|
|
58
67
|
*
|
|
59
|
-
*
|
|
68
|
+
* Supports two patterns:
|
|
69
|
+
* 1. Generic types: `pikkuMCPPromptFunc<Input>({ func: ... })`
|
|
70
|
+
* 2. Zod schemas: `pikkuMCPPromptFunc({ input: z.object(...), func: ... })`
|
|
71
|
+
*
|
|
72
|
+
* @template In - Input type for the prompt parameters (inferred from schema if provided)
|
|
60
73
|
* @param func - Function definition, either direct function or configuration object
|
|
61
74
|
* @returns The unwrapped function for internal use
|
|
62
75
|
*/
|
|
63
|
-
export declare
|
|
64
|
-
|
|
76
|
+
export declare function pikkuMCPPromptFunc<InputSchema extends ZodLike>(config: MCPPromptFuncConfigWithSchema<InputSchema>): PikkuFunctionConfig<InferZodOutput<InputSchema>, MCPPromptResponse, 'mcp' | 'rpc'>;
|
|
77
|
+
export declare function pikkuMCPPromptFunc<In>(func: PikkuFunctionSessionless<In, MCPPromptResponse, 'mcp' | 'rpc'> | {
|
|
78
|
+
func: PikkuFunctionSessionless<In, MCPPromptResponse, 'mcp' | 'rpc'>;
|
|
79
|
+
name?: string;
|
|
80
|
+
}): PikkuFunctionConfig<In, MCPPromptResponse, 'mcp' | 'rpc'>;
|
|
81
|
+
/**
|
|
82
|
+
* Configuration for MCP tool with Zod schema input validation.
|
|
83
|
+
*/
|
|
84
|
+
type MCPToolFuncConfigWithSchema<InputSchema extends ZodLike> = {
|
|
85
|
+
func: PikkuFunctionSessionless<InferZodOutput<InputSchema>, MCPToolResponse, 'mcp' | 'rpc'>;
|
|
65
86
|
name?: string;
|
|
66
|
-
|
|
87
|
+
input: InputSchema;
|
|
88
|
+
};
|
|
67
89
|
/**
|
|
68
90
|
* Creates a function for handling MCP tool invocations.
|
|
69
91
|
* These functions perform actions that AI models can request.
|
|
70
92
|
*
|
|
71
|
-
*
|
|
93
|
+
* Supports two patterns:
|
|
94
|
+
* 1. Generic types: `pikkuMCPToolFunc<Input>({ func: ... })`
|
|
95
|
+
* 2. Zod schemas: `pikkuMCPToolFunc({ input: z.object(...), func: ... })`
|
|
96
|
+
*
|
|
97
|
+
* @template In - Input type for the tool invocation (inferred from schema if provided)
|
|
72
98
|
* @param func - Function definition, either direct function or configuration object
|
|
73
99
|
* @returns The unwrapped function for internal use
|
|
74
100
|
*/
|
|
75
|
-
export declare
|
|
76
|
-
|
|
101
|
+
export declare function pikkuMCPToolFunc<InputSchema extends ZodLike>(config: MCPToolFuncConfigWithSchema<InputSchema>): PikkuFunctionConfig<InferZodOutput<InputSchema>, MCPToolResponse, 'mcp' | 'rpc'>;
|
|
102
|
+
export declare function pikkuMCPToolFunc<In>(func: PikkuFunctionSessionless<In, MCPToolResponse, 'mcp' | 'rpc'> | {
|
|
103
|
+
func: PikkuFunctionSessionless<In, MCPToolResponse, 'mcp' | 'rpc'>;
|
|
77
104
|
name?: string;
|
|
78
|
-
})
|
|
105
|
+
}): PikkuFunctionConfig<In, MCPToolResponse, 'mcp' | 'rpc'>;
|
|
106
|
+
/**
|
|
107
|
+
* Configuration for MCP resource with Zod schema input validation.
|
|
108
|
+
*/
|
|
109
|
+
type MCPResourceFuncConfigWithSchema<InputSchema extends ZodLike> = {
|
|
110
|
+
func: PikkuFunctionSessionless<InferZodOutput<InputSchema>, MCPResourceResponse, 'mcp' | 'rpc'>;
|
|
111
|
+
name?: string;
|
|
112
|
+
input: InputSchema;
|
|
113
|
+
};
|
|
79
114
|
/**
|
|
80
115
|
* Creates a function for handling MCP resource requests.
|
|
81
116
|
* These functions provide data that AI models can access.
|
|
82
117
|
*
|
|
83
|
-
*
|
|
118
|
+
* Supports two patterns:
|
|
119
|
+
* 1. Generic types: `pikkuMCPResourceFunc<Input>({ func: ... })`
|
|
120
|
+
* 2. Zod schemas: `pikkuMCPResourceFunc({ input: z.object(...), func: ... })`
|
|
121
|
+
*
|
|
122
|
+
* @template In - Input type for the resource request (inferred from schema if provided)
|
|
84
123
|
* @param func - Function definition, either direct function or configuration object
|
|
85
124
|
* @returns The unwrapped function for internal use
|
|
86
125
|
*/
|
|
87
|
-
export declare
|
|
88
|
-
|
|
126
|
+
export declare function pikkuMCPResourceFunc<InputSchema extends ZodLike>(config: MCPResourceFuncConfigWithSchema<InputSchema>): PikkuFunctionConfig<InferZodOutput<InputSchema>, MCPResourceResponse, 'mcp' | 'rpc'>;
|
|
127
|
+
export declare function pikkuMCPResourceFunc<In>(func: PikkuFunctionSessionless<In, MCPResourceResponse, 'mcp' | 'rpc'> | {
|
|
128
|
+
func: PikkuFunctionSessionless<In, MCPResourceResponse, 'mcp' | 'rpc'>;
|
|
89
129
|
name?: string;
|
|
90
|
-
})
|
|
130
|
+
}): PikkuFunctionConfig<In, MCPResourceResponse, 'mcp' | 'rpc'>;
|
|
91
131
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.11.
|
|
2
|
+
* This file was generated by @pikku/cli@0.11.3
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* MCP-specific type definitions for tree-shaking optimization
|
|
@@ -36,36 +36,12 @@ export const wireMCPTool = (mcpTool) => {
|
|
|
36
36
|
export const wireMCPPrompt = (mcpPrompt) => {
|
|
37
37
|
wireMCPPromptCore(mcpPrompt);
|
|
38
38
|
};
|
|
39
|
-
|
|
40
|
-
* Creates a function for handling MCP prompt requests.
|
|
41
|
-
* These functions generate prompt templates for AI models.
|
|
42
|
-
*
|
|
43
|
-
* @template In - Input type for the prompt parameters
|
|
44
|
-
* @param func - Function definition, either direct function or configuration object
|
|
45
|
-
* @returns The unwrapped function for internal use
|
|
46
|
-
*/
|
|
47
|
-
export const pikkuMCPPromptFunc = (func) => {
|
|
39
|
+
export function pikkuMCPPromptFunc(func) {
|
|
48
40
|
return typeof func === 'function' ? { func } : func;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
* Creates a function for handling MCP tool invocations.
|
|
52
|
-
* These functions perform actions that AI models can request.
|
|
53
|
-
*
|
|
54
|
-
* @template In - Input type for the tool invocation
|
|
55
|
-
* @param func - Function definition, either direct function or configuration object
|
|
56
|
-
* @returns The unwrapped function for internal use
|
|
57
|
-
*/
|
|
58
|
-
export const pikkuMCPToolFunc = (func) => {
|
|
41
|
+
}
|
|
42
|
+
export function pikkuMCPToolFunc(func) {
|
|
59
43
|
return typeof func === 'function' ? { func } : func;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
* Creates a function for handling MCP resource requests.
|
|
63
|
-
* These functions provide data that AI models can access.
|
|
64
|
-
*
|
|
65
|
-
* @template In - Input type for the resource request
|
|
66
|
-
* @param func - Function definition, either direct function or configuration object
|
|
67
|
-
* @returns The unwrapped function for internal use
|
|
68
|
-
*/
|
|
69
|
-
export const pikkuMCPResourceFunc = (func) => {
|
|
44
|
+
}
|
|
45
|
+
export function pikkuMCPResourceFunc(func) {
|
|
70
46
|
return typeof func === 'function' ? { func } : func;
|
|
71
|
-
}
|
|
47
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.11.
|
|
2
|
+
* This file was generated by @pikku/cli@0.11.3
|
|
3
3
|
*/
|
|
4
4
|
import { pikkuState } from '@pikku/core';
|
|
5
|
-
|
|
6
|
-
pikkuState('mcp', '
|
|
7
|
-
pikkuState('mcp', '
|
|
5
|
+
import metaData from './pikku-mcp-wirings-meta.gen.json' with { type: 'json' };
|
|
6
|
+
pikkuState(null, 'mcp', 'resourcesMeta', metaData.resourcesMeta);
|
|
7
|
+
pikkuState(null, 'mcp', 'toolsMeta', metaData.toolsMeta);
|
|
8
|
+
pikkuState(null, 'mcp', 'promptsMeta', metaData.promptsMeta);
|
|
@@ -1,21 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.11.
|
|
2
|
+
* This file was generated by @pikku/cli@0.11.3
|
|
3
3
|
*/
|
|
4
|
-
import './cli/pikku-cli-wirings-meta.gen.js';
|
|
5
|
-
import './mcp/pikku-mcp-wirings-meta.gen.js';
|
|
6
|
-
import './channel/pikku-channels-meta.gen.js';
|
|
7
|
-
import './queue/pikku-queue-workers-wirings-meta.gen.js';
|
|
8
|
-
import './workflow/pikku-workflow-wirings-meta.gen.js';
|
|
9
|
-
import './scheduler/pikku-schedulers-wirings-meta.gen.js';
|
|
10
|
-
import './http/pikku-http-wirings-meta.gen.js';
|
|
11
|
-
import './rpc/pikku-rpc-wirings-meta.internal.gen.js';
|
|
12
4
|
import './function/pikku-functions-meta.gen.js';
|
|
13
|
-
import './
|
|
5
|
+
import './http/pikku-http-wirings-meta.gen.js';
|
|
6
|
+
import './scheduler/pikku-schedulers-wirings-meta.gen.js';
|
|
7
|
+
import './queue/pikku-queue-workers-wirings-meta.gen.js';
|
|
8
|
+
import './channel/pikku-channels-meta.gen.js';
|
|
9
|
+
import './mcp/pikku-mcp-wirings-meta.gen.js';
|
|
10
|
+
import './cli/pikku-cli-wirings-meta.gen.js';
|
|
14
11
|
import './schemas/register.gen.js';
|
|
15
12
|
import './http/pikku-http-wirings.gen.js';
|
|
16
13
|
import './scheduler/pikku-schedulers-wirings.gen.js';
|
|
17
|
-
import './workflow/pikku-workflow-wirings.gen.js';
|
|
18
|
-
import './rpc/pikku-remote-rpc-workers.gen.js';
|
|
19
14
|
import './queue/pikku-queue-workers-wirings.gen.js';
|
|
20
15
|
import './channel/pikku-channels.gen.js';
|
|
21
16
|
import './mcp/pikku-mcp-wirings.gen.js';
|
|
@@ -1,21 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.11.
|
|
2
|
+
* This file was generated by @pikku/cli@0.11.3
|
|
3
3
|
*/
|
|
4
|
-
import './cli/pikku-cli-wirings-meta.gen.js';
|
|
5
|
-
import './mcp/pikku-mcp-wirings-meta.gen.js';
|
|
6
|
-
import './channel/pikku-channels-meta.gen.js';
|
|
7
|
-
import './queue/pikku-queue-workers-wirings-meta.gen.js';
|
|
8
|
-
import './workflow/pikku-workflow-wirings-meta.gen.js';
|
|
9
|
-
import './scheduler/pikku-schedulers-wirings-meta.gen.js';
|
|
10
|
-
import './http/pikku-http-wirings-meta.gen.js';
|
|
11
|
-
import './rpc/pikku-rpc-wirings-meta.internal.gen.js';
|
|
12
4
|
import './function/pikku-functions-meta.gen.js';
|
|
13
|
-
import './
|
|
5
|
+
import './http/pikku-http-wirings-meta.gen.js';
|
|
6
|
+
import './scheduler/pikku-schedulers-wirings-meta.gen.js';
|
|
7
|
+
import './queue/pikku-queue-workers-wirings-meta.gen.js';
|
|
8
|
+
import './channel/pikku-channels-meta.gen.js';
|
|
9
|
+
import './mcp/pikku-mcp-wirings-meta.gen.js';
|
|
10
|
+
import './cli/pikku-cli-wirings-meta.gen.js';
|
|
14
11
|
import './schemas/register.gen.js';
|
|
15
12
|
import './http/pikku-http-wirings.gen.js';
|
|
16
13
|
import './scheduler/pikku-schedulers-wirings.gen.js';
|
|
17
|
-
import './workflow/pikku-workflow-wirings.gen.js';
|
|
18
|
-
import './rpc/pikku-remote-rpc-workers.gen.js';
|
|
19
14
|
import './queue/pikku-queue-workers-wirings.gen.js';
|
|
20
15
|
import './channel/pikku-channels.gen.js';
|
|
21
16
|
import './mcp/pikku-mcp-wirings.gen.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.11.
|
|
2
|
+
* This file was generated by @pikku/cli@0.11.3
|
|
3
3
|
*/
|
|
4
4
|
import type { SingletonServices } from '../types/application-types.d.js';
|
|
5
5
|
import type { Services } from '../types/application-types.d.js';
|
|
@@ -11,12 +11,10 @@ export declare const requiredSingletonServices: {
|
|
|
11
11
|
readonly queueService: false;
|
|
12
12
|
readonly schedulerService: false;
|
|
13
13
|
readonly schema: true;
|
|
14
|
+
readonly secrets: true;
|
|
14
15
|
readonly variables: true;
|
|
15
16
|
readonly workflowService: false;
|
|
16
17
|
};
|
|
17
|
-
export declare const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
};
|
|
21
|
-
export type RequiredSingletonServices = Pick<SingletonServices, 'config' | 'getInspectorState' | 'logger' | 'schema' | 'variables'> & Partial<Omit<SingletonServices, 'config' | 'getInspectorState' | 'logger' | 'schema' | 'variables'>>;
|
|
22
|
-
export type RequiredSessionServices = Partial<Services>;
|
|
18
|
+
export declare const requiredWireServices: {};
|
|
19
|
+
export type RequiredSingletonServices = Pick<SingletonServices, 'config' | 'getInspectorState' | 'logger' | 'schema' | 'secrets' | 'variables'> & Partial<Omit<SingletonServices, 'config' | 'getInspectorState' | 'logger' | 'schema' | 'secrets' | 'variables'>>;
|
|
20
|
+
export type RequiredWireServices = Partial<Services>;
|
|
@@ -7,11 +7,9 @@ export const requiredSingletonServices = {
|
|
|
7
7
|
'queueService': false,
|
|
8
8
|
'schedulerService': false,
|
|
9
9
|
'schema': true,
|
|
10
|
+
'secrets': true,
|
|
10
11
|
'variables': true,
|
|
11
12
|
'workflowService': false,
|
|
12
13
|
};
|
|
13
|
-
//
|
|
14
|
-
export const
|
|
15
|
-
'workflow': false,
|
|
16
|
-
'workflowStep': false,
|
|
17
|
-
};
|
|
14
|
+
// Wire services map: true if required, false if available but unused
|
|
15
|
+
export const requiredWireServices = {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.11.
|
|
2
|
+
* This file was generated by @pikku/cli@0.11.3
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* Main type export hub - re-exports all wiring-specific types
|
|
@@ -11,3 +11,4 @@ export * from './scheduler/pikku-scheduler-types.gen.js';
|
|
|
11
11
|
export * from './queue/pikku-queue-types.gen.js';
|
|
12
12
|
export * from './mcp/pikku-mcp-types.gen.js';
|
|
13
13
|
export * from './cli/pikku-cli-types.gen.js';
|
|
14
|
+
export * from './forge/pikku-forge-types.gen.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.11.
|
|
2
|
+
* This file was generated by @pikku/cli@0.11.3
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* Main type export hub - re-exports all wiring-specific types
|
|
@@ -18,3 +18,5 @@ export * from './queue/pikku-queue-types.gen.js';
|
|
|
18
18
|
export * from './mcp/pikku-mcp-types.gen.js';
|
|
19
19
|
// CLI wiring types
|
|
20
20
|
export * from './cli/pikku-cli-types.gen.js';
|
|
21
|
+
// Forge wiring types
|
|
22
|
+
export * from './forge/pikku-forge-types.gen.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.11.
|
|
2
|
+
* This file was generated by @pikku/cli@0.11.3
|
|
3
3
|
*/
|
|
4
4
|
import { CorePikkuWebsocket, CorePikkuRouteHandler } from '@pikku/websocket';
|
|
5
5
|
import { ChannelDefaultHandlerOf, ChannelWiringHandlerOf, ChannelsMap } from './channel/pikku-channels-map.gen.d.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.11.
|
|
2
|
+
* This file was generated by @pikku/cli@0.11.3
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* Queue-specific type definitions for tree-shaking optimization
|
|
@@ -12,7 +12,7 @@ import type { PikkuFunctionConfig } from '../function/pikku-function-types.gen.j
|
|
|
12
12
|
* @template In - Input type for the queue job
|
|
13
13
|
* @template Out - Output type for the queue job
|
|
14
14
|
*/
|
|
15
|
-
type QueueWiring<In, Out> = CoreQueueWorker<PikkuFunctionConfig<In, Out>>;
|
|
15
|
+
type QueueWiring<In, Out> = CoreQueueWorker<PikkuFunctionConfig<In, Out, 'session' | 'rpc'>>;
|
|
16
16
|
/**
|
|
17
17
|
* Registers a queue worker with the Pikku framework.
|
|
18
18
|
* Workers process background jobs from queues.
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.11.
|
|
2
|
+
* This file was generated by @pikku/cli@0.11.3
|
|
3
3
|
*/
|
|
4
4
|
import { pikkuState } from '@pikku/core';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
"pikkuFuncName": "pikkuRemoteInternalRPC",
|
|
8
|
-
"queueName": "pikku-remote-internal-rpc"
|
|
9
|
-
}
|
|
10
|
-
});
|
|
5
|
+
import metaData from './pikku-queue-workers-wirings-meta.gen.json' with { type: 'json' };
|
|
6
|
+
pikkuState(null, 'queue', 'meta', metaData);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Generic remote RPC worker that invokes any internal RPC by name
|
|
3
3
|
* This is used for executing internal RPCs via a queue or HTTP (e.g., scheduled tasks, background jobs, internal services)
|
|
4
|
+
*
|
|
5
|
+
* TODO: Security risk - this allows any RPC to be invoked by name. Should validate
|
|
6
|
+
* that rpcName is in an allowlist of permitted internal RPCs to prevent unauthorized access.
|
|
4
7
|
*/
|
|
5
|
-
export declare const pikkuRemoteInternalRPC: import("
|
|
8
|
+
export declare const pikkuRemoteInternalRPC: import("../pikku-types.gen.js").PikkuFunctionConfig<{
|
|
6
9
|
rpcName: string;
|
|
7
10
|
data?: any;
|
|
8
|
-
}, any,
|
|
9
|
-
rpc: import("./pikku-rpc-wirings-map.internal.gen.js").TypedPikkuRPC;
|
|
10
|
-
} & {
|
|
11
|
-
channel?: import("@pikku/core").PikkuChannel<unknown, any> | undefined;
|
|
12
|
-
} & {
|
|
13
|
-
mcp?: import("@pikku/core").PikkuMCP;
|
|
14
|
-
}>, import("../pikku-types.gen.js").PikkuPermission<{
|
|
11
|
+
}, any, "rpc" | "session", import("../pikku-types.gen.js").PikkuFunctionSessionless<{
|
|
15
12
|
rpcName: string;
|
|
16
13
|
data?: any;
|
|
17
|
-
}, import("../../types/application-types.js").Services
|
|
14
|
+
}, any, "rpc" | "session", import("../../types/application-types.js").Services> | import("../pikku-types.gen.js").PikkuFunction<{
|
|
15
|
+
rpcName: string;
|
|
16
|
+
data?: any;
|
|
17
|
+
}, any, "rpc" | "session", import("../../types/application-types.js").Services>, undefined, undefined>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.11.
|
|
2
|
+
* This file was generated by @pikku/cli@0.11.3
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* Auto-generated remote internal RPC queue worker and HTTP endpoint
|
|
@@ -9,9 +9,12 @@ import { pikkuSessionlessFunc, wireQueueWorker } from '../pikku-types.gen.js';
|
|
|
9
9
|
/**
|
|
10
10
|
* Generic remote RPC worker that invokes any internal RPC by name
|
|
11
11
|
* This is used for executing internal RPCs via a queue or HTTP (e.g., scheduled tasks, background jobs, internal services)
|
|
12
|
+
*
|
|
13
|
+
* TODO: Security risk - this allows any RPC to be invoked by name. Should validate
|
|
14
|
+
* that rpcName is in an allowlist of permitted internal RPCs to prevent unauthorized access.
|
|
12
15
|
*/
|
|
13
16
|
export const pikkuRemoteInternalRPC = pikkuSessionlessFunc({
|
|
14
|
-
func: async (
|
|
17
|
+
func: async (_services, { rpcName, data }, { rpc }) => {
|
|
15
18
|
return await rpc.invoke(rpcName, data);
|
|
16
19
|
},
|
|
17
20
|
internal: true,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.11.
|
|
2
|
+
* This file was generated by @pikku/cli@0.11.3
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* Scheduler-specific type definitions for tree-shaking optimization
|
|
@@ -10,7 +10,7 @@ import type { PikkuFunctionConfig, PikkuMiddleware } from '../function/pikku-fun
|
|
|
10
10
|
* Type definition for scheduled tasks that run at specified intervals.
|
|
11
11
|
* These are sessionless functions that execute based on cron expressions.
|
|
12
12
|
*/
|
|
13
|
-
type SchedulerWiring = CoreScheduledTask<PikkuFunctionConfig<void, void>, PikkuMiddleware>;
|
|
13
|
+
type SchedulerWiring = CoreScheduledTask<PikkuFunctionConfig<void, void, 'session' | 'rpc'>, PikkuMiddleware>;
|
|
14
14
|
/**
|
|
15
15
|
* Registers a scheduled task with the Pikku framework.
|
|
16
16
|
* Tasks run based on cron expressions and are sessionless.
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.11.
|
|
2
|
+
* This file was generated by @pikku/cli@0.11.3
|
|
3
3
|
*/
|
|
4
4
|
import { pikkuState } from '@pikku/core';
|
|
5
|
-
|
|
5
|
+
import metaData from './pikku-schedulers-wirings-meta.gen.json' with { type: 'json' };
|
|
6
|
+
pikkuState(null, 'scheduler', 'meta', metaData);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -1,34 +1,38 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.11.
|
|
2
|
+
* This file was generated by @pikku/cli@0.11.3
|
|
3
3
|
*/
|
|
4
4
|
import { addSchema } from '@pikku/core/schema';
|
|
5
5
|
import * as PikkuSchemasOutput from './schemas/PikkuSchemasOutput.schema.json' with { type: 'json' };
|
|
6
6
|
addSchema('PikkuSchemasOutput', PikkuSchemasOutput);
|
|
7
|
-
import * as PikkuChannelsOutput from './schemas/PikkuChannelsOutput.schema.json' with { type: 'json' };
|
|
8
|
-
addSchema('PikkuChannelsOutput', PikkuChannelsOutput);
|
|
9
|
-
import * as PikkuCLIOutput from './schemas/PikkuCLIOutput.schema.json' with { type: 'json' };
|
|
10
|
-
addSchema('PikkuCLIOutput', PikkuCLIOutput);
|
|
11
7
|
import * as PikkuFunctionsOutput from './schemas/PikkuFunctionsOutput.schema.json' with { type: 'json' };
|
|
12
8
|
addSchema('PikkuFunctionsOutput', PikkuFunctionsOutput);
|
|
13
|
-
import * as PikkuHTTPOutput from './schemas/PikkuHTTPOutput.schema.json' with { type: 'json' };
|
|
14
|
-
addSchema('PikkuHTTPOutput', PikkuHTTPOutput);
|
|
15
|
-
import * as PikkuMCPOutput from './schemas/PikkuMCPOutput.schema.json' with { type: 'json' };
|
|
16
|
-
addSchema('PikkuMCPOutput', PikkuMCPOutput);
|
|
17
9
|
import * as PikkuMiddlewareOutput from './schemas/PikkuMiddlewareOutput.schema.json' with { type: 'json' };
|
|
18
10
|
addSchema('PikkuMiddlewareOutput', PikkuMiddlewareOutput);
|
|
19
11
|
import * as PikkuPermissionsOutput from './schemas/PikkuPermissionsOutput.schema.json' with { type: 'json' };
|
|
20
12
|
addSchema('PikkuPermissionsOutput', PikkuPermissionsOutput);
|
|
21
|
-
import * as PikkuQueueOutput from './schemas/PikkuQueueOutput.schema.json' with { type: 'json' };
|
|
22
|
-
addSchema('PikkuQueueOutput', PikkuQueueOutput);
|
|
23
|
-
import * as PikkuPublicRPCOutput from './schemas/PikkuPublicRPCOutput.schema.json' with { type: 'json' };
|
|
24
|
-
addSchema('PikkuPublicRPCOutput', PikkuPublicRPCOutput);
|
|
25
|
-
import * as PikkuRemoteRPCOutput from './schemas/PikkuRemoteRPCOutput.schema.json' with { type: 'json' };
|
|
26
|
-
addSchema('PikkuRemoteRPCOutput', PikkuRemoteRPCOutput);
|
|
27
13
|
import * as PikkuRPCOutput from './schemas/PikkuRPCOutput.schema.json' with { type: 'json' };
|
|
28
14
|
addSchema('PikkuRPCOutput', PikkuRPCOutput);
|
|
15
|
+
import * as PikkuPublicRPCOutput from './schemas/PikkuPublicRPCOutput.schema.json' with { type: 'json' };
|
|
16
|
+
addSchema('PikkuPublicRPCOutput', PikkuPublicRPCOutput);
|
|
17
|
+
import * as PikkuHTTPOutput from './schemas/PikkuHTTPOutput.schema.json' with { type: 'json' };
|
|
18
|
+
addSchema('PikkuHTTPOutput', PikkuHTTPOutput);
|
|
29
19
|
import * as PikkuSchedulerOutput from './schemas/PikkuSchedulerOutput.schema.json' with { type: 'json' };
|
|
30
20
|
addSchema('PikkuSchedulerOutput', PikkuSchedulerOutput);
|
|
31
21
|
import * as PikkuWorkflowOutput from './schemas/PikkuWorkflowOutput.schema.json' with { type: 'json' };
|
|
32
22
|
addSchema('PikkuWorkflowOutput', PikkuWorkflowOutput);
|
|
23
|
+
import * as PikkuRemoteRPCOutput from './schemas/PikkuRemoteRPCOutput.schema.json' with { type: 'json' };
|
|
24
|
+
addSchema('PikkuRemoteRPCOutput', PikkuRemoteRPCOutput);
|
|
25
|
+
import * as PikkuQueueOutput from './schemas/PikkuQueueOutput.schema.json' with { type: 'json' };
|
|
26
|
+
addSchema('PikkuQueueOutput', PikkuQueueOutput);
|
|
27
|
+
import * as PikkuMCPOutput from './schemas/PikkuMCPOutput.schema.json' with { type: 'json' };
|
|
28
|
+
addSchema('PikkuMCPOutput', PikkuMCPOutput);
|
|
29
|
+
import * as PikkuCLIOutput from './schemas/PikkuCLIOutput.schema.json' with { type: 'json' };
|
|
30
|
+
addSchema('PikkuCLIOutput', PikkuCLIOutput);
|
|
31
|
+
import * as PikkuPackageOutput from './schemas/PikkuPackageOutput.schema.json' with { type: 'json' };
|
|
32
|
+
addSchema('PikkuPackageOutput', PikkuPackageOutput);
|
|
33
|
+
import * as PikkuForgeNodesOutput from './schemas/PikkuForgeNodesOutput.schema.json' with { type: 'json' };
|
|
34
|
+
addSchema('PikkuForgeNodesOutput', PikkuForgeNodesOutput);
|
|
35
|
+
import * as PikkuChannelsOutput from './schemas/PikkuChannelsOutput.schema.json' with { type: 'json' };
|
|
36
|
+
addSchema('PikkuChannelsOutput', PikkuChannelsOutput);
|
|
33
37
|
import * as PikkuCLIConfig from './schemas/PikkuCLIConfig.schema.json' with { type: 'json' };
|
|
34
38
|
addSchema('PikkuCLIConfig', PikkuCLIConfig);
|