@pikku/cli 0.10.1 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.pikku/channel/pikku-channel-types.gen.ts +4 -3
- package/.pikku/channel/pikku-channels-map.gen.d.ts +5 -2
- package/.pikku/channel/pikku-channels-meta.gen.ts +1 -1
- package/.pikku/channel/pikku-channels.gen.ts +1 -1
- package/.pikku/cli/pikku-cli-types.gen.ts +23 -1
- package/.pikku/cli/pikku-cli-wirings-meta.gen.ts +8 -116
- package/.pikku/cli/pikku-cli-wirings.gen.ts +2 -3
- package/.pikku/function/pikku-function-types.gen.ts +1 -1
- package/.pikku/function/pikku-functions-meta.gen.ts +265 -138
- package/.pikku/function/pikku-functions-meta.min.gen.ts +62 -32
- package/.pikku/function/pikku-functions.gen.ts +9 -1
- package/.pikku/http/pikku-http-types.gen.ts +1 -1
- package/.pikku/http/pikku-http-wirings-map.gen.d.ts +5 -2
- 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 +1 -1
- package/.pikku/mcp/pikku-mcp-wirings-meta.gen.ts +1 -1
- package/.pikku/mcp/pikku-mcp-wirings.gen.ts +1 -1
- package/.pikku/pikku-bootstrap.gen.ts +4 -1
- package/.pikku/pikku-services.gen.ts +21 -12
- package/.pikku/pikku-types.gen.ts +1 -1
- package/.pikku/pikku-websocket.gen.ts +15 -1
- package/.pikku/queue/pikku-queue-types.gen.ts +1 -1
- package/.pikku/queue/pikku-queue-workers-wirings-map.gen.d.ts +5 -2
- package/.pikku/queue/pikku-queue-workers-wirings-meta.gen.ts +7 -2
- package/.pikku/queue/pikku-queue-workers-wirings.gen.ts +1 -1
- package/.pikku/rpc/pikku-remote-rpc-workers.gen.ts +27 -0
- package/.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts +13 -3
- package/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +26 -10
- package/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.ts +15 -9
- package/.pikku/scheduler/pikku-scheduler-types.gen.ts +1 -1
- package/.pikku/scheduler/pikku-schedulers-wirings-meta.gen.ts +1 -1
- package/.pikku/scheduler/pikku-schedulers-wirings.gen.ts +1 -1
- package/.pikku/schemas/register.gen.ts +17 -5
- package/.pikku/schemas/schemas/PikkuCLIConfig.schema.json +1 -1
- package/.pikku/schemas/schemas/PikkuChannelsOutput.schema.json +1 -1
- package/.pikku/schemas/schemas/PikkuPublicRPCOutput.schema.json +1 -0
- package/.pikku/schemas/schemas/PikkuRemoteRPCOutput.schema.json +1 -0
- package/.pikku/schemas/schemas/PikkuSchemasOutput.schema.json +1 -1
- package/.pikku/schemas/schemas/PikkuWorkflowOutput.schema.json +1 -0
- package/.pikku/workflow/pikku-workflow-map.gen.d.ts +62 -0
- package/.pikku/workflow/pikku-workflow-types.gen.ts +92 -0
- package/.pikku/workflow/pikku-workflow-wirings-meta.gen.ts +5 -0
- package/.pikku/workflow/pikku-workflow-wirings.gen.ts +4 -0
- package/CHANGELOG.md +57 -0
- package/bin/pikku.ts +30 -21
- package/cli.schema.json +1 -1
- package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +4 -3
- 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-types.gen.d.ts +18 -1
- package/dist/.pikku/cli/pikku-cli-types.gen.js +20 -1
- package/dist/.pikku/cli/pikku-cli-wirings-meta.gen.js +8 -116
- package/dist/.pikku/cli/pikku-cli-wirings.gen.d.ts +1 -2
- package/dist/.pikku/cli/pikku-cli-wirings.gen.js +1 -2
- package/dist/.pikku/function/pikku-function-types.gen.d.ts +1 -1
- package/dist/.pikku/function/pikku-function-types.gen.js +1 -1
- package/dist/.pikku/function/pikku-functions-meta.gen.js +265 -138
- package/dist/.pikku/function/pikku-functions-meta.min.gen.js +62 -32
- package/dist/.pikku/function/pikku-functions.gen.js +9 -1
- package/dist/.pikku/http/pikku-http-types.gen.d.ts +1 -1
- 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 +1 -1
- package/dist/.pikku/mcp/pikku-mcp-types.gen.js +1 -1
- package/dist/.pikku/mcp/pikku-mcp-wirings-meta.gen.js +1 -1
- 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 +4 -1
- package/dist/.pikku/pikku-bootstrap.gen.js +4 -1
- package/dist/.pikku/pikku-services.gen.d.ts +15 -6
- package/dist/.pikku/pikku-services.gen.js +14 -2
- 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 +15 -1
- package/dist/.pikku/pikku-websocket.gen.js +15 -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 +7 -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 +17 -0
- package/dist/.pikku/rpc/pikku-remote-rpc-workers.gen.js +22 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +15 -9
- 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 +1 -1
- 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 +9 -3
- package/dist/.pikku/schemas/schemas/PikkuCLIConfig.schema.json +1 -1
- package/dist/.pikku/schemas/schemas/PikkuChannelsOutput.schema.json +1 -1
- package/dist/.pikku/schemas/schemas/PikkuPublicRPCOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PikkuRemoteInternalRPCInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PikkuRemoteRPCOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PikkuSchemasOutput.schema.json +1 -1
- package/dist/.pikku/schemas/schemas/PikkuWorkflowOutput.schema.json +1 -0
- package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +58 -0
- package/dist/.pikku/workflow/pikku-workflow-types.gen.js +28 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +5 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts +4 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +5 -0
- package/dist/bin/pikku.js +24 -19
- package/dist/src/cli.wiring.js +107 -99
- package/dist/src/functions/commands/all.js +51 -2
- package/dist/src/functions/commands/bootstrap.d.ts +1 -0
- package/dist/src/functions/commands/bootstrap.js +24 -0
- package/dist/src/functions/runtimes/nextjs/serialize-nextjs-backend-wrapper.js +46 -2
- package/dist/src/functions/wirings/channels/serialize-channel-types.js +3 -2
- package/dist/src/functions/wirings/channels/serialize-websocket-wrapper.js +14 -0
- package/dist/src/functions/wirings/cli/pikku-command-cli-entry.js +4 -4
- package/dist/src/functions/wirings/cli/serialize-channel-cli-client.js +20 -7
- package/dist/src/functions/wirings/cli/serialize-channel-cli.js +32 -7
- package/dist/src/functions/wirings/cli/serialize-cli-types.js +22 -0
- package/dist/src/functions/wirings/functions/pikku-command-services.d.ts +1 -1
- package/dist/src/functions/wirings/functions/pikku-command-services.js +54 -26
- package/dist/src/functions/wirings/functions/schemas.js +2 -2
- package/dist/src/functions/wirings/http/pikku-command-openapi.js +1 -1
- package/dist/src/functions/wirings/middleware/pikku-command-middleware.js +3 -10
- package/dist/src/functions/wirings/queue/pikku-queue.js +9 -1
- package/dist/src/functions/wirings/queue/serialize-queue-map.d.ts +2 -2
- package/dist/src/functions/wirings/queue/serialize-queue-meta.d.ts +2 -2
- package/dist/src/functions/wirings/rpc/pikku-command-public-rpc.d.ts +1 -0
- package/dist/src/functions/wirings/rpc/pikku-command-public-rpc.js +23 -0
- package/dist/src/functions/wirings/rpc/pikku-command-remote-rpc.d.ts +1 -0
- package/dist/src/functions/wirings/rpc/pikku-command-remote-rpc.js +23 -0
- package/dist/src/functions/wirings/rpc/serialize-public-rpc.d.ts +4 -0
- package/dist/src/functions/wirings/rpc/serialize-public-rpc.js +30 -0
- package/dist/src/functions/wirings/rpc/serialize-remote-rpc.d.ts +4 -0
- package/dist/src/functions/wirings/rpc/serialize-remote-rpc.js +30 -0
- package/dist/src/functions/wirings/rpc/serialize-rpc-wrapper.js +2 -2
- package/dist/src/functions/wirings/rpc/serialize-typed-rpc-map.js +27 -3
- package/dist/src/functions/wirings/workflow/pikku-command-workflow-map.d.ts +1 -0
- package/dist/src/functions/wirings/workflow/pikku-command-workflow-map.js +12 -0
- package/dist/src/functions/wirings/workflow/pikku-command-workflow-types.d.ts +1 -0
- package/dist/src/functions/wirings/workflow/pikku-command-workflow-types.js +11 -0
- package/dist/src/functions/wirings/workflow/pikku-command-workflow.d.ts +1 -0
- package/dist/src/functions/wirings/workflow/pikku-command-workflow.js +55 -0
- package/dist/src/functions/wirings/workflow/serialize-workflow-map.d.ts +4 -0
- package/dist/src/functions/wirings/workflow/serialize-workflow-map.js +79 -0
- package/dist/src/functions/wirings/workflow/serialize-workflow-meta.d.ts +2 -0
- package/dist/src/functions/wirings/workflow/serialize-workflow-meta.js +10 -0
- package/dist/src/functions/wirings/workflow/serialize-workflow-types.d.ts +4 -0
- package/dist/src/functions/wirings/workflow/serialize-workflow-types.js +95 -0
- package/dist/src/functions/wirings/workflow/serialize-workflow-workers.d.ts +4 -0
- package/dist/src/functions/wirings/workflow/serialize-workflow-workers.js +60 -0
- package/dist/src/middleware/log-command-info-and-time.d.ts +1 -1
- package/dist/src/middleware/log-command-info-and-time.js +8 -5
- package/dist/src/services/cli-logger-forwarder.service.js +1 -1
- package/dist/src/services/cli-logger.service.d.ts +7 -2
- package/dist/src/services/cli-logger.service.js +17 -5
- package/dist/src/services.js +77 -12
- package/dist/src/utils/command-summary.d.ts +44 -0
- package/dist/src/utils/command-summary.js +74 -0
- package/dist/src/utils/file-writer.js +2 -2
- package/dist/src/utils/pikku-cli-config.js +48 -0
- package/dist/src/utils/schema-generator.d.ts +2 -2
- package/dist/src/utils/schema-generator.js +31 -10
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -4
- package/pikku.config.json +5 -2
- package/src/cli.wiring.ts +106 -101
- package/src/functions/commands/all.ts +66 -2
- package/src/functions/commands/bootstrap.ts +28 -0
- package/src/functions/runtimes/nextjs/serialize-nextjs-backend-wrapper.ts +46 -2
- package/src/functions/wirings/channels/serialize-channel-types.ts +3 -2
- package/src/functions/wirings/channels/serialize-websocket-wrapper.ts +14 -0
- package/src/functions/wirings/cli/pikku-command-cli-entry.ts +4 -4
- package/src/functions/wirings/cli/serialize-channel-cli-client.ts +20 -7
- package/src/functions/wirings/cli/serialize-channel-cli.ts +40 -8
- package/src/functions/wirings/cli/serialize-cli-types.ts +22 -0
- package/src/functions/wirings/functions/pikku-command-services.ts +57 -28
- package/src/functions/wirings/functions/schemas.ts +4 -3
- package/src/functions/wirings/http/pikku-command-openapi.ts +2 -1
- package/src/functions/wirings/middleware/pikku-command-middleware.ts +11 -22
- package/src/functions/wirings/queue/pikku-queue.ts +10 -1
- package/src/functions/wirings/queue/serialize-queue-map.ts +3 -3
- package/src/functions/wirings/queue/serialize-queue-meta.ts +2 -2
- package/src/functions/wirings/rpc/pikku-command-public-rpc.ts +32 -0
- package/src/functions/wirings/rpc/pikku-command-remote-rpc.ts +35 -0
- package/src/functions/wirings/rpc/serialize-public-rpc.ts +30 -0
- package/src/functions/wirings/rpc/serialize-remote-rpc.ts +30 -0
- package/src/functions/wirings/rpc/serialize-rpc-wrapper.ts +2 -2
- package/src/functions/wirings/rpc/serialize-typed-rpc-map.ts +26 -3
- package/src/functions/wirings/workflow/pikku-command-workflow-map.ts +24 -0
- package/src/functions/wirings/workflow/pikku-command-workflow-types.ts +22 -0
- package/src/functions/wirings/workflow/pikku-command-workflow.ts +123 -0
- package/src/functions/wirings/workflow/serialize-workflow-map.ts +123 -0
- package/src/functions/wirings/workflow/serialize-workflow-meta.ts +16 -0
- package/src/functions/wirings/workflow/serialize-workflow-types.ts +95 -0
- package/src/functions/wirings/workflow/serialize-workflow-workers.ts +60 -0
- package/src/middleware/log-command-info-and-time.ts +8 -5
- package/src/services/cli-logger-forwarder.service.ts +1 -1
- package/src/services/cli-logger.service.ts +21 -6
- package/src/services.ts +86 -11
- package/src/utils/command-summary.ts +103 -0
- package/src/utils/file-writer.ts +2 -2
- package/src/utils/pikku-cli-config.ts +68 -0
- package/src/utils/schema-generator.ts +30 -11
- package/types/application-types.d.ts +5 -1
- package/types/config.d.ts +61 -6
- package/.pikku/cli/pikku-cli-channel.gen.ts +0 -34
- package/.pikku/cli/pikku-cli-client.gen.ts +0 -43
- package/.pikku/cli/pikku-cli.gen.ts +0 -41
- package/dist/.pikku/cli/pikku-cli-channel.gen.js +0 -33
- package/dist/.pikku/cli/pikku-cli-client.gen.d.ts +0 -10
- package/dist/.pikku/cli/pikku-cli-client.gen.js +0 -34
- package/dist/.pikku/cli/pikku-cli.gen.d.ts +0 -10
- package/dist/.pikku/cli/pikku-cli.gen.js +0 -38
- /package/dist/.pikku/{cli/pikku-cli-channel.gen.d.ts → workflow/pikku-workflow-wirings-meta.gen.d.ts} +0 -0
|
@@ -1,35 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.
|
|
2
|
+
* This file was generated by @pikku/cli@0.11.0
|
|
3
3
|
*/
|
|
4
4
|
import { pikkuState } from '@pikku/core';
|
|
5
5
|
pikkuState('function', 'meta', {
|
|
6
|
-
"
|
|
7
|
-
"pikkuFuncName": "
|
|
8
|
-
"inputSchemaName": null,
|
|
9
|
-
"outputSchemaName": "PikkuSchemasOutput"
|
|
10
|
-
},
|
|
11
|
-
"pikkuFetch": {
|
|
12
|
-
"pikkuFuncName": "pikkuFetch",
|
|
13
|
-
"inputSchemaName": null,
|
|
14
|
-
"outputSchemaName": null
|
|
15
|
-
},
|
|
16
|
-
"pikkuWebSocketTyped": {
|
|
17
|
-
"pikkuFuncName": "pikkuWebSocketTyped",
|
|
6
|
+
"all": {
|
|
7
|
+
"pikkuFuncName": "all",
|
|
18
8
|
"inputSchemaName": null,
|
|
19
9
|
"outputSchemaName": null
|
|
20
10
|
},
|
|
21
|
-
"
|
|
22
|
-
"pikkuFuncName": "
|
|
11
|
+
"bootstrap": {
|
|
12
|
+
"pikkuFuncName": "bootstrap",
|
|
23
13
|
"inputSchemaName": null,
|
|
24
14
|
"outputSchemaName": null
|
|
25
15
|
},
|
|
26
|
-
"
|
|
27
|
-
"pikkuFuncName": "
|
|
28
|
-
"inputSchemaName": null,
|
|
29
|
-
"outputSchemaName": null
|
|
30
|
-
},
|
|
31
|
-
"pikkuOpenAPI": {
|
|
32
|
-
"pikkuFuncName": "pikkuOpenAPI",
|
|
16
|
+
"watch": {
|
|
17
|
+
"pikkuFuncName": "watch",
|
|
33
18
|
"inputSchemaName": null,
|
|
34
19
|
"outputSchemaName": null
|
|
35
20
|
},
|
|
@@ -38,16 +23,6 @@ pikkuState('function', 'meta', {
|
|
|
38
23
|
"inputSchemaName": null,
|
|
39
24
|
"outputSchemaName": null
|
|
40
25
|
},
|
|
41
|
-
"all": {
|
|
42
|
-
"pikkuFuncName": "all",
|
|
43
|
-
"inputSchemaName": null,
|
|
44
|
-
"outputSchemaName": null
|
|
45
|
-
},
|
|
46
|
-
"watch": {
|
|
47
|
-
"pikkuFuncName": "watch",
|
|
48
|
-
"inputSchemaName": null,
|
|
49
|
-
"outputSchemaName": null
|
|
50
|
-
},
|
|
51
26
|
"pikkuChannels": {
|
|
52
27
|
"pikkuFuncName": "pikkuChannels",
|
|
53
28
|
"inputSchemaName": null,
|
|
@@ -63,6 +38,11 @@ pikkuState('function', 'meta', {
|
|
|
63
38
|
"inputSchemaName": null,
|
|
64
39
|
"outputSchemaName": null
|
|
65
40
|
},
|
|
41
|
+
"pikkuWebSocketTyped": {
|
|
42
|
+
"pikkuFuncName": "pikkuWebSocketTyped",
|
|
43
|
+
"inputSchemaName": null,
|
|
44
|
+
"outputSchemaName": null
|
|
45
|
+
},
|
|
66
46
|
"pikkuCLIEntry": {
|
|
67
47
|
"pikkuFuncName": "pikkuCLIEntry",
|
|
68
48
|
"inputSchemaName": null,
|
|
@@ -78,6 +58,11 @@ pikkuState('function', 'meta', {
|
|
|
78
58
|
"inputSchemaName": null,
|
|
79
59
|
"outputSchemaName": "PikkuCLIOutput"
|
|
80
60
|
},
|
|
61
|
+
"pikkuFetch": {
|
|
62
|
+
"pikkuFuncName": "pikkuFetch",
|
|
63
|
+
"inputSchemaName": null,
|
|
64
|
+
"outputSchemaName": null
|
|
65
|
+
},
|
|
81
66
|
"pikkuFunctionTypesSplit": {
|
|
82
67
|
"pikkuFuncName": "pikkuFunctionTypesSplit",
|
|
83
68
|
"inputSchemaName": null,
|
|
@@ -98,6 +83,11 @@ pikkuState('function', 'meta', {
|
|
|
98
83
|
"inputSchemaName": null,
|
|
99
84
|
"outputSchemaName": null
|
|
100
85
|
},
|
|
86
|
+
"pikkuSchemas": {
|
|
87
|
+
"pikkuFuncName": "pikkuSchemas",
|
|
88
|
+
"inputSchemaName": null,
|
|
89
|
+
"outputSchemaName": "PikkuSchemasOutput"
|
|
90
|
+
},
|
|
101
91
|
"pikkuHTTPMap": {
|
|
102
92
|
"pikkuFuncName": "pikkuHTTPMap",
|
|
103
93
|
"inputSchemaName": null,
|
|
@@ -113,6 +103,11 @@ pikkuState('function', 'meta', {
|
|
|
113
103
|
"inputSchemaName": null,
|
|
114
104
|
"outputSchemaName": null
|
|
115
105
|
},
|
|
106
|
+
"pikkuOpenAPI": {
|
|
107
|
+
"pikkuFuncName": "pikkuOpenAPI",
|
|
108
|
+
"inputSchemaName": null,
|
|
109
|
+
"outputSchemaName": null
|
|
110
|
+
},
|
|
116
111
|
"pikkuMCPJSON": {
|
|
117
112
|
"pikkuFuncName": "pikkuMCPJSON",
|
|
118
113
|
"inputSchemaName": null,
|
|
@@ -143,6 +138,11 @@ pikkuState('function', 'meta', {
|
|
|
143
138
|
"inputSchemaName": null,
|
|
144
139
|
"outputSchemaName": null
|
|
145
140
|
},
|
|
141
|
+
"pikkuQueueService": {
|
|
142
|
+
"pikkuFuncName": "pikkuQueueService",
|
|
143
|
+
"inputSchemaName": null,
|
|
144
|
+
"outputSchemaName": null
|
|
145
|
+
},
|
|
146
146
|
"pikkuQueueTypes": {
|
|
147
147
|
"pikkuFuncName": "pikkuQueueTypes",
|
|
148
148
|
"inputSchemaName": null,
|
|
@@ -153,6 +153,21 @@ pikkuState('function', 'meta', {
|
|
|
153
153
|
"inputSchemaName": null,
|
|
154
154
|
"outputSchemaName": "PikkuQueueOutput"
|
|
155
155
|
},
|
|
156
|
+
"pikkuPublicRPC": {
|
|
157
|
+
"pikkuFuncName": "pikkuPublicRPC",
|
|
158
|
+
"inputSchemaName": null,
|
|
159
|
+
"outputSchemaName": "PikkuPublicRPCOutput"
|
|
160
|
+
},
|
|
161
|
+
"pikkuRemoteRPC": {
|
|
162
|
+
"pikkuFuncName": "pikkuRemoteRPC",
|
|
163
|
+
"inputSchemaName": null,
|
|
164
|
+
"outputSchemaName": "PikkuRemoteRPCOutput"
|
|
165
|
+
},
|
|
166
|
+
"pikkuRPCClient": {
|
|
167
|
+
"pikkuFuncName": "pikkuRPCClient",
|
|
168
|
+
"inputSchemaName": null,
|
|
169
|
+
"outputSchemaName": null
|
|
170
|
+
},
|
|
156
171
|
"pikkuRPCInternalMap": {
|
|
157
172
|
"pikkuFuncName": "pikkuRPCInternalMap",
|
|
158
173
|
"inputSchemaName": null,
|
|
@@ -177,5 +192,20 @@ pikkuState('function', 'meta', {
|
|
|
177
192
|
"pikkuFuncName": "pikkuScheduler",
|
|
178
193
|
"inputSchemaName": null,
|
|
179
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"
|
|
180
210
|
}
|
|
181
211
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.
|
|
2
|
+
* This file was generated by @pikku/cli@0.11.0
|
|
3
3
|
*/
|
|
4
4
|
/* Import and register functions used by RPCs */
|
|
5
5
|
import { addFunction } from '@pikku/core';
|
|
@@ -28,6 +28,7 @@ import { pikkuQueue } from '../../src/functions/wirings/queue/pikku-queue.js';
|
|
|
28
28
|
import { pikkuQueueMap } from '../../src/functions/wirings/queue/pikku-queue-map.js';
|
|
29
29
|
import { pikkuQueueService } from '../../src/functions/wirings/queue/pikku-command-queue-service.js';
|
|
30
30
|
import { pikkuQueueTypes } from '../../src/functions/wirings/queue/pikku-command-queue-types.js';
|
|
31
|
+
import { pikkuRemoteRPC } from '../../src/functions/wirings/rpc/pikku-command-remote-rpc.js';
|
|
31
32
|
import { pikkuRPC } from '../../src/functions/wirings/rpc/pikku-command-rpc.js';
|
|
32
33
|
import { pikkuRPCClient } from '../../src/functions/wirings/rpc/pikku-command-rpc-client.js';
|
|
33
34
|
import { pikkuRPCExposedMap } from '../../src/functions/wirings/rpc/pikku-command-rpc-map.js';
|
|
@@ -37,6 +38,9 @@ import { pikkuSchedulerTypes } from '../../src/functions/wirings/scheduler/pikku
|
|
|
37
38
|
import { pikkuSchemas } from '../../src/functions/wirings/functions/schemas.js';
|
|
38
39
|
import { pikkuServices } from '../../src/functions/wirings/functions/pikku-command-services.js';
|
|
39
40
|
import { pikkuWebSocketTyped } from '../../src/functions/wirings/channels/pikku-command-websocket-typed.js';
|
|
41
|
+
import { pikkuWorkflow } from '../../src/functions/wirings/workflow/pikku-command-workflow.js';
|
|
42
|
+
import { pikkuWorkflowMap } from '../../src/functions/wirings/workflow/pikku-command-workflow-map.js';
|
|
43
|
+
import { pikkuWorkflowTypes } from '../../src/functions/wirings/workflow/pikku-command-workflow-types.js';
|
|
40
44
|
import { watch } from '../../src/functions/commands/watch.js';
|
|
41
45
|
addFunction('all', all);
|
|
42
46
|
addFunction('pikkuChannels', pikkuChannels);
|
|
@@ -63,6 +67,7 @@ addFunction('pikkuQueue', pikkuQueue);
|
|
|
63
67
|
addFunction('pikkuQueueMap', pikkuQueueMap);
|
|
64
68
|
addFunction('pikkuQueueService', pikkuQueueService);
|
|
65
69
|
addFunction('pikkuQueueTypes', pikkuQueueTypes);
|
|
70
|
+
addFunction('pikkuRemoteRPC', pikkuRemoteRPC);
|
|
66
71
|
addFunction('pikkuRPC', pikkuRPC);
|
|
67
72
|
addFunction('pikkuRPCClient', pikkuRPCClient);
|
|
68
73
|
addFunction('pikkuRPCExposedMap', pikkuRPCExposedMap);
|
|
@@ -72,4 +77,7 @@ addFunction('pikkuSchedulerTypes', pikkuSchedulerTypes);
|
|
|
72
77
|
addFunction('pikkuSchemas', pikkuSchemas);
|
|
73
78
|
addFunction('pikkuServices', pikkuServices);
|
|
74
79
|
addFunction('pikkuWebSocketTyped', pikkuWebSocketTyped);
|
|
80
|
+
addFunction('pikkuWorkflow', pikkuWorkflow);
|
|
81
|
+
addFunction('pikkuWorkflowMap', pikkuWorkflowMap);
|
|
82
|
+
addFunction('pikkuWorkflowTypes', pikkuWorkflowTypes);
|
|
75
83
|
addFunction('watch', watch);
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.
|
|
2
|
+
* This file was generated by @pikku/cli@0.11.0
|
|
3
3
|
*/
|
|
4
4
|
import './cli/pikku-cli-wirings-meta.gen.js';
|
|
5
5
|
import './mcp/pikku-mcp-wirings-meta.gen.js';
|
|
6
6
|
import './channel/pikku-channels-meta.gen.js';
|
|
7
7
|
import './queue/pikku-queue-workers-wirings-meta.gen.js';
|
|
8
|
+
import './workflow/pikku-workflow-wirings-meta.gen.js';
|
|
8
9
|
import './scheduler/pikku-schedulers-wirings-meta.gen.js';
|
|
9
10
|
import './http/pikku-http-wirings-meta.gen.js';
|
|
10
11
|
import './rpc/pikku-rpc-wirings-meta.internal.gen.js';
|
|
@@ -13,6 +14,8 @@ import './function/pikku-functions.gen.js';
|
|
|
13
14
|
import './schemas/register.gen.js';
|
|
14
15
|
import './http/pikku-http-wirings.gen.js';
|
|
15
16
|
import './scheduler/pikku-schedulers-wirings.gen.js';
|
|
17
|
+
import './workflow/pikku-workflow-wirings.gen.js';
|
|
18
|
+
import './rpc/pikku-remote-rpc-workers.gen.js';
|
|
16
19
|
import './queue/pikku-queue-workers-wirings.gen.js';
|
|
17
20
|
import './channel/pikku-channels.gen.js';
|
|
18
21
|
import './mcp/pikku-mcp-wirings.gen.js';
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.
|
|
2
|
+
* This file was generated by @pikku/cli@0.11.0
|
|
3
3
|
*/
|
|
4
4
|
import './cli/pikku-cli-wirings-meta.gen.js';
|
|
5
5
|
import './mcp/pikku-mcp-wirings-meta.gen.js';
|
|
6
6
|
import './channel/pikku-channels-meta.gen.js';
|
|
7
7
|
import './queue/pikku-queue-workers-wirings-meta.gen.js';
|
|
8
|
+
import './workflow/pikku-workflow-wirings-meta.gen.js';
|
|
8
9
|
import './scheduler/pikku-schedulers-wirings-meta.gen.js';
|
|
9
10
|
import './http/pikku-http-wirings-meta.gen.js';
|
|
10
11
|
import './rpc/pikku-rpc-wirings-meta.internal.gen.js';
|
|
@@ -13,6 +14,8 @@ import './function/pikku-functions.gen.js';
|
|
|
13
14
|
import './schemas/register.gen.js';
|
|
14
15
|
import './http/pikku-http-wirings.gen.js';
|
|
15
16
|
import './scheduler/pikku-schedulers-wirings.gen.js';
|
|
17
|
+
import './workflow/pikku-workflow-wirings.gen.js';
|
|
18
|
+
import './rpc/pikku-remote-rpc-workers.gen.js';
|
|
16
19
|
import './queue/pikku-queue-workers-wirings.gen.js';
|
|
17
20
|
import './channel/pikku-channels.gen.js';
|
|
18
21
|
import './mcp/pikku-mcp-wirings.gen.js';
|
|
@@ -1,13 +1,22 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.
|
|
2
|
+
* This file was generated by @pikku/cli@0.11.0
|
|
3
3
|
*/
|
|
4
4
|
import type { SingletonServices } from '../types/application-types.d.js';
|
|
5
5
|
import type { Services } from '../types/application-types.d.js';
|
|
6
|
-
|
|
7
|
-
export declare const singletonServices: {
|
|
6
|
+
export declare const requiredSingletonServices: {
|
|
8
7
|
readonly config: true;
|
|
9
|
-
readonly getInspectorState:
|
|
8
|
+
readonly getInspectorState: false;
|
|
9
|
+
readonly jwt: false;
|
|
10
10
|
readonly logger: true;
|
|
11
|
+
readonly queueService: false;
|
|
12
|
+
readonly schedulerService: false;
|
|
13
|
+
readonly schema: true;
|
|
14
|
+
readonly variables: true;
|
|
15
|
+
readonly workflowService: false;
|
|
11
16
|
};
|
|
12
|
-
export
|
|
13
|
-
|
|
17
|
+
export declare const requiredSessionServices: {
|
|
18
|
+
readonly workflow: false;
|
|
19
|
+
readonly workflowStep: false;
|
|
20
|
+
};
|
|
21
|
+
export type RequiredSingletonServices = Pick<SingletonServices, 'config' | 'logger' | 'schema' | 'variables'> & Partial<Omit<SingletonServices, 'config' | 'logger' | 'schema' | 'variables'>>;
|
|
22
|
+
export type RequiredSessionServices = Partial<Services>;
|
|
@@ -1,5 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
// Singleton services map: true if required, false if available but unused
|
|
2
|
+
export const requiredSingletonServices = {
|
|
2
3
|
'config': true,
|
|
3
|
-
'getInspectorState':
|
|
4
|
+
'getInspectorState': false,
|
|
5
|
+
'jwt': false,
|
|
4
6
|
'logger': true,
|
|
7
|
+
'queueService': false,
|
|
8
|
+
'schedulerService': false,
|
|
9
|
+
'schema': true,
|
|
10
|
+
'variables': true,
|
|
11
|
+
'workflowService': false,
|
|
12
|
+
};
|
|
13
|
+
// Session services map: true if required, false if available but unused
|
|
14
|
+
export const requiredSessionServices = {
|
|
15
|
+
'workflow': false,
|
|
16
|
+
'workflowStep': false,
|
|
5
17
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.
|
|
2
|
+
* This file was generated by @pikku/cli@0.11.0
|
|
3
3
|
*/
|
|
4
4
|
import { CorePikkuWebsocket, CorePikkuRouteHandler } from '@pikku/websocket';
|
|
5
5
|
import { ChannelDefaultHandlerOf, ChannelWiringHandlerOf, ChannelsMap } from './channel/pikku-channels-map.gen.d.js';
|
|
@@ -8,6 +8,20 @@ declare class PikkuWebSocketRoute<Channel extends keyof ChannelsMap, Route exten
|
|
|
8
8
|
unsubscribe<Method extends keyof ChannelsMap[Channel]['routes'][Route], Data extends ChannelWiringHandlerOf<Channel, Route, Method>['output']>(method: Method, callback?: (data: Data) => void): void;
|
|
9
9
|
send<Method extends keyof ChannelsMap[Channel]['routes'][Route], Data extends ChannelWiringHandlerOf<Channel, Route, Method>['input']>(method: Method, data: Data): void;
|
|
10
10
|
}
|
|
11
|
+
/**
|
|
12
|
+
* Type-safe WebSocket wrapper for Pikku channels.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* // Browser usage
|
|
16
|
+
* const ws = new WebSocket('ws://localhost:3000')
|
|
17
|
+
* const pikkuWS = new PikkuWebSocket<'events'>(ws)
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* // Node.js usage
|
|
21
|
+
* import WebSocket from 'ws'
|
|
22
|
+
* const ws = new WebSocket('ws://localhost:3000')
|
|
23
|
+
* const pikkuWS = new PikkuWebSocket<'events'>(ws)
|
|
24
|
+
*/
|
|
11
25
|
export declare class PikkuWebSocket<Channel extends keyof ChannelsMap, EventHubTopics extends Record<string, any> = {}> extends CorePikkuWebsocket {
|
|
12
26
|
/**
|
|
13
27
|
* Send a message to a specific route and method.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.
|
|
2
|
+
* This file was generated by @pikku/cli@0.11.0
|
|
3
3
|
*/
|
|
4
4
|
import { CorePikkuWebsocket, CorePikkuRouteHandler } from '@pikku/websocket';
|
|
5
5
|
class PikkuWebSocketRoute extends CorePikkuRouteHandler {
|
|
@@ -13,6 +13,20 @@ class PikkuWebSocketRoute extends CorePikkuRouteHandler {
|
|
|
13
13
|
super.send(method.toString(), data);
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
+
/**
|
|
17
|
+
* Type-safe WebSocket wrapper for Pikku channels.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* // Browser usage
|
|
21
|
+
* const ws = new WebSocket('ws://localhost:3000')
|
|
22
|
+
* const pikkuWS = new PikkuWebSocket<'events'>(ws)
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* // Node.js usage
|
|
26
|
+
* import WebSocket from 'ws'
|
|
27
|
+
* const ws = new WebSocket('ws://localhost:3000')
|
|
28
|
+
* const pikkuWS = new PikkuWebSocket<'events'>(ws)
|
|
29
|
+
*/
|
|
16
30
|
export class PikkuWebSocket extends CorePikkuWebsocket {
|
|
17
31
|
/**
|
|
18
32
|
* Send a message to a specific route and method.
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.
|
|
2
|
+
* This file was generated by @pikku/cli@0.11.0
|
|
3
3
|
*/
|
|
4
4
|
import { pikkuState } from '@pikku/core';
|
|
5
|
-
pikkuState('queue', 'meta', {
|
|
5
|
+
pikkuState('queue', 'meta', {
|
|
6
|
+
"pikku-remote-internal-rpc": {
|
|
7
|
+
"pikkuFuncName": "pikkuRemoteInternalRPC",
|
|
8
|
+
"queueName": "pikku-remote-internal-rpc"
|
|
9
|
+
}
|
|
10
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generic remote RPC worker that invokes any internal RPC by name
|
|
3
|
+
* This is used for executing internal RPCs via a queue or HTTP (e.g., scheduled tasks, background jobs, internal services)
|
|
4
|
+
*/
|
|
5
|
+
export declare const pikkuRemoteInternalRPC: import("@pikku/core").CorePikkuFunctionConfig<import("../pikku-types.gen.js").PikkuFunctionSessionless<{
|
|
6
|
+
rpcName: string;
|
|
7
|
+
data?: any;
|
|
8
|
+
}, any, null, null, Omit<import("../../types/application-types.js").Services, "rpc" | "channel" | "mcp"> & {
|
|
9
|
+
rpc: import("./pikku-rpc-wirings-map.internal.gen.js").TypedPikkuRPC;
|
|
10
|
+
} & {
|
|
11
|
+
channel?: import("@pikku/core").PikkuChannel<unknown, any> | undefined;
|
|
12
|
+
} & {
|
|
13
|
+
mcp?: import("@pikku/core").PikkuMCP;
|
|
14
|
+
}>, import("../pikku-types.gen.js").PikkuPermission<{
|
|
15
|
+
rpcName: string;
|
|
16
|
+
data?: any;
|
|
17
|
+
}, import("../../types/application-types.js").Services>, import("../pikku-types.gen.js").PikkuMiddleware<import("../../types/application-types.js").SingletonServices>>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.11.0
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Auto-generated remote internal RPC queue worker and HTTP endpoint
|
|
6
|
+
* Do not edit manually - regenerate with 'npx pikku'
|
|
7
|
+
*/
|
|
8
|
+
import { pikkuSessionlessFunc, wireQueueWorker } from '../pikku-types.gen.js';
|
|
9
|
+
/**
|
|
10
|
+
* Generic remote RPC worker that invokes any internal RPC by name
|
|
11
|
+
* This is used for executing internal RPCs via a queue or HTTP (e.g., scheduled tasks, background jobs, internal services)
|
|
12
|
+
*/
|
|
13
|
+
export const pikkuRemoteInternalRPC = pikkuSessionlessFunc({
|
|
14
|
+
func: async ({ rpc }, { rpcName, data }) => {
|
|
15
|
+
return await rpc.invoke(rpcName, data);
|
|
16
|
+
},
|
|
17
|
+
internal: true,
|
|
18
|
+
});
|
|
19
|
+
wireQueueWorker({
|
|
20
|
+
queueName: 'pikku-remote-internal-rpc',
|
|
21
|
+
func: pikkuRemoteInternalRPC,
|
|
22
|
+
});
|
|
@@ -1,41 +1,47 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.
|
|
2
|
+
* This file was generated by @pikku/cli@0.11.0
|
|
3
3
|
*/
|
|
4
4
|
import { pikkuState } from '@pikku/core';
|
|
5
5
|
pikkuState('rpc', 'meta', {
|
|
6
|
-
"pikkuSchemas": "pikkuSchemas",
|
|
7
|
-
"pikkuFetch": "pikkuFetch",
|
|
8
|
-
"pikkuWebSocketTyped": "pikkuWebSocketTyped",
|
|
9
|
-
"pikkuRPCClient": "pikkuRPCClient",
|
|
10
|
-
"pikkuQueueService": "pikkuQueueService",
|
|
11
|
-
"pikkuOpenAPI": "pikkuOpenAPI",
|
|
12
|
-
"pikkuNext": "pikkuNext",
|
|
13
6
|
"all": "all",
|
|
7
|
+
"bootstrap": "bootstrap",
|
|
14
8
|
"watch": "watch",
|
|
9
|
+
"pikkuNext": "pikkuNext",
|
|
15
10
|
"pikkuChannels": "pikkuChannels",
|
|
16
11
|
"pikkuChannelTypes": "pikkuChannelTypes",
|
|
17
12
|
"pikkuChannelsMap": "pikkuChannelsMap",
|
|
13
|
+
"pikkuWebSocketTyped": "pikkuWebSocketTyped",
|
|
18
14
|
"pikkuCLIEntry": "pikkuCLIEntry",
|
|
19
15
|
"pikkuCLITypes": "pikkuCLITypes",
|
|
20
16
|
"pikkuCLI": "pikkuCLI",
|
|
17
|
+
"pikkuFetch": "pikkuFetch",
|
|
21
18
|
"pikkuFunctionTypesSplit": "pikkuFunctionTypesSplit",
|
|
22
19
|
"pikkuFunctionTypes": "pikkuFunctionTypes",
|
|
23
20
|
"pikkuFunctions": "pikkuFunctions",
|
|
24
21
|
"pikkuServices": "pikkuServices",
|
|
22
|
+
"pikkuSchemas": "pikkuSchemas",
|
|
25
23
|
"pikkuHTTPMap": "pikkuHTTPMap",
|
|
26
24
|
"pikkuHTTP": "pikkuHTTP",
|
|
27
25
|
"pikkuHTTPTypes": "pikkuHTTPTypes",
|
|
26
|
+
"pikkuOpenAPI": "pikkuOpenAPI",
|
|
28
27
|
"pikkuMCPJSON": "pikkuMCPJSON",
|
|
29
28
|
"pikkuMCPTypes": "pikkuMCPTypes",
|
|
30
29
|
"pikkuMCP": "pikkuMCP",
|
|
31
30
|
"pikkuMiddleware": "pikkuMiddleware",
|
|
32
31
|
"pikkuPermissions": "pikkuPermissions",
|
|
33
32
|
"pikkuQueueMap": "pikkuQueueMap",
|
|
33
|
+
"pikkuQueueService": "pikkuQueueService",
|
|
34
34
|
"pikkuQueueTypes": "pikkuQueueTypes",
|
|
35
35
|
"pikkuQueue": "pikkuQueue",
|
|
36
|
+
"pikkuPublicRPC": "pikkuPublicRPC",
|
|
37
|
+
"pikkuRemoteRPC": "pikkuRemoteRPC",
|
|
38
|
+
"pikkuRPCClient": "pikkuRPCClient",
|
|
36
39
|
"pikkuRPCInternalMap": "pikkuRPCInternalMap",
|
|
37
40
|
"pikkuRPCExposedMap": "pikkuRPCExposedMap",
|
|
38
41
|
"pikkuRPC": "pikkuRPC",
|
|
39
42
|
"pikkuSchedulerTypes": "pikkuSchedulerTypes",
|
|
40
|
-
"pikkuScheduler": "pikkuScheduler"
|
|
43
|
+
"pikkuScheduler": "pikkuScheduler",
|
|
44
|
+
"pikkuWorkflowMap": "pikkuWorkflowMap",
|
|
45
|
+
"pikkuWorkflowTypes": "pikkuWorkflowTypes",
|
|
46
|
+
"pikkuWorkflow": "pikkuWorkflow"
|
|
41
47
|
});
|