@pikku/cli 0.12.17 → 0.12.20

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.
Files changed (131) hide show
  1. package/cli.schema.json +1 -1
  2. package/console-app/assets/{index-DvrDbftC.css → index-BpY2pSuA.css} +10 -1
  3. package/console-app/assets/index-DXLy-_D4.js +717 -0
  4. package/console-app/index.html +2 -2
  5. package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +1 -1
  6. package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +1 -1
  7. package/dist/.pikku/channel/pikku-channel-types.gen.js +1 -1
  8. package/dist/.pikku/cli/pikku-cli-channel.js +11 -1
  9. package/dist/.pikku/cli/pikku-cli-client.gen.d.ts +1 -1
  10. package/dist/.pikku/cli/pikku-cli-client.gen.js +1 -1
  11. package/dist/.pikku/cli/pikku-cli-types.gen.d.ts +1 -1
  12. package/dist/.pikku/cli/pikku-cli-types.gen.js +1 -1
  13. package/dist/.pikku/cli/pikku-cli-wirings-meta.gen.js +1 -1
  14. package/dist/.pikku/cli/pikku-cli-wirings-meta.gen.json +29 -2
  15. package/dist/.pikku/cli/pikku-cli-wirings.gen.d.ts +1 -1
  16. package/dist/.pikku/cli/pikku-cli-wirings.gen.js +1 -1
  17. package/dist/.pikku/cli/pikku-cli.gen.d.ts +1 -1
  18. package/dist/.pikku/cli/pikku-cli.gen.js +1 -1
  19. package/dist/.pikku/console/pikku-node-types.gen.d.ts +1 -1
  20. package/dist/.pikku/function/pikku-function-types.gen.d.ts +1 -1
  21. package/dist/.pikku/function/pikku-function-types.gen.js +1 -1
  22. package/dist/.pikku/function/pikku-functions-meta.gen.js +1 -1
  23. package/dist/.pikku/function/pikku-functions-meta.gen.json +274 -123
  24. package/dist/.pikku/function/pikku-functions.gen.js +5 -1
  25. package/dist/.pikku/http/pikku-http-types.gen.d.ts +1 -1
  26. package/dist/.pikku/http/pikku-http-types.gen.js +1 -1
  27. package/dist/.pikku/http/pikku-http-wirings-meta.gen.js +1 -1
  28. package/dist/.pikku/http/pikku-http-wirings-meta.gen.json +62 -1
  29. package/dist/.pikku/http/pikku-http-wirings.gen.d.ts +2 -1
  30. package/dist/.pikku/http/pikku-http-wirings.gen.js +2 -1
  31. package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts +1 -1
  32. package/dist/.pikku/mcp/pikku-mcp-types.gen.js +1 -1
  33. package/dist/.pikku/pikku-bootstrap.gen.d.ts +2 -1
  34. package/dist/.pikku/pikku-bootstrap.gen.js +2 -1
  35. package/dist/.pikku/pikku-meta-service.gen.d.ts +1 -1
  36. package/dist/.pikku/pikku-meta-service.gen.js +1 -1
  37. package/dist/.pikku/pikku-services.gen.d.ts +7 -6
  38. package/dist/.pikku/pikku-services.gen.js +5 -4
  39. package/dist/.pikku/pikku-types.gen.d.ts +1 -1
  40. package/dist/.pikku/pikku-types.gen.js +1 -1
  41. package/dist/.pikku/queue/pikku-queue-types.gen.d.ts +1 -1
  42. package/dist/.pikku/queue/pikku-queue-types.gen.js +1 -1
  43. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +1 -1
  44. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.json +12 -4
  45. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +1 -1
  46. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js +1 -1
  47. package/dist/.pikku/schemas/register.gen.js +27 -7
  48. package/dist/.pikku/schemas/schemas/DevInput.schema.json +1 -0
  49. package/dist/.pikku/schemas/schemas/GraphStarterInput.schema.json +1 -0
  50. package/dist/.pikku/schemas/schemas/GraphStarterOutput.schema.json +1 -0
  51. package/dist/.pikku/schemas/schemas/PikkuCLIConfig.schema.json +1 -1
  52. package/dist/.pikku/schemas/schemas/WorkflowRunStatus.schema.json +1 -0
  53. package/dist/.pikku/schemas/schemas/WorkflowRunnerInput.schema.json +1 -0
  54. package/dist/.pikku/schemas/schemas/WorkflowStarterInput.schema.json +1 -0
  55. package/dist/.pikku/schemas/schemas/WorkflowStarterOutput.schema.json +1 -0
  56. package/dist/.pikku/schemas/schemas/WorkflowStatusCheckerInput.schema.json +1 -0
  57. package/dist/.pikku/schemas/schemas/WorkflowStatusStreamFullInput.schema.json +1 -0
  58. package/dist/.pikku/schemas/schemas/WorkflowStatusStreamInput.schema.json +1 -0
  59. package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +1 -1
  60. package/dist/.pikku/secrets/pikku-secret-types.gen.js +1 -1
  61. package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +1 -1
  62. package/dist/.pikku/secrets/pikku-secrets.gen.js +1 -1
  63. package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts +1 -1
  64. package/dist/.pikku/trigger/pikku-trigger-types.gen.js +1 -1
  65. package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +1 -1
  66. package/dist/.pikku/variables/pikku-variable-types.gen.js +1 -1
  67. package/dist/.pikku/variables/pikku-variables.gen.d.ts +1 -1
  68. package/dist/.pikku/variables/pikku-variables.gen.js +1 -1
  69. package/dist/.pikku/workflow/meta/allWorkflow.gen.json +911 -0
  70. package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +1 -1
  71. package/dist/.pikku/workflow/pikku-workflow-types.gen.js +1 -1
  72. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +5 -2
  73. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts +2 -4
  74. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +5 -2
  75. package/dist/src/cli.wiring.js +25 -0
  76. package/dist/src/deploy/analyzer/analyzer.d.ts +1 -0
  77. package/dist/src/deploy/analyzer/analyzer.js +18 -15
  78. package/dist/src/deploy/codegen/per-unit-codegen.js +3 -3
  79. package/dist/src/functions/commands/all.js +2 -186
  80. package/dist/src/functions/commands/bootstrap.js +10 -10
  81. package/dist/src/functions/commands/console.js +1 -1
  82. package/dist/src/functions/commands/dev.d.ts +13 -0
  83. package/dist/src/functions/commands/dev.js +187 -0
  84. package/dist/src/functions/commands/versions-update.js +7 -3
  85. package/dist/src/functions/commands/watch.js +1 -1
  86. package/dist/src/functions/wirings/rpc/pikku-command-react-query.d.ts +1 -0
  87. package/dist/src/functions/wirings/rpc/pikku-command-react-query.js +33 -0
  88. package/dist/src/functions/wirings/rpc/serialize-react-query-hooks.d.ts +1 -0
  89. package/dist/src/functions/wirings/rpc/serialize-react-query-hooks.js +108 -0
  90. package/dist/src/functions/wirings/rpc/serialize-rpc-wrapper.js +3 -3
  91. package/dist/src/functions/wirings/rpc/serialize-typed-rpc-map.js +6 -4
  92. package/dist/src/functions/wirings/workflow/serialize-workflow-routes.js +128 -29
  93. package/dist/src/functions/workflows/all.workflow.d.ts +1 -0
  94. package/dist/src/functions/workflows/all.workflow.js +207 -0
  95. package/dist/src/scaffold/rpc-remote.gen.js +1 -1
  96. package/dist/src/scaffold/workflow-routes.gen.d.ts +84 -0
  97. package/dist/src/scaffold/workflow-routes.gen.js +197 -0
  98. package/dist/src/services.js +2 -0
  99. package/dist/src/utils/pikku-cli-config.js +1 -0
  100. package/dist/tsconfig.tsbuildinfo +1 -1
  101. package/package.json +8 -4
  102. package/console-app/assets/index-CzMWJFqj.js +0 -700
  103. package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.d.ts +0 -1
  104. package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.js +0 -6
  105. package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.json +0 -3
  106. package/dist/.pikku/agent/pikku-agent-wirings.gen.d.ts +0 -4
  107. package/dist/.pikku/agent/pikku-agent-wirings.gen.js +0 -4
  108. package/dist/.pikku/channel/pikku-channels-meta.gen.d.ts +0 -1
  109. package/dist/.pikku/channel/pikku-channels-meta.gen.js +0 -6
  110. package/dist/.pikku/channel/pikku-channels-meta.gen.json +0 -1
  111. package/dist/.pikku/channel/pikku-channels.gen.d.ts +0 -4
  112. package/dist/.pikku/channel/pikku-channels.gen.js +0 -5
  113. package/dist/.pikku/mcp/pikku-mcp-wirings-meta.gen.d.ts +0 -1
  114. package/dist/.pikku/mcp/pikku-mcp-wirings-meta.gen.js +0 -8
  115. package/dist/.pikku/mcp/pikku-mcp-wirings-meta.gen.json +0 -5
  116. package/dist/.pikku/mcp/pikku-mcp-wirings.gen.d.ts +0 -4
  117. package/dist/.pikku/mcp/pikku-mcp-wirings.gen.js +0 -5
  118. package/dist/.pikku/pikku-websocket.gen.d.ts +0 -45
  119. package/dist/.pikku/pikku-websocket.gen.js +0 -63
  120. package/dist/.pikku/queue/pikku-queue-workers-wirings-meta.gen.d.ts +0 -1
  121. package/dist/.pikku/queue/pikku-queue-workers-wirings-meta.gen.js +0 -6
  122. package/dist/.pikku/queue/pikku-queue-workers-wirings-meta.gen.json +0 -1
  123. package/dist/.pikku/queue/pikku-queue-workers-wirings.gen.d.ts +0 -4
  124. package/dist/.pikku/queue/pikku-queue-workers-wirings.gen.js +0 -5
  125. package/dist/.pikku/rpc/pikku-remote-rpc-workers.gen.d.ts +0 -17
  126. package/dist/.pikku/rpc/pikku-remote-rpc-workers.gen.js +0 -25
  127. package/dist/.pikku/scheduler/pikku-schedulers-wirings-meta.gen.d.ts +0 -1
  128. package/dist/.pikku/scheduler/pikku-schedulers-wirings-meta.gen.js +0 -6
  129. package/dist/.pikku/scheduler/pikku-schedulers-wirings-meta.gen.json +0 -1
  130. package/dist/.pikku/scheduler/pikku-schedulers-wirings.gen.d.ts +0 -4
  131. package/dist/.pikku/scheduler/pikku-schedulers-wirings.gen.js +0 -5
@@ -0,0 +1,911 @@
1
+ {
2
+ "name": "allWorkflow",
3
+ "pikkuFuncId": "allWorkflow",
4
+ "source": "complex",
5
+ "context": {
6
+ "allImports": {
7
+ "type": "array",
8
+ "default": []
9
+ },
10
+ "typesDeclarationFileExists": {
11
+ "type": "boolean",
12
+ "default": true
13
+ },
14
+ "remoteRPC": {
15
+ "type": "boolean",
16
+ "default": false
17
+ },
18
+ "workflowRoutes": {
19
+ "type": "boolean",
20
+ "default": false
21
+ }
22
+ },
23
+ "nodes": {
24
+ "step_0": {
25
+ "nodeId": "step_0",
26
+ "flow": "branch",
27
+ "branches": [
28
+ {
29
+ "condition": {
30
+ "type": "simple",
31
+ "expression": "!existsSync(config.outDir)"
32
+ },
33
+ "entry": "Bootstrap inspect"
34
+ }
35
+ ],
36
+ "next": "step_1"
37
+ },
38
+ "Bootstrap inspect": {
39
+ "nodeId": "Bootstrap inspect",
40
+ "flow": "inline",
41
+ "next": "Bootstrap function types"
42
+ },
43
+ "Bootstrap function types": {
44
+ "nodeId": "Bootstrap function types",
45
+ "rpcName": "pikkuFunctionTypes",
46
+ "next": "Bootstrap function types split",
47
+ "stepHash": "c293829b03c7"
48
+ },
49
+ "step_0_branch0_2": {
50
+ "nodeId": "step_0_branch0_2",
51
+ "flow": "parallel",
52
+ "children": [
53
+ "Bootstrap function types split",
54
+ "Bootstrap HTTP types",
55
+ "Bootstrap channel types",
56
+ "Bootstrap scheduler types",
57
+ "Bootstrap queue types",
58
+ "Bootstrap workflow",
59
+ "Bootstrap MCP types",
60
+ "Bootstrap AI agent types",
61
+ "Bootstrap CLI types"
62
+ ],
63
+ "next": "Bootstrap re-inspect"
64
+ },
65
+ "Bootstrap function types split": {
66
+ "nodeId": "Bootstrap function types split",
67
+ "rpcName": "pikkuFunctionTypesSplit",
68
+ "next": "Bootstrap HTTP types",
69
+ "stepHash": "a59a35fde030"
70
+ },
71
+ "Bootstrap HTTP types": {
72
+ "nodeId": "Bootstrap HTTP types",
73
+ "rpcName": "pikkuHTTPTypes",
74
+ "next": "Bootstrap channel types",
75
+ "stepHash": "ef454ef713da"
76
+ },
77
+ "Bootstrap channel types": {
78
+ "nodeId": "Bootstrap channel types",
79
+ "rpcName": "pikkuChannelTypes",
80
+ "next": "Bootstrap scheduler types",
81
+ "stepHash": "106bc6b98409"
82
+ },
83
+ "Bootstrap scheduler types": {
84
+ "nodeId": "Bootstrap scheduler types",
85
+ "rpcName": "pikkuSchedulerTypes",
86
+ "next": "Bootstrap queue types",
87
+ "stepHash": "23bd821f9ee3"
88
+ },
89
+ "Bootstrap queue types": {
90
+ "nodeId": "Bootstrap queue types",
91
+ "rpcName": "pikkuQueueTypes",
92
+ "next": "Bootstrap workflow",
93
+ "stepHash": "46cd97f1fe31"
94
+ },
95
+ "Bootstrap workflow": {
96
+ "nodeId": "Bootstrap workflow",
97
+ "rpcName": "pikkuWorkflow",
98
+ "next": "Bootstrap MCP types",
99
+ "stepHash": "09f085dde448"
100
+ },
101
+ "Bootstrap MCP types": {
102
+ "nodeId": "Bootstrap MCP types",
103
+ "rpcName": "pikkuMCPTypes",
104
+ "next": "Bootstrap AI agent types",
105
+ "stepHash": "ef01efd74427"
106
+ },
107
+ "Bootstrap AI agent types": {
108
+ "nodeId": "Bootstrap AI agent types",
109
+ "rpcName": "pikkuAIAgentTypes",
110
+ "next": "Bootstrap CLI types",
111
+ "stepHash": "ccd99a28ffd6"
112
+ },
113
+ "Bootstrap CLI types": {
114
+ "nodeId": "Bootstrap CLI types",
115
+ "rpcName": "pikkuCLITypes",
116
+ "next": "Bootstrap re-inspect",
117
+ "stepHash": "bc3a92886cb6"
118
+ },
119
+ "Bootstrap re-inspect": {
120
+ "nodeId": "Bootstrap re-inspect",
121
+ "flow": "inline",
122
+ "next": "Generate function types"
123
+ },
124
+ "step_1": {
125
+ "nodeId": "step_1",
126
+ "flow": "branch",
127
+ "branches": [
128
+ {
129
+ "condition": {
130
+ "type": "simple",
131
+ "expression": "!existsSync(config.typesDeclarationFile)"
132
+ },
133
+ "entry": "step_1_branch0_0"
134
+ }
135
+ ],
136
+ "next": "step_2"
137
+ },
138
+ "step_1_branch0_0": {
139
+ "nodeId": "step_1_branch0_0",
140
+ "flow": "set",
141
+ "variable": "typesDeclarationFileExists",
142
+ "value": false,
143
+ "next": "step_2"
144
+ },
145
+ "step_2": {
146
+ "nodeId": "step_2",
147
+ "flow": "branch",
148
+ "branches": [],
149
+ "next": "Generate function types"
150
+ },
151
+ "Generate function types": {
152
+ "nodeId": "Generate function types",
153
+ "rpcName": "pikkuFunctionTypes",
154
+ "next": "Re-inspect after types",
155
+ "stepHash": "3baeae2050fd"
156
+ },
157
+ "step_4": {
158
+ "nodeId": "step_4",
159
+ "flow": "branch",
160
+ "branches": [
161
+ {
162
+ "condition": {
163
+ "type": "or",
164
+ "conditions": [
165
+ {
166
+ "type": "simple",
167
+ "expression": "!typesDeclarationFileExists"
168
+ },
169
+ {
170
+ "type": "simple",
171
+ "expression": "missingScaffolds.length > 0"
172
+ }
173
+ ]
174
+ },
175
+ "entry": "Re-inspect after types"
176
+ }
177
+ ],
178
+ "next": "step_5"
179
+ },
180
+ "Re-inspect after types": {
181
+ "nodeId": "Re-inspect after types",
182
+ "flow": "inline",
183
+ "next": "Function types split"
184
+ },
185
+ "step_5": {
186
+ "nodeId": "step_5",
187
+ "flow": "branch",
188
+ "branches": [],
189
+ "next": "step_6"
190
+ },
191
+ "step_6": {
192
+ "nodeId": "step_6",
193
+ "flow": "branch",
194
+ "branches": [],
195
+ "next": "step_7"
196
+ },
197
+ "step_7": {
198
+ "nodeId": "step_7",
199
+ "flow": "branch",
200
+ "branches": [],
201
+ "next": "Services"
202
+ },
203
+ "Services": {
204
+ "nodeId": "Services",
205
+ "rpcName": "pikkuServices",
206
+ "next": "Package",
207
+ "stepHash": "c7aaeac0b6e2"
208
+ },
209
+ "Package": {
210
+ "nodeId": "Package",
211
+ "rpcName": "pikkuPackage",
212
+ "next": "RPC",
213
+ "stepHash": "8d10339db08d"
214
+ },
215
+ "step_10": {
216
+ "nodeId": "step_10",
217
+ "flow": "branch",
218
+ "branches": [],
219
+ "next": "step_11"
220
+ },
221
+ "step_11": {
222
+ "nodeId": "step_11",
223
+ "flow": "branch",
224
+ "branches": [
225
+ {
226
+ "condition": {
227
+ "type": "simple",
228
+ "expression": "agents"
229
+ },
230
+ "entry": "step_11_branch0_0"
231
+ }
232
+ ],
233
+ "next": "step_12"
234
+ },
235
+ "step_11_branch0_0": {
236
+ "nodeId": "step_11_branch0_0",
237
+ "flow": "branch",
238
+ "branches": [
239
+ {
240
+ "condition": {
241
+ "type": "simple",
242
+ "expression": "config.scaffold?.agent"
243
+ },
244
+ "entry": "Public agent scaffold"
245
+ }
246
+ ]
247
+ },
248
+ "Public agent scaffold": {
249
+ "nodeId": "Public agent scaffold",
250
+ "rpcName": "pikkuPublicAgent",
251
+ "next": "Public RPC",
252
+ "stepHash": "64d807033007"
253
+ },
254
+ "step_12": {
255
+ "nodeId": "step_12",
256
+ "flow": "parallel",
257
+ "children": [
258
+ "Public RPC",
259
+ "Console functions",
260
+ "Node types",
261
+ "Secret definition types",
262
+ "Secrets",
263
+ "Credentials",
264
+ "Variable definition types",
265
+ "Variables",
266
+ "Addon types"
267
+ ],
268
+ "next": "step_13"
269
+ },
270
+ "Public RPC": {
271
+ "nodeId": "Public RPC",
272
+ "rpcName": "pikkuPublicRPC",
273
+ "next": "Console functions",
274
+ "stepHash": "4f8cc6772ba9"
275
+ },
276
+ "Console functions": {
277
+ "nodeId": "Console functions",
278
+ "rpcName": "pikkuConsoleFunctions",
279
+ "next": "Node types",
280
+ "stepHash": "45587b4864bf"
281
+ },
282
+ "Node types": {
283
+ "nodeId": "Node types",
284
+ "rpcName": "pikkuNodeTypes",
285
+ "next": "Secret definition types",
286
+ "stepHash": "fa0e98ce519c"
287
+ },
288
+ "Secret definition types": {
289
+ "nodeId": "Secret definition types",
290
+ "rpcName": "pikkuSecretDefinitionTypes",
291
+ "next": "Secrets",
292
+ "stepHash": "fbfdf42a3974"
293
+ },
294
+ "Secrets": {
295
+ "nodeId": "Secrets",
296
+ "rpcName": "pikkuSecrets",
297
+ "next": "Credentials",
298
+ "stepHash": "dc203fbd8f4d"
299
+ },
300
+ "Credentials": {
301
+ "nodeId": "Credentials",
302
+ "rpcName": "pikkuCredentials",
303
+ "next": "Variable definition types",
304
+ "stepHash": "3e4cb364d6f2"
305
+ },
306
+ "Variable definition types": {
307
+ "nodeId": "Variable definition types",
308
+ "rpcName": "pikkuVariableDefinitionTypes",
309
+ "next": "Variables",
310
+ "stepHash": "f0b1834d8da2"
311
+ },
312
+ "Variables": {
313
+ "nodeId": "Variables",
314
+ "rpcName": "pikkuVariables",
315
+ "next": "Addon types",
316
+ "stepHash": "a2bbb318d12b"
317
+ },
318
+ "Addon types": {
319
+ "nodeId": "Addon types",
320
+ "rpcName": "pikkuAddonTypes",
321
+ "next": "Re-inspect after agents",
322
+ "stepHash": "14f255190658"
323
+ },
324
+ "step_13": {
325
+ "nodeId": "step_13",
326
+ "flow": "branch",
327
+ "branches": [],
328
+ "next": "step_14"
329
+ },
330
+ "step_14": {
331
+ "nodeId": "step_14",
332
+ "flow": "branch",
333
+ "branches": [
334
+ {
335
+ "condition": {
336
+ "type": "or",
337
+ "conditions": [
338
+ {
339
+ "type": "simple",
340
+ "expression": "agents"
341
+ },
342
+ {
343
+ "type": "simple",
344
+ "expression": "!config.addon"
345
+ }
346
+ ]
347
+ },
348
+ "entry": "Re-inspect after agents"
349
+ }
350
+ ],
351
+ "next": "Schemas"
352
+ },
353
+ "Re-inspect after agents": {
354
+ "nodeId": "Re-inspect after agents",
355
+ "flow": "inline",
356
+ "next": "Schemas"
357
+ },
358
+ "Schemas": {
359
+ "nodeId": "Schemas",
360
+ "rpcName": "pikkuSchemas",
361
+ "next": "RPC internal map",
362
+ "stepHash": "1d81976436e8"
363
+ },
364
+ "step_16": {
365
+ "nodeId": "step_16",
366
+ "flow": "branch",
367
+ "branches": [],
368
+ "next": "step_17"
369
+ },
370
+ "step_17": {
371
+ "nodeId": "step_17",
372
+ "flow": "branch",
373
+ "branches": [
374
+ {
375
+ "condition": {
376
+ "type": "simple",
377
+ "expression": "!config.addon"
378
+ },
379
+ "entry": "step_17_branch0_0"
380
+ }
381
+ ],
382
+ "next": "step_18"
383
+ },
384
+ "step_17_branch0_0": {
385
+ "nodeId": "step_17_branch0_0",
386
+ "flow": "set",
387
+ "variable": "remoteRPC",
388
+ "value": "await workflow.do('Remote RPC', 'pikkuRemoteRPC', null)",
389
+ "next": "step_17_branch0_1"
390
+ },
391
+ "step_17_branch0_1": {
392
+ "nodeId": "step_17_branch0_1",
393
+ "flow": "branch",
394
+ "branches": [
395
+ {
396
+ "condition": {
397
+ "type": "simple",
398
+ "expression": "workflows"
399
+ },
400
+ "entry": "step_17_branch0_1_branch0_0"
401
+ }
402
+ ]
403
+ },
404
+ "step_17_branch0_1_branch0_0": {
405
+ "nodeId": "step_17_branch0_1_branch0_0",
406
+ "flow": "set",
407
+ "variable": "workflowRoutes",
408
+ "value": "await workflow.do(\n 'Workflow routes',\n 'pikkuWorkflowRoutes',\n null\n )",
409
+ "next": "step_18"
410
+ },
411
+ "step_18": {
412
+ "nodeId": "step_18",
413
+ "flow": "branch",
414
+ "branches": [
415
+ {
416
+ "condition": {
417
+ "type": "or",
418
+ "conditions": [
419
+ {
420
+ "type": "or",
421
+ "conditions": [
422
+ {
423
+ "type": "simple",
424
+ "expression": "workflows"
425
+ },
426
+ {
427
+ "type": "simple",
428
+ "expression": "remoteRPC"
429
+ }
430
+ ]
431
+ },
432
+ {
433
+ "type": "simple",
434
+ "expression": "workflowRoutes"
435
+ }
436
+ ]
437
+ },
438
+ "entry": "Re-inspect after workflows"
439
+ }
440
+ ],
441
+ "next": "step_19"
442
+ },
443
+ "Re-inspect after workflows": {
444
+ "nodeId": "Re-inspect after workflows",
445
+ "flow": "inline",
446
+ "next": "Re-generate schemas"
447
+ },
448
+ "Re-generate schemas": {
449
+ "nodeId": "Re-generate schemas",
450
+ "rpcName": "pikkuSchemas",
451
+ "next": "HTTP",
452
+ "stepHash": "6c1b632628da"
453
+ },
454
+ "step_19": {
455
+ "nodeId": "step_19",
456
+ "flow": "branch",
457
+ "branches": [
458
+ {
459
+ "condition": {
460
+ "type": "simple",
461
+ "expression": "!config.addon"
462
+ },
463
+ "entry": "step_19_branch0_0"
464
+ }
465
+ ],
466
+ "next": "Functions"
467
+ },
468
+ "step_19_branch0_0": {
469
+ "nodeId": "step_19_branch0_0",
470
+ "flow": "branch",
471
+ "branches": [
472
+ {
473
+ "condition": {
474
+ "type": "simple",
475
+ "expression": "http"
476
+ },
477
+ "entry": "step_19_branch0_0_branch0_0"
478
+ }
479
+ ],
480
+ "next": "step_19_branch0_1"
481
+ },
482
+ "step_19_branch0_0_branch0_0": {
483
+ "nodeId": "step_19_branch0_0_branch0_0",
484
+ "flow": "parallel",
485
+ "children": [
486
+ "HTTP map",
487
+ "Fetch",
488
+ "RPC client",
489
+ "React query"
490
+ ]
491
+ },
492
+ "HTTP map": {
493
+ "nodeId": "HTTP map",
494
+ "rpcName": "pikkuHTTPMap",
495
+ "next": "Fetch",
496
+ "stepHash": "9a365c798484"
497
+ },
498
+ "Fetch": {
499
+ "nodeId": "Fetch",
500
+ "rpcName": "pikkuFetch",
501
+ "next": "RPC client",
502
+ "stepHash": "4102b66eb092"
503
+ },
504
+ "RPC client": {
505
+ "nodeId": "RPC client",
506
+ "rpcName": "pikkuRPCClient",
507
+ "next": "React query",
508
+ "stepHash": "7f48f64ea306"
509
+ },
510
+ "React query": {
511
+ "nodeId": "React query",
512
+ "rpcName": "pikkuReactQuery",
513
+ "next": "Functions",
514
+ "stepHash": "2dc549484eca"
515
+ },
516
+ "step_19_branch0_1": {
517
+ "nodeId": "step_19_branch0_1",
518
+ "flow": "branch",
519
+ "branches": [],
520
+ "next": "step_19_branch0_2"
521
+ },
522
+ "step_19_branch0_2": {
523
+ "nodeId": "step_19_branch0_2",
524
+ "flow": "branch",
525
+ "branches": [],
526
+ "next": "Functions"
527
+ },
528
+ "Functions": {
529
+ "nodeId": "Functions",
530
+ "rpcName": "pikkuFunctions",
531
+ "next": "Queue",
532
+ "stepHash": "90cd834fe20e"
533
+ },
534
+ "step_21": {
535
+ "nodeId": "step_21",
536
+ "flow": "branch",
537
+ "branches": [],
538
+ "next": "step_22"
539
+ },
540
+ "step_22": {
541
+ "nodeId": "step_22",
542
+ "flow": "branch",
543
+ "branches": [],
544
+ "next": "step_23"
545
+ },
546
+ "step_23": {
547
+ "nodeId": "step_23",
548
+ "flow": "branch",
549
+ "branches": [
550
+ {
551
+ "condition": {
552
+ "type": "simple",
553
+ "expression": "!config.addon"
554
+ },
555
+ "entry": "step_23_branch0_0"
556
+ }
557
+ ],
558
+ "next": "Nodes meta"
559
+ },
560
+ "step_23_branch0_0": {
561
+ "nodeId": "step_23_branch0_0",
562
+ "flow": "branch",
563
+ "branches": [
564
+ {
565
+ "condition": {
566
+ "type": "simple",
567
+ "expression": "queues"
568
+ },
569
+ "entry": "step_23_branch0_0_branch0_0"
570
+ }
571
+ ],
572
+ "next": "step_23_branch0_1"
573
+ },
574
+ "step_23_branch0_0_branch0_0": {
575
+ "nodeId": "step_23_branch0_0_branch0_0",
576
+ "flow": "parallel",
577
+ "children": [
578
+ "Queue map",
579
+ "Queue service"
580
+ ]
581
+ },
582
+ "Queue map": {
583
+ "nodeId": "Queue map",
584
+ "rpcName": "pikkuQueueMap",
585
+ "next": "Queue service",
586
+ "stepHash": "ea903f8f068c"
587
+ },
588
+ "Queue service": {
589
+ "nodeId": "Queue service",
590
+ "rpcName": "pikkuQueueService",
591
+ "next": "Channels map",
592
+ "stepHash": "b142dd291e94"
593
+ },
594
+ "step_23_branch0_1": {
595
+ "nodeId": "step_23_branch0_1",
596
+ "flow": "branch",
597
+ "branches": [
598
+ {
599
+ "condition": {
600
+ "type": "simple",
601
+ "expression": "channels"
602
+ },
603
+ "entry": "step_23_branch0_1_branch0_0"
604
+ }
605
+ ],
606
+ "next": "step_23_branch0_2"
607
+ },
608
+ "step_23_branch0_1_branch0_0": {
609
+ "nodeId": "step_23_branch0_1_branch0_0",
610
+ "flow": "parallel",
611
+ "children": [
612
+ "Channels map",
613
+ "WebSocket typed"
614
+ ]
615
+ },
616
+ "Channels map": {
617
+ "nodeId": "Channels map",
618
+ "rpcName": "pikkuChannelsMap",
619
+ "next": "WebSocket typed",
620
+ "stepHash": "7b33a77cf0b4"
621
+ },
622
+ "WebSocket typed": {
623
+ "nodeId": "WebSocket typed",
624
+ "rpcName": "pikkuWebSocketTyped",
625
+ "next": "MCP JSON",
626
+ "stepHash": "388552be75e1"
627
+ },
628
+ "step_23_branch0_2": {
629
+ "nodeId": "step_23_branch0_2",
630
+ "flow": "branch",
631
+ "branches": [],
632
+ "next": "step_23_branch0_3"
633
+ },
634
+ "step_23_branch0_3": {
635
+ "nodeId": "step_23_branch0_3",
636
+ "flow": "branch",
637
+ "branches": [
638
+ {
639
+ "condition": {
640
+ "type": "simple",
641
+ "expression": "mcp"
642
+ },
643
+ "entry": "MCP JSON"
644
+ }
645
+ ],
646
+ "next": "step_23_branch0_4"
647
+ },
648
+ "MCP JSON": {
649
+ "nodeId": "MCP JSON",
650
+ "rpcName": "pikkuMCPJSON",
651
+ "next": "CLI entry",
652
+ "stepHash": "cd3ac7d24ff5"
653
+ },
654
+ "step_23_branch0_4": {
655
+ "nodeId": "step_23_branch0_4",
656
+ "flow": "branch",
657
+ "branches": [
658
+ {
659
+ "condition": {
660
+ "type": "simple",
661
+ "expression": "cli"
662
+ },
663
+ "entry": "CLI entry"
664
+ }
665
+ ]
666
+ },
667
+ "CLI entry": {
668
+ "nodeId": "CLI entry",
669
+ "rpcName": "pikkuCLIEntry",
670
+ "next": "Nodes meta",
671
+ "stepHash": "ad1933f9dc1b"
672
+ },
673
+ "Nodes meta": {
674
+ "nodeId": "Nodes meta",
675
+ "rpcName": "pikkuNodesMeta",
676
+ "next": "Next.js",
677
+ "stepHash": "5044787f9c0c"
678
+ },
679
+ "step_25": {
680
+ "nodeId": "step_25",
681
+ "flow": "branch",
682
+ "branches": [
683
+ {
684
+ "condition": {
685
+ "type": "or",
686
+ "conditions": [
687
+ {
688
+ "type": "simple",
689
+ "expression": "config.clientFiles?.nextBackendFile"
690
+ },
691
+ {
692
+ "type": "simple",
693
+ "expression": "config.clientFiles?.nextHTTPFile"
694
+ }
695
+ ]
696
+ },
697
+ "entry": "Next.js"
698
+ }
699
+ ],
700
+ "next": "step_26"
701
+ },
702
+ "Next.js": {
703
+ "nodeId": "Next.js",
704
+ "rpcName": "pikkuNext",
705
+ "next": "OpenAPI re-inspect",
706
+ "stepHash": "23340e44049b"
707
+ },
708
+ "step_26": {
709
+ "nodeId": "step_26",
710
+ "flow": "branch",
711
+ "branches": [
712
+ {
713
+ "condition": {
714
+ "type": "simple",
715
+ "expression": "config.openAPI"
716
+ },
717
+ "entry": "OpenAPI re-inspect"
718
+ }
719
+ ],
720
+ "next": "Versions update"
721
+ },
722
+ "OpenAPI re-inspect": {
723
+ "nodeId": "OpenAPI re-inspect",
724
+ "flow": "inline",
725
+ "next": "OpenAPI"
726
+ },
727
+ "OpenAPI": {
728
+ "nodeId": "OpenAPI",
729
+ "rpcName": "pikkuOpenAPI",
730
+ "next": "Versions update",
731
+ "stepHash": "dde9b4dac1a8"
732
+ },
733
+ "Versions update": {
734
+ "nodeId": "Versions update",
735
+ "rpcName": "pikkuVersionsUpdate",
736
+ "next": "Bootstrap",
737
+ "stepHash": "181615f07c8d"
738
+ },
739
+ "Bootstrap": {
740
+ "nodeId": "Bootstrap",
741
+ "rpcName": "pikkuBootstrap",
742
+ "next": "Summary",
743
+ "stepHash": "3d656d5f2b03"
744
+ },
745
+ "Summary": {
746
+ "nodeId": "Summary",
747
+ "rpcName": "pikkuSummary",
748
+ "stepHash": "a6c8f33339e2"
749
+ },
750
+ "Function types split": {
751
+ "nodeId": "Function types split",
752
+ "rpcName": "pikkuFunctionTypesSplit",
753
+ "next": "Trigger types",
754
+ "stepHash": "3ce567580a38"
755
+ },
756
+ "Trigger types": {
757
+ "nodeId": "Trigger types",
758
+ "rpcName": "pikkuTriggerTypes",
759
+ "next": "AI agent types",
760
+ "stepHash": "01f3d641f2cf"
761
+ },
762
+ "AI agent types": {
763
+ "nodeId": "AI agent types",
764
+ "rpcName": "pikkuAIAgentTypes",
765
+ "next": "HTTP types",
766
+ "stepHash": "a0bf0ea14360"
767
+ },
768
+ "HTTP types": {
769
+ "nodeId": "HTTP types",
770
+ "rpcName": "pikkuHTTPTypes",
771
+ "next": "Channel types",
772
+ "stepHash": "f65b70567492"
773
+ },
774
+ "Channel types": {
775
+ "nodeId": "Channel types",
776
+ "rpcName": "pikkuChannelTypes",
777
+ "next": "Scheduler types",
778
+ "stepHash": "61560f2f0c8d"
779
+ },
780
+ "Scheduler types": {
781
+ "nodeId": "Scheduler types",
782
+ "rpcName": "pikkuSchedulerTypes",
783
+ "next": "Queue types",
784
+ "stepHash": "8f484a113d9c"
785
+ },
786
+ "Queue types": {
787
+ "nodeId": "Queue types",
788
+ "rpcName": "pikkuQueueTypes",
789
+ "next": "MCP types",
790
+ "stepHash": "32340a713206"
791
+ },
792
+ "MCP types": {
793
+ "nodeId": "MCP types",
794
+ "rpcName": "pikkuMCPTypes",
795
+ "next": "CLI types",
796
+ "stepHash": "685cbd3c2f83"
797
+ },
798
+ "CLI types": {
799
+ "nodeId": "CLI types",
800
+ "rpcName": "pikkuCLITypes",
801
+ "next": "Middleware",
802
+ "stepHash": "faf88549ab64"
803
+ },
804
+ "Middleware": {
805
+ "nodeId": "Middleware",
806
+ "rpcName": "pikkuMiddleware",
807
+ "next": "Permissions",
808
+ "stepHash": "69ff86ef7ac6"
809
+ },
810
+ "Permissions": {
811
+ "nodeId": "Permissions",
812
+ "rpcName": "pikkuPermissions",
813
+ "next": "Services",
814
+ "stepHash": "517642320b1f"
815
+ },
816
+ "RPC": {
817
+ "nodeId": "RPC",
818
+ "rpcName": "pikkuRPC",
819
+ "next": "AI agent",
820
+ "stepHash": "9c7ab6d16eb5"
821
+ },
822
+ "AI agent": {
823
+ "nodeId": "AI agent",
824
+ "rpcName": "pikkuAIAgent",
825
+ "next": "Public agent scaffold",
826
+ "stepHash": "b40cd11dc611"
827
+ },
828
+ "RPC internal map": {
829
+ "nodeId": "RPC internal map",
830
+ "rpcName": "pikkuRPCInternalMap",
831
+ "next": "RPC exposed map",
832
+ "stepHash": "71c071d4e0af"
833
+ },
834
+ "RPC exposed map": {
835
+ "nodeId": "RPC exposed map",
836
+ "rpcName": "pikkuRPCExposedMap",
837
+ "next": "Workflow",
838
+ "stepHash": "20b6c409e9fb"
839
+ },
840
+ "Workflow": {
841
+ "nodeId": "Workflow",
842
+ "rpcName": "pikkuWorkflow",
843
+ "next": "Remote RPC",
844
+ "stepHash": "21f5ac3be507"
845
+ },
846
+ "Remote RPC": {
847
+ "nodeId": "Remote RPC",
848
+ "rpcName": "pikkuRemoteRPC",
849
+ "next": "Workflow routes",
850
+ "stepHash": "82751ee2ed4b"
851
+ },
852
+ "Workflow routes": {
853
+ "nodeId": "Workflow routes",
854
+ "rpcName": "pikkuWorkflowRoutes",
855
+ "next": "Re-inspect after workflows",
856
+ "stepHash": "41b3fa734593"
857
+ },
858
+ "HTTP": {
859
+ "nodeId": "HTTP",
860
+ "rpcName": "pikkuHTTP",
861
+ "next": "Scheduler",
862
+ "stepHash": "3a613fe4489a"
863
+ },
864
+ "Scheduler": {
865
+ "nodeId": "Scheduler",
866
+ "rpcName": "pikkuScheduler",
867
+ "next": "Trigger",
868
+ "stepHash": "292dba63a8fa"
869
+ },
870
+ "Trigger": {
871
+ "nodeId": "Trigger",
872
+ "rpcName": "pikkuTrigger",
873
+ "next": "HTTP map",
874
+ "stepHash": "296e642d68de"
875
+ },
876
+ "Queue": {
877
+ "nodeId": "Queue",
878
+ "rpcName": "pikkuQueue",
879
+ "next": "Channels",
880
+ "stepHash": "6d9159ddfa71"
881
+ },
882
+ "Channels": {
883
+ "nodeId": "Channels",
884
+ "rpcName": "pikkuChannels",
885
+ "next": "Gateway",
886
+ "stepHash": "65df9df381cf"
887
+ },
888
+ "Gateway": {
889
+ "nodeId": "Gateway",
890
+ "rpcName": "pikkuGateway",
891
+ "next": "MCP",
892
+ "stepHash": "4aba6d4affbd"
893
+ },
894
+ "MCP": {
895
+ "nodeId": "MCP",
896
+ "rpcName": "pikkuMCP",
897
+ "next": "CLI",
898
+ "stepHash": "fd4e9c89c777"
899
+ },
900
+ "CLI": {
901
+ "nodeId": "CLI",
902
+ "rpcName": "pikkuCLI",
903
+ "next": "Queue map",
904
+ "stepHash": "8b5a8e81446a"
905
+ }
906
+ },
907
+ "entryNodeIds": [
908
+ "step_0"
909
+ ],
910
+ "graphHash": "13fb492ccbee"
911
+ }