@pikku/cli 0.10.2 → 0.11.1
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 +1 -1
- 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-channel.ts +92 -0
- package/.pikku/cli/pikku-cli-client.gen.ts +56 -0
- package/.pikku/cli/pikku-cli-types.gen.ts +1 -1
- package/.pikku/cli/pikku-cli-wirings-meta.gen.ts +131 -5
- package/.pikku/cli/pikku-cli-wirings.gen.ts +3 -2
- package/.pikku/cli/pikku-cli.gen.ts +41 -0
- package/.pikku/function/pikku-function-types.gen.ts +1 -1
- package/.pikku/function/pikku-functions-meta.gen.ts +240 -131
- package/.pikku/function/pikku-functions-meta.min.gen.ts +59 -34
- 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 +8 -3
- package/.pikku/pikku-types.gen.ts +1 -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 +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 +25 -10
- package/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.ts +14 -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 +13 -0
- package/bin/pikku.ts +20 -20
- package/build.sh +1 -1
- package/cli.schema.json +1 -1
- package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +1 -1
- 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.d.ts +1 -0
- package/dist/.pikku/cli/pikku-cli-channel.js +91 -0
- package/dist/.pikku/cli/pikku-cli-client.gen.d.ts +10 -0
- package/dist/.pikku/cli/pikku-cli-client.gen.js +46 -0
- 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 +131 -5
- package/dist/.pikku/cli/pikku-cli-wirings.gen.d.ts +2 -1
- package/dist/.pikku/cli/pikku-cli-wirings.gen.js +2 -1
- package/dist/.pikku/cli/pikku-cli.gen.d.ts +10 -0
- package/dist/.pikku/cli/pikku-cli.gen.js +38 -0
- 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 +240 -131
- package/dist/.pikku/function/pikku-functions-meta.min.gen.js +59 -34
- 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 +10 -4
- package/dist/.pikku/pikku-services.gen.js +8 -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 +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 +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 +14 -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.d.ts +1 -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 +18 -20
- package/dist/src/cli.wiring.js +109 -107
- package/dist/src/functions/commands/all.js +20 -0
- package/dist/src/functions/commands/bootstrap.js +1 -0
- package/dist/src/functions/wirings/cli/serialize-channel-cli-client.js +15 -22
- 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/services/cli-logger-forwarder.service.d.ts +3 -0
- package/dist/src/services/cli-logger-forwarder.service.js +9 -2
- package/dist/src/services/cli-logger.service.js +1 -1
- package/dist/src/utils/command-summary.d.ts +1 -0
- package/dist/src/utils/command-summary.js +9 -8
- package/dist/src/utils/pikku-cli-config.js +24 -4
- package/dist/src/utils/schema-generator.js +28 -7
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/cli.wiring.ts +111 -106
- package/src/functions/commands/all.ts +28 -0
- package/src/functions/commands/bootstrap.ts +1 -0
- package/src/functions/wirings/cli/serialize-channel-cli-client.ts +15 -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/services/cli-logger-forwarder.service.ts +11 -2
- package/src/services/cli-logger.service.ts +1 -1
- package/src/utils/command-summary.ts +10 -8
- package/src/utils/pikku-cli-config.ts +44 -4
- package/src/utils/schema-generator.ts +25 -7
- package/types/config.d.ts +45 -0
|
@@ -1,8 +1,43 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.
|
|
2
|
+
* This file was generated by @pikku/cli@0.11.1
|
|
3
3
|
*/
|
|
4
4
|
import { pikkuState } from '@pikku/core';
|
|
5
5
|
pikkuState('function', 'meta', {
|
|
6
|
+
"pikkuSchemas": {
|
|
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
|
+
},
|
|
6
41
|
"all": {
|
|
7
42
|
"pikkuFuncName": "all",
|
|
8
43
|
"inputSchemaName": null,
|
|
@@ -18,11 +53,6 @@ pikkuState('function', 'meta', {
|
|
|
18
53
|
"inputSchemaName": null,
|
|
19
54
|
"outputSchemaName": null
|
|
20
55
|
},
|
|
21
|
-
"pikkuNext": {
|
|
22
|
-
"pikkuFuncName": "pikkuNext",
|
|
23
|
-
"inputSchemaName": null,
|
|
24
|
-
"outputSchemaName": null
|
|
25
|
-
},
|
|
26
56
|
"pikkuChannels": {
|
|
27
57
|
"pikkuFuncName": "pikkuChannels",
|
|
28
58
|
"inputSchemaName": null,
|
|
@@ -38,11 +68,6 @@ pikkuState('function', 'meta', {
|
|
|
38
68
|
"inputSchemaName": null,
|
|
39
69
|
"outputSchemaName": null
|
|
40
70
|
},
|
|
41
|
-
"pikkuWebSocketTyped": {
|
|
42
|
-
"pikkuFuncName": "pikkuWebSocketTyped",
|
|
43
|
-
"inputSchemaName": null,
|
|
44
|
-
"outputSchemaName": null
|
|
45
|
-
},
|
|
46
71
|
"pikkuCLIEntry": {
|
|
47
72
|
"pikkuFuncName": "pikkuCLIEntry",
|
|
48
73
|
"inputSchemaName": null,
|
|
@@ -58,11 +83,6 @@ pikkuState('function', 'meta', {
|
|
|
58
83
|
"inputSchemaName": null,
|
|
59
84
|
"outputSchemaName": "PikkuCLIOutput"
|
|
60
85
|
},
|
|
61
|
-
"pikkuFetch": {
|
|
62
|
-
"pikkuFuncName": "pikkuFetch",
|
|
63
|
-
"inputSchemaName": null,
|
|
64
|
-
"outputSchemaName": null
|
|
65
|
-
},
|
|
66
86
|
"pikkuFunctionTypesSplit": {
|
|
67
87
|
"pikkuFuncName": "pikkuFunctionTypesSplit",
|
|
68
88
|
"inputSchemaName": null,
|
|
@@ -83,11 +103,6 @@ pikkuState('function', 'meta', {
|
|
|
83
103
|
"inputSchemaName": null,
|
|
84
104
|
"outputSchemaName": null
|
|
85
105
|
},
|
|
86
|
-
"pikkuSchemas": {
|
|
87
|
-
"pikkuFuncName": "pikkuSchemas",
|
|
88
|
-
"inputSchemaName": null,
|
|
89
|
-
"outputSchemaName": "PikkuSchemasOutput"
|
|
90
|
-
},
|
|
91
106
|
"pikkuHTTPMap": {
|
|
92
107
|
"pikkuFuncName": "pikkuHTTPMap",
|
|
93
108
|
"inputSchemaName": null,
|
|
@@ -103,11 +118,6 @@ pikkuState('function', 'meta', {
|
|
|
103
118
|
"inputSchemaName": null,
|
|
104
119
|
"outputSchemaName": null
|
|
105
120
|
},
|
|
106
|
-
"pikkuOpenAPI": {
|
|
107
|
-
"pikkuFuncName": "pikkuOpenAPI",
|
|
108
|
-
"inputSchemaName": null,
|
|
109
|
-
"outputSchemaName": null
|
|
110
|
-
},
|
|
111
121
|
"pikkuMCPJSON": {
|
|
112
122
|
"pikkuFuncName": "pikkuMCPJSON",
|
|
113
123
|
"inputSchemaName": null,
|
|
@@ -138,11 +148,6 @@ pikkuState('function', 'meta', {
|
|
|
138
148
|
"inputSchemaName": null,
|
|
139
149
|
"outputSchemaName": null
|
|
140
150
|
},
|
|
141
|
-
"pikkuQueueService": {
|
|
142
|
-
"pikkuFuncName": "pikkuQueueService",
|
|
143
|
-
"inputSchemaName": null,
|
|
144
|
-
"outputSchemaName": null
|
|
145
|
-
},
|
|
146
151
|
"pikkuQueueTypes": {
|
|
147
152
|
"pikkuFuncName": "pikkuQueueTypes",
|
|
148
153
|
"inputSchemaName": null,
|
|
@@ -153,10 +158,15 @@ pikkuState('function', 'meta', {
|
|
|
153
158
|
"inputSchemaName": null,
|
|
154
159
|
"outputSchemaName": "PikkuQueueOutput"
|
|
155
160
|
},
|
|
156
|
-
"
|
|
157
|
-
"pikkuFuncName": "
|
|
161
|
+
"pikkuPublicRPC": {
|
|
162
|
+
"pikkuFuncName": "pikkuPublicRPC",
|
|
158
163
|
"inputSchemaName": null,
|
|
159
|
-
"outputSchemaName":
|
|
164
|
+
"outputSchemaName": "PikkuPublicRPCOutput"
|
|
165
|
+
},
|
|
166
|
+
"pikkuRemoteRPC": {
|
|
167
|
+
"pikkuFuncName": "pikkuRemoteRPC",
|
|
168
|
+
"inputSchemaName": null,
|
|
169
|
+
"outputSchemaName": "PikkuRemoteRPCOutput"
|
|
160
170
|
},
|
|
161
171
|
"pikkuRPCInternalMap": {
|
|
162
172
|
"pikkuFuncName": "pikkuRPCInternalMap",
|
|
@@ -182,5 +192,20 @@ pikkuState('function', 'meta', {
|
|
|
182
192
|
"pikkuFuncName": "pikkuScheduler",
|
|
183
193
|
"inputSchemaName": null,
|
|
184
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"
|
|
185
210
|
}
|
|
186
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.1
|
|
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.1
|
|
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.1
|
|
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,16 +1,22 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.
|
|
2
|
+
* This file was generated by @pikku/cli@0.11.1
|
|
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
6
|
export declare const requiredSingletonServices: {
|
|
7
7
|
readonly config: true;
|
|
8
|
-
readonly getInspectorState:
|
|
8
|
+
readonly getInspectorState: true;
|
|
9
9
|
readonly jwt: false;
|
|
10
10
|
readonly logger: true;
|
|
11
|
+
readonly queueService: false;
|
|
12
|
+
readonly schedulerService: false;
|
|
11
13
|
readonly schema: true;
|
|
12
14
|
readonly variables: true;
|
|
15
|
+
readonly workflowService: false;
|
|
13
16
|
};
|
|
14
|
-
export declare const requiredSessionServices: {
|
|
15
|
-
|
|
17
|
+
export declare const requiredSessionServices: {
|
|
18
|
+
readonly workflow: false;
|
|
19
|
+
readonly workflowStep: false;
|
|
20
|
+
};
|
|
21
|
+
export type RequiredSingletonServices = Pick<SingletonServices, 'config' | 'getInspectorState' | 'logger' | 'schema' | 'variables'> & Partial<Omit<SingletonServices, 'config' | 'getInspectorState' | 'logger' | 'schema' | 'variables'>>;
|
|
16
22
|
export type RequiredSessionServices = Partial<Services>;
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
// Singleton services map: true if required, false if available but unused
|
|
2
2
|
export const requiredSingletonServices = {
|
|
3
3
|
'config': true,
|
|
4
|
-
'getInspectorState':
|
|
4
|
+
'getInspectorState': true,
|
|
5
5
|
'jwt': false,
|
|
6
6
|
'logger': true,
|
|
7
|
+
'queueService': false,
|
|
8
|
+
'schedulerService': false,
|
|
7
9
|
'schema': true,
|
|
8
10
|
'variables': true,
|
|
11
|
+
'workflowService': false,
|
|
9
12
|
};
|
|
10
13
|
// Session services map: true if required, false if available but unused
|
|
11
|
-
export const requiredSessionServices = {
|
|
14
|
+
export const requiredSessionServices = {
|
|
15
|
+
'workflow': false,
|
|
16
|
+
'workflowStep': false,
|
|
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.1
|
|
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,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.
|
|
2
|
+
* This file was generated by @pikku/cli@0.11.1
|
|
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.1
|
|
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,42 +1,47 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.
|
|
2
|
+
* This file was generated by @pikku/cli@0.11.1
|
|
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",
|
|
6
13
|
"all": "all",
|
|
7
14
|
"bootstrap": "bootstrap",
|
|
8
15
|
"watch": "watch",
|
|
9
|
-
"pikkuNext": "pikkuNext",
|
|
10
16
|
"pikkuChannels": "pikkuChannels",
|
|
11
17
|
"pikkuChannelTypes": "pikkuChannelTypes",
|
|
12
18
|
"pikkuChannelsMap": "pikkuChannelsMap",
|
|
13
|
-
"pikkuWebSocketTyped": "pikkuWebSocketTyped",
|
|
14
19
|
"pikkuCLIEntry": "pikkuCLIEntry",
|
|
15
20
|
"pikkuCLITypes": "pikkuCLITypes",
|
|
16
21
|
"pikkuCLI": "pikkuCLI",
|
|
17
|
-
"pikkuFetch": "pikkuFetch",
|
|
18
22
|
"pikkuFunctionTypesSplit": "pikkuFunctionTypesSplit",
|
|
19
23
|
"pikkuFunctionTypes": "pikkuFunctionTypes",
|
|
20
24
|
"pikkuFunctions": "pikkuFunctions",
|
|
21
25
|
"pikkuServices": "pikkuServices",
|
|
22
|
-
"pikkuSchemas": "pikkuSchemas",
|
|
23
26
|
"pikkuHTTPMap": "pikkuHTTPMap",
|
|
24
27
|
"pikkuHTTP": "pikkuHTTP",
|
|
25
28
|
"pikkuHTTPTypes": "pikkuHTTPTypes",
|
|
26
|
-
"pikkuOpenAPI": "pikkuOpenAPI",
|
|
27
29
|
"pikkuMCPJSON": "pikkuMCPJSON",
|
|
28
30
|
"pikkuMCPTypes": "pikkuMCPTypes",
|
|
29
31
|
"pikkuMCP": "pikkuMCP",
|
|
30
32
|
"pikkuMiddleware": "pikkuMiddleware",
|
|
31
33
|
"pikkuPermissions": "pikkuPermissions",
|
|
32
34
|
"pikkuQueueMap": "pikkuQueueMap",
|
|
33
|
-
"pikkuQueueService": "pikkuQueueService",
|
|
34
35
|
"pikkuQueueTypes": "pikkuQueueTypes",
|
|
35
36
|
"pikkuQueue": "pikkuQueue",
|
|
36
|
-
"
|
|
37
|
+
"pikkuPublicRPC": "pikkuPublicRPC",
|
|
38
|
+
"pikkuRemoteRPC": "pikkuRemoteRPC",
|
|
37
39
|
"pikkuRPCInternalMap": "pikkuRPCInternalMap",
|
|
38
40
|
"pikkuRPCExposedMap": "pikkuRPCExposedMap",
|
|
39
41
|
"pikkuRPC": "pikkuRPC",
|
|
40
42
|
"pikkuSchedulerTypes": "pikkuSchedulerTypes",
|
|
41
|
-
"pikkuScheduler": "pikkuScheduler"
|
|
43
|
+
"pikkuScheduler": "pikkuScheduler",
|
|
44
|
+
"pikkuWorkflowMap": "pikkuWorkflowMap",
|
|
45
|
+
"pikkuWorkflowTypes": "pikkuWorkflowTypes",
|
|
46
|
+
"pikkuWorkflow": "pikkuWorkflow"
|
|
42
47
|
});
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.
|
|
2
|
+
* This file was generated by @pikku/cli@0.11.1
|
|
3
3
|
*/
|
|
4
4
|
import { addSchema } from '@pikku/core/schema';
|
|
5
|
+
import * as PikkuSchemasOutput from './schemas/PikkuSchemasOutput.schema.json' with { type: 'json' };
|
|
6
|
+
addSchema('PikkuSchemasOutput', PikkuSchemasOutput);
|
|
5
7
|
import * as PikkuChannelsOutput from './schemas/PikkuChannelsOutput.schema.json' with { type: 'json' };
|
|
6
8
|
addSchema('PikkuChannelsOutput', PikkuChannelsOutput);
|
|
7
9
|
import * as PikkuCLIOutput from './schemas/PikkuCLIOutput.schema.json' with { type: 'json' };
|
|
8
10
|
addSchema('PikkuCLIOutput', PikkuCLIOutput);
|
|
9
11
|
import * as PikkuFunctionsOutput from './schemas/PikkuFunctionsOutput.schema.json' with { type: 'json' };
|
|
10
12
|
addSchema('PikkuFunctionsOutput', PikkuFunctionsOutput);
|
|
11
|
-
import * as PikkuSchemasOutput from './schemas/PikkuSchemasOutput.schema.json' with { type: 'json' };
|
|
12
|
-
addSchema('PikkuSchemasOutput', PikkuSchemasOutput);
|
|
13
13
|
import * as PikkuHTTPOutput from './schemas/PikkuHTTPOutput.schema.json' with { type: 'json' };
|
|
14
14
|
addSchema('PikkuHTTPOutput', PikkuHTTPOutput);
|
|
15
15
|
import * as PikkuMCPOutput from './schemas/PikkuMCPOutput.schema.json' with { type: 'json' };
|
|
@@ -20,9 +20,15 @@ import * as PikkuPermissionsOutput from './schemas/PikkuPermissionsOutput.schema
|
|
|
20
20
|
addSchema('PikkuPermissionsOutput', PikkuPermissionsOutput);
|
|
21
21
|
import * as PikkuQueueOutput from './schemas/PikkuQueueOutput.schema.json' with { type: 'json' };
|
|
22
22
|
addSchema('PikkuQueueOutput', PikkuQueueOutput);
|
|
23
|
+
import * as PikkuPublicRPCOutput from './schemas/PikkuPublicRPCOutput.schema.json' with { type: 'json' };
|
|
24
|
+
addSchema('PikkuPublicRPCOutput', PikkuPublicRPCOutput);
|
|
25
|
+
import * as PikkuRemoteRPCOutput from './schemas/PikkuRemoteRPCOutput.schema.json' with { type: 'json' };
|
|
26
|
+
addSchema('PikkuRemoteRPCOutput', PikkuRemoteRPCOutput);
|
|
23
27
|
import * as PikkuRPCOutput from './schemas/PikkuRPCOutput.schema.json' with { type: 'json' };
|
|
24
28
|
addSchema('PikkuRPCOutput', PikkuRPCOutput);
|
|
25
29
|
import * as PikkuSchedulerOutput from './schemas/PikkuSchedulerOutput.schema.json' with { type: 'json' };
|
|
26
30
|
addSchema('PikkuSchedulerOutput', PikkuSchedulerOutput);
|
|
31
|
+
import * as PikkuWorkflowOutput from './schemas/PikkuWorkflowOutput.schema.json' with { type: 'json' };
|
|
32
|
+
addSchema('PikkuWorkflowOutput', PikkuWorkflowOutput);
|
|
27
33
|
import * as PikkuCLIConfig from './schemas/PikkuCLIConfig.schema.json' with { type: 'json' };
|
|
28
34
|
addSchema('PikkuCLIConfig', PikkuCLIConfig);
|