@pikku/cli 0.11.2 → 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 +63 -6
- package/.pikku/channel/pikku-channels-map.gen.d.ts +4 -4
- 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 +1 -1
- package/.pikku/cli/pikku-cli-client.gen.ts +1 -1
- package/.pikku/cli/pikku-cli-types.gen.ts +1 -1
- package/.pikku/cli/pikku-cli-wirings-meta.gen.json +2 -1
- package/.pikku/cli/pikku-cli-wirings-meta.gen.ts +2 -2
- package/.pikku/cli/pikku-cli-wirings.gen.ts +1 -1
- package/.pikku/cli/pikku-cli.gen.ts +1 -1
- package/.pikku/forge/pikku-forge-types.gen.ts +83 -0
- package/.pikku/function/pikku-function-types.gen.ts +181 -35
- package/.pikku/function/pikku-functions-meta-verbose.gen.json +1030 -0
- package/.pikku/function/pikku-functions-meta.gen.json +88 -420
- package/.pikku/function/pikku-functions-meta.gen.ts +2 -2
- package/.pikku/http/pikku-http-types.gen.ts +19 -3
- package/.pikku/http/pikku-http-wirings-map.gen.d.ts +4 -4
- 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 +69 -17
- package/.pikku/mcp/pikku-mcp-wirings-meta.gen.ts +4 -4
- package/.pikku/mcp/pikku-mcp-wirings.gen.ts +1 -1
- package/.pikku/pikku-bootstrap.gen.ts +7 -9
- package/.pikku/pikku-services.gen.ts +3 -2
- package/.pikku/pikku-types.gen.ts +4 -1
- package/.pikku/pikku-websocket.gen.ts +1 -1
- package/.pikku/queue/pikku-queue-types.gen.ts +1 -1
- package/.pikku/queue/pikku-queue-workers-wirings-map.gen.d.ts +4 -4
- package/.pikku/queue/pikku-queue-workers-wirings-meta.gen.ts +2 -2
- package/.pikku/queue/pikku-queue-workers-wirings.gen.ts +1 -1
- package/.pikku/rpc/pikku-remote-rpc-workers.gen.ts +4 -1
- package/.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts +12 -7
- package/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +15 -9
- package/.pikku/scheduler/pikku-scheduler-types.gen.ts +1 -1
- package/.pikku/scheduler/pikku-schedulers-wirings-meta.gen.ts +2 -2
- package/.pikku/scheduler/pikku-schedulers-wirings.gen.ts +1 -1
- package/.pikku/schemas/register.gen.ts +9 -1
- 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 +11 -6
- package/.pikku/services/getInspectorState.gen.json +2 -2
- package/.pikku/services/jwt.gen.json +2 -2
- package/.pikku/services/logger.gen.json +2 -2
- package/.pikku/services/queueService.gen.json +2 -2
- package/.pikku/services/schedulerService.gen.json +2 -2
- package/.pikku/services/schema.gen.json +2 -2
- package/.pikku/services/secrets.gen.json +13 -0
- package/.pikku/services/variables.gen.json +2 -2
- package/.pikku/services/workflowService.gen.json +6 -6
- package/.pikku/workflow/pikku-workflow-map.gen.d.ts +2 -36
- package/.pikku/workflow/pikku-workflow-types.gen.ts +297 -45
- package/.pikku/workflow/pikku-workflow-wirings-meta.gen.ts +5 -4
- package/.pikku/workflow/pikku-workflow-wirings.gen.ts +1 -6
- package/CHANGELOG.md +23 -1
- package/cli.schema.json +1 -1
- package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +47 -5
- 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.gen.d.ts +1 -1
- package/dist/.pikku/channel/pikku-channels.gen.js +1 -1
- package/dist/.pikku/cli/pikku-cli-channel.js +1 -1
- package/dist/.pikku/cli/pikku-cli-client.gen.d.ts +1 -1
- package/dist/.pikku/cli/pikku-cli-client.gen.js +1 -1
- package/dist/.pikku/cli/pikku-cli-types.gen.d.ts +1 -1
- package/dist/.pikku/cli/pikku-cli-types.gen.js +1 -1
- package/dist/.pikku/cli/pikku-cli-wirings-meta.gen.js +2 -2
- package/dist/.pikku/cli/pikku-cli-wirings-meta.gen.json +2 -1
- package/dist/.pikku/cli/pikku-cli-wirings.gen.d.ts +1 -1
- package/dist/.pikku/cli/pikku-cli-wirings.gen.js +1 -1
- package/dist/.pikku/cli/pikku-cli.gen.d.ts +1 -1
- package/dist/.pikku/cli/pikku-cli.gen.js +1 -1
- 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 +123 -31
- package/dist/.pikku/function/pikku-function-types.gen.js +37 -51
- package/dist/.pikku/function/pikku-functions-meta.gen.js +2 -2
- package/dist/.pikku/function/pikku-functions-meta.gen.json +88 -420
- package/dist/.pikku/http/pikku-http-types.gen.d.ts +18 -3
- 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 +54 -14
- package/dist/.pikku/mcp/pikku-mcp-types.gen.js +7 -31
- package/dist/.pikku/mcp/pikku-mcp-wirings-meta.gen.js +4 -4
- 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 -9
- package/dist/.pikku/pikku-bootstrap.gen.js +7 -9
- package/dist/.pikku/pikku-services.gen.d.ts +3 -2
- package/dist/.pikku/pikku-services.gen.js +1 -0
- 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 +1 -1
- package/dist/.pikku/queue/pikku-queue-types.gen.js +1 -1
- package/dist/.pikku/queue/pikku-queue-workers-wirings-meta.gen.js +2 -2
- 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 +4 -1
- package/dist/.pikku/rpc/pikku-remote-rpc-workers.gen.js +4 -1
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +1 -1
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js +1 -1
- package/dist/.pikku/scheduler/pikku-schedulers-wirings-meta.gen.js +2 -2
- 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 +5 -1
- 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 +207 -37
- package/dist/.pikku/workflow/pikku-workflow-types.gen.js +104 -28
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +3 -3
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts +2 -6
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +2 -6
- package/dist/src/functions/commands/all.js +117 -79
- package/dist/src/functions/commands/bootstrap.js +2 -9
- package/dist/src/functions/runtimes/nextjs/pikku-command-nextjs.js +0 -1
- package/dist/src/functions/runtimes/nextjs/serialize-nextjs-backend-wrapper.js +49 -35
- package/dist/src/functions/runtimes/nextjs/serialize-nextjs-http-wrapper.js +49 -35
- package/dist/src/functions/wirings/channels/pikku-channels.js +1 -1
- package/dist/src/functions/wirings/channels/pikku-command-channels.js +18 -2
- package/dist/src/functions/wirings/channels/serialize-channel-types.js +62 -5
- package/dist/src/functions/wirings/channels/serialize-typed-channel-map.js +1 -2
- package/dist/src/functions/wirings/cli/pikku-command-cli.js +10 -2
- 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 +1 -1
- package/dist/src/functions/wirings/functions/pikku-command-function-types.js +7 -2
- package/dist/src/functions/wirings/functions/pikku-command-functions.js +33 -18
- package/dist/src/functions/wirings/functions/pikku-command-services.js +1 -1
- 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 +181 -34
- 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 +1 -1
- 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 +1 -1
- package/dist/src/functions/wirings/http/serialize-http-types.js +18 -2
- package/dist/src/functions/wirings/http/serialize-typed-http-map.js +33 -8
- package/dist/src/functions/wirings/mcp/pikku-command-mcp.js +15 -6
- package/dist/src/functions/wirings/mcp/serialize-mcp-json.js +3 -2
- package/dist/src/functions/wirings/mcp/serialize-mcp-types.js +68 -16
- package/dist/src/functions/wirings/middleware/pikku-command-middleware.js +5 -2
- 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 +10 -2
- package/dist/src/functions/wirings/queue/pikku-queue.js +1 -9
- package/dist/src/functions/wirings/queue/serialize-queue-map.js +20 -3
- package/dist/src/functions/wirings/queue/serialize-queue-meta.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 +1 -1
- package/dist/src/functions/wirings/rpc/serialize-remote-rpc.js +3 -0
- package/dist/src/functions/wirings/rpc/serialize-rpc-wrapper.js +1 -1
- 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 +10 -1
- package/dist/src/functions/wirings/scheduler/serialize-scheduler-meta.js +1 -1
- package/dist/src/functions/wirings/workflow/pikku-command-workflow.js +56 -18
- 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 -3
- package/dist/src/functions/wirings/workflow/serialize-workflow-meta.js +43 -18
- 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 +3 -1
- package/dist/src/functions/wirings/workflow/serialize-workflow-types.js +299 -45
- package/dist/src/functions/wirings/workflow/serialize-workflow-workers.d.ts +1 -1
- package/dist/src/functions/wirings/workflow/serialize-workflow-workers.js +14 -27
- package/dist/src/services.js +4 -1
- 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 +37 -9
- 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 +7 -4
- package/src/functions/commands/all.ts +144 -97
- package/src/functions/commands/bootstrap.ts +2 -10
- package/src/functions/runtimes/nextjs/pikku-command-nextjs.ts +0 -1
- package/src/functions/runtimes/nextjs/serialize-nextjs-backend-wrapper.ts +49 -35
- package/src/functions/runtimes/nextjs/serialize-nextjs-http-wrapper.ts +49 -35
- package/src/functions/wirings/channels/pikku-channels.ts +1 -1
- package/src/functions/wirings/channels/pikku-command-channels.ts +46 -3
- package/src/functions/wirings/channels/serialize-channel-types.ts +62 -5
- package/src/functions/wirings/channels/serialize-typed-channel-map.ts +3 -2
- package/src/functions/wirings/cli/pikku-command-cli.ts +21 -2
- 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 +3 -2
- package/src/functions/wirings/functions/pikku-command-function-types.ts +17 -10
- package/src/functions/wirings/functions/pikku-command-functions.ts +47 -37
- package/src/functions/wirings/functions/pikku-command-services.ts +1 -1
- 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 +182 -34
- package/src/functions/wirings/functions/serialize-pikku-types-hub.ts +27 -26
- package/src/functions/wirings/http/openapi-spec-generator.ts +1 -1
- 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 +1 -1
- package/src/functions/wirings/http/serialize-http-types.ts +18 -2
- package/src/functions/wirings/http/serialize-typed-http-map.ts +32 -8
- package/src/functions/wirings/mcp/pikku-command-mcp.ts +32 -10
- package/src/functions/wirings/mcp/serialize-mcp-json.ts +8 -6
- package/src/functions/wirings/mcp/serialize-mcp-types.ts +68 -16
- package/src/functions/wirings/middleware/pikku-command-middleware.ts +6 -2
- 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/queue/pikku-command-queue.ts +22 -2
- package/src/functions/wirings/queue/pikku-queue.ts +1 -10
- package/src/functions/wirings/queue/serialize-queue-map.ts +18 -3
- package/src/functions/wirings/queue/serialize-queue-meta.ts +1 -1
- package/src/functions/wirings/rpc/pikku-command-rpc-map.ts +7 -4
- package/src/functions/wirings/rpc/pikku-command-rpc.ts +1 -1
- package/src/functions/wirings/rpc/serialize-remote-rpc.ts +3 -0
- package/src/functions/wirings/rpc/serialize-rpc-wrapper.ts +1 -1
- package/src/functions/wirings/rpc/serialize-typed-rpc-map.ts +74 -8
- package/src/functions/wirings/scheduler/pikku-command-scheduler.ts +22 -1
- package/src/functions/wirings/scheduler/serialize-scheduler-meta.ts +1 -1
- package/src/functions/wirings/workflow/pikku-command-workflow.ts +104 -37
- package/src/functions/wirings/workflow/serialize-workflow-map.ts +38 -40
- package/src/functions/wirings/workflow/serialize-workflow-meta.ts +66 -26
- package/src/functions/wirings/workflow/serialize-workflow-registration.ts +83 -0
- package/src/functions/wirings/workflow/serialize-workflow-types.ts +299 -45
- package/src/functions/wirings/workflow/serialize-workflow-workers.ts +14 -27
- package/src/services.ts +8 -1
- 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 +51 -18
- package/src/utils/schema-generator.ts +185 -22
- package/src/utils/strip-verbose-meta.ts +254 -0
- package/types/config.d.ts +37 -3
- package/.pikku/function/pikku-functions-meta.min.gen.json +0 -212
- package/.pikku/function/pikku-functions-meta.min.gen.ts +0 -6
- package/dist/.pikku/function/pikku-functions-meta.min.gen.d.ts +0 -1
- package/dist/.pikku/function/pikku-functions-meta.min.gen.js +0 -6
- package/dist/.pikku/function/pikku-functions-meta.min.gen.json +0 -212
- 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 -13
- package/dist/src/functions/wirings/workflow/serialize-workflow-wirings.d.ts +0 -8
- package/dist/src/functions/wirings/workflow/serialize-workflow-wirings.js +0 -30
- package/src/functions/wirings/workflow/pikku-command-workflow-map.ts +0 -24
- package/src/functions/wirings/workflow/pikku-command-workflow-types.ts +0 -29
- package/src/functions/wirings/workflow/serialize-workflow-wirings.ts +0 -47
- /package/.pikku/{workflow/pikku-workflow-wirings-meta.gen.json → channel/pikku-channels-meta.gen.json} +0 -0
- /package/dist/.pikku/{workflow/pikku-workflow-wirings-meta.gen.json → channel/pikku-channels-meta.gen.json} +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
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
|
* HTTP-specific type definitions for tree-shaking optimization
|
|
6
6
|
*/
|
|
7
7
|
import { AssertHTTPWiringParams } from '@pikku/core/http';
|
|
8
8
|
import type { PikkuFunction, PikkuFunctionSessionless, PikkuPermission, PikkuMiddleware } from '../function/pikku-function-types.gen.js';
|
|
9
|
-
import type { CoreHTTPFunctionWiring } from '@pikku/core/http';
|
|
9
|
+
import type { CoreHTTPFunctionWiring, HTTPMethod } from '@pikku/core/http';
|
|
10
10
|
/**
|
|
11
11
|
* Type definition for HTTP API wirings with type-safe path parameters.
|
|
12
12
|
* Supports both authenticated and unauthenticated functions.
|
|
@@ -16,6 +16,21 @@ import type { CoreHTTPFunctionWiring } from '@pikku/core/http';
|
|
|
16
16
|
* @template Route - String literal type for the HTTP path (e.g., "/users/:id")
|
|
17
17
|
*/
|
|
18
18
|
type HTTPWiring<In, Out, Route extends string> = CoreHTTPFunctionWiring<In, Out, Route, PikkuFunction<In, Out, 'rpc' | 'session'>, PikkuFunctionSessionless<In, Out, 'rpc' | 'session'>, PikkuPermission<In>, PikkuMiddleware>;
|
|
19
|
+
/**
|
|
20
|
+
* HTTP wiring for workflow triggers (no function needed)
|
|
21
|
+
*/
|
|
22
|
+
type HTTPWorkflowWiring<Route extends string> = {
|
|
23
|
+
route: Route;
|
|
24
|
+
method: HTTPMethod;
|
|
25
|
+
workflow: true;
|
|
26
|
+
func?: undefined;
|
|
27
|
+
permissions?: undefined;
|
|
28
|
+
auth?: undefined;
|
|
29
|
+
tags?: undefined;
|
|
30
|
+
middleware?: undefined;
|
|
31
|
+
returnsJSON?: undefined;
|
|
32
|
+
sse?: boolean;
|
|
33
|
+
};
|
|
19
34
|
/**
|
|
20
35
|
* Registers an HTTP wiring with the Pikku framework.
|
|
21
36
|
*
|
|
@@ -24,7 +39,7 @@ type HTTPWiring<In, Out, Route extends string> = CoreHTTPFunctionWiring<In, Out,
|
|
|
24
39
|
* @template Route - String literal type for the HTTP path (e.g., "/users/:id")
|
|
25
40
|
* @param httpWiring - HTTP wiring definition with handler, method, and optional middleware
|
|
26
41
|
*/
|
|
27
|
-
export declare const wireHTTP: <In, Out, Route extends string>(httpWiring: HTTPWiring<In, Out, Route> & AssertHTTPWiringParams<In, Route>) => void;
|
|
42
|
+
export declare const wireHTTP: <In, Out, Route extends string>(httpWiring: (HTTPWiring<In, Out, Route> & AssertHTTPWiringParams<In, Route>) | HTTPWorkflowWiring<Route>) => void;
|
|
28
43
|
/**
|
|
29
44
|
* Registers HTTP middleware either globally or for a specific route pattern.
|
|
30
45
|
*
|
|
@@ -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,11 +1,12 @@
|
|
|
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
|
*
|
|
@@ -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,8 +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
5
|
import metaData from './pikku-mcp-wirings-meta.gen.json' with { type: 'json' };
|
|
6
|
-
pikkuState('mcp', 'resourcesMeta', metaData.resourcesMeta);
|
|
7
|
-
pikkuState('mcp', 'toolsMeta', metaData.toolsMeta);
|
|
8
|
-
pikkuState('mcp', 'promptsMeta', metaData.promptsMeta);
|
|
6
|
+
pikkuState(null, 'mcp', 'resourcesMeta', metaData.resourcesMeta);
|
|
7
|
+
pikkuState(null, 'mcp', 'toolsMeta', metaData.toolsMeta);
|
|
8
|
+
pikkuState(null, 'mcp', 'promptsMeta', metaData.promptsMeta);
|
|
@@ -1,18 +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
4
|
import './function/pikku-functions-meta.gen.js';
|
|
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';
|
|
12
11
|
import './schemas/register.gen.js';
|
|
13
12
|
import './http/pikku-http-wirings.gen.js';
|
|
14
13
|
import './scheduler/pikku-schedulers-wirings.gen.js';
|
|
15
|
-
import './workflow/pikku-workflow-wirings.gen.js';
|
|
16
14
|
import './queue/pikku-queue-workers-wirings.gen.js';
|
|
17
15
|
import './channel/pikku-channels.gen.js';
|
|
18
16
|
import './mcp/pikku-mcp-wirings.gen.js';
|
|
@@ -1,18 +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
4
|
import './function/pikku-functions-meta.gen.js';
|
|
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';
|
|
12
11
|
import './schemas/register.gen.js';
|
|
13
12
|
import './http/pikku-http-wirings.gen.js';
|
|
14
13
|
import './scheduler/pikku-schedulers-wirings.gen.js';
|
|
15
|
-
import './workflow/pikku-workflow-wirings.gen.js';
|
|
16
14
|
import './queue/pikku-queue-workers-wirings.gen.js';
|
|
17
15
|
import './channel/pikku-channels.gen.js';
|
|
18
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,9 +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
18
|
export declare const requiredWireServices: {};
|
|
18
|
-
export type RequiredSingletonServices = Pick<SingletonServices, 'config' | 'getInspectorState' | 'logger' | 'schema' | 'variables'> & Partial<Omit<SingletonServices, 'config' | 'getInspectorState' | 'logger' | 'schema' | 'variables'>>;
|
|
19
|
+
export type RequiredSingletonServices = Pick<SingletonServices, 'config' | 'getInspectorState' | 'logger' | 'schema' | 'secrets' | 'variables'> & Partial<Omit<SingletonServices, 'config' | 'getInspectorState' | 'logger' | 'schema' | 'secrets' | 'variables'>>;
|
|
19
20
|
export type RequiredWireServices = Partial<Services>;
|
|
@@ -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,6 +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-queue-workers-wirings-meta.gen.json' with { type: 'json' };
|
|
6
|
-
pikkuState('queue', 'meta', metaData);
|
|
6
|
+
pikkuState(null, 'queue', 'meta', metaData);
|
|
@@ -1,6 +1,9 @@
|
|
|
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
8
|
export declare const pikkuRemoteInternalRPC: import("../pikku-types.gen.js").PikkuFunctionConfig<{
|
|
6
9
|
rpcName: string;
|
|
@@ -11,4 +14,4 @@ export declare const pikkuRemoteInternalRPC: import("../pikku-types.gen.js").Pik
|
|
|
11
14
|
}, any, "rpc" | "session", import("../../types/application-types.js").Services> | import("../pikku-types.gen.js").PikkuFunction<{
|
|
12
15
|
rpcName: string;
|
|
13
16
|
data?: any;
|
|
14
|
-
}, any, "rpc" | "session", import("../../types/application-types.js").Services
|
|
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,6 +9,9 @@ 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
17
|
func: async (_services, { rpcName, data }, { rpc }) => {
|
|
@@ -1,6 +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('scheduler', 'meta', metaData);
|
|
6
|
+
pikkuState(null, 'scheduler', 'meta', metaData);
|
|
@@ -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 { addSchema } from '@pikku/core/schema';
|
|
5
5
|
import * as PikkuSchemasOutput from './schemas/PikkuSchemasOutput.schema.json' with { type: 'json' };
|
|
@@ -28,6 +28,10 @@ import * as PikkuMCPOutput from './schemas/PikkuMCPOutput.schema.json' with { ty
|
|
|
28
28
|
addSchema('PikkuMCPOutput', PikkuMCPOutput);
|
|
29
29
|
import * as PikkuCLIOutput from './schemas/PikkuCLIOutput.schema.json' with { type: 'json' };
|
|
30
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);
|
|
31
35
|
import * as PikkuChannelsOutput from './schemas/PikkuChannelsOutput.schema.json' with { type: 'json' };
|
|
32
36
|
addSchema('PikkuChannelsOutput', PikkuChannelsOutput);
|
|
33
37
|
import * as PikkuCLIConfig from './schemas/PikkuCLIConfig.schema.json' with { type: 'json' };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{ "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "additionalProperties": false, "properties": { "outDir": { "type": "string" }, "schemaDirectory": { "type": "string" }, "typesDeclarationFile": { "type": "string" }, "functionsFile": { "type": "string" }, "functionsMetaFile": { "type": "string" }, "functionsMetaJsonFile": { "type": "string" }, "
|
|
1
|
+
{ "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "additionalProperties": false, "properties": { "outDir": { "type": "string" }, "schemaDirectory": { "type": "string" }, "typesDeclarationFile": { "type": "string" }, "functionsFile": { "type": "string" }, "functionsMetaFile": { "type": "string" }, "functionsMetaJsonFile": { "type": "string" }, "functionTypesFile": { "type": "string" }, "httpWiringsFile": { "type": "string" }, "httpWiringMetaFile": { "type": "string" }, "httpWiringMetaJsonFile": { "type": "string" }, "httpMapDeclarationFile": { "type": "string" }, "httpTypesFile": { "type": "string" }, "channelsWiringFile": { "type": "string" }, "channelsWiringMetaFile": { "type": "string" }, "channelsWiringMetaJsonFile": { "type": "string" }, "channelsMapDeclarationFile": { "type": "string" }, "channelsTypesFile": { "type": "string" }, "rpcInternalWiringMetaFile": { "type": "string" }, "rpcInternalWiringMetaJsonFile": { "type": "string" }, "rpcInternalMapDeclarationFile": { "type": "string" }, "rpcMapDeclarationFile": { "type": "string" }, "schedulersWiringFile": { "type": "string" }, "schedulersWiringMetaFile": { "type": "string" }, "schedulersWiringMetaJsonFile": { "type": "string" }, "schedulersTypesFile": { "type": "string" }, "queueWorkersWiringFile": { "type": "string" }, "queueWorkersWiringMetaFile": { "type": "string" }, "queueWorkersWiringMetaJsonFile": { "type": "string" }, "queueMapDeclarationFile": { "type": "string" }, "queueTypesFile": { "type": "string" }, "workflowsWiringFile": { "type": "string" }, "workflowsWiringMetaFile": { "type": "string" }, "workflowsWorkersFile": { "type": "string" }, "workflowMapDeclarationFile": { "type": "string" }, "workflowTypesFile": { "type": "string" }, "workflowMetaDir": { "type": "string" }, "mcpWiringsFile": { "type": "string" }, "mcpWiringsMetaFile": { "type": "string" }, "mcpWiringsMetaJsonFile": { "type": "string" }, "mcpTypesFile": { "type": "string" }, "cliWiringsFile": { "type": "string" }, "cliWiringMetaFile": { "type": "string" }, "cliWiringMetaJsonFile": { "type": "string" }, "cliBootstrapFile": { "type": "string" }, "cliTypesFile": { "type": "string" }, "servicesFile": { "type": "string" }, "middlewareFile": { "type": "string" }, "middlewareGroupsMetaFile": { "type": "string" }, "middlewareGroupsMetaJsonFile": { "type": "string" }, "permissionsFile": { "type": "string" }, "bootstrapFile": { "type": "string" }, "packageFile": { "type": "string" }, "forgeTypesFile": { "type": "string" }, "$schema": { "type": "string" }, "extends": { "type": "string" }, "rootDir": { "type": "string" }, "srcDirectories": { "type": "array", "items": { "type": "string" } }, "ignoreFiles": { "type": "array", "items": { "type": "string" } }, "packageMappings": { "type": "object", "additionalProperties": { "type": "string" } }, "externalPackages": { "type": "object", "additionalProperties": { "type": "string" } }, "externalPackage": { "type": "boolean" }, "externalPackageName": { "type": "string" }, "configFile": { "type": "string" }, "tags": { "type": "array", "items": { "type": "string" } }, "types": { "type": "array", "items": { "type": "string" } }, "userSessionType": { "type": "string" }, "singletonServicesFactoryType": { "type": "string" }, "wireServicesFactoryType": { "type": "string" }, "configDir": { "type": "string" }, "tsconfig": { "type": "string" }, "nextBackendFile": { "type": "string" }, "nextHTTPFile": { "type": "string" }, "fetchFile": { "type": "string" }, "websocketFile": { "type": "string" }, "rpcWiringsFile": { "type": "string" }, "queueWiringsFile": { "type": "string" }, "mcpJsonFile": { "type": "string" }, "openAPI": { "type": "object", "properties": { "outputFile": { "type": "string" }, "additionalInfo": { "$ref": "#/definitions/OpenAPISpecInfo" } }, "required": ["outputFile", "additionalInfo"], "additionalProperties": false }, "schema": { "type": "object", "properties": { "additionalProperties": { "type": "boolean" }, "supportsImportAttributes": { "type": "boolean" } }, "additionalProperties": false }, "cli": { "type": "object", "properties": { "entrypoints": { "type": "object", "additionalProperties": { "anyOf": [{ "type": "string" }, { "type": "object", "properties": { "type": { "type": "string", "const": "local" }, "path": { "type": "string" } }, "required": ["type", "path"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "const": "channel" }, "name": { "type": "string" }, "route": { "type": "string" }, "wirePath": { "type": "string" }, "path": { "type": "string" } }, "required": ["type", "wirePath"], "additionalProperties": false }, { "type": "array", "items": { "anyOf": [{ "type": "string" }, { "type": "object", "properties": { "type": { "type": "string", "const": "local" }, "path": { "type": "string" } }, "required": ["type", "path"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "const": "channel" }, "name": { "type": "string" }, "route": { "type": "string" }, "wirePath": { "type": "string" }, "path": { "type": "string" } }, "required": ["type", "wirePath"], "additionalProperties": false }] } }] } } }, "additionalProperties": false }, "workflows": { "anyOf": [{ "type": "object", "properties": { "singleQueue": { "type": "boolean", "const": true }, "path": { "type": "string" }, "orchestratorQueue": { "type": "string" }, "workerQueue": { "type": "string" } }, "required": ["singleQueue", "path"], "additionalProperties": false }, { "type": "object", "properties": { "singleQueue": { "type": "boolean", "const": false }, "dir": { "type": "string" }, "orchestratorQueuePrefix": { "type": "string" }, "workerQueuePrefix": { "type": "string" } }, "required": ["singleQueue", "dir"], "additionalProperties": false }] }, "rpc": { "type": "object", "properties": { "remoteRpcWorkersPath": { "type": "string" }, "publicRpcPath": { "type": "string" } }, "additionalProperties": false }, "forceRequiredServices": { "type": "array", "items": { "type": "string" } }, "schemasFromTypes": { "type": "array", "items": { "type": "string" } }, "stateOutput": { "type": "string" }, "stateInput": { "type": "string" }, "forge": { "type": "object", "properties": { "verboseMeta": { "type": "boolean" }, "node": { "type": "object", "properties": { "categories": { "type": "array", "items": { "type": "string" } }, "icon": { "type": "string" }, "displayName": { "type": "string" }, "description": { "type": "string" } }, "additionalProperties": false } }, "additionalProperties": false }, "forgeNodesMetaJsonFile": { "type": "string" }, "filters": { "$ref": "#/definitions/InspectorFilters" } }, "required": ["bootstrapFile", "channelsMapDeclarationFile", "channelsTypesFile", "channelsWiringFile", "channelsWiringMetaFile", "channelsWiringMetaJsonFile", "cliBootstrapFile", "cliTypesFile", "cliWiringMetaFile", "cliWiringMetaJsonFile", "cliWiringsFile", "configDir", "filters", "forgeTypesFile", "functionTypesFile", "functionsFile", "functionsMetaFile", "functionsMetaJsonFile", "httpMapDeclarationFile", "httpTypesFile", "httpWiringMetaFile", "httpWiringMetaJsonFile", "httpWiringsFile", "mcpTypesFile", "mcpWiringsFile", "mcpWiringsMetaFile", "mcpWiringsMetaJsonFile", "middlewareFile", "middlewareGroupsMetaFile", "middlewareGroupsMetaJsonFile", "outDir", "packageFile", "packageMappings", "permissionsFile", "queueMapDeclarationFile", "queueTypesFile", "queueWorkersWiringFile", "queueWorkersWiringMetaFile", "queueWorkersWiringMetaJsonFile", "rootDir", "rpcInternalMapDeclarationFile", "rpcInternalWiringMetaFile", "rpcInternalWiringMetaJsonFile", "rpcMapDeclarationFile", "schedulersTypesFile", "schedulersWiringFile", "schedulersWiringMetaFile", "schedulersWiringMetaJsonFile", "schemaDirectory", "servicesFile", "srcDirectories", "tsconfig", "typesDeclarationFile", "workflowMapDeclarationFile", "workflowMetaDir", "workflowTypesFile", "workflowsWiringFile", "workflowsWiringMetaFile", "workflowsWorkersFile"], "definitions": { "OpenAPISpecInfo": { "type": "object", "properties": { "info": { "type": "object", "properties": { "title": { "type": "string" }, "version": { "type": "string" }, "description": { "type": "string" }, "termsOfService": { "type": "string" }, "contact": { "type": "object", "properties": { "name": { "type": "string" }, "url": { "type": "string" }, "email": { "type": "string" } }, "additionalProperties": false }, "license": { "type": "object", "properties": { "name": { "type": "string" }, "url": { "type": "string" } }, "required": ["name"], "additionalProperties": false } }, "required": ["title", "version", "description"], "additionalProperties": false }, "servers": { "type": "array", "items": { "type": "object", "properties": { "url": { "type": "string" }, "description": { "type": "string" } }, "required": ["url"], "additionalProperties": false } }, "tags": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "description": { "type": "string" } }, "required": ["name"], "additionalProperties": false } }, "externalDocs": { "type": "object", "properties": { "description": { "type": "string" }, "url": { "type": "string" } }, "required": ["url"], "additionalProperties": false }, "securitySchemes": { "type": "object" }, "security": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "array", "items": {} } } } }, "required": ["info", "servers"], "additionalProperties": false }, "InspectorFilters": { "type": "object", "properties": { "names": { "type": "array", "items": { "type": "string" } }, "tags": { "type": "array", "items": { "type": "string" } }, "types": { "type": "array", "items": { "type": "string" } }, "directories": { "type": "array", "items": { "type": "string" } }, "httpRoutes": { "type": "array", "items": { "type": "string" } }, "httpMethods": { "type": "array", "items": { "type": "string" } } }, "additionalProperties": false } } }
|