@pikku/cli 0.11.1 → 0.11.2
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 +11 -12
- package/.pikku/channel/pikku-channels-map.gen.d.ts +8 -8
- package/.pikku/channel/pikku-channels-meta.gen.ts +1 -1
- package/.pikku/channel/pikku-channels.gen.ts +1 -1
- package/.pikku/cli/pikku-cli-channel.ts +2 -2
- package/.pikku/cli/pikku-cli-client.gen.ts +1 -3
- package/.pikku/cli/pikku-cli-types.gen.ts +3 -3
- package/.pikku/cli/pikku-cli-wirings-meta.gen.json +146 -0
- package/.pikku/cli/pikku-cli-wirings-meta.gen.ts +4 -157
- package/.pikku/cli/pikku-cli-wirings.gen.ts +3 -3
- package/.pikku/cli/pikku-cli.gen.ts +3 -3
- package/.pikku/function/pikku-function-types.gen.ts +49 -63
- package/.pikku/function/pikku-functions-meta.gen.json +988 -0
- package/.pikku/function/pikku-functions-meta.gen.ts +4 -970
- package/.pikku/function/pikku-functions-meta.min.gen.json +212 -0
- package/.pikku/function/pikku-functions-meta.min.gen.ts +4 -209
- package/.pikku/http/pikku-http-types.gen.ts +2 -2
- package/.pikku/http/pikku-http-wirings-map.gen.d.ts +8 -8
- package/.pikku/http/pikku-http-wirings-meta.gen.ts +1 -1
- package/.pikku/http/pikku-http-wirings.gen.ts +1 -1
- package/.pikku/mcp/pikku-mcp-types.gen.ts +13 -13
- package/.pikku/mcp/pikku-mcp-wirings-meta.gen.json +5 -0
- package/.pikku/mcp/pikku-mcp-wirings-meta.gen.ts +6 -4
- package/.pikku/mcp/pikku-mcp-wirings.gen.ts +1 -1
- package/.pikku/pikku-bootstrap.gen.ts +1 -4
- package/.pikku/pikku-services.gen.ts +4 -6
- package/.pikku/pikku-types.gen.ts +1 -1
- package/.pikku/pikku-websocket.gen.ts +1 -1
- package/.pikku/queue/pikku-queue-types.gen.ts +2 -2
- package/.pikku/queue/pikku-queue-workers-wirings-map.gen.d.ts +8 -8
- package/.pikku/queue/pikku-queue-workers-wirings-meta.gen.json +1 -0
- package/.pikku/queue/pikku-queue-workers-wirings-meta.gen.ts +5 -7
- package/.pikku/queue/pikku-queue-workers-wirings.gen.ts +1 -1
- package/.pikku/rpc/pikku-remote-rpc-workers.gen.ts +2 -2
- package/.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts +8 -8
- package/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +34 -33
- package/.pikku/scheduler/pikku-scheduler-types.gen.ts +2 -2
- package/.pikku/scheduler/pikku-schedulers-wirings-meta.gen.json +1 -0
- package/.pikku/scheduler/pikku-schedulers-wirings-meta.gen.ts +5 -2
- package/.pikku/scheduler/pikku-schedulers-wirings.gen.ts +1 -1
- package/.pikku/schemas/register.gen.ts +25 -25
- package/.pikku/schemas/schemas/PikkuCLIConfig.schema.json +1 -1
- package/.pikku/services/config.gen.json +99 -0
- package/.pikku/services/getInspectorState.gen.json +10 -0
- package/.pikku/services/jwt.gen.json +13 -0
- package/.pikku/services/logger.gen.json +25 -0
- package/.pikku/services/queueService.gen.json +14 -0
- package/.pikku/services/schedulerService.gen.json +17 -0
- package/.pikku/services/schema.gen.json +14 -0
- package/.pikku/services/variables.gen.json +13 -0
- package/.pikku/services/workflowService.gen.json +31 -0
- package/.pikku/workflow/pikku-workflow-map.gen.d.ts +8 -8
- package/.pikku/workflow/pikku-workflow-types.gen.ts +36 -31
- package/.pikku/workflow/pikku-workflow-wirings-meta.gen.json +1 -0
- package/.pikku/workflow/pikku-workflow-wirings-meta.gen.ts +5 -2
- package/.pikku/workflow/pikku-workflow-wirings.gen.ts +6 -2
- package/CHANGELOG.md +21 -0
- package/bin/pikku.ts +6 -32
- package/build.sh +53 -31
- package/cli.schema.json +1 -1
- package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +6 -7
- package/dist/.pikku/channel/pikku-channel-types.gen.js +1 -1
- package/dist/.pikku/channel/pikku-channels-meta.gen.js +1 -1
- package/dist/.pikku/channel/pikku-channels.gen.d.ts +1 -1
- package/dist/.pikku/channel/pikku-channels.gen.js +1 -1
- package/dist/.pikku/cli/pikku-cli-channel.js +2 -2
- package/dist/.pikku/cli/pikku-cli-client.gen.d.ts +1 -1
- package/dist/.pikku/cli/pikku-cli-client.gen.js +1 -3
- package/dist/.pikku/cli/pikku-cli-types.gen.d.ts +3 -3
- package/dist/.pikku/cli/pikku-cli-types.gen.js +1 -1
- package/dist/.pikku/cli/pikku-cli-wirings-meta.gen.js +3 -157
- package/dist/.pikku/cli/pikku-cli-wirings-meta.gen.json +146 -0
- package/dist/.pikku/cli/pikku-cli-wirings.gen.d.ts +2 -2
- package/dist/.pikku/cli/pikku-cli-wirings.gen.js +2 -2
- package/dist/.pikku/cli/pikku-cli.gen.d.ts +1 -1
- package/dist/.pikku/cli/pikku-cli.gen.js +3 -3
- package/dist/.pikku/function/pikku-function-types.gen.d.ts +29 -79
- package/dist/.pikku/function/pikku-function-types.gen.js +19 -15
- package/dist/.pikku/function/pikku-functions-meta.gen.js +3 -969
- package/dist/.pikku/function/pikku-functions-meta.gen.json +988 -0
- package/dist/.pikku/function/pikku-functions-meta.min.gen.js +3 -208
- package/dist/.pikku/function/pikku-functions-meta.min.gen.json +212 -0
- package/dist/.pikku/http/pikku-http-types.gen.d.ts +2 -2
- package/dist/.pikku/http/pikku-http-types.gen.js +1 -1
- package/dist/.pikku/http/pikku-http-wirings-meta.gen.js +1 -1
- 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 +13 -13
- package/dist/.pikku/mcp/pikku-mcp-types.gen.js +1 -1
- package/dist/.pikku/mcp/pikku-mcp-wirings-meta.gen.js +5 -4
- package/dist/.pikku/mcp/pikku-mcp-wirings-meta.gen.json +5 -0
- package/dist/.pikku/mcp/pikku-mcp-wirings.gen.d.ts +1 -1
- package/dist/.pikku/mcp/pikku-mcp-wirings.gen.js +1 -1
- package/dist/.pikku/pikku-bootstrap.gen.d.ts +1 -4
- package/dist/.pikku/pikku-bootstrap.gen.js +1 -4
- package/dist/.pikku/pikku-services.gen.d.ts +3 -6
- package/dist/.pikku/pikku-services.gen.js +2 -5
- package/dist/.pikku/pikku-types.gen.d.ts +1 -1
- package/dist/.pikku/pikku-types.gen.js +1 -1
- package/dist/.pikku/pikku-websocket.gen.d.ts +1 -1
- package/dist/.pikku/pikku-websocket.gen.js +1 -1
- package/dist/.pikku/queue/pikku-queue-types.gen.d.ts +2 -2
- package/dist/.pikku/queue/pikku-queue-types.gen.js +1 -1
- package/dist/.pikku/queue/pikku-queue-workers-wirings-meta.gen.js +3 -7
- package/dist/.pikku/queue/pikku-queue-workers-wirings-meta.gen.json +1 -0
- package/dist/.pikku/queue/pikku-queue-workers-wirings.gen.d.ts +1 -1
- package/dist/.pikku/queue/pikku-queue-workers-wirings.gen.js +1 -1
- package/dist/.pikku/rpc/pikku-remote-rpc-workers.gen.d.ts +6 -9
- package/dist/.pikku/rpc/pikku-remote-rpc-workers.gen.js +2 -2
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +2 -2
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js +1 -1
- package/dist/.pikku/scheduler/pikku-schedulers-wirings-meta.gen.js +3 -2
- package/dist/.pikku/scheduler/pikku-schedulers-wirings-meta.gen.json +1 -0
- package/dist/.pikku/scheduler/pikku-schedulers-wirings.gen.d.ts +1 -1
- package/dist/.pikku/scheduler/pikku-schedulers-wirings.gen.js +1 -1
- package/dist/.pikku/schemas/register.gen.js +15 -15
- package/dist/.pikku/schemas/schemas/PikkuCLIConfig.schema.json +1 -1
- package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +29 -25
- package/dist/.pikku/workflow/pikku-workflow-types.gen.js +22 -8
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +3 -2
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.json +1 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts +6 -2
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +6 -3
- package/dist/bin/pikku.js +5 -26
- package/dist/src/cli.wiring.js +4 -4
- package/dist/src/functions/commands/all.js +82 -42
- package/dist/src/functions/commands/bootstrap.js +22 -10
- package/dist/src/functions/commands/watch.js +6 -3
- package/dist/src/functions/runtimes/nextjs/pikku-command-nextjs.js +12 -7
- package/dist/src/functions/runtimes/nextjs/serialize-nextjs-backend-wrapper.d.ts +1 -1
- package/dist/src/functions/runtimes/nextjs/serialize-nextjs-backend-wrapper.js +42 -4
- package/dist/src/functions/runtimes/nextjs/serialize-nextjs-http-wrapper.d.ts +1 -1
- package/dist/src/functions/runtimes/nextjs/serialize-nextjs-http-wrapper.js +40 -2
- package/dist/src/functions/wirings/channels/pikku-channels.js +9 -2
- package/dist/src/functions/wirings/channels/serialize-channel-types.js +10 -11
- package/dist/src/functions/wirings/cli/pikku-command-cli-entry.js +4 -4
- package/dist/src/functions/wirings/cli/pikku-command-cli-types.js +1 -1
- package/dist/src/functions/wirings/cli/pikku-command-cli.js +9 -3
- package/dist/src/functions/wirings/cli/serialize-channel-cli.js +1 -1
- package/dist/src/functions/wirings/cli/serialize-cli-types.js +2 -2
- package/dist/src/functions/wirings/cli/serialize-local-cli-bootstrap.d.ts +1 -1
- package/dist/src/functions/wirings/cli/serialize-local-cli-bootstrap.js +4 -4
- package/dist/src/functions/wirings/functions/pikku-command-function-types-split.js +4 -4
- package/dist/src/functions/wirings/functions/pikku-command-functions.js +15 -5
- package/dist/src/functions/wirings/functions/pikku-command-services.d.ts +1 -1
- package/dist/src/functions/wirings/functions/pikku-command-services.js +23 -23
- package/dist/src/functions/wirings/functions/schemas.js +1 -1
- package/dist/src/functions/wirings/functions/serialize-function-types.d.ts +1 -1
- package/dist/src/functions/wirings/functions/serialize-function-types.js +50 -64
- package/dist/src/functions/wirings/http/openapi-spec-generator.js +4 -4
- package/dist/src/functions/wirings/http/pikku-http-routes.js +9 -2
- package/dist/src/functions/wirings/http/serialize-http-types.js +1 -1
- package/dist/src/functions/wirings/mcp/pikku-command-mcp.js +18 -4
- package/dist/src/functions/wirings/mcp/serialize-mcp-types.js +12 -12
- package/dist/src/functions/wirings/middleware/pikku-command-middleware.js +26 -2
- package/dist/src/functions/wirings/middleware/serialize-middleware-groups-meta.d.ts +5 -2
- package/dist/src/functions/wirings/middleware/serialize-middleware-groups-meta.js +5 -13
- package/dist/src/functions/wirings/queue/pikku-command-queue.js +9 -3
- package/dist/src/functions/wirings/queue/pikku-queue.js +9 -3
- package/dist/src/functions/wirings/queue/serialize-queue-meta.d.ts +2 -1
- package/dist/src/functions/wirings/queue/serialize-queue-meta.js +10 -1
- package/dist/src/functions/wirings/queue/serialize-queue-types.js +1 -1
- package/dist/src/functions/wirings/rpc/pikku-command-rpc.js +9 -2
- package/dist/src/functions/wirings/rpc/serialize-public-rpc.js +11 -4
- package/dist/src/functions/wirings/rpc/serialize-remote-rpc.js +1 -1
- package/dist/src/functions/wirings/rpc/serialize-rpc-wrapper.js +3 -3
- package/dist/src/functions/wirings/scheduler/pikku-command-scheduler.js +6 -3
- package/dist/src/functions/wirings/scheduler/serialize-scheduler-meta.d.ts +2 -1
- package/dist/src/functions/wirings/scheduler/serialize-scheduler-meta.js +11 -1
- package/dist/src/functions/wirings/scheduler/serialize-scheduler-types.js +1 -1
- package/dist/src/functions/wirings/services/pikku-command-service-metadata.d.ts +1 -0
- package/dist/src/functions/wirings/services/pikku-command-service-metadata.js +22 -0
- package/dist/src/functions/wirings/workflow/pikku-command-workflow-types.js +3 -1
- package/dist/src/functions/wirings/workflow/pikku-command-workflow.js +12 -8
- package/dist/src/functions/wirings/workflow/serialize-workflow-meta.d.ts +2 -1
- package/dist/src/functions/wirings/workflow/serialize-workflow-meta.js +11 -1
- package/dist/src/functions/wirings/workflow/serialize-workflow-types.d.ts +1 -1
- package/dist/src/functions/wirings/workflow/serialize-workflow-types.js +36 -31
- package/dist/src/functions/wirings/workflow/serialize-workflow-wirings.d.ts +8 -0
- package/dist/src/functions/wirings/workflow/serialize-workflow-wirings.js +30 -0
- package/dist/src/functions/wirings/workflow/serialize-workflow-workers.js +2 -2
- package/dist/src/middleware/log-command-info-and-time.d.ts +2 -2
- package/dist/src/middleware/log-command-info-and-time.js +1 -4
- package/dist/src/services/cli-logger-forwarder.service.js +1 -1
- package/dist/src/services.d.ts +2 -7
- package/dist/src/services.js +14 -12
- package/dist/src/utils/check-required-types.d.ts +2 -2
- package/dist/src/utils/check-required-types.js +2 -3
- package/dist/src/utils/pikku-cli-config.js +35 -2
- package/dist/src/utils/pikku-files-and-methods.d.ts +2 -2
- package/dist/src/utils/pikku-files-and-methods.js +4 -4
- package/dist/src/utils/schema-generator.d.ts +1 -1
- package/dist/src/utils/schema-generator.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +7 -8
- package/src/cli.wiring.ts +4 -4
- package/src/functions/commands/all.ts +94 -45
- package/src/functions/commands/bootstrap.ts +25 -10
- package/src/functions/commands/watch.ts +6 -3
- package/src/functions/runtimes/nextjs/pikku-command-nextjs.ts +26 -5
- package/src/functions/runtimes/nextjs/serialize-nextjs-backend-wrapper.ts +43 -4
- package/src/functions/runtimes/nextjs/serialize-nextjs-http-wrapper.ts +40 -1
- package/src/functions/wirings/channels/pikku-channels.ts +27 -3
- package/src/functions/wirings/channels/serialize-channel-types.ts +10 -11
- package/src/functions/wirings/cli/pikku-command-cli-entry.ts +4 -4
- package/src/functions/wirings/cli/pikku-command-cli-types.ts +1 -1
- package/src/functions/wirings/cli/pikku-command-cli.ts +26 -3
- package/src/functions/wirings/cli/serialize-channel-cli.ts +1 -1
- package/src/functions/wirings/cli/serialize-cli-types.ts +2 -2
- package/src/functions/wirings/cli/serialize-local-cli-bootstrap.ts +5 -5
- package/src/functions/wirings/functions/pikku-command-function-types-split.ts +6 -6
- package/src/functions/wirings/functions/pikku-command-functions.ts +39 -4
- package/src/functions/wirings/functions/pikku-command-services.ts +25 -25
- package/src/functions/wirings/functions/schemas.ts +2 -2
- package/src/functions/wirings/functions/serialize-function-types.ts +51 -65
- package/src/functions/wirings/http/openapi-spec-generator.ts +14 -5
- package/src/functions/wirings/http/pikku-http-routes.ts +28 -2
- package/src/functions/wirings/http/serialize-http-types.ts +1 -1
- package/src/functions/wirings/mcp/pikku-command-mcp.ts +30 -4
- package/src/functions/wirings/mcp/serialize-mcp-types.ts +12 -12
- package/src/functions/wirings/middleware/pikku-command-middleware.ts +35 -2
- package/src/functions/wirings/middleware/serialize-middleware-groups-meta.ts +4 -19
- package/src/functions/wirings/permissions/pikku-command-permissions.ts +2 -2
- package/src/functions/wirings/queue/pikku-command-queue.ts +27 -2
- package/src/functions/wirings/queue/pikku-queue.ts +27 -2
- package/src/functions/wirings/queue/serialize-queue-meta.ts +15 -1
- package/src/functions/wirings/queue/serialize-queue-types.ts +1 -1
- package/src/functions/wirings/rpc/pikku-command-rpc.ts +25 -2
- package/src/functions/wirings/rpc/serialize-public-rpc.ts +11 -4
- package/src/functions/wirings/rpc/serialize-remote-rpc.ts +1 -1
- package/src/functions/wirings/rpc/serialize-rpc-wrapper.ts +3 -3
- package/src/functions/wirings/scheduler/pikku-command-scheduler.ts +30 -4
- package/src/functions/wirings/scheduler/serialize-scheduler-meta.ts +20 -1
- package/src/functions/wirings/scheduler/serialize-scheduler-types.ts +1 -1
- package/src/functions/wirings/services/pikku-command-service-metadata.ts +25 -0
- package/src/functions/wirings/workflow/pikku-command-workflow-types.ts +8 -1
- package/src/functions/wirings/workflow/pikku-command-workflow.ts +36 -8
- package/src/functions/wirings/workflow/serialize-workflow-meta.ts +18 -1
- package/src/functions/wirings/workflow/serialize-workflow-types.ts +39 -31
- package/src/functions/wirings/workflow/serialize-workflow-wirings.ts +47 -0
- package/src/functions/wirings/workflow/serialize-workflow-workers.ts +2 -2
- package/src/middleware/log-command-info-and-time.ts +3 -6
- package/src/services/cli-logger-forwarder.service.ts +1 -1
- package/src/services.ts +15 -15
- package/src/utils/check-required-types.ts +4 -7
- package/src/utils/pikku-cli-config.ts +69 -2
- package/src/utils/pikku-files-and-methods.ts +10 -13
- package/src/utils/schema-generator.ts +2 -2
- package/types/application-types.d.ts +1 -1
- package/types/config.d.ts +12 -1
- package/.pikku/function/pikku-functions.gen.ts +0 -84
- package/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.ts +0 -47
- package/dist/.pikku/function/pikku-functions.gen.d.ts +0 -1
- package/dist/.pikku/function/pikku-functions.gen.js +0 -83
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.d.ts +0 -1
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +0 -47
- package/dist/.pikku/schemas/schemas/PikkuRemoteInternalRPCInput.schema.json +0 -1
|
@@ -0,0 +1,212 @@
|
|
|
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,211 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.11.
|
|
2
|
+
* This file was generated by @pikku/cli@0.11.2
|
|
3
3
|
*/
|
|
4
|
-
import { pikkuState } from '@pikku/core'
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
"pikkuFuncName": "pikkuSchemas",
|
|
8
|
-
"inputSchemaName": null,
|
|
9
|
-
"outputSchemaName": "PikkuSchemasOutput"
|
|
10
|
-
},
|
|
11
|
-
"pikkuFetch": {
|
|
12
|
-
"pikkuFuncName": "pikkuFetch",
|
|
13
|
-
"inputSchemaName": null,
|
|
14
|
-
"outputSchemaName": null
|
|
15
|
-
},
|
|
16
|
-
"pikkuWebSocketTyped": {
|
|
17
|
-
"pikkuFuncName": "pikkuWebSocketTyped",
|
|
18
|
-
"inputSchemaName": null,
|
|
19
|
-
"outputSchemaName": null
|
|
20
|
-
},
|
|
21
|
-
"pikkuRPCClient": {
|
|
22
|
-
"pikkuFuncName": "pikkuRPCClient",
|
|
23
|
-
"inputSchemaName": null,
|
|
24
|
-
"outputSchemaName": null
|
|
25
|
-
},
|
|
26
|
-
"pikkuQueueService": {
|
|
27
|
-
"pikkuFuncName": "pikkuQueueService",
|
|
28
|
-
"inputSchemaName": null,
|
|
29
|
-
"outputSchemaName": null
|
|
30
|
-
},
|
|
31
|
-
"pikkuOpenAPI": {
|
|
32
|
-
"pikkuFuncName": "pikkuOpenAPI",
|
|
33
|
-
"inputSchemaName": null,
|
|
34
|
-
"outputSchemaName": null
|
|
35
|
-
},
|
|
36
|
-
"pikkuNext": {
|
|
37
|
-
"pikkuFuncName": "pikkuNext",
|
|
38
|
-
"inputSchemaName": null,
|
|
39
|
-
"outputSchemaName": null
|
|
40
|
-
},
|
|
41
|
-
"all": {
|
|
42
|
-
"pikkuFuncName": "all",
|
|
43
|
-
"inputSchemaName": null,
|
|
44
|
-
"outputSchemaName": null
|
|
45
|
-
},
|
|
46
|
-
"bootstrap": {
|
|
47
|
-
"pikkuFuncName": "bootstrap",
|
|
48
|
-
"inputSchemaName": null,
|
|
49
|
-
"outputSchemaName": null
|
|
50
|
-
},
|
|
51
|
-
"watch": {
|
|
52
|
-
"pikkuFuncName": "watch",
|
|
53
|
-
"inputSchemaName": null,
|
|
54
|
-
"outputSchemaName": null
|
|
55
|
-
},
|
|
56
|
-
"pikkuChannels": {
|
|
57
|
-
"pikkuFuncName": "pikkuChannels",
|
|
58
|
-
"inputSchemaName": null,
|
|
59
|
-
"outputSchemaName": "PikkuChannelsOutput"
|
|
60
|
-
},
|
|
61
|
-
"pikkuChannelTypes": {
|
|
62
|
-
"pikkuFuncName": "pikkuChannelTypes",
|
|
63
|
-
"inputSchemaName": null,
|
|
64
|
-
"outputSchemaName": null
|
|
65
|
-
},
|
|
66
|
-
"pikkuChannelsMap": {
|
|
67
|
-
"pikkuFuncName": "pikkuChannelsMap",
|
|
68
|
-
"inputSchemaName": null,
|
|
69
|
-
"outputSchemaName": null
|
|
70
|
-
},
|
|
71
|
-
"pikkuCLIEntry": {
|
|
72
|
-
"pikkuFuncName": "pikkuCLIEntry",
|
|
73
|
-
"inputSchemaName": null,
|
|
74
|
-
"outputSchemaName": null
|
|
75
|
-
},
|
|
76
|
-
"pikkuCLITypes": {
|
|
77
|
-
"pikkuFuncName": "pikkuCLITypes",
|
|
78
|
-
"inputSchemaName": null,
|
|
79
|
-
"outputSchemaName": null
|
|
80
|
-
},
|
|
81
|
-
"pikkuCLI": {
|
|
82
|
-
"pikkuFuncName": "pikkuCLI",
|
|
83
|
-
"inputSchemaName": null,
|
|
84
|
-
"outputSchemaName": "PikkuCLIOutput"
|
|
85
|
-
},
|
|
86
|
-
"pikkuFunctionTypesSplit": {
|
|
87
|
-
"pikkuFuncName": "pikkuFunctionTypesSplit",
|
|
88
|
-
"inputSchemaName": null,
|
|
89
|
-
"outputSchemaName": null
|
|
90
|
-
},
|
|
91
|
-
"pikkuFunctionTypes": {
|
|
92
|
-
"pikkuFuncName": "pikkuFunctionTypes",
|
|
93
|
-
"inputSchemaName": null,
|
|
94
|
-
"outputSchemaName": null
|
|
95
|
-
},
|
|
96
|
-
"pikkuFunctions": {
|
|
97
|
-
"pikkuFuncName": "pikkuFunctions",
|
|
98
|
-
"inputSchemaName": null,
|
|
99
|
-
"outputSchemaName": "PikkuFunctionsOutput"
|
|
100
|
-
},
|
|
101
|
-
"pikkuServices": {
|
|
102
|
-
"pikkuFuncName": "pikkuServices",
|
|
103
|
-
"inputSchemaName": null,
|
|
104
|
-
"outputSchemaName": null
|
|
105
|
-
},
|
|
106
|
-
"pikkuHTTPMap": {
|
|
107
|
-
"pikkuFuncName": "pikkuHTTPMap",
|
|
108
|
-
"inputSchemaName": null,
|
|
109
|
-
"outputSchemaName": null
|
|
110
|
-
},
|
|
111
|
-
"pikkuHTTP": {
|
|
112
|
-
"pikkuFuncName": "pikkuHTTP",
|
|
113
|
-
"inputSchemaName": null,
|
|
114
|
-
"outputSchemaName": "PikkuHTTPOutput"
|
|
115
|
-
},
|
|
116
|
-
"pikkuHTTPTypes": {
|
|
117
|
-
"pikkuFuncName": "pikkuHTTPTypes",
|
|
118
|
-
"inputSchemaName": null,
|
|
119
|
-
"outputSchemaName": null
|
|
120
|
-
},
|
|
121
|
-
"pikkuMCPJSON": {
|
|
122
|
-
"pikkuFuncName": "pikkuMCPJSON",
|
|
123
|
-
"inputSchemaName": null,
|
|
124
|
-
"outputSchemaName": null
|
|
125
|
-
},
|
|
126
|
-
"pikkuMCPTypes": {
|
|
127
|
-
"pikkuFuncName": "pikkuMCPTypes",
|
|
128
|
-
"inputSchemaName": null,
|
|
129
|
-
"outputSchemaName": null
|
|
130
|
-
},
|
|
131
|
-
"pikkuMCP": {
|
|
132
|
-
"pikkuFuncName": "pikkuMCP",
|
|
133
|
-
"inputSchemaName": null,
|
|
134
|
-
"outputSchemaName": "PikkuMCPOutput"
|
|
135
|
-
},
|
|
136
|
-
"pikkuMiddleware": {
|
|
137
|
-
"pikkuFuncName": "pikkuMiddleware",
|
|
138
|
-
"inputSchemaName": null,
|
|
139
|
-
"outputSchemaName": "PikkuMiddlewareOutput"
|
|
140
|
-
},
|
|
141
|
-
"pikkuPermissions": {
|
|
142
|
-
"pikkuFuncName": "pikkuPermissions",
|
|
143
|
-
"inputSchemaName": null,
|
|
144
|
-
"outputSchemaName": "PikkuPermissionsOutput"
|
|
145
|
-
},
|
|
146
|
-
"pikkuQueueMap": {
|
|
147
|
-
"pikkuFuncName": "pikkuQueueMap",
|
|
148
|
-
"inputSchemaName": null,
|
|
149
|
-
"outputSchemaName": null
|
|
150
|
-
},
|
|
151
|
-
"pikkuQueueTypes": {
|
|
152
|
-
"pikkuFuncName": "pikkuQueueTypes",
|
|
153
|
-
"inputSchemaName": null,
|
|
154
|
-
"outputSchemaName": null
|
|
155
|
-
},
|
|
156
|
-
"pikkuQueue": {
|
|
157
|
-
"pikkuFuncName": "pikkuQueue",
|
|
158
|
-
"inputSchemaName": null,
|
|
159
|
-
"outputSchemaName": "PikkuQueueOutput"
|
|
160
|
-
},
|
|
161
|
-
"pikkuPublicRPC": {
|
|
162
|
-
"pikkuFuncName": "pikkuPublicRPC",
|
|
163
|
-
"inputSchemaName": null,
|
|
164
|
-
"outputSchemaName": "PikkuPublicRPCOutput"
|
|
165
|
-
},
|
|
166
|
-
"pikkuRemoteRPC": {
|
|
167
|
-
"pikkuFuncName": "pikkuRemoteRPC",
|
|
168
|
-
"inputSchemaName": null,
|
|
169
|
-
"outputSchemaName": "PikkuRemoteRPCOutput"
|
|
170
|
-
},
|
|
171
|
-
"pikkuRPCInternalMap": {
|
|
172
|
-
"pikkuFuncName": "pikkuRPCInternalMap",
|
|
173
|
-
"inputSchemaName": null,
|
|
174
|
-
"outputSchemaName": null
|
|
175
|
-
},
|
|
176
|
-
"pikkuRPCExposedMap": {
|
|
177
|
-
"pikkuFuncName": "pikkuRPCExposedMap",
|
|
178
|
-
"inputSchemaName": null,
|
|
179
|
-
"outputSchemaName": null
|
|
180
|
-
},
|
|
181
|
-
"pikkuRPC": {
|
|
182
|
-
"pikkuFuncName": "pikkuRPC",
|
|
183
|
-
"inputSchemaName": null,
|
|
184
|
-
"outputSchemaName": "PikkuRPCOutput"
|
|
185
|
-
},
|
|
186
|
-
"pikkuSchedulerTypes": {
|
|
187
|
-
"pikkuFuncName": "pikkuSchedulerTypes",
|
|
188
|
-
"inputSchemaName": null,
|
|
189
|
-
"outputSchemaName": null
|
|
190
|
-
},
|
|
191
|
-
"pikkuScheduler": {
|
|
192
|
-
"pikkuFuncName": "pikkuScheduler",
|
|
193
|
-
"inputSchemaName": null,
|
|
194
|
-
"outputSchemaName": "PikkuSchedulerOutput"
|
|
195
|
-
},
|
|
196
|
-
"pikkuWorkflowMap": {
|
|
197
|
-
"pikkuFuncName": "pikkuWorkflowMap",
|
|
198
|
-
"inputSchemaName": null,
|
|
199
|
-
"outputSchemaName": null
|
|
200
|
-
},
|
|
201
|
-
"pikkuWorkflowTypes": {
|
|
202
|
-
"pikkuFuncName": "pikkuWorkflowTypes",
|
|
203
|
-
"inputSchemaName": null,
|
|
204
|
-
"outputSchemaName": null
|
|
205
|
-
},
|
|
206
|
-
"pikkuWorkflow": {
|
|
207
|
-
"pikkuFuncName": "pikkuWorkflow",
|
|
208
|
-
"inputSchemaName": null,
|
|
209
|
-
"outputSchemaName": "PikkuWorkflowOutput"
|
|
210
|
-
}
|
|
211
|
-
})
|
|
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,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.2
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* HTTP-specific type definitions for tree-shaking optimization
|
|
@@ -17,7 +17,7 @@ import type { CoreHTTPFunctionWiring } from '@pikku/core/http'
|
|
|
17
17
|
* @template Out - Output type for the HTTP wiring
|
|
18
18
|
* @template Route - String literal type for the HTTP path (e.g., "/users/:id")
|
|
19
19
|
*/
|
|
20
|
-
type HTTPWiring<In, Out, Route extends string> = CoreHTTPFunctionWiring<In, Out, Route, PikkuFunction<In, Out>, PikkuFunctionSessionless<In, Out>, PikkuPermission<In>, PikkuMiddleware>
|
|
20
|
+
type HTTPWiring<In, Out, Route extends string> = CoreHTTPFunctionWiring<In, Out, Route, PikkuFunction<In, Out, 'rpc' | 'session'>, PikkuFunctionSessionless<In, Out, 'rpc' | 'session'>, PikkuPermission<In>, PikkuMiddleware>
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* Registers an HTTP wiring with the Pikku framework.
|
|
@@ -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.2
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* This provides the structure needed for typescript to be aware of routes and their return types
|
|
@@ -10,19 +10,19 @@
|
|
|
10
10
|
// Custom types are those that are defined directly within generics
|
|
11
11
|
// or are broken into simpler types
|
|
12
12
|
export type PikkuSchemasOutput = false | true
|
|
13
|
-
export type PikkuChannelsOutput = false | true
|
|
14
|
-
export type PikkuCLIOutput = false | true
|
|
15
13
|
export type PikkuFunctionsOutput = false | true
|
|
16
|
-
export type PikkuHTTPOutput = false | true
|
|
17
|
-
export type PikkuMCPOutput = false | true
|
|
18
14
|
export type PikkuMiddlewareOutput = false | true
|
|
19
15
|
export type PikkuPermissionsOutput = false | true
|
|
20
|
-
export type PikkuQueueOutput = false | true
|
|
21
|
-
export type PikkuPublicRPCOutput = false | true
|
|
22
|
-
export type PikkuRemoteRPCOutput = false | true
|
|
23
16
|
export type PikkuRPCOutput = false | true
|
|
17
|
+
export type PikkuPublicRPCOutput = false | true
|
|
18
|
+
export type PikkuHTTPOutput = false | true
|
|
24
19
|
export type PikkuSchedulerOutput = false | true
|
|
25
20
|
export type PikkuWorkflowOutput = false | true
|
|
21
|
+
export type PikkuRemoteRPCOutput = false | true
|
|
22
|
+
export type PikkuQueueOutput = false | true
|
|
23
|
+
export type PikkuChannelsOutput = false | true
|
|
24
|
+
export type PikkuMCPOutput = false | true
|
|
25
|
+
export type PikkuCLIOutput = false | true
|
|
26
26
|
|
|
27
27
|
// The '& {}' is a workaround for not directly refering to a type since it confuses typescript
|
|
28
28
|
|
|
@@ -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.2
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* MCP-specific type definitions for tree-shaking optimization
|
|
@@ -26,21 +26,21 @@ import type { PikkuFunctionConfig, PikkuFunctionSessionless } from '../function/
|
|
|
26
26
|
* @template In - Input type for the resource request
|
|
27
27
|
* @template URI - URI template string type for compile-time parameter validation
|
|
28
28
|
*/
|
|
29
|
-
type MCPResourceWiring<In, URI extends string> = CoreMCPResource<PikkuFunctionConfig<In, MCPResourceResponse>> & { uri: URI }
|
|
29
|
+
type MCPResourceWiring<In, URI extends string> = CoreMCPResource<PikkuFunctionConfig<In, MCPResourceResponse, 'rpc' | 'session' | 'mcp'>> & { uri: URI }
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
* Type definition for MCP tools that AI models can invoke.
|
|
33
33
|
*
|
|
34
34
|
* @template In - Input type for the tool invocation
|
|
35
35
|
*/
|
|
36
|
-
type MCPToolWiring<In> = CoreMCPTool<PikkuFunctionConfig<In, MCPToolResponse>>
|
|
36
|
+
type MCPToolWiring<In> = CoreMCPTool<PikkuFunctionConfig<In, MCPToolResponse, 'rpc' | 'session' | 'mcp'>>
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
39
|
* Type definition for MCP prompts that provide templates to AI models.
|
|
40
40
|
*
|
|
41
41
|
* @template In - Input type for the prompt parameters
|
|
42
42
|
*/
|
|
43
|
-
type MCPPromptWiring<In> = CoreMCPPrompt<PikkuFunctionConfig<In, MCPPromptResponse>>
|
|
43
|
+
type MCPPromptWiring<In> = CoreMCPPrompt<PikkuFunctionConfig<In, MCPPromptResponse, 'rpc' | 'session' | 'mcp'>>
|
|
44
44
|
|
|
45
45
|
/**
|
|
46
46
|
* Registers an MCP resource with the Pikku framework.
|
|
@@ -92,12 +92,12 @@ export const wireMCPPrompt = <In>(
|
|
|
92
92
|
*/
|
|
93
93
|
export const pikkuMCPPromptFunc = <In>(
|
|
94
94
|
func:
|
|
95
|
-
| PikkuFunctionSessionless<In, MCPPromptResponse>
|
|
95
|
+
| PikkuFunctionSessionless<In, MCPPromptResponse, 'mcp'>
|
|
96
96
|
| {
|
|
97
|
-
func: PikkuFunctionSessionless<In, MCPPromptResponse>
|
|
97
|
+
func: PikkuFunctionSessionless<In, MCPPromptResponse, 'mcp'>
|
|
98
98
|
name?: string
|
|
99
99
|
}
|
|
100
|
-
): PikkuFunctionConfig<In, MCPPromptResponse> => {
|
|
100
|
+
): PikkuFunctionConfig<In, MCPPromptResponse, 'mcp'> => {
|
|
101
101
|
return typeof func === 'function' ? { func } : func
|
|
102
102
|
}
|
|
103
103
|
|
|
@@ -111,12 +111,12 @@ export const pikkuMCPPromptFunc = <In>(
|
|
|
111
111
|
*/
|
|
112
112
|
export const pikkuMCPToolFunc = <In>(
|
|
113
113
|
func:
|
|
114
|
-
| PikkuFunctionSessionless<In, MCPToolResponse,
|
|
114
|
+
| PikkuFunctionSessionless<In, MCPToolResponse, 'mcp'>
|
|
115
115
|
| {
|
|
116
|
-
func: PikkuFunctionSessionless<In, MCPToolResponse,
|
|
116
|
+
func: PikkuFunctionSessionless<In, MCPToolResponse, 'mcp'>
|
|
117
117
|
name?: string
|
|
118
118
|
}
|
|
119
|
-
): PikkuFunctionConfig<In, MCPToolResponse> => {
|
|
119
|
+
): PikkuFunctionConfig<In, MCPToolResponse, 'mcp'> => {
|
|
120
120
|
return typeof func === 'function' ? { func } : func
|
|
121
121
|
}
|
|
122
122
|
|
|
@@ -130,11 +130,11 @@ export const pikkuMCPToolFunc = <In>(
|
|
|
130
130
|
*/
|
|
131
131
|
export const pikkuMCPResourceFunc = <In>(
|
|
132
132
|
func:
|
|
133
|
-
| PikkuFunctionSessionless<In, MCPResourceResponse,
|
|
133
|
+
| PikkuFunctionSessionless<In, MCPResourceResponse, 'mcp'>
|
|
134
134
|
| {
|
|
135
|
-
func: PikkuFunctionSessionless<In, MCPResourceResponse,
|
|
135
|
+
func: PikkuFunctionSessionless<In, MCPResourceResponse, 'mcp'>
|
|
136
136
|
name?: string
|
|
137
137
|
}
|
|
138
|
-
): PikkuFunctionConfig<In, MCPResourceResponse> => {
|
|
138
|
+
): PikkuFunctionConfig<In, MCPResourceResponse, 'mcp'> => {
|
|
139
139
|
return typeof func === 'function' ? { func } : func
|
|
140
140
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.11.
|
|
2
|
+
* This file was generated by @pikku/cli@0.11.2
|
|
3
3
|
*/
|
|
4
4
|
import { pikkuState } from '@pikku/core'
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
pikkuState('mcp', '
|
|
5
|
+
import type { MCPResourceMeta, MCPToolMeta, MCPPromptMeta } from '@pikku/core/mcp'
|
|
6
|
+
import metaData from './pikku-mcp-wirings-meta.gen.json' with { type: 'json' }
|
|
7
|
+
pikkuState('mcp', 'resourcesMeta', metaData.resourcesMeta as MCPResourceMeta)
|
|
8
|
+
pikkuState('mcp', 'toolsMeta', metaData.toolsMeta as MCPToolMeta)
|
|
9
|
+
pikkuState('mcp', 'promptsMeta', metaData.promptsMeta as MCPPromptMeta)
|
|
@@ -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.2
|
|
3
3
|
*/
|
|
4
4
|
import './cli/pikku-cli-wirings-meta.gen.js'
|
|
5
5
|
import './mcp/pikku-mcp-wirings-meta.gen.js'
|
|
@@ -8,14 +8,11 @@ import './queue/pikku-queue-workers-wirings-meta.gen.js'
|
|
|
8
8
|
import './workflow/pikku-workflow-wirings-meta.gen.js'
|
|
9
9
|
import './scheduler/pikku-schedulers-wirings-meta.gen.js'
|
|
10
10
|
import './http/pikku-http-wirings-meta.gen.js'
|
|
11
|
-
import './rpc/pikku-rpc-wirings-meta.internal.gen.js'
|
|
12
11
|
import './function/pikku-functions-meta.gen.js'
|
|
13
|
-
import './function/pikku-functions.gen.js'
|
|
14
12
|
import './schemas/register.gen.js'
|
|
15
13
|
import './http/pikku-http-wirings.gen.js'
|
|
16
14
|
import './scheduler/pikku-schedulers-wirings.gen.js'
|
|
17
15
|
import './workflow/pikku-workflow-wirings.gen.js'
|
|
18
|
-
import './rpc/pikku-remote-rpc-workers.gen.js'
|
|
19
16
|
import './queue/pikku-queue-workers-wirings.gen.js'
|
|
20
17
|
import './channel/pikku-channels.gen.js'
|
|
21
18
|
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.2
|
|
3
3
|
*/
|
|
4
4
|
import type { SingletonServices } from '../types/application-types.d.js'
|
|
5
5
|
import type { Services } from '../types/application-types.d.js'
|
|
@@ -17,13 +17,11 @@ export const requiredSingletonServices = {
|
|
|
17
17
|
'workflowService': false,
|
|
18
18
|
} as const
|
|
19
19
|
|
|
20
|
-
//
|
|
21
|
-
export const
|
|
22
|
-
'workflow': false,
|
|
23
|
-
'workflowStep': false,
|
|
20
|
+
// Wire services map: true if required, false if available but unused
|
|
21
|
+
export const requiredWireServices = {
|
|
24
22
|
} as const
|
|
25
23
|
|
|
26
24
|
// Type exports
|
|
27
25
|
export type RequiredSingletonServices = Pick<SingletonServices, 'config' | 'getInspectorState' | 'logger' | 'schema' | 'variables'> & Partial<Omit<SingletonServices, 'config' | 'getInspectorState' | 'logger' | 'schema' | 'variables'>>
|
|
28
26
|
|
|
29
|
-
export type
|
|
27
|
+
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.2
|
|
3
3
|
*/
|
|
4
4
|
import { CorePikkuWebsocket, CorePikkuRouteHandler } from '@pikku/websocket'
|
|
5
5
|
import { ChannelDefaultHandlerOf, ChannelWiringHandlerOf, ChannelsMap } from './channel/pikku-channels-map.gen.d.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.11.
|
|
2
|
+
* This file was generated by @pikku/cli@0.11.2
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* Queue-specific type definitions for tree-shaking optimization
|
|
@@ -14,7 +14,7 @@ import type { PikkuFunctionConfig } from '../function/pikku-function-types.gen.j
|
|
|
14
14
|
* @template In - Input type for the queue job
|
|
15
15
|
* @template Out - Output type for the queue job
|
|
16
16
|
*/
|
|
17
|
-
type QueueWiring<In, Out> = CoreQueueWorker<PikkuFunctionConfig<In, Out>>
|
|
17
|
+
type QueueWiring<In, Out> = CoreQueueWorker<PikkuFunctionConfig<In, Out, 'session' | 'rpc'>>
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* Registers a queue worker with the Pikku framework.
|