@pikku/cli 0.9.15 → 0.9.16-next.0
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 +92 -0
- package/.pikku/cli/pikku-cli-types.gen.ts +71 -0
- package/.pikku/cli/pikku-cli-wirings-meta.gen.ts +5 -0
- package/.pikku/cli/pikku-cli-wirings.gen.ts +4 -0
- package/.pikku/function/pikku-function-types.gen.ts +292 -0
- package/.pikku/function/pikku-functions-meta.gen.ts +817 -0
- package/.pikku/function/pikku-functions-meta.min.gen.ts +176 -0
- package/.pikku/function/pikku-functions.gen.ts +74 -0
- package/.pikku/http/pikku-http-types.gen.ts +61 -0
- package/.pikku/mcp/pikku-mcp-types.gen.ts +138 -0
- package/.pikku/pikku-bootstrap.gen.ts +9 -0
- package/.pikku/pikku-services.gen.ts +24 -0
- package/.pikku/pikku-types.gen.ts +28 -0
- package/.pikku/queue/pikku-queue-types.gen.ts +28 -0
- package/.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts +46 -0
- package/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +80 -0
- package/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.ts +40 -0
- package/.pikku/scheduler/pikku-scheduler-types.gen.ts +26 -0
- package/.pikku/schemas/register.gen.ts +47 -0
- package/.pikku/schemas/schemas/PikkuCLIConfig.schema.json +1 -0
- package/.pikku/schemas/schemas/PikkuCLIOutput.schema.json +1 -0
- package/.pikku/schemas/schemas/PikkuChannelsOutput.schema.json +1 -0
- package/.pikku/schemas/schemas/PikkuFunctionsOutput.schema.json +1 -0
- package/.pikku/schemas/schemas/PikkuHTTPOutput.schema.json +1 -0
- package/.pikku/schemas/schemas/PikkuMCPOutput.schema.json +1 -0
- package/.pikku/schemas/schemas/PikkuMiddlewareOutput.schema.json +1 -0
- package/.pikku/schemas/schemas/PikkuQueueOutput.schema.json +1 -0
- package/.pikku/schemas/schemas/PikkuRPCOutput.schema.json +1 -0
- package/.pikku/schemas/schemas/PikkuSchedulerOutput.schema.json +1 -0
- package/.pikku/schemas/schemas/PikkuSchemasOutput.schema.json +1 -0
- package/CHANGELOG.md +9 -0
- package/bin/pikku.ts +45 -14
- package/build.sh +53 -0
- package/cli.schema.json +1 -382
- package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +65 -0
- package/dist/.pikku/channel/pikku-channel-types.gen.js +54 -0
- package/dist/.pikku/cli/pikku-cli-types.gen.d.ts +55 -0
- package/dist/.pikku/cli/pikku-cli-types.gen.js +30 -0
- package/dist/.pikku/cli/pikku-cli-wirings-meta.gen.js +5 -0
- package/dist/.pikku/cli/pikku-cli-wirings.gen.d.ts +4 -0
- package/dist/.pikku/cli/pikku-cli-wirings.gen.js +5 -0
- package/dist/.pikku/function/pikku-function-types.gen.d.ts +259 -0
- package/dist/.pikku/function/pikku-function-types.gen.js +175 -0
- package/dist/.pikku/function/pikku-functions-meta.gen.d.ts +1 -0
- package/dist/.pikku/function/pikku-functions-meta.gen.js +817 -0
- package/dist/.pikku/function/pikku-functions-meta.min.gen.d.ts +1 -0
- package/dist/.pikku/function/pikku-functions-meta.min.gen.js +176 -0
- package/dist/.pikku/function/pikku-functions.gen.d.ts +1 -0
- package/dist/.pikku/function/pikku-functions.gen.js +73 -0
- package/dist/.pikku/http/pikku-http-types.gen.d.ts +49 -0
- package/dist/.pikku/http/pikku-http-types.gen.js +41 -0
- package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts +88 -0
- package/dist/.pikku/mcp/pikku-mcp-types.gen.js +71 -0
- package/dist/.pikku/pikku-bootstrap.gen.d.ts +9 -0
- package/dist/.pikku/pikku-bootstrap.gen.js +9 -0
- package/dist/.pikku/pikku-services.gen.d.ts +16 -0
- package/dist/.pikku/pikku-services.gen.js +11 -0
- package/dist/.pikku/pikku-types.gen.d.ts +14 -0
- package/dist/.pikku/pikku-types.gen.js +21 -0
- package/dist/.pikku/queue/pikku-queue-types.gen.d.ts +24 -0
- package/dist/.pikku/queue/pikku-queue-types.gen.js +17 -0
- package/dist/.pikku/rpc/pikku-bootstrap-rpc.gen.d.ts +6 -0
- package/dist/.pikku/rpc/pikku-bootstrap-rpc.gen.js +6 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.d.ts +1 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +40 -0
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +22 -0
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js +17 -0
- package/dist/.pikku/schemas/register.gen.d.ts +1 -0
- package/dist/.pikku/schemas/register.gen.js +26 -0
- package/dist/.pikku/schemas/schemas/PikkuCLIConfig.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PikkuCLIOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PikkuChannelsOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PikkuFunctionsOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PikkuHTTPOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PikkuMCPOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PikkuMiddlewareOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PikkuQueueOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PikkuRPCOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PikkuSchedulerOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PikkuSchemasOutput.schema.json +1 -0
- package/dist/bin/pikku.d.ts +1 -1
- package/dist/bin/pikku.js +32 -14
- package/dist/src/cli.wiring.d.ts +1 -0
- package/dist/src/cli.wiring.js +75 -0
- package/dist/src/functions/commands/all.d.ts +1 -0
- package/dist/src/functions/commands/all.js +104 -0
- package/dist/src/functions/commands/watch.d.ts +1 -0
- package/dist/src/functions/commands/watch.js +47 -0
- package/dist/src/functions/runtimes/nextjs/pikku-command-nextjs.d.ts +1 -0
- package/dist/src/{runtimes → functions/runtimes}/nextjs/pikku-command-nextjs.js +28 -9
- package/dist/src/functions/wirings/channels/pikku-channels.d.ts +1 -0
- package/dist/src/functions/wirings/channels/pikku-channels.js +24 -0
- package/dist/src/functions/wirings/channels/pikku-command-channel-types.d.ts +1 -0
- package/dist/src/functions/wirings/channels/pikku-command-channel-types.js +21 -0
- package/dist/src/functions/wirings/channels/pikku-command-channels-map.d.ts +1 -0
- package/dist/src/functions/wirings/channels/pikku-command-channels-map.js +23 -0
- package/dist/src/functions/wirings/channels/pikku-command-channels.d.ts +1 -0
- package/dist/src/functions/wirings/channels/pikku-command-channels.js +25 -0
- package/dist/src/functions/wirings/channels/pikku-command-websocket-typed.d.ts +1 -0
- package/dist/src/functions/wirings/channels/pikku-command-websocket-typed.js +24 -0
- package/dist/src/functions/wirings/channels/serialize-channel-types.d.ts +4 -0
- package/dist/src/functions/wirings/channels/serialize-channel-types.js +95 -0
- package/dist/src/{wirings → functions/wirings}/channels/serialize-typed-channel-map.js +2 -2
- package/dist/src/functions/wirings/cli/pikku-command-cli-entry.d.ts +1 -0
- package/dist/src/functions/wirings/cli/pikku-command-cli-entry.js +100 -0
- package/dist/src/functions/wirings/cli/pikku-command-cli-types.d.ts +1 -0
- package/dist/src/functions/wirings/cli/pikku-command-cli-types.js +33 -0
- package/dist/src/functions/wirings/cli/pikku-command-cli.d.ts +1 -0
- package/dist/src/functions/wirings/cli/pikku-command-cli.js +24 -0
- package/dist/src/functions/wirings/cli/serialize-channel-cli-client.d.ts +7 -0
- package/dist/src/functions/wirings/cli/serialize-channel-cli-client.js +54 -0
- package/dist/src/functions/wirings/cli/serialize-channel-cli.d.ts +9 -0
- package/dist/src/functions/wirings/cli/serialize-channel-cli.js +84 -0
- package/dist/src/functions/wirings/cli/serialize-cli-types.d.ts +4 -0
- package/dist/src/functions/wirings/cli/serialize-cli-types.js +74 -0
- package/dist/src/functions/wirings/cli/serialize-local-cli-bootstrap.d.ts +14 -0
- package/dist/src/functions/wirings/cli/serialize-local-cli-bootstrap.js +46 -0
- package/dist/src/functions/wirings/fetch/index.d.ts +1 -0
- package/dist/src/functions/wirings/fetch/index.js +24 -0
- package/dist/src/functions/wirings/functions/pikku-command-function-types-split.d.ts +1 -0
- package/dist/src/functions/wirings/functions/pikku-command-function-types-split.js +32 -0
- package/dist/src/functions/wirings/functions/pikku-command-function-types.d.ts +1 -0
- package/dist/src/functions/wirings/functions/pikku-command-function-types.js +20 -0
- package/dist/src/functions/wirings/functions/pikku-command-functions.d.ts +1 -0
- package/dist/src/functions/wirings/functions/pikku-command-functions.js +28 -0
- package/dist/src/{wirings → functions/wirings}/functions/pikku-command-services.d.ts +1 -2
- package/dist/src/{wirings → functions/wirings}/functions/pikku-command-services.js +27 -10
- package/dist/src/functions/wirings/functions/pikku-function-types.d.ts +1 -0
- package/dist/src/functions/wirings/functions/pikku-function-types.js +20 -0
- package/dist/src/functions/wirings/functions/schemas.d.ts +4 -0
- package/dist/src/functions/wirings/functions/schemas.js +22 -0
- package/dist/src/{wirings → functions/wirings}/functions/serialize-function-imports.js +4 -21
- package/dist/src/functions/wirings/functions/serialize-function-types.d.ts +4 -0
- package/dist/src/functions/wirings/functions/serialize-function-types.js +295 -0
- package/dist/src/functions/wirings/functions/serialize-pikku-types-hub.d.ts +4 -0
- package/dist/src/functions/wirings/functions/serialize-pikku-types-hub.js +31 -0
- package/dist/src/{wirings → functions/wirings}/http/openapi-spec-generator.d.ts +2 -1
- package/dist/src/{wirings → functions/wirings}/http/openapi-spec-generator.js +2 -2
- package/dist/src/functions/wirings/http/pikku-command-http-map.d.ts +1 -0
- package/dist/src/functions/wirings/http/pikku-command-http-map.js +23 -0
- package/dist/src/functions/wirings/http/pikku-command-http-routes.d.ts +1 -0
- package/dist/src/functions/wirings/http/pikku-command-http-routes.js +25 -0
- package/dist/src/functions/wirings/http/pikku-command-http-types.d.ts +1 -0
- package/dist/src/functions/wirings/http/pikku-command-http-types.js +21 -0
- package/dist/src/functions/wirings/http/pikku-command-openapi.d.ts +1 -0
- package/dist/src/functions/wirings/http/pikku-command-openapi.js +34 -0
- package/dist/src/functions/wirings/http/pikku-http-routes.d.ts +1 -0
- package/dist/src/functions/wirings/http/pikku-http-routes.js +25 -0
- package/dist/src/functions/wirings/http/serialize-http-types.d.ts +4 -0
- package/dist/src/functions/wirings/http/serialize-http-types.js +64 -0
- package/dist/src/{wirings → functions/wirings}/http/serialize-typed-http-map.js +2 -2
- package/dist/src/functions/wirings/mcp/pikku-command-mcp-json.d.ts +1 -0
- package/dist/src/functions/wirings/mcp/pikku-command-mcp-json.js +28 -0
- package/dist/src/functions/wirings/mcp/pikku-command-mcp-types.d.ts +1 -0
- package/dist/src/functions/wirings/mcp/pikku-command-mcp-types.js +21 -0
- package/dist/src/functions/wirings/mcp/pikku-command-mcp.d.ts +1 -0
- package/dist/src/{wirings → functions/wirings}/mcp/pikku-command-mcp.js +22 -5
- package/dist/src/{wirings → functions/wirings}/mcp/serialize-mcp-json.d.ts +1 -1
- package/dist/src/functions/wirings/mcp/serialize-mcp-types.d.ts +4 -0
- package/dist/src/functions/wirings/mcp/serialize-mcp-types.js +141 -0
- package/dist/src/functions/wirings/middleware/pikku-command-middleware.d.ts +1 -0
- package/dist/src/functions/wirings/middleware/pikku-command-middleware.js +38 -0
- package/dist/src/functions/wirings/middleware/serialize-middleware-groups-meta.d.ts +8 -0
- package/dist/src/functions/wirings/middleware/serialize-middleware-groups-meta.js +50 -0
- package/dist/src/functions/wirings/middleware/serialize-middleware-imports.d.ts +2 -0
- package/dist/src/functions/wirings/middleware/serialize-middleware-imports.js +43 -0
- package/dist/src/functions/wirings/queue/pikku-command-queue-map.d.ts +1 -0
- package/dist/src/functions/wirings/queue/pikku-command-queue-map.js +23 -0
- package/dist/src/functions/wirings/queue/pikku-command-queue-service.d.ts +1 -0
- package/dist/src/functions/wirings/queue/pikku-command-queue-service.js +24 -0
- package/dist/src/functions/wirings/queue/pikku-command-queue-types.d.ts +1 -0
- package/dist/src/functions/wirings/queue/pikku-command-queue-types.js +21 -0
- package/dist/src/functions/wirings/queue/pikku-command-queue.d.ts +1 -0
- package/dist/src/functions/wirings/queue/pikku-command-queue.js +26 -0
- package/dist/src/functions/wirings/queue/pikku-queue-map.d.ts +1 -0
- package/dist/src/functions/wirings/queue/pikku-queue-map.js +23 -0
- package/dist/src/functions/wirings/queue/pikku-queue.d.ts +1 -0
- package/dist/src/functions/wirings/queue/pikku-queue.js +25 -0
- package/dist/src/{wirings → functions/wirings}/queue/serialize-queue-map.js +2 -2
- package/dist/src/functions/wirings/queue/serialize-queue-types.d.ts +4 -0
- package/dist/src/functions/wirings/queue/serialize-queue-types.js +31 -0
- package/dist/src/functions/wirings/rpc/pikku-command-rpc-client.d.ts +1 -0
- package/dist/src/functions/wirings/rpc/pikku-command-rpc-client.js +25 -0
- package/dist/src/functions/wirings/rpc/pikku-command-rpc-map.d.ts +2 -0
- package/dist/src/functions/wirings/rpc/pikku-command-rpc-map.js +36 -0
- package/dist/src/functions/wirings/rpc/pikku-command-rpc.d.ts +1 -0
- package/dist/src/functions/wirings/rpc/pikku-command-rpc.js +22 -0
- package/dist/src/{wirings → functions/wirings}/rpc/serialize-typed-rpc-map.js +2 -2
- package/dist/src/functions/wirings/scheduler/pikku-command-scheduler-types.d.ts +1 -0
- package/dist/src/functions/wirings/scheduler/pikku-command-scheduler-types.js +21 -0
- package/dist/src/functions/wirings/scheduler/pikku-command-scheduler.d.ts +1 -0
- package/dist/src/functions/wirings/scheduler/pikku-command-scheduler.js +26 -0
- package/dist/src/functions/wirings/scheduler/serialize-scheduler-types.d.ts +4 -0
- package/dist/src/functions/wirings/scheduler/serialize-scheduler-types.js +29 -0
- package/dist/src/middleware/log-command-info-and-time.d.ts +19 -0
- package/dist/src/middleware/log-command-info-and-time.js +27 -0
- package/dist/src/services/cli-logger-forwarder.service.d.ts +26 -0
- package/dist/src/services/cli-logger-forwarder.service.js +55 -0
- package/dist/src/services/cli-logger.service.d.ts +19 -0
- package/dist/src/services/cli-logger.service.js +66 -0
- package/dist/src/services.d.ts +15 -0
- package/dist/src/services.js +64 -0
- package/dist/src/utils/check-required-types.d.ts +10 -0
- package/dist/src/utils/check-required-types.js +31 -0
- package/dist/src/utils/custom-types-generator.d.ts +2 -0
- package/dist/src/utils/custom-types-generator.js +37 -0
- package/dist/src/utils/file-import-path.d.ts +1 -0
- package/dist/src/utils/file-import-path.js +43 -0
- package/dist/src/utils/file-imports-serializer.d.ts +1 -0
- package/dist/src/utils/file-imports-serializer.js +13 -0
- package/dist/src/utils/file-writer.d.ts +6 -0
- package/dist/src/utils/file-writer.js +40 -0
- package/dist/src/utils/generate-bootstrap-file.d.ts +3 -0
- package/dist/src/utils/generate-bootstrap-file.js +21 -0
- package/dist/src/utils/pikku-cli-config.d.ts +5 -0
- package/dist/src/utils/pikku-cli-config.js +243 -0
- package/dist/src/utils/pikku-files-and-methods.d.ts +21 -0
- package/dist/src/utils/pikku-files-and-methods.js +70 -0
- package/dist/src/{schema-generator.d.ts → utils/schema-generator.d.ts} +1 -1
- package/dist/src/{schema-generator.js → utils/schema-generator.js} +1 -1
- package/dist/src/{serialize-import-map.js → utils/serialize-import-map.js} +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -6
- package/pikku.config.json +24 -0
- package/src/cli.wiring.ts +75 -0
- package/src/functions/commands/all.ts +141 -0
- package/src/functions/commands/watch.ts +58 -0
- package/src/functions/runtimes/nextjs/pikku-command-nextjs.ts +111 -0
- package/src/functions/wirings/channels/pikku-channels.ts +40 -0
- package/src/functions/wirings/channels/pikku-command-channel-types.ts +27 -0
- package/src/functions/wirings/channels/pikku-command-channels-map.ts +31 -0
- package/src/functions/wirings/channels/pikku-command-channels.ts +45 -0
- package/src/functions/wirings/channels/pikku-command-websocket-typed.ts +33 -0
- package/src/functions/wirings/channels/serialize-channel-types.ts +95 -0
- package/src/{wirings → functions/wirings}/channels/serialize-typed-channel-map.ts +2 -2
- package/src/functions/wirings/cli/pikku-command-cli-entry.ts +173 -0
- package/src/functions/wirings/cli/pikku-command-cli-types.ts +50 -0
- package/src/functions/wirings/cli/pikku-command-cli.ts +41 -0
- package/src/functions/wirings/cli/serialize-channel-cli-client.ts +72 -0
- package/src/functions/wirings/cli/serialize-channel-cli.ts +123 -0
- package/src/functions/wirings/cli/serialize-cli-types.ts +80 -0
- package/src/functions/wirings/cli/serialize-local-cli-bootstrap.ts +75 -0
- package/src/functions/wirings/fetch/index.ts +32 -0
- package/src/functions/wirings/functions/pikku-command-function-types-split.ts +51 -0
- package/src/functions/wirings/functions/pikku-command-function-types.ts +45 -0
- package/src/functions/wirings/functions/pikku-command-functions.ts +61 -0
- package/src/{wirings → functions/wirings}/functions/pikku-command-services.ts +41 -44
- package/src/functions/wirings/functions/pikku-function-types.ts +45 -0
- package/src/functions/wirings/functions/schemas.ts +47 -0
- package/src/{wirings → functions/wirings}/functions/serialize-function-imports.ts +4 -30
- package/src/functions/wirings/functions/serialize-function-types.ts +303 -0
- package/src/functions/wirings/functions/serialize-pikku-types-hub.ts +39 -0
- package/src/{wirings → functions/wirings}/http/openapi-spec-generator.ts +3 -1
- package/src/functions/wirings/http/pikku-command-http-map.ts +32 -0
- package/src/functions/wirings/http/pikku-command-http-routes.ts +41 -0
- package/src/functions/wirings/http/pikku-command-http-types.ts +27 -0
- package/src/functions/wirings/http/pikku-command-openapi.ts +57 -0
- package/src/functions/wirings/http/pikku-http-routes.ts +40 -0
- package/src/functions/wirings/http/serialize-http-types.ts +64 -0
- package/src/{wirings → functions/wirings}/http/serialize-typed-http-map.ts +2 -2
- package/src/functions/wirings/mcp/pikku-command-mcp-json.ts +38 -0
- package/src/functions/wirings/mcp/pikku-command-mcp-types.ts +27 -0
- package/src/{wirings → functions/wirings}/mcp/pikku-command-mcp.ts +55 -46
- package/src/{wirings → functions/wirings}/mcp/serialize-mcp-json.ts +1 -1
- package/src/functions/wirings/mcp/serialize-mcp-types.ts +141 -0
- package/src/functions/wirings/middleware/pikku-command-middleware.ts +65 -0
- package/src/functions/wirings/middleware/serialize-middleware-groups-meta.ts +61 -0
- package/src/functions/wirings/middleware/serialize-middleware-imports.ts +78 -0
- package/src/functions/wirings/queue/pikku-command-queue-map.ts +31 -0
- package/src/functions/wirings/queue/pikku-command-queue-service.ts +33 -0
- package/src/functions/wirings/queue/pikku-command-queue-types.ts +27 -0
- package/src/functions/wirings/queue/pikku-command-queue.ts +46 -0
- package/src/functions/wirings/queue/pikku-queue-map.ts +31 -0
- package/src/functions/wirings/queue/pikku-queue.ts +44 -0
- package/src/{wirings → functions/wirings}/queue/serialize-queue-map.ts +2 -2
- package/src/functions/wirings/queue/serialize-queue-types.ts +31 -0
- package/src/functions/wirings/rpc/pikku-command-rpc-client.ts +32 -0
- package/src/functions/wirings/rpc/pikku-command-rpc-map.ts +52 -0
- package/src/functions/wirings/rpc/pikku-command-rpc.ts +28 -0
- package/src/{wirings → functions/wirings}/rpc/serialize-typed-rpc-map.ts +2 -2
- package/src/functions/wirings/scheduler/pikku-command-scheduler-types.ts +27 -0
- package/src/functions/wirings/scheduler/pikku-command-scheduler.ts +46 -0
- package/src/functions/wirings/scheduler/serialize-scheduler-types.ts +29 -0
- package/src/middleware/log-command-info-and-time.ts +61 -0
- package/src/services/cli-logger-forwarder.service.ts +77 -0
- package/src/services/cli-logger.service.ts +78 -0
- package/src/services.ts +111 -0
- package/src/utils/check-required-types.ts +53 -0
- package/src/utils/custom-types-generator.ts +49 -0
- package/src/{utils.test.ts → utils/file-import-path.test.ts} +1 -1
- package/src/utils/file-import-path.ts +53 -0
- package/src/utils/file-imports-serializer.ts +25 -0
- package/src/utils/file-writer.ts +56 -0
- package/src/utils/generate-bootstrap-file.ts +43 -0
- package/src/utils/pikku-cli-config.ts +356 -0
- package/src/utils/pikku-files-and-methods.ts +148 -0
- package/src/{schema-generator.ts → utils/schema-generator.ts} +3 -1
- package/src/{serialize-import-map.ts → utils/serialize-import-map.ts} +1 -1
- package/tsconfig.json +2 -2
- package/types/application-types.d.ts +20 -0
- package/types/config.d.ts +192 -0
- package/bin/pikku-all.ts +0 -349
- package/bin/pikku-fetch.ts +0 -27
- package/bin/pikku-nextjs.ts +0 -44
- package/bin/pikku-openapi.ts +0 -31
- package/bin/pikku-queue-service.ts +0 -28
- package/bin/pikku-rpc.ts +0 -28
- package/bin/pikku-schemas.ts +0 -31
- package/bin/pikku-websocket.ts +0 -28
- package/dist/bin/pikku-all.d.ts +0 -4
- package/dist/bin/pikku-all.js +0 -194
- package/dist/bin/pikku-fetch.d.ts +0 -4
- package/dist/bin/pikku-fetch.js +0 -19
- package/dist/bin/pikku-nextjs.d.ts +0 -4
- package/dist/bin/pikku-nextjs.js +0 -24
- package/dist/bin/pikku-openapi.d.ts +0 -2
- package/dist/bin/pikku-openapi.js +0 -19
- package/dist/bin/pikku-queue-service.d.ts +0 -4
- package/dist/bin/pikku-queue-service.js +0 -19
- package/dist/bin/pikku-rpc.d.ts +0 -4
- package/dist/bin/pikku-rpc.js +0 -19
- package/dist/bin/pikku-schemas.d.ts +0 -2
- package/dist/bin/pikku-schemas.js +0 -21
- package/dist/bin/pikku-websocket.d.ts +0 -4
- package/dist/bin/pikku-websocket.js +0 -19
- package/dist/src/inspector-glob.d.ts +0 -2
- package/dist/src/inspector-glob.js +0 -12
- package/dist/src/pikku-cli-config.d.ts +0 -56
- package/dist/src/pikku-cli-config.js +0 -203
- package/dist/src/pikku-command-schemas.d.ts +0 -2
- package/dist/src/pikku-command-schemas.js +0 -8
- package/dist/src/runtimes/nextjs/pikku-command-nextjs.d.ts +0 -2
- package/dist/src/schemas.d.ts +0 -2
- package/dist/src/schemas.js +0 -8
- package/dist/src/types.d.ts +0 -5
- package/dist/src/utils.d.ts +0 -60
- package/dist/src/utils.js +0 -248
- package/dist/src/wirings/channels/pikku-channels.d.ts +0 -2
- package/dist/src/wirings/channels/pikku-channels.js +0 -9
- package/dist/src/wirings/channels/pikku-command-channels-map.d.ts +0 -2
- package/dist/src/wirings/channels/pikku-command-channels-map.js +0 -8
- package/dist/src/wirings/channels/pikku-command-channels.d.ts +0 -2
- package/dist/src/wirings/channels/pikku-command-channels.js +0 -9
- package/dist/src/wirings/channels/pikku-command-websocket-typed.d.ts +0 -2
- package/dist/src/wirings/channels/pikku-command-websocket-typed.js +0 -15
- package/dist/src/wirings/fetch/index.d.ts +0 -2
- package/dist/src/wirings/fetch/index.js +0 -12
- package/dist/src/wirings/functions/pikku-command-function-types.d.ts +0 -2
- package/dist/src/wirings/functions/pikku-command-function-types.js +0 -13
- package/dist/src/wirings/functions/pikku-command-functions.d.ts +0 -2
- package/dist/src/wirings/functions/pikku-command-functions.js +0 -14
- package/dist/src/wirings/functions/pikku-function-types.d.ts +0 -2
- package/dist/src/wirings/functions/pikku-function-types.js +0 -13
- package/dist/src/wirings/http/pikku-command-http-map.d.ts +0 -2
- package/dist/src/wirings/http/pikku-command-http-map.js +0 -8
- package/dist/src/wirings/http/pikku-command-http-routes.d.ts +0 -2
- package/dist/src/wirings/http/pikku-command-http-routes.js +0 -9
- package/dist/src/wirings/http/pikku-command-openapi.d.ts +0 -2
- package/dist/src/wirings/http/pikku-command-openapi.js +0 -20
- package/dist/src/wirings/http/pikku-http-routes.d.ts +0 -2
- package/dist/src/wirings/http/pikku-http-routes.js +0 -9
- package/dist/src/wirings/mcp/pikku-command-mcp-json.d.ts +0 -2
- package/dist/src/wirings/mcp/pikku-command-mcp-json.js +0 -13
- package/dist/src/wirings/mcp/pikku-command-mcp.d.ts +0 -2
- package/dist/src/wirings/queue/pikku-command-queue-map.d.ts +0 -2
- package/dist/src/wirings/queue/pikku-command-queue-map.js +0 -8
- package/dist/src/wirings/queue/pikku-command-queue-service.d.ts +0 -2
- package/dist/src/wirings/queue/pikku-command-queue-service.js +0 -15
- package/dist/src/wirings/queue/pikku-command-queue.d.ts +0 -2
- package/dist/src/wirings/queue/pikku-command-queue.js +0 -10
- package/dist/src/wirings/queue/pikku-queue-map.d.ts +0 -2
- package/dist/src/wirings/queue/pikku-queue-map.js +0 -8
- package/dist/src/wirings/queue/pikku-queue.d.ts +0 -2
- package/dist/src/wirings/queue/pikku-queue.js +0 -10
- package/dist/src/wirings/rpc/pikku-command-rpc-client.d.ts +0 -2
- package/dist/src/wirings/rpc/pikku-command-rpc-client.js +0 -15
- package/dist/src/wirings/rpc/pikku-command-rpc-map.d.ts +0 -3
- package/dist/src/wirings/rpc/pikku-command-rpc-map.js +0 -14
- package/dist/src/wirings/rpc/pikku-command-rpc.d.ts +0 -2
- package/dist/src/wirings/rpc/pikku-command-rpc.js +0 -8
- package/dist/src/wirings/scheduler/pikku-command-scheduler.d.ts +0 -2
- package/dist/src/wirings/scheduler/pikku-command-scheduler.js +0 -10
- package/src/inspector-glob.ts +0 -30
- package/src/pikku-cli-config.ts +0 -387
- package/src/pikku-command-schemas.ts +0 -35
- package/src/runtimes/nextjs/pikku-command-nextjs.ts +0 -110
- package/src/schemas.ts +0 -35
- package/src/types.ts +0 -16
- package/src/utils.ts +0 -420
- package/src/wirings/channels/pikku-channels.ts +0 -41
- package/src/wirings/channels/pikku-command-channels-map.ts +0 -26
- package/src/wirings/channels/pikku-command-channels.ts +0 -39
- package/src/wirings/channels/pikku-command-websocket-typed.ts +0 -36
- package/src/wirings/fetch/index.ts +0 -33
- package/src/wirings/functions/pikku-command-function-types.ts +0 -53
- package/src/wirings/functions/pikku-command-functions.ts +0 -48
- package/src/wirings/functions/pikku-function-types.ts +0 -52
- package/src/wirings/http/pikku-command-http-map.ts +0 -27
- package/src/wirings/http/pikku-command-http-routes.ts +0 -40
- package/src/wirings/http/pikku-command-openapi.ts +0 -55
- package/src/wirings/http/pikku-http-routes.ts +0 -40
- package/src/wirings/mcp/pikku-command-mcp-json.ts +0 -33
- package/src/wirings/queue/pikku-command-queue-map.ts +0 -26
- package/src/wirings/queue/pikku-command-queue-service.ts +0 -36
- package/src/wirings/queue/pikku-command-queue.ts +0 -45
- package/src/wirings/queue/pikku-queue-map.ts +0 -26
- package/src/wirings/queue/pikku-queue.ts +0 -43
- package/src/wirings/rpc/pikku-command-rpc-client.ts +0 -35
- package/src/wirings/rpc/pikku-command-rpc-map.ts +0 -49
- package/src/wirings/rpc/pikku-command-rpc.ts +0 -24
- package/src/wirings/scheduler/pikku-command-scheduler.ts +0 -43
- /package/dist/{src/types.js → .pikku/cli/pikku-cli-wirings-meta.gen.d.ts} +0 -0
- /package/dist/src/{runtimes → functions/runtimes}/nextjs/serialize-nextjs-backend-wrapper.d.ts +0 -0
- /package/dist/src/{runtimes → functions/runtimes}/nextjs/serialize-nextjs-backend-wrapper.js +0 -0
- /package/dist/src/{runtimes → functions/runtimes}/nextjs/serialize-nextjs-http-wrapper.d.ts +0 -0
- /package/dist/src/{runtimes → functions/runtimes}/nextjs/serialize-nextjs-http-wrapper.js +0 -0
- /package/dist/src/{wirings → functions/wirings}/channels/serialize-typed-channel-map.d.ts +0 -0
- /package/dist/src/{wirings → functions/wirings}/channels/serialize-websocket-wrapper.d.ts +0 -0
- /package/dist/src/{wirings → functions/wirings}/channels/serialize-websocket-wrapper.js +0 -0
- /package/dist/src/{wirings → functions/wirings}/functions/serialize-function-imports.d.ts +0 -0
- /package/dist/src/{wirings → functions/wirings}/http/serialize-fetch-wrapper.d.ts +0 -0
- /package/dist/src/{wirings → functions/wirings}/http/serialize-fetch-wrapper.js +0 -0
- /package/dist/src/{wirings → functions/wirings}/http/serialize-typed-http-map.d.ts +0 -0
- /package/dist/src/{wirings → functions/wirings}/mcp/serialize-mcp-json.js +0 -0
- /package/dist/src/{wirings → functions/wirings}/queue/serialize-queue-map.d.ts +0 -0
- /package/dist/src/{wirings → functions/wirings}/queue/serialize-queue-meta.d.ts +0 -0
- /package/dist/src/{wirings → functions/wirings}/queue/serialize-queue-meta.js +0 -0
- /package/dist/src/{wirings → functions/wirings}/queue/serialize-queue-wrapper.d.ts +0 -0
- /package/dist/src/{wirings → functions/wirings}/queue/serialize-queue-wrapper.js +0 -0
- /package/dist/src/{wirings → functions/wirings}/rpc/serialize-rpc-wrapper.d.ts +0 -0
- /package/dist/src/{wirings → functions/wirings}/rpc/serialize-rpc-wrapper.js +0 -0
- /package/dist/src/{wirings → functions/wirings}/rpc/serialize-typed-rpc-map.d.ts +0 -0
- /package/dist/src/{wirings → functions/wirings}/scheduler/serialize-scheduler-meta.d.ts +0 -0
- /package/dist/src/{wirings → functions/wirings}/scheduler/serialize-scheduler-meta.js +0 -0
- /package/dist/src/{serialize-import-map.d.ts → utils/serialize-import-map.d.ts} +0 -0
- /package/src/{runtimes → functions/runtimes}/nextjs/serialize-nextjs-backend-wrapper.ts +0 -0
- /package/src/{runtimes → functions/runtimes}/nextjs/serialize-nextjs-http-wrapper.ts +0 -0
- /package/src/{wirings → functions/wirings}/channels/serialize-websocket-wrapper.ts +0 -0
- /package/src/{wirings → functions/wirings}/http/serialize-fetch-wrapper.ts +0 -0
- /package/src/{wirings → functions/wirings}/queue/serialize-queue-meta.ts +0 -0
- /package/src/{wirings → functions/wirings}/queue/serialize-queue-wrapper.ts +0 -0
- /package/src/{wirings → functions/wirings}/rpc/serialize-rpc-wrapper.ts +0 -0
- /package/src/{wirings → functions/wirings}/scheduler/serialize-scheduler-meta.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by the @pikku/cli
|
|
3
|
+
*/
|
|
4
|
+
import { pikkuState } from '@pikku/core';
|
|
5
|
+
pikkuState('function', 'meta', {
|
|
6
|
+
"all": {
|
|
7
|
+
"pikkuFuncName": "all",
|
|
8
|
+
"inputSchemaName": null,
|
|
9
|
+
"outputSchemaName": null
|
|
10
|
+
},
|
|
11
|
+
"watch": {
|
|
12
|
+
"pikkuFuncName": "watch",
|
|
13
|
+
"inputSchemaName": null,
|
|
14
|
+
"outputSchemaName": null
|
|
15
|
+
},
|
|
16
|
+
"pikkuNext": {
|
|
17
|
+
"pikkuFuncName": "pikkuNext",
|
|
18
|
+
"inputSchemaName": null,
|
|
19
|
+
"outputSchemaName": null
|
|
20
|
+
},
|
|
21
|
+
"pikkuChannels": {
|
|
22
|
+
"pikkuFuncName": "pikkuChannels",
|
|
23
|
+
"inputSchemaName": null,
|
|
24
|
+
"outputSchemaName": "PikkuChannelsOutput"
|
|
25
|
+
},
|
|
26
|
+
"pikkuChannelTypes": {
|
|
27
|
+
"pikkuFuncName": "pikkuChannelTypes",
|
|
28
|
+
"inputSchemaName": null,
|
|
29
|
+
"outputSchemaName": null
|
|
30
|
+
},
|
|
31
|
+
"pikkuChannelsMap": {
|
|
32
|
+
"pikkuFuncName": "pikkuChannelsMap",
|
|
33
|
+
"inputSchemaName": null,
|
|
34
|
+
"outputSchemaName": null
|
|
35
|
+
},
|
|
36
|
+
"pikkuWebSocketTyped": {
|
|
37
|
+
"pikkuFuncName": "pikkuWebSocketTyped",
|
|
38
|
+
"inputSchemaName": null,
|
|
39
|
+
"outputSchemaName": null
|
|
40
|
+
},
|
|
41
|
+
"pikkuCLIEntry": {
|
|
42
|
+
"pikkuFuncName": "pikkuCLIEntry",
|
|
43
|
+
"inputSchemaName": null,
|
|
44
|
+
"outputSchemaName": null
|
|
45
|
+
},
|
|
46
|
+
"pikkuCLITypes": {
|
|
47
|
+
"pikkuFuncName": "pikkuCLITypes",
|
|
48
|
+
"inputSchemaName": null,
|
|
49
|
+
"outputSchemaName": null
|
|
50
|
+
},
|
|
51
|
+
"pikkuCLI": {
|
|
52
|
+
"pikkuFuncName": "pikkuCLI",
|
|
53
|
+
"inputSchemaName": null,
|
|
54
|
+
"outputSchemaName": "PikkuCLIOutput"
|
|
55
|
+
},
|
|
56
|
+
"pikkuFetch": {
|
|
57
|
+
"pikkuFuncName": "pikkuFetch",
|
|
58
|
+
"inputSchemaName": null,
|
|
59
|
+
"outputSchemaName": null
|
|
60
|
+
},
|
|
61
|
+
"pikkuFunctionTypesSplit": {
|
|
62
|
+
"pikkuFuncName": "pikkuFunctionTypesSplit",
|
|
63
|
+
"inputSchemaName": null,
|
|
64
|
+
"outputSchemaName": null
|
|
65
|
+
},
|
|
66
|
+
"pikkuFunctionTypes": {
|
|
67
|
+
"pikkuFuncName": "pikkuFunctionTypes",
|
|
68
|
+
"inputSchemaName": null,
|
|
69
|
+
"outputSchemaName": null
|
|
70
|
+
},
|
|
71
|
+
"pikkuFunctions": {
|
|
72
|
+
"pikkuFuncName": "pikkuFunctions",
|
|
73
|
+
"inputSchemaName": null,
|
|
74
|
+
"outputSchemaName": "PikkuFunctionsOutput"
|
|
75
|
+
},
|
|
76
|
+
"pikkuServices": {
|
|
77
|
+
"pikkuFuncName": "pikkuServices",
|
|
78
|
+
"inputSchemaName": null,
|
|
79
|
+
"outputSchemaName": null
|
|
80
|
+
},
|
|
81
|
+
"pikkuSchemas": {
|
|
82
|
+
"pikkuFuncName": "pikkuSchemas",
|
|
83
|
+
"inputSchemaName": null,
|
|
84
|
+
"outputSchemaName": "PikkuSchemasOutput"
|
|
85
|
+
},
|
|
86
|
+
"pikkuMCPJSON": {
|
|
87
|
+
"pikkuFuncName": "pikkuMCPJSON",
|
|
88
|
+
"inputSchemaName": null,
|
|
89
|
+
"outputSchemaName": null
|
|
90
|
+
},
|
|
91
|
+
"pikkuMCPTypes": {
|
|
92
|
+
"pikkuFuncName": "pikkuMCPTypes",
|
|
93
|
+
"inputSchemaName": null,
|
|
94
|
+
"outputSchemaName": null
|
|
95
|
+
},
|
|
96
|
+
"pikkuMCP": {
|
|
97
|
+
"pikkuFuncName": "pikkuMCP",
|
|
98
|
+
"inputSchemaName": null,
|
|
99
|
+
"outputSchemaName": "PikkuMCPOutput"
|
|
100
|
+
},
|
|
101
|
+
"pikkuHTTPMap": {
|
|
102
|
+
"pikkuFuncName": "pikkuHTTPMap",
|
|
103
|
+
"inputSchemaName": null,
|
|
104
|
+
"outputSchemaName": null
|
|
105
|
+
},
|
|
106
|
+
"pikkuHTTP": {
|
|
107
|
+
"pikkuFuncName": "pikkuHTTP",
|
|
108
|
+
"inputSchemaName": null,
|
|
109
|
+
"outputSchemaName": "PikkuHTTPOutput"
|
|
110
|
+
},
|
|
111
|
+
"pikkuHTTPTypes": {
|
|
112
|
+
"pikkuFuncName": "pikkuHTTPTypes",
|
|
113
|
+
"inputSchemaName": null,
|
|
114
|
+
"outputSchemaName": null
|
|
115
|
+
},
|
|
116
|
+
"pikkuOpenAPI": {
|
|
117
|
+
"pikkuFuncName": "pikkuOpenAPI",
|
|
118
|
+
"inputSchemaName": null,
|
|
119
|
+
"outputSchemaName": null
|
|
120
|
+
},
|
|
121
|
+
"pikkuMiddleware": {
|
|
122
|
+
"pikkuFuncName": "pikkuMiddleware",
|
|
123
|
+
"inputSchemaName": null,
|
|
124
|
+
"outputSchemaName": "PikkuMiddlewareOutput"
|
|
125
|
+
},
|
|
126
|
+
"pikkuRPCClient": {
|
|
127
|
+
"pikkuFuncName": "pikkuRPCClient",
|
|
128
|
+
"inputSchemaName": null,
|
|
129
|
+
"outputSchemaName": null
|
|
130
|
+
},
|
|
131
|
+
"pikkuRPCInternalMap": {
|
|
132
|
+
"pikkuFuncName": "pikkuRPCInternalMap",
|
|
133
|
+
"inputSchemaName": null,
|
|
134
|
+
"outputSchemaName": null
|
|
135
|
+
},
|
|
136
|
+
"pikkuRPCExposedMap": {
|
|
137
|
+
"pikkuFuncName": "pikkuRPCExposedMap",
|
|
138
|
+
"inputSchemaName": null,
|
|
139
|
+
"outputSchemaName": null
|
|
140
|
+
},
|
|
141
|
+
"pikkuRPC": {
|
|
142
|
+
"pikkuFuncName": "pikkuRPC",
|
|
143
|
+
"inputSchemaName": null,
|
|
144
|
+
"outputSchemaName": "PikkuRPCOutput"
|
|
145
|
+
},
|
|
146
|
+
"pikkuQueueMap": {
|
|
147
|
+
"pikkuFuncName": "pikkuQueueMap",
|
|
148
|
+
"inputSchemaName": null,
|
|
149
|
+
"outputSchemaName": null
|
|
150
|
+
},
|
|
151
|
+
"pikkuQueueService": {
|
|
152
|
+
"pikkuFuncName": "pikkuQueueService",
|
|
153
|
+
"inputSchemaName": null,
|
|
154
|
+
"outputSchemaName": null
|
|
155
|
+
},
|
|
156
|
+
"pikkuQueueTypes": {
|
|
157
|
+
"pikkuFuncName": "pikkuQueueTypes",
|
|
158
|
+
"inputSchemaName": null,
|
|
159
|
+
"outputSchemaName": null
|
|
160
|
+
},
|
|
161
|
+
"pikkuQueue": {
|
|
162
|
+
"pikkuFuncName": "pikkuQueue",
|
|
163
|
+
"inputSchemaName": null,
|
|
164
|
+
"outputSchemaName": null
|
|
165
|
+
},
|
|
166
|
+
"pikkuSchedulerTypes": {
|
|
167
|
+
"pikkuFuncName": "pikkuSchedulerTypes",
|
|
168
|
+
"inputSchemaName": null,
|
|
169
|
+
"outputSchemaName": null
|
|
170
|
+
},
|
|
171
|
+
"pikkuScheduler": {
|
|
172
|
+
"pikkuFuncName": "pikkuScheduler",
|
|
173
|
+
"inputSchemaName": null,
|
|
174
|
+
"outputSchemaName": "PikkuSchedulerOutput"
|
|
175
|
+
}
|
|
176
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by the @pikku/cli
|
|
3
|
+
*/
|
|
4
|
+
/* Import and register functions used by RPCs */
|
|
5
|
+
import { addFunction } from '@pikku/core';
|
|
6
|
+
import { all } from '../../src/functions/commands/all.js';
|
|
7
|
+
import { pikkuChannels } from '../../src/functions/wirings/channels/pikku-command-channels.js';
|
|
8
|
+
import { pikkuChannelsMap } from '../../src/functions/wirings/channels/pikku-command-channels-map.js';
|
|
9
|
+
import { pikkuChannelTypes } from '../../src/functions/wirings/channels/pikku-command-channel-types.js';
|
|
10
|
+
import { pikkuCLI } from '../../src/functions/wirings/cli/pikku-command-cli.js';
|
|
11
|
+
import { pikkuCLIEntry } from '../../src/functions/wirings/cli/pikku-command-cli-entry.js';
|
|
12
|
+
import { pikkuCLITypes } from '../../src/functions/wirings/cli/pikku-command-cli-types.js';
|
|
13
|
+
import { pikkuFetch } from '../../src/functions/wirings/fetch/index.js';
|
|
14
|
+
import { pikkuFunctions } from '../../src/functions/wirings/functions/pikku-command-functions.js';
|
|
15
|
+
import { pikkuFunctionTypes } from '../../src/functions/wirings/functions/pikku-function-types.js';
|
|
16
|
+
import { pikkuFunctionTypesSplit } from '../../src/functions/wirings/functions/pikku-command-function-types-split.js';
|
|
17
|
+
import { pikkuHTTP } from '../../src/functions/wirings/http/pikku-http-routes.js';
|
|
18
|
+
import { pikkuHTTPMap } from '../../src/functions/wirings/http/pikku-command-http-map.js';
|
|
19
|
+
import { pikkuHTTPTypes } from '../../src/functions/wirings/http/pikku-command-http-types.js';
|
|
20
|
+
import { pikkuMCP } from '../../src/functions/wirings/mcp/pikku-command-mcp.js';
|
|
21
|
+
import { pikkuMCPJSON } from '../../src/functions/wirings/mcp/pikku-command-mcp-json.js';
|
|
22
|
+
import { pikkuMCPTypes } from '../../src/functions/wirings/mcp/pikku-command-mcp-types.js';
|
|
23
|
+
import { pikkuMiddleware } from '../../src/functions/wirings/middleware/pikku-command-middleware.js';
|
|
24
|
+
import { pikkuNext } from '../../src/functions/runtimes/nextjs/pikku-command-nextjs.js';
|
|
25
|
+
import { pikkuOpenAPI } from '../../src/functions/wirings/http/pikku-command-openapi.js';
|
|
26
|
+
import { pikkuQueue } from '../../src/functions/wirings/queue/pikku-queue.js';
|
|
27
|
+
import { pikkuQueueMap } from '../../src/functions/wirings/queue/pikku-queue-map.js';
|
|
28
|
+
import { pikkuQueueService } from '../../src/functions/wirings/queue/pikku-command-queue-service.js';
|
|
29
|
+
import { pikkuQueueTypes } from '../../src/functions/wirings/queue/pikku-command-queue-types.js';
|
|
30
|
+
import { pikkuRPC } from '../../src/functions/wirings/rpc/pikku-command-rpc.js';
|
|
31
|
+
import { pikkuRPCClient } from '../../src/functions/wirings/rpc/pikku-command-rpc-client.js';
|
|
32
|
+
import { pikkuRPCExposedMap } from '../../src/functions/wirings/rpc/pikku-command-rpc-map.js';
|
|
33
|
+
import { pikkuRPCInternalMap } from '../../src/functions/wirings/rpc/pikku-command-rpc-map.js';
|
|
34
|
+
import { pikkuScheduler } from '../../src/functions/wirings/scheduler/pikku-command-scheduler.js';
|
|
35
|
+
import { pikkuSchedulerTypes } from '../../src/functions/wirings/scheduler/pikku-command-scheduler-types.js';
|
|
36
|
+
import { pikkuSchemas } from '../../src/functions/wirings/functions/schemas.js';
|
|
37
|
+
import { pikkuServices } from '../../src/functions/wirings/functions/pikku-command-services.js';
|
|
38
|
+
import { pikkuWebSocketTyped } from '../../src/functions/wirings/channels/pikku-command-websocket-typed.js';
|
|
39
|
+
import { watch } from '../../src/functions/commands/watch.js';
|
|
40
|
+
addFunction('all', all);
|
|
41
|
+
addFunction('pikkuChannels', pikkuChannels);
|
|
42
|
+
addFunction('pikkuChannelsMap', pikkuChannelsMap);
|
|
43
|
+
addFunction('pikkuChannelTypes', pikkuChannelTypes);
|
|
44
|
+
addFunction('pikkuCLI', pikkuCLI);
|
|
45
|
+
addFunction('pikkuCLIEntry', pikkuCLIEntry);
|
|
46
|
+
addFunction('pikkuCLITypes', pikkuCLITypes);
|
|
47
|
+
addFunction('pikkuFetch', pikkuFetch);
|
|
48
|
+
addFunction('pikkuFunctions', pikkuFunctions);
|
|
49
|
+
addFunction('pikkuFunctionTypes', pikkuFunctionTypes);
|
|
50
|
+
addFunction('pikkuFunctionTypesSplit', pikkuFunctionTypesSplit);
|
|
51
|
+
addFunction('pikkuHTTP', pikkuHTTP);
|
|
52
|
+
addFunction('pikkuHTTPMap', pikkuHTTPMap);
|
|
53
|
+
addFunction('pikkuHTTPTypes', pikkuHTTPTypes);
|
|
54
|
+
addFunction('pikkuMCP', pikkuMCP);
|
|
55
|
+
addFunction('pikkuMCPJSON', pikkuMCPJSON);
|
|
56
|
+
addFunction('pikkuMCPTypes', pikkuMCPTypes);
|
|
57
|
+
addFunction('pikkuMiddleware', pikkuMiddleware);
|
|
58
|
+
addFunction('pikkuNext', pikkuNext);
|
|
59
|
+
addFunction('pikkuOpenAPI', pikkuOpenAPI);
|
|
60
|
+
addFunction('pikkuQueue', pikkuQueue);
|
|
61
|
+
addFunction('pikkuQueueMap', pikkuQueueMap);
|
|
62
|
+
addFunction('pikkuQueueService', pikkuQueueService);
|
|
63
|
+
addFunction('pikkuQueueTypes', pikkuQueueTypes);
|
|
64
|
+
addFunction('pikkuRPC', pikkuRPC);
|
|
65
|
+
addFunction('pikkuRPCClient', pikkuRPCClient);
|
|
66
|
+
addFunction('pikkuRPCExposedMap', pikkuRPCExposedMap);
|
|
67
|
+
addFunction('pikkuRPCInternalMap', pikkuRPCInternalMap);
|
|
68
|
+
addFunction('pikkuScheduler', pikkuScheduler);
|
|
69
|
+
addFunction('pikkuSchedulerTypes', pikkuSchedulerTypes);
|
|
70
|
+
addFunction('pikkuSchemas', pikkuSchemas);
|
|
71
|
+
addFunction('pikkuServices', pikkuServices);
|
|
72
|
+
addFunction('pikkuWebSocketTyped', pikkuWebSocketTyped);
|
|
73
|
+
addFunction('watch', watch);
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by the @pikku/cli
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* This file was generated by the @pikku/cli
|
|
6
|
+
* HTTP-specific type definitions for tree-shaking optimization
|
|
7
|
+
*/
|
|
8
|
+
import { AssertHTTPWiringParams } from '@pikku/core/http';
|
|
9
|
+
import type { PikkuFunction, PikkuFunctionSessionless, PikkuPermission, PikkuMiddleware } from '../function/pikku-function-types.gen.js';
|
|
10
|
+
import type { CoreHTTPFunctionWiring } from '@pikku/core/http';
|
|
11
|
+
/**
|
|
12
|
+
* Type definition for HTTP API wirings with type-safe path parameters.
|
|
13
|
+
* Supports both authenticated and unauthenticated functions.
|
|
14
|
+
*
|
|
15
|
+
* @template In - Input type for the HTTP wiring
|
|
16
|
+
* @template Out - Output type for the HTTP wiring
|
|
17
|
+
* @template Route - String literal type for the HTTP path (e.g., "/users/:id")
|
|
18
|
+
*/
|
|
19
|
+
type HTTPWiring<In, Out, Route extends string> = CoreHTTPFunctionWiring<In, Out, Route, PikkuFunction<In, Out>, PikkuFunctionSessionless<In, Out>, PikkuPermission<In>, PikkuMiddleware>;
|
|
20
|
+
/**
|
|
21
|
+
* Registers an HTTP wiring with the Pikku framework.
|
|
22
|
+
*
|
|
23
|
+
* @template In - Input type for the HTTP wiring
|
|
24
|
+
* @template Out - Output type for the HTTP wiring
|
|
25
|
+
* @template Route - String literal type for the HTTP path (e.g., "/users/:id")
|
|
26
|
+
* @param httpWiring - HTTP wiring definition with handler, method, and optional middleware
|
|
27
|
+
*/
|
|
28
|
+
export declare const wireHTTP: <In, Out, Route extends string>(httpWiring: HTTPWiring<In, Out, Route> & AssertHTTPWiringParams<In, Route>) => void;
|
|
29
|
+
/**
|
|
30
|
+
* Registers HTTP middleware either globally or for a specific route pattern.
|
|
31
|
+
*
|
|
32
|
+
* When a string route pattern is provided along with middleware, the middleware
|
|
33
|
+
* is applied only to that route. Otherwise, if an array is provided, it is treated
|
|
34
|
+
* as global middleware (applied to all routes).
|
|
35
|
+
*
|
|
36
|
+
* @param routeOrMiddleware - Either a global middleware array or a route pattern string
|
|
37
|
+
* @param middleware - The middleware array to apply when a route pattern is specified
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```typescript
|
|
41
|
+
* // Add global HTTP middleware
|
|
42
|
+
* addHTTPMiddleware([authMiddleware, loggingMiddleware])
|
|
43
|
+
*
|
|
44
|
+
* // Add route-specific middleware
|
|
45
|
+
* addHTTPMiddleware('/api/admin/*', [adminAuthMiddleware])
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
export declare const addHTTPMiddleware: (routeOrMiddleware: PikkuMiddleware[] | string, middleware?: PikkuMiddleware[]) => void;
|
|
49
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by the @pikku/cli
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* This file was generated by the @pikku/cli
|
|
6
|
+
* HTTP-specific type definitions for tree-shaking optimization
|
|
7
|
+
*/
|
|
8
|
+
import { wireHTTP as wireHTTPCore, addHTTPMiddleware as addHTTPMiddlewareCore } from '@pikku/core/http';
|
|
9
|
+
/**
|
|
10
|
+
* Registers an HTTP wiring with the Pikku framework.
|
|
11
|
+
*
|
|
12
|
+
* @template In - Input type for the HTTP wiring
|
|
13
|
+
* @template Out - Output type for the HTTP wiring
|
|
14
|
+
* @template Route - String literal type for the HTTP path (e.g., "/users/:id")
|
|
15
|
+
* @param httpWiring - HTTP wiring definition with handler, method, and optional middleware
|
|
16
|
+
*/
|
|
17
|
+
export const wireHTTP = (httpWiring) => {
|
|
18
|
+
wireHTTPCore(httpWiring);
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Registers HTTP middleware either globally or for a specific route pattern.
|
|
22
|
+
*
|
|
23
|
+
* When a string route pattern is provided along with middleware, the middleware
|
|
24
|
+
* is applied only to that route. Otherwise, if an array is provided, it is treated
|
|
25
|
+
* as global middleware (applied to all routes).
|
|
26
|
+
*
|
|
27
|
+
* @param routeOrMiddleware - Either a global middleware array or a route pattern string
|
|
28
|
+
* @param middleware - The middleware array to apply when a route pattern is specified
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```typescript
|
|
32
|
+
* // Add global HTTP middleware
|
|
33
|
+
* addHTTPMiddleware([authMiddleware, loggingMiddleware])
|
|
34
|
+
*
|
|
35
|
+
* // Add route-specific middleware
|
|
36
|
+
* addHTTPMiddleware('/api/admin/*', [adminAuthMiddleware])
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
export const addHTTPMiddleware = (routeOrMiddleware, middleware) => {
|
|
40
|
+
addHTTPMiddlewareCore(routeOrMiddleware, middleware);
|
|
41
|
+
};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by the @pikku/cli
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* This file was generated by the @pikku/cli
|
|
6
|
+
* MCP-specific type definitions for tree-shaking optimization
|
|
7
|
+
*/
|
|
8
|
+
import { CoreMCPResource, CoreMCPTool, CoreMCPPrompt, MCPResourceResponse, MCPToolResponse, MCPPromptResponse } from '@pikku/core';
|
|
9
|
+
import type { PikkuFunctionConfig, PikkuFunctionSessionless } from '../function/pikku-function-types.gen.js';
|
|
10
|
+
/**
|
|
11
|
+
* Type definition for MCP resources that provide data to AI models.
|
|
12
|
+
*
|
|
13
|
+
* @template In - Input type for the resource request
|
|
14
|
+
*/
|
|
15
|
+
type MCPResourceWiring<In> = CoreMCPResource<PikkuFunctionConfig<In, MCPResourceResponse>>;
|
|
16
|
+
/**
|
|
17
|
+
* Type definition for MCP tools that AI models can invoke.
|
|
18
|
+
*
|
|
19
|
+
* @template In - Input type for the tool invocation
|
|
20
|
+
*/
|
|
21
|
+
type MCPToolWiring<In> = CoreMCPTool<PikkuFunctionConfig<In, MCPToolResponse>>;
|
|
22
|
+
/**
|
|
23
|
+
* Type definition for MCP prompts that provide templates to AI models.
|
|
24
|
+
*
|
|
25
|
+
* @template In - Input type for the prompt parameters
|
|
26
|
+
*/
|
|
27
|
+
type MCPPromptWiring<In> = CoreMCPPrompt<PikkuFunctionConfig<In, MCPPromptResponse>>;
|
|
28
|
+
/**
|
|
29
|
+
* Registers an MCP resource with the Pikku framework.
|
|
30
|
+
* Resources provide data that AI models can access.
|
|
31
|
+
*
|
|
32
|
+
* @template In - Input type for the resource request
|
|
33
|
+
* @param mcpResource - MCP resource definition with data provider function
|
|
34
|
+
*/
|
|
35
|
+
export declare const wireMCPResource: <In>(mcpResource: MCPResourceWiring<In>) => void;
|
|
36
|
+
/**
|
|
37
|
+
* Registers an MCP tool with the Pikku framework.
|
|
38
|
+
* Tools are functions that AI models can invoke.
|
|
39
|
+
*
|
|
40
|
+
* @template In - Input type for the tool invocation
|
|
41
|
+
* @param mcpTool - MCP tool definition with action function
|
|
42
|
+
*/
|
|
43
|
+
export declare const wireMCPTool: <In>(mcpTool: MCPToolWiring<In>) => void;
|
|
44
|
+
/**
|
|
45
|
+
* Registers an MCP prompt with the Pikku framework.
|
|
46
|
+
* Prompts provide templates that AI models can use.
|
|
47
|
+
*
|
|
48
|
+
* @template In - Input type for the prompt parameters
|
|
49
|
+
* @param mcpPrompt - MCP prompt definition with template function
|
|
50
|
+
*/
|
|
51
|
+
export declare const wireMCPPrompt: <In>(mcpPrompt: MCPPromptWiring<In>) => void;
|
|
52
|
+
/**
|
|
53
|
+
* Creates a function for handling MCP prompt requests.
|
|
54
|
+
* These functions generate prompt templates for AI models.
|
|
55
|
+
*
|
|
56
|
+
* @template In - Input type for the prompt parameters
|
|
57
|
+
* @param func - Function definition, either direct function or configuration object
|
|
58
|
+
* @returns The unwrapped function for internal use
|
|
59
|
+
*/
|
|
60
|
+
export declare const pikkuMCPPromptFunc: <In>(func: PikkuFunctionSessionless<In, MCPPromptResponse> | {
|
|
61
|
+
func: PikkuFunctionSessionless<In, MCPPromptResponse>;
|
|
62
|
+
name?: string;
|
|
63
|
+
}) => PikkuFunctionSessionless<In, MCPPromptResponse>;
|
|
64
|
+
/**
|
|
65
|
+
* Creates a function for handling MCP tool invocations.
|
|
66
|
+
* These functions perform actions that AI models can request.
|
|
67
|
+
*
|
|
68
|
+
* @template In - Input type for the tool invocation
|
|
69
|
+
* @param func - Function definition, either direct function or configuration object
|
|
70
|
+
* @returns The unwrapped function for internal use
|
|
71
|
+
*/
|
|
72
|
+
export declare const pikkuMCPToolFunc: <In>(func: PikkuFunctionSessionless<In, MCPToolResponse, null, true> | {
|
|
73
|
+
func: PikkuFunctionSessionless<In, MCPToolResponse, null, true>;
|
|
74
|
+
name?: string;
|
|
75
|
+
}) => PikkuFunctionSessionless<In, MCPToolResponse, null, true>;
|
|
76
|
+
/**
|
|
77
|
+
* Creates a function for handling MCP resource requests.
|
|
78
|
+
* These functions provide data that AI models can access.
|
|
79
|
+
*
|
|
80
|
+
* @template In - Input type for the resource request
|
|
81
|
+
* @param func - Function definition, either direct function or configuration object
|
|
82
|
+
* @returns The unwrapped function for internal use
|
|
83
|
+
*/
|
|
84
|
+
export declare const pikkuMCPResourceFunc: <In>(func: PikkuFunctionSessionless<In, MCPResourceResponse, null, true> | {
|
|
85
|
+
func: PikkuFunctionSessionless<In, MCPResourceResponse, null, true>;
|
|
86
|
+
name?: string;
|
|
87
|
+
}) => PikkuFunctionSessionless<In, MCPResourceResponse, null, true>;
|
|
88
|
+
export {};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by the @pikku/cli
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* This file was generated by the @pikku/cli
|
|
6
|
+
* MCP-specific type definitions for tree-shaking optimization
|
|
7
|
+
*/
|
|
8
|
+
import { wireMCPResource as wireMCPResourceCore, wireMCPTool as wireMCPToolCore, wireMCPPrompt as wireMCPPromptCore } from '@pikku/core';
|
|
9
|
+
/**
|
|
10
|
+
* Registers an MCP resource with the Pikku framework.
|
|
11
|
+
* Resources provide data that AI models can access.
|
|
12
|
+
*
|
|
13
|
+
* @template In - Input type for the resource request
|
|
14
|
+
* @param mcpResource - MCP resource definition with data provider function
|
|
15
|
+
*/
|
|
16
|
+
export const wireMCPResource = (mcpResource) => {
|
|
17
|
+
wireMCPResourceCore(mcpResource);
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Registers an MCP tool with the Pikku framework.
|
|
21
|
+
* Tools are functions that AI models can invoke.
|
|
22
|
+
*
|
|
23
|
+
* @template In - Input type for the tool invocation
|
|
24
|
+
* @param mcpTool - MCP tool definition with action function
|
|
25
|
+
*/
|
|
26
|
+
export const wireMCPTool = (mcpTool) => {
|
|
27
|
+
wireMCPToolCore(mcpTool);
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Registers an MCP prompt with the Pikku framework.
|
|
31
|
+
* Prompts provide templates that AI models can use.
|
|
32
|
+
*
|
|
33
|
+
* @template In - Input type for the prompt parameters
|
|
34
|
+
* @param mcpPrompt - MCP prompt definition with template function
|
|
35
|
+
*/
|
|
36
|
+
export const wireMCPPrompt = (mcpPrompt) => {
|
|
37
|
+
wireMCPPromptCore(mcpPrompt);
|
|
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) => {
|
|
48
|
+
return typeof func === 'function' ? func : 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) => {
|
|
59
|
+
return typeof func === 'function' ? func : 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) => {
|
|
70
|
+
return typeof func === 'function' ? func : func.func;
|
|
71
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by the @pikku/cli
|
|
3
|
+
*/
|
|
4
|
+
import './cli/pikku-cli-wirings-meta.gen.js';
|
|
5
|
+
import './rpc/pikku-rpc-wirings-meta.internal.gen.js';
|
|
6
|
+
import './function/pikku-functions-meta.gen.js';
|
|
7
|
+
import './function/pikku-functions.gen.js';
|
|
8
|
+
import './schemas/register.gen.js';
|
|
9
|
+
import './cli/pikku-cli-wirings.gen.js';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by the @pikku/cli
|
|
3
|
+
*/
|
|
4
|
+
import './cli/pikku-cli-wirings-meta.gen.js';
|
|
5
|
+
import './rpc/pikku-rpc-wirings-meta.internal.gen.js';
|
|
6
|
+
import './function/pikku-functions-meta.gen.js';
|
|
7
|
+
import './function/pikku-functions.gen.js';
|
|
8
|
+
import './schemas/register.gen.js';
|
|
9
|
+
import './cli/pikku-cli-wirings.gen.js';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by the @pikku/cli
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* This file was generated by the @pikku/cli
|
|
6
|
+
*/
|
|
7
|
+
import type { SingletonServices } from '../types/application-types.d.js';
|
|
8
|
+
import type { Services } from '../types/application-types.d.js';
|
|
9
|
+
import type { PikkuInteraction } from '@pikku/core';
|
|
10
|
+
export declare const singletonServices: {
|
|
11
|
+
readonly config: true;
|
|
12
|
+
readonly getInspectorState: true;
|
|
13
|
+
readonly logger: true;
|
|
14
|
+
};
|
|
15
|
+
export type RequiredSingletonServices = Pick<SingletonServices, Extract<keyof SingletonServices, 'config' | 'getInspectorState' | 'logger' | 'schema' | 'variables'>> & Partial<Omit<SingletonServices, 'config' | 'getInspectorState' | 'logger' | 'schema' | 'variables'>>;
|
|
16
|
+
export type RequiredSessionServices = Omit<Services, keyof SingletonServices | keyof PikkuInteraction>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by the @pikku/cli
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* This file was generated by the @pikku/cli
|
|
6
|
+
* Main type export hub - re-exports all wiring-specific types
|
|
7
|
+
*/
|
|
8
|
+
export * from './function/pikku-function-types.gen.js';
|
|
9
|
+
export * from './http/pikku-http-types.gen.js';
|
|
10
|
+
export * from './channel/pikku-channel-types.gen.js';
|
|
11
|
+
export * from './scheduler/pikku-scheduler-types.gen.js';
|
|
12
|
+
export * from './queue/pikku-queue-types.gen.js';
|
|
13
|
+
export * from './mcp/pikku-mcp-types.gen.js';
|
|
14
|
+
export * from './cli/pikku-cli-types.gen.js';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by the @pikku/cli
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* This file was generated by the @pikku/cli
|
|
6
|
+
* Main type export hub - re-exports all wiring-specific types
|
|
7
|
+
*/
|
|
8
|
+
// Core function, middleware, and permission types
|
|
9
|
+
export * from './function/pikku-function-types.gen.js';
|
|
10
|
+
// HTTP wiring types
|
|
11
|
+
export * from './http/pikku-http-types.gen.js';
|
|
12
|
+
// Channel wiring types
|
|
13
|
+
export * from './channel/pikku-channel-types.gen.js';
|
|
14
|
+
// Scheduler wiring types
|
|
15
|
+
export * from './scheduler/pikku-scheduler-types.gen.js';
|
|
16
|
+
// Queue wiring types
|
|
17
|
+
export * from './queue/pikku-queue-types.gen.js';
|
|
18
|
+
// MCP wiring types
|
|
19
|
+
export * from './mcp/pikku-mcp-types.gen.js';
|
|
20
|
+
// CLI wiring types
|
|
21
|
+
export * from './cli/pikku-cli-types.gen.js';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by the @pikku/cli
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* This file was generated by the @pikku/cli
|
|
6
|
+
* Queue-specific type definitions for tree-shaking optimization
|
|
7
|
+
*/
|
|
8
|
+
import { CoreQueueWorker } from '@pikku/core/queue';
|
|
9
|
+
import type { PikkuFunctionConfig } from '../function/pikku-function-types.gen.js';
|
|
10
|
+
/**
|
|
11
|
+
* Type definition for queue workers that process background jobs.
|
|
12
|
+
*
|
|
13
|
+
* @template In - Input type for the queue job
|
|
14
|
+
* @template Out - Output type for the queue job
|
|
15
|
+
*/
|
|
16
|
+
type QueueWiring<In, Out> = CoreQueueWorker<PikkuFunctionConfig<In, Out>>;
|
|
17
|
+
/**
|
|
18
|
+
* Registers a queue worker with the Pikku framework.
|
|
19
|
+
* Workers process background jobs from queues.
|
|
20
|
+
*
|
|
21
|
+
* @param queueWorker - Queue worker definition with job handler
|
|
22
|
+
*/
|
|
23
|
+
export declare const wireQueueWorker: (queueWorker: QueueWiring<any, any>) => void;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by the @pikku/cli
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* This file was generated by the @pikku/cli
|
|
6
|
+
* Queue-specific type definitions for tree-shaking optimization
|
|
7
|
+
*/
|
|
8
|
+
import { wireQueueWorker as wireQueueWorkerCore } from '@pikku/core/queue';
|
|
9
|
+
/**
|
|
10
|
+
* Registers a queue worker with the Pikku framework.
|
|
11
|
+
* Workers process background jobs from queues.
|
|
12
|
+
*
|
|
13
|
+
* @param queueWorker - Queue worker definition with job handler
|
|
14
|
+
*/
|
|
15
|
+
export const wireQueueWorker = (queueWorker) => {
|
|
16
|
+
wireQueueWorkerCore(queueWorker); // TODO
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|