@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
package/types/config.d.ts
CHANGED
|
@@ -14,8 +14,6 @@ export interface PikkuCLICoreOutputFiles {
|
|
|
14
14
|
functionsFile: string
|
|
15
15
|
functionsMetaFile: string
|
|
16
16
|
functionsMetaJsonFile: string
|
|
17
|
-
functionsMetaMinFile: string
|
|
18
|
-
functionsMetaMinJsonFile: string
|
|
19
17
|
functionTypesFile: string
|
|
20
18
|
|
|
21
19
|
// HTTP
|
|
@@ -56,10 +54,10 @@ export interface PikkuCLICoreOutputFiles {
|
|
|
56
54
|
// Workflows
|
|
57
55
|
workflowsWiringFile: string
|
|
58
56
|
workflowsWiringMetaFile: string
|
|
59
|
-
workflowsWiringMetaJsonFile: string
|
|
60
57
|
workflowsWorkersFile: string
|
|
61
58
|
workflowMapDeclarationFile: string
|
|
62
59
|
workflowTypesFile: string
|
|
60
|
+
workflowMetaDir: string
|
|
63
61
|
|
|
64
62
|
// MCP
|
|
65
63
|
mcpWiringsFile: string
|
|
@@ -87,6 +85,12 @@ export interface PikkuCLICoreOutputFiles {
|
|
|
87
85
|
|
|
88
86
|
// Application bootstrap
|
|
89
87
|
bootstrapFile: string
|
|
88
|
+
|
|
89
|
+
// Package service factories (for external packages)
|
|
90
|
+
packageFile: string
|
|
91
|
+
|
|
92
|
+
// Forge
|
|
93
|
+
forgeTypesFile: string
|
|
90
94
|
}
|
|
91
95
|
|
|
92
96
|
export type PikkuCLIInput = {
|
|
@@ -98,6 +102,9 @@ export type PikkuCLIInput = {
|
|
|
98
102
|
srcDirectories: string[]
|
|
99
103
|
ignoreFiles?: string[]
|
|
100
104
|
packageMappings: Record<string, string>
|
|
105
|
+
externalPackages?: Record<string, string> // namespace -> package name
|
|
106
|
+
externalPackage?: boolean
|
|
107
|
+
externalPackageName?: string
|
|
101
108
|
|
|
102
109
|
configDir: string
|
|
103
110
|
tsconfig: string
|
|
@@ -172,6 +179,18 @@ export type PikkuCLIInput = {
|
|
|
172
179
|
stateOutput?: string
|
|
173
180
|
stateInput?: string
|
|
174
181
|
|
|
182
|
+
forge?: {
|
|
183
|
+
verboseMeta?: boolean
|
|
184
|
+
node?: {
|
|
185
|
+
categories?: string[]
|
|
186
|
+
icon?: string
|
|
187
|
+
displayName?: string
|
|
188
|
+
description?: string
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
forgeNodesMetaJsonFile?: string
|
|
193
|
+
|
|
175
194
|
filters: InspectorFilters
|
|
176
195
|
} & PikkuCLICoreOutputFiles
|
|
177
196
|
|
|
@@ -184,6 +203,9 @@ export type PikkuCLIConfig = {
|
|
|
184
203
|
srcDirectories: string[]
|
|
185
204
|
ignoreFiles?: string[]
|
|
186
205
|
packageMappings: Record<string, string>
|
|
206
|
+
externalPackages?: Record<string, string> // namespace -> package name
|
|
207
|
+
externalPackage?: boolean
|
|
208
|
+
externalPackageName?: string
|
|
187
209
|
|
|
188
210
|
configFile?: string
|
|
189
211
|
tags?: string[]
|
|
@@ -266,5 +288,17 @@ export type PikkuCLIConfig = {
|
|
|
266
288
|
stateOutput?: string
|
|
267
289
|
stateInput?: string
|
|
268
290
|
|
|
291
|
+
forge?: {
|
|
292
|
+
verboseMeta?: boolean
|
|
293
|
+
node?: {
|
|
294
|
+
categories?: string[]
|
|
295
|
+
icon?: string
|
|
296
|
+
displayName?: string
|
|
297
|
+
description?: string
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
forgeNodesMetaJsonFile?: string
|
|
302
|
+
|
|
269
303
|
filters: InspectorFilters
|
|
270
304
|
} & PikkuCLICoreOutputFiles
|
|
@@ -1,212 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"pikkuSchemas": {
|
|
3
|
-
"pikkuFuncName": "pikkuSchemas",
|
|
4
|
-
"inputSchemaName": null,
|
|
5
|
-
"outputSchemaName": "PikkuSchemasOutput"
|
|
6
|
-
},
|
|
7
|
-
"pikkuFetch": {
|
|
8
|
-
"pikkuFuncName": "pikkuFetch",
|
|
9
|
-
"inputSchemaName": null,
|
|
10
|
-
"outputSchemaName": null
|
|
11
|
-
},
|
|
12
|
-
"pikkuWebSocketTyped": {
|
|
13
|
-
"pikkuFuncName": "pikkuWebSocketTyped",
|
|
14
|
-
"inputSchemaName": null,
|
|
15
|
-
"outputSchemaName": null
|
|
16
|
-
},
|
|
17
|
-
"pikkuRPCClient": {
|
|
18
|
-
"pikkuFuncName": "pikkuRPCClient",
|
|
19
|
-
"inputSchemaName": null,
|
|
20
|
-
"outputSchemaName": null
|
|
21
|
-
},
|
|
22
|
-
"pikkuQueueService": {
|
|
23
|
-
"pikkuFuncName": "pikkuQueueService",
|
|
24
|
-
"inputSchemaName": null,
|
|
25
|
-
"outputSchemaName": null
|
|
26
|
-
},
|
|
27
|
-
"pikkuOpenAPI": {
|
|
28
|
-
"pikkuFuncName": "pikkuOpenAPI",
|
|
29
|
-
"inputSchemaName": null,
|
|
30
|
-
"outputSchemaName": null
|
|
31
|
-
},
|
|
32
|
-
"pikkuNext": {
|
|
33
|
-
"pikkuFuncName": "pikkuNext",
|
|
34
|
-
"inputSchemaName": null,
|
|
35
|
-
"outputSchemaName": null
|
|
36
|
-
},
|
|
37
|
-
"pikkuFunctionTypes": {
|
|
38
|
-
"pikkuFuncName": "pikkuFunctionTypes",
|
|
39
|
-
"inputSchemaName": null,
|
|
40
|
-
"outputSchemaName": null
|
|
41
|
-
},
|
|
42
|
-
"pikkuFunctionTypesSplit": {
|
|
43
|
-
"pikkuFuncName": "pikkuFunctionTypesSplit",
|
|
44
|
-
"inputSchemaName": null,
|
|
45
|
-
"outputSchemaName": null
|
|
46
|
-
},
|
|
47
|
-
"pikkuHTTPTypes": {
|
|
48
|
-
"pikkuFuncName": "pikkuHTTPTypes",
|
|
49
|
-
"inputSchemaName": null,
|
|
50
|
-
"outputSchemaName": null
|
|
51
|
-
},
|
|
52
|
-
"pikkuChannelTypes": {
|
|
53
|
-
"pikkuFuncName": "pikkuChannelTypes",
|
|
54
|
-
"inputSchemaName": null,
|
|
55
|
-
"outputSchemaName": null
|
|
56
|
-
},
|
|
57
|
-
"pikkuSchedulerTypes": {
|
|
58
|
-
"pikkuFuncName": "pikkuSchedulerTypes",
|
|
59
|
-
"inputSchemaName": null,
|
|
60
|
-
"outputSchemaName": null
|
|
61
|
-
},
|
|
62
|
-
"pikkuQueueTypes": {
|
|
63
|
-
"pikkuFuncName": "pikkuQueueTypes",
|
|
64
|
-
"inputSchemaName": null,
|
|
65
|
-
"outputSchemaName": null
|
|
66
|
-
},
|
|
67
|
-
"pikkuWorkflowTypes": {
|
|
68
|
-
"pikkuFuncName": "pikkuWorkflowTypes",
|
|
69
|
-
"inputSchemaName": null,
|
|
70
|
-
"outputSchemaName": null
|
|
71
|
-
},
|
|
72
|
-
"pikkuMCPTypes": {
|
|
73
|
-
"pikkuFuncName": "pikkuMCPTypes",
|
|
74
|
-
"inputSchemaName": null,
|
|
75
|
-
"outputSchemaName": null
|
|
76
|
-
},
|
|
77
|
-
"pikkuCLITypes": {
|
|
78
|
-
"pikkuFuncName": "pikkuCLITypes",
|
|
79
|
-
"inputSchemaName": null,
|
|
80
|
-
"outputSchemaName": null
|
|
81
|
-
},
|
|
82
|
-
"pikkuFunctions": {
|
|
83
|
-
"pikkuFuncName": "pikkuFunctions",
|
|
84
|
-
"inputSchemaName": null,
|
|
85
|
-
"outputSchemaName": "PikkuFunctionsOutput"
|
|
86
|
-
},
|
|
87
|
-
"pikkuMiddleware": {
|
|
88
|
-
"pikkuFuncName": "pikkuMiddleware",
|
|
89
|
-
"inputSchemaName": null,
|
|
90
|
-
"outputSchemaName": "PikkuMiddlewareOutput"
|
|
91
|
-
},
|
|
92
|
-
"pikkuPermissions": {
|
|
93
|
-
"pikkuFuncName": "pikkuPermissions",
|
|
94
|
-
"inputSchemaName": null,
|
|
95
|
-
"outputSchemaName": "PikkuPermissionsOutput"
|
|
96
|
-
},
|
|
97
|
-
"pikkuServices": {
|
|
98
|
-
"pikkuFuncName": "pikkuServices",
|
|
99
|
-
"inputSchemaName": null,
|
|
100
|
-
"outputSchemaName": null
|
|
101
|
-
},
|
|
102
|
-
"pikkuServiceMetadata": {
|
|
103
|
-
"pikkuFuncName": "pikkuServiceMetadata",
|
|
104
|
-
"inputSchemaName": null,
|
|
105
|
-
"outputSchemaName": null
|
|
106
|
-
},
|
|
107
|
-
"pikkuRPC": {
|
|
108
|
-
"pikkuFuncName": "pikkuRPC",
|
|
109
|
-
"inputSchemaName": null,
|
|
110
|
-
"outputSchemaName": "PikkuRPCOutput"
|
|
111
|
-
},
|
|
112
|
-
"pikkuRPCInternalMap": {
|
|
113
|
-
"pikkuFuncName": "pikkuRPCInternalMap",
|
|
114
|
-
"inputSchemaName": null,
|
|
115
|
-
"outputSchemaName": null
|
|
116
|
-
},
|
|
117
|
-
"pikkuRPCExposedMap": {
|
|
118
|
-
"pikkuFuncName": "pikkuRPCExposedMap",
|
|
119
|
-
"inputSchemaName": null,
|
|
120
|
-
"outputSchemaName": null
|
|
121
|
-
},
|
|
122
|
-
"pikkuPublicRPC": {
|
|
123
|
-
"pikkuFuncName": "pikkuPublicRPC",
|
|
124
|
-
"inputSchemaName": null,
|
|
125
|
-
"outputSchemaName": "PikkuPublicRPCOutput"
|
|
126
|
-
},
|
|
127
|
-
"pikkuHTTP": {
|
|
128
|
-
"pikkuFuncName": "pikkuHTTP",
|
|
129
|
-
"inputSchemaName": null,
|
|
130
|
-
"outputSchemaName": "PikkuHTTPOutput"
|
|
131
|
-
},
|
|
132
|
-
"pikkuHTTPMap": {
|
|
133
|
-
"pikkuFuncName": "pikkuHTTPMap",
|
|
134
|
-
"inputSchemaName": null,
|
|
135
|
-
"outputSchemaName": null
|
|
136
|
-
},
|
|
137
|
-
"pikkuScheduler": {
|
|
138
|
-
"pikkuFuncName": "pikkuScheduler",
|
|
139
|
-
"inputSchemaName": null,
|
|
140
|
-
"outputSchemaName": "PikkuSchedulerOutput"
|
|
141
|
-
},
|
|
142
|
-
"pikkuWorkflow": {
|
|
143
|
-
"pikkuFuncName": "pikkuWorkflow",
|
|
144
|
-
"inputSchemaName": null,
|
|
145
|
-
"outputSchemaName": "PikkuWorkflowOutput"
|
|
146
|
-
},
|
|
147
|
-
"pikkuRemoteRPC": {
|
|
148
|
-
"pikkuFuncName": "pikkuRemoteRPC",
|
|
149
|
-
"inputSchemaName": null,
|
|
150
|
-
"outputSchemaName": "PikkuRemoteRPCOutput"
|
|
151
|
-
},
|
|
152
|
-
"pikkuWorkflowMap": {
|
|
153
|
-
"pikkuFuncName": "pikkuWorkflowMap",
|
|
154
|
-
"inputSchemaName": null,
|
|
155
|
-
"outputSchemaName": null
|
|
156
|
-
},
|
|
157
|
-
"pikkuQueue": {
|
|
158
|
-
"pikkuFuncName": "pikkuQueue",
|
|
159
|
-
"inputSchemaName": null,
|
|
160
|
-
"outputSchemaName": "PikkuQueueOutput"
|
|
161
|
-
},
|
|
162
|
-
"pikkuQueueMap": {
|
|
163
|
-
"pikkuFuncName": "pikkuQueueMap",
|
|
164
|
-
"inputSchemaName": null,
|
|
165
|
-
"outputSchemaName": null
|
|
166
|
-
},
|
|
167
|
-
"pikkuChannels": {
|
|
168
|
-
"pikkuFuncName": "pikkuChannels",
|
|
169
|
-
"inputSchemaName": null,
|
|
170
|
-
"outputSchemaName": null
|
|
171
|
-
},
|
|
172
|
-
"pikkuChannelsMap": {
|
|
173
|
-
"pikkuFuncName": "pikkuChannelsMap",
|
|
174
|
-
"inputSchemaName": null,
|
|
175
|
-
"outputSchemaName": null
|
|
176
|
-
},
|
|
177
|
-
"pikkuMCP": {
|
|
178
|
-
"pikkuFuncName": "pikkuMCP",
|
|
179
|
-
"inputSchemaName": null,
|
|
180
|
-
"outputSchemaName": "PikkuMCPOutput"
|
|
181
|
-
},
|
|
182
|
-
"pikkuMCPJSON": {
|
|
183
|
-
"pikkuFuncName": "pikkuMCPJSON",
|
|
184
|
-
"inputSchemaName": null,
|
|
185
|
-
"outputSchemaName": null
|
|
186
|
-
},
|
|
187
|
-
"pikkuCLI": {
|
|
188
|
-
"pikkuFuncName": "pikkuCLI",
|
|
189
|
-
"inputSchemaName": null,
|
|
190
|
-
"outputSchemaName": "PikkuCLIOutput"
|
|
191
|
-
},
|
|
192
|
-
"pikkuCLIEntry": {
|
|
193
|
-
"pikkuFuncName": "pikkuCLIEntry",
|
|
194
|
-
"inputSchemaName": null,
|
|
195
|
-
"outputSchemaName": null
|
|
196
|
-
},
|
|
197
|
-
"all": {
|
|
198
|
-
"pikkuFuncName": "all",
|
|
199
|
-
"inputSchemaName": null,
|
|
200
|
-
"outputSchemaName": null
|
|
201
|
-
},
|
|
202
|
-
"bootstrap": {
|
|
203
|
-
"pikkuFuncName": "bootstrap",
|
|
204
|
-
"inputSchemaName": null,
|
|
205
|
-
"outputSchemaName": null
|
|
206
|
-
},
|
|
207
|
-
"watch": {
|
|
208
|
-
"pikkuFuncName": "watch",
|
|
209
|
-
"inputSchemaName": null,
|
|
210
|
-
"outputSchemaName": null
|
|
211
|
-
}
|
|
212
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.11.2
|
|
3
|
-
*/
|
|
4
|
-
import { pikkuState, FunctionsRuntimeMeta } from '@pikku/core'
|
|
5
|
-
import metaData from './pikku-functions-meta.min.gen.json' with { type: 'json' }
|
|
6
|
-
pikkuState('function', 'meta', metaData as FunctionsRuntimeMeta)
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,212 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"pikkuSchemas": {
|
|
3
|
-
"pikkuFuncName": "pikkuSchemas",
|
|
4
|
-
"inputSchemaName": null,
|
|
5
|
-
"outputSchemaName": "PikkuSchemasOutput"
|
|
6
|
-
},
|
|
7
|
-
"pikkuFetch": {
|
|
8
|
-
"pikkuFuncName": "pikkuFetch",
|
|
9
|
-
"inputSchemaName": null,
|
|
10
|
-
"outputSchemaName": null
|
|
11
|
-
},
|
|
12
|
-
"pikkuWebSocketTyped": {
|
|
13
|
-
"pikkuFuncName": "pikkuWebSocketTyped",
|
|
14
|
-
"inputSchemaName": null,
|
|
15
|
-
"outputSchemaName": null
|
|
16
|
-
},
|
|
17
|
-
"pikkuRPCClient": {
|
|
18
|
-
"pikkuFuncName": "pikkuRPCClient",
|
|
19
|
-
"inputSchemaName": null,
|
|
20
|
-
"outputSchemaName": null
|
|
21
|
-
},
|
|
22
|
-
"pikkuQueueService": {
|
|
23
|
-
"pikkuFuncName": "pikkuQueueService",
|
|
24
|
-
"inputSchemaName": null,
|
|
25
|
-
"outputSchemaName": null
|
|
26
|
-
},
|
|
27
|
-
"pikkuOpenAPI": {
|
|
28
|
-
"pikkuFuncName": "pikkuOpenAPI",
|
|
29
|
-
"inputSchemaName": null,
|
|
30
|
-
"outputSchemaName": null
|
|
31
|
-
},
|
|
32
|
-
"pikkuNext": {
|
|
33
|
-
"pikkuFuncName": "pikkuNext",
|
|
34
|
-
"inputSchemaName": null,
|
|
35
|
-
"outputSchemaName": null
|
|
36
|
-
},
|
|
37
|
-
"pikkuFunctionTypes": {
|
|
38
|
-
"pikkuFuncName": "pikkuFunctionTypes",
|
|
39
|
-
"inputSchemaName": null,
|
|
40
|
-
"outputSchemaName": null
|
|
41
|
-
},
|
|
42
|
-
"pikkuFunctionTypesSplit": {
|
|
43
|
-
"pikkuFuncName": "pikkuFunctionTypesSplit",
|
|
44
|
-
"inputSchemaName": null,
|
|
45
|
-
"outputSchemaName": null
|
|
46
|
-
},
|
|
47
|
-
"pikkuHTTPTypes": {
|
|
48
|
-
"pikkuFuncName": "pikkuHTTPTypes",
|
|
49
|
-
"inputSchemaName": null,
|
|
50
|
-
"outputSchemaName": null
|
|
51
|
-
},
|
|
52
|
-
"pikkuChannelTypes": {
|
|
53
|
-
"pikkuFuncName": "pikkuChannelTypes",
|
|
54
|
-
"inputSchemaName": null,
|
|
55
|
-
"outputSchemaName": null
|
|
56
|
-
},
|
|
57
|
-
"pikkuSchedulerTypes": {
|
|
58
|
-
"pikkuFuncName": "pikkuSchedulerTypes",
|
|
59
|
-
"inputSchemaName": null,
|
|
60
|
-
"outputSchemaName": null
|
|
61
|
-
},
|
|
62
|
-
"pikkuQueueTypes": {
|
|
63
|
-
"pikkuFuncName": "pikkuQueueTypes",
|
|
64
|
-
"inputSchemaName": null,
|
|
65
|
-
"outputSchemaName": null
|
|
66
|
-
},
|
|
67
|
-
"pikkuWorkflowTypes": {
|
|
68
|
-
"pikkuFuncName": "pikkuWorkflowTypes",
|
|
69
|
-
"inputSchemaName": null,
|
|
70
|
-
"outputSchemaName": null
|
|
71
|
-
},
|
|
72
|
-
"pikkuMCPTypes": {
|
|
73
|
-
"pikkuFuncName": "pikkuMCPTypes",
|
|
74
|
-
"inputSchemaName": null,
|
|
75
|
-
"outputSchemaName": null
|
|
76
|
-
},
|
|
77
|
-
"pikkuCLITypes": {
|
|
78
|
-
"pikkuFuncName": "pikkuCLITypes",
|
|
79
|
-
"inputSchemaName": null,
|
|
80
|
-
"outputSchemaName": null
|
|
81
|
-
},
|
|
82
|
-
"pikkuFunctions": {
|
|
83
|
-
"pikkuFuncName": "pikkuFunctions",
|
|
84
|
-
"inputSchemaName": null,
|
|
85
|
-
"outputSchemaName": "PikkuFunctionsOutput"
|
|
86
|
-
},
|
|
87
|
-
"pikkuMiddleware": {
|
|
88
|
-
"pikkuFuncName": "pikkuMiddleware",
|
|
89
|
-
"inputSchemaName": null,
|
|
90
|
-
"outputSchemaName": "PikkuMiddlewareOutput"
|
|
91
|
-
},
|
|
92
|
-
"pikkuPermissions": {
|
|
93
|
-
"pikkuFuncName": "pikkuPermissions",
|
|
94
|
-
"inputSchemaName": null,
|
|
95
|
-
"outputSchemaName": "PikkuPermissionsOutput"
|
|
96
|
-
},
|
|
97
|
-
"pikkuServices": {
|
|
98
|
-
"pikkuFuncName": "pikkuServices",
|
|
99
|
-
"inputSchemaName": null,
|
|
100
|
-
"outputSchemaName": null
|
|
101
|
-
},
|
|
102
|
-
"pikkuServiceMetadata": {
|
|
103
|
-
"pikkuFuncName": "pikkuServiceMetadata",
|
|
104
|
-
"inputSchemaName": null,
|
|
105
|
-
"outputSchemaName": null
|
|
106
|
-
},
|
|
107
|
-
"pikkuRPC": {
|
|
108
|
-
"pikkuFuncName": "pikkuRPC",
|
|
109
|
-
"inputSchemaName": null,
|
|
110
|
-
"outputSchemaName": "PikkuRPCOutput"
|
|
111
|
-
},
|
|
112
|
-
"pikkuRPCInternalMap": {
|
|
113
|
-
"pikkuFuncName": "pikkuRPCInternalMap",
|
|
114
|
-
"inputSchemaName": null,
|
|
115
|
-
"outputSchemaName": null
|
|
116
|
-
},
|
|
117
|
-
"pikkuRPCExposedMap": {
|
|
118
|
-
"pikkuFuncName": "pikkuRPCExposedMap",
|
|
119
|
-
"inputSchemaName": null,
|
|
120
|
-
"outputSchemaName": null
|
|
121
|
-
},
|
|
122
|
-
"pikkuPublicRPC": {
|
|
123
|
-
"pikkuFuncName": "pikkuPublicRPC",
|
|
124
|
-
"inputSchemaName": null,
|
|
125
|
-
"outputSchemaName": "PikkuPublicRPCOutput"
|
|
126
|
-
},
|
|
127
|
-
"pikkuHTTP": {
|
|
128
|
-
"pikkuFuncName": "pikkuHTTP",
|
|
129
|
-
"inputSchemaName": null,
|
|
130
|
-
"outputSchemaName": "PikkuHTTPOutput"
|
|
131
|
-
},
|
|
132
|
-
"pikkuHTTPMap": {
|
|
133
|
-
"pikkuFuncName": "pikkuHTTPMap",
|
|
134
|
-
"inputSchemaName": null,
|
|
135
|
-
"outputSchemaName": null
|
|
136
|
-
},
|
|
137
|
-
"pikkuScheduler": {
|
|
138
|
-
"pikkuFuncName": "pikkuScheduler",
|
|
139
|
-
"inputSchemaName": null,
|
|
140
|
-
"outputSchemaName": "PikkuSchedulerOutput"
|
|
141
|
-
},
|
|
142
|
-
"pikkuWorkflow": {
|
|
143
|
-
"pikkuFuncName": "pikkuWorkflow",
|
|
144
|
-
"inputSchemaName": null,
|
|
145
|
-
"outputSchemaName": "PikkuWorkflowOutput"
|
|
146
|
-
},
|
|
147
|
-
"pikkuRemoteRPC": {
|
|
148
|
-
"pikkuFuncName": "pikkuRemoteRPC",
|
|
149
|
-
"inputSchemaName": null,
|
|
150
|
-
"outputSchemaName": "PikkuRemoteRPCOutput"
|
|
151
|
-
},
|
|
152
|
-
"pikkuWorkflowMap": {
|
|
153
|
-
"pikkuFuncName": "pikkuWorkflowMap",
|
|
154
|
-
"inputSchemaName": null,
|
|
155
|
-
"outputSchemaName": null
|
|
156
|
-
},
|
|
157
|
-
"pikkuQueue": {
|
|
158
|
-
"pikkuFuncName": "pikkuQueue",
|
|
159
|
-
"inputSchemaName": null,
|
|
160
|
-
"outputSchemaName": "PikkuQueueOutput"
|
|
161
|
-
},
|
|
162
|
-
"pikkuQueueMap": {
|
|
163
|
-
"pikkuFuncName": "pikkuQueueMap",
|
|
164
|
-
"inputSchemaName": null,
|
|
165
|
-
"outputSchemaName": null
|
|
166
|
-
},
|
|
167
|
-
"pikkuChannels": {
|
|
168
|
-
"pikkuFuncName": "pikkuChannels",
|
|
169
|
-
"inputSchemaName": null,
|
|
170
|
-
"outputSchemaName": null
|
|
171
|
-
},
|
|
172
|
-
"pikkuChannelsMap": {
|
|
173
|
-
"pikkuFuncName": "pikkuChannelsMap",
|
|
174
|
-
"inputSchemaName": null,
|
|
175
|
-
"outputSchemaName": null
|
|
176
|
-
},
|
|
177
|
-
"pikkuMCP": {
|
|
178
|
-
"pikkuFuncName": "pikkuMCP",
|
|
179
|
-
"inputSchemaName": null,
|
|
180
|
-
"outputSchemaName": "PikkuMCPOutput"
|
|
181
|
-
},
|
|
182
|
-
"pikkuMCPJSON": {
|
|
183
|
-
"pikkuFuncName": "pikkuMCPJSON",
|
|
184
|
-
"inputSchemaName": null,
|
|
185
|
-
"outputSchemaName": null
|
|
186
|
-
},
|
|
187
|
-
"pikkuCLI": {
|
|
188
|
-
"pikkuFuncName": "pikkuCLI",
|
|
189
|
-
"inputSchemaName": null,
|
|
190
|
-
"outputSchemaName": "PikkuCLIOutput"
|
|
191
|
-
},
|
|
192
|
-
"pikkuCLIEntry": {
|
|
193
|
-
"pikkuFuncName": "pikkuCLIEntry",
|
|
194
|
-
"inputSchemaName": null,
|
|
195
|
-
"outputSchemaName": null
|
|
196
|
-
},
|
|
197
|
-
"all": {
|
|
198
|
-
"pikkuFuncName": "all",
|
|
199
|
-
"inputSchemaName": null,
|
|
200
|
-
"outputSchemaName": null
|
|
201
|
-
},
|
|
202
|
-
"bootstrap": {
|
|
203
|
-
"pikkuFuncName": "bootstrap",
|
|
204
|
-
"inputSchemaName": null,
|
|
205
|
-
"outputSchemaName": null
|
|
206
|
-
},
|
|
207
|
-
"watch": {
|
|
208
|
-
"pikkuFuncName": "watch",
|
|
209
|
-
"inputSchemaName": null,
|
|
210
|
-
"outputSchemaName": null
|
|
211
|
-
}
|
|
212
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const pikkuWorkflowMap: any;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { pikkuSessionlessFunc } from '../../../../.pikku/pikku-types.gen.js';
|
|
2
|
-
import { writeFileInDir } from '../../../utils/file-writer.js';
|
|
3
|
-
import { serializeWorkflowMap } from './serialize-workflow-map.js';
|
|
4
|
-
export const pikkuWorkflowMap = pikkuSessionlessFunc({
|
|
5
|
-
func: async ({ logger, config, getInspectorState }) => {
|
|
6
|
-
const visitState = await getInspectorState();
|
|
7
|
-
const { workflowMapDeclarationFile, packageMappings } = config;
|
|
8
|
-
const { workflows, functions: functionState } = visitState;
|
|
9
|
-
const { typesMap } = functionState;
|
|
10
|
-
await writeFileInDir(logger, workflowMapDeclarationFile, serializeWorkflowMap(workflowMapDeclarationFile, packageMappings, typesMap, functionState.meta, workflows.meta));
|
|
11
|
-
},
|
|
12
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const pikkuWorkflowTypes: any;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { pikkuSessionlessFunc } from '../../../../.pikku/pikku-types.gen.js';
|
|
2
|
-
import { writeFileInDir } from '../../../utils/file-writer.js';
|
|
3
|
-
import { serializeWorkflowTypes } from './serialize-workflow-types.js';
|
|
4
|
-
import { getFileImportRelativePath } from '../../../utils/file-import-path.js';
|
|
5
|
-
export const pikkuWorkflowTypes = pikkuSessionlessFunc({
|
|
6
|
-
func: async ({ logger, config }) => {
|
|
7
|
-
const { workflowTypesFile, functionTypesFile, packageMappings } = config;
|
|
8
|
-
const functionTypesImportPath = getFileImportRelativePath(workflowTypesFile, functionTypesFile, packageMappings);
|
|
9
|
-
// Get RPC map import path
|
|
10
|
-
const rpcMapImportPath = getFileImportRelativePath(workflowTypesFile, config.rpcInternalMapDeclarationFile, packageMappings);
|
|
11
|
-
await writeFileInDir(logger, workflowTypesFile, serializeWorkflowTypes(functionTypesImportPath, rpcMapImportPath));
|
|
12
|
-
},
|
|
13
|
-
});
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generate workflow registration wirings
|
|
3
|
-
* Imports all workflow functions and calls addWorkflow for each
|
|
4
|
-
*/
|
|
5
|
-
export declare const serializeWorkflowWirings: (outputPath: string, workflowFiles: Map<string, {
|
|
6
|
-
path: string;
|
|
7
|
-
exportedName: string;
|
|
8
|
-
}>, packageMappings?: Record<string, string>) => string;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { getFileImportRelativePath } from '../../../utils/file-import-path.js';
|
|
2
|
-
/**
|
|
3
|
-
* Generate workflow registration wirings
|
|
4
|
-
* Imports all workflow functions and calls addWorkflow for each
|
|
5
|
-
*/
|
|
6
|
-
export const serializeWorkflowWirings = (outputPath, workflowFiles, packageMappings = {}) => {
|
|
7
|
-
const imports = [];
|
|
8
|
-
const registrations = [];
|
|
9
|
-
// Sort by pikkuFuncName for consistent output
|
|
10
|
-
const sortedWorkflows = Array.from(workflowFiles.entries()).sort((a, b) => a[0].localeCompare(b[0]));
|
|
11
|
-
// Generate imports
|
|
12
|
-
for (const [, { path, exportedName }] of sortedWorkflows) {
|
|
13
|
-
const importPath = getFileImportRelativePath(outputPath, path, packageMappings);
|
|
14
|
-
imports.push(`import { ${exportedName} } from '${importPath}'`);
|
|
15
|
-
}
|
|
16
|
-
// Generate addWorkflow calls
|
|
17
|
-
for (const [pikkuFuncName, { exportedName }] of sortedWorkflows) {
|
|
18
|
-
registrations.push(`addWorkflow('${pikkuFuncName}', ${exportedName})`);
|
|
19
|
-
}
|
|
20
|
-
// Only import addWorkflow if there are workflows to register
|
|
21
|
-
const addWorkflowImport = sortedWorkflows.length > 0
|
|
22
|
-
? `import { addWorkflow } from '@pikku/core/workflow'\n\n`
|
|
23
|
-
: '';
|
|
24
|
-
return `/**
|
|
25
|
-
* Auto-generated workflow registrations
|
|
26
|
-
* Do not edit manually - regenerate with 'npx pikku'
|
|
27
|
-
*/
|
|
28
|
-
${addWorkflowImport}${imports.join('\n')}${imports.length > 0 ? '\n\n' : ''}${registrations.join('\n')}
|
|
29
|
-
`;
|
|
30
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { pikkuSessionlessFunc } from '../../../../.pikku/pikku-types.gen.js'
|
|
2
|
-
import { writeFileInDir } from '../../../utils/file-writer.js'
|
|
3
|
-
import { serializeWorkflowMap } from './serialize-workflow-map.js'
|
|
4
|
-
|
|
5
|
-
export const pikkuWorkflowMap: any = pikkuSessionlessFunc<void, void>({
|
|
6
|
-
func: async ({ logger, config, getInspectorState }) => {
|
|
7
|
-
const visitState = await getInspectorState()
|
|
8
|
-
const { workflowMapDeclarationFile, packageMappings } = config
|
|
9
|
-
const { workflows, functions: functionState } = visitState
|
|
10
|
-
const { typesMap } = functionState
|
|
11
|
-
|
|
12
|
-
await writeFileInDir(
|
|
13
|
-
logger,
|
|
14
|
-
workflowMapDeclarationFile,
|
|
15
|
-
serializeWorkflowMap(
|
|
16
|
-
workflowMapDeclarationFile,
|
|
17
|
-
packageMappings,
|
|
18
|
-
typesMap,
|
|
19
|
-
functionState.meta,
|
|
20
|
-
workflows.meta
|
|
21
|
-
)
|
|
22
|
-
)
|
|
23
|
-
},
|
|
24
|
-
})
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { pikkuSessionlessFunc } from '../../../../.pikku/pikku-types.gen.js'
|
|
2
|
-
import { writeFileInDir } from '../../../utils/file-writer.js'
|
|
3
|
-
import { serializeWorkflowTypes } from './serialize-workflow-types.js'
|
|
4
|
-
import { getFileImportRelativePath } from '../../../utils/file-import-path.js'
|
|
5
|
-
|
|
6
|
-
export const pikkuWorkflowTypes: any = pikkuSessionlessFunc<void, void>({
|
|
7
|
-
func: async ({ logger, config }) => {
|
|
8
|
-
const { workflowTypesFile, functionTypesFile, packageMappings } = config
|
|
9
|
-
|
|
10
|
-
const functionTypesImportPath = getFileImportRelativePath(
|
|
11
|
-
workflowTypesFile,
|
|
12
|
-
functionTypesFile,
|
|
13
|
-
packageMappings
|
|
14
|
-
)
|
|
15
|
-
|
|
16
|
-
// Get RPC map import path
|
|
17
|
-
const rpcMapImportPath = getFileImportRelativePath(
|
|
18
|
-
workflowTypesFile,
|
|
19
|
-
config.rpcInternalMapDeclarationFile,
|
|
20
|
-
packageMappings
|
|
21
|
-
)
|
|
22
|
-
|
|
23
|
-
await writeFileInDir(
|
|
24
|
-
logger,
|
|
25
|
-
workflowTypesFile,
|
|
26
|
-
serializeWorkflowTypes(functionTypesImportPath, rpcMapImportPath)
|
|
27
|
-
)
|
|
28
|
-
},
|
|
29
|
-
})
|