@pikku/inspector 0.12.103 → 0.12.107

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 (74) hide show
  1. package/dist/add/add-auth.d.ts +1 -9
  2. package/dist/add/add-auth.js +64 -17
  3. package/dist/add/add-cli.js +25 -11
  4. package/dist/add/add-functions.js +35 -39
  5. package/dist/add/add-keyed-wiring.js +22 -2
  6. package/dist/add/add-middleware.js +17 -16
  7. package/dist/add/add-permission.d.ts +0 -3
  8. package/dist/add/add-permission.js +213 -22
  9. package/dist/add/add-scope.d.ts +1 -7
  10. package/dist/add/add-scope.js +1 -21
  11. package/dist/add/add-virtual-users.d.ts +13 -0
  12. package/dist/add/{add-personas.js → add-virtual-users.js} +33 -33
  13. package/dist/add/add-workflow.js +14 -10
  14. package/dist/add/check-indirect-registrations.d.ts +9 -0
  15. package/dist/add/check-indirect-registrations.js +114 -0
  16. package/dist/error-codes.d.ts +5 -3
  17. package/dist/error-codes.js +5 -3
  18. package/dist/finalize.d.ts +10 -0
  19. package/dist/finalize.js +102 -0
  20. package/dist/index.d.ts +8 -6
  21. package/dist/index.js +6 -5
  22. package/dist/initial-state.d.ts +7 -0
  23. package/dist/initial-state.js +216 -0
  24. package/dist/inspector.d.ts +6 -4
  25. package/dist/inspector.js +28 -300
  26. package/dist/lite.d.ts +26 -0
  27. package/dist/lite.js +25 -0
  28. package/dist/source-file-cache.d.ts +11 -0
  29. package/dist/source-file-cache.js +34 -10
  30. package/dist/types-map.js +2 -1
  31. package/dist/types.d.ts +35 -3
  32. package/dist/utils/apply-declared-scopes.d.ts +8 -0
  33. package/dist/utils/apply-declared-scopes.js +21 -0
  34. package/dist/utils/canonical-type-string.d.ts +14 -0
  35. package/dist/utils/canonical-type-string.js +162 -0
  36. package/dist/utils/context-based-id.d.ts +7 -0
  37. package/dist/utils/context-based-id.js +9 -0
  38. package/dist/utils/custom-types-generator.d.ts +15 -1
  39. package/dist/utils/custom-types-generator.js +17 -5
  40. package/dist/utils/ensure-function-metadata.d.ts +0 -14
  41. package/dist/utils/ensure-function-metadata.js +4 -1
  42. package/dist/utils/extract-function-name.d.ts +1 -1
  43. package/dist/utils/extract-function-name.js +2 -4
  44. package/dist/utils/filter-inspector-state.js +31 -1
  45. package/dist/utils/get-property-value.d.ts +5 -0
  46. package/dist/utils/get-property-value.js +15 -1
  47. package/dist/utils/inspector-constants.d.ts +16 -0
  48. package/dist/utils/inspector-constants.js +16 -0
  49. package/dist/utils/load-addon-functions-meta.js +1 -0
  50. package/dist/utils/post-process.d.ts +35 -36
  51. package/dist/utils/post-process.js +218 -193
  52. package/dist/utils/resolve-callee-name.d.ts +27 -0
  53. package/dist/utils/resolve-callee-name.js +147 -0
  54. package/dist/utils/resolve-service-types.d.ts +8 -0
  55. package/dist/utils/resolve-service-types.js +21 -0
  56. package/dist/utils/schema-generator.js +29 -2
  57. package/dist/utils/serialize-inspector-state.d.ts +9 -3
  58. package/dist/utils/serialize-inspector-state.js +22 -7
  59. package/dist/utils/single-declaration.d.ts +3 -3
  60. package/dist/utils/single-declaration.js +3 -3
  61. package/dist/utils/validate-single-step-workflows.d.ts +3 -0
  62. package/dist/utils/validate-single-step-workflows.js +32 -0
  63. package/dist/utils/workflow/dsl/extract-dsl-workflow.js +3 -3
  64. package/dist/utils/workflow/dsl/patterns.d.ts +4 -11
  65. package/dist/utils/workflow/dsl/patterns.js +5 -11
  66. package/dist/utils/workflow/graph/convert-dsl-to-graph.js +6 -6
  67. package/dist/utils/workflow/graph/workflow-graph.types.d.ts +5 -5
  68. package/dist/visit.js +4 -2
  69. package/package.json +25 -9
  70. package/CHANGELOG.md +0 -4318
  71. package/OPTIMIZATION-PLAN.md +0 -201
  72. package/dist/add/add-personas.d.ts +0 -13
  73. package/run-tests.sh +0 -68
  74. package/src/utils/test-data/inspector-state.json +0 -1687
@@ -1,1687 +0,0 @@
1
- {
2
- "rootDir": "src",
3
- "singletonServicesTypeImportMap": [
4
- [
5
- "/Users/yasser/git/pikku/pikku/templates/functions/types/application-types.d.ts",
6
- [
7
- {
8
- "variable": "SingletonServices",
9
- "type": "SingletonServices",
10
- "typePath": "/Users/yasser/git/pikku/pikku/templates/functions/types/application-types.d.ts"
11
- }
12
- ]
13
- ]
14
- ],
15
- "wireServicesTypeImportMap": [
16
- [
17
- "/Users/yasser/git/pikku/pikku/templates/functions/types/application-types.d.ts",
18
- [
19
- {
20
- "variable": "Services",
21
- "type": "Services",
22
- "typePath": "/Users/yasser/git/pikku/pikku/templates/functions/types/application-types.d.ts"
23
- }
24
- ]
25
- ]
26
- ],
27
- "userSessionTypeImportMap": [
28
- [
29
- "/Users/yasser/git/pikku/pikku/templates/functions/types/application-types.d.ts",
30
- [
31
- {
32
- "variable": "UserSession",
33
- "type": "UserSession",
34
- "typePath": "/Users/yasser/git/pikku/pikku/templates/functions/types/application-types.d.ts"
35
- }
36
- ]
37
- ]
38
- ],
39
- "configTypeImportMap": [
40
- [
41
- "/Users/yasser/git/pikku/pikku/templates/functions/types/application-types.d.ts",
42
- [
43
- {
44
- "variable": "Config",
45
- "type": "Config",
46
- "typePath": "/Users/yasser/git/pikku/pikku/templates/functions/types/application-types.d.ts"
47
- }
48
- ]
49
- ]
50
- ],
51
- "singletonServicesFactories": [
52
- [
53
- "src/services.ts",
54
- [
55
- {
56
- "variable": "createSingletonServices",
57
- "type": "CreateSingletonServices",
58
- "typePath": "src/services.ts"
59
- }
60
- ]
61
- ]
62
- ],
63
- "wireServicesFactories": [
64
- [
65
- "src/services.ts",
66
- [
67
- {
68
- "variable": "createWireServices",
69
- "type": "CreateWireServices",
70
- "typePath": "src/services.ts"
71
- }
72
- ]
73
- ]
74
- ],
75
- "wireServicesMeta": [["createWireServices", []]],
76
- "configFactories": [
77
- [
78
- "src/services.ts",
79
- [
80
- {
81
- "variable": "createConfig",
82
- "type": "CreateConfig",
83
- "typePath": "src/services.ts"
84
- }
85
- ]
86
- ]
87
- ],
88
- "filesAndMethods": {
89
- "userSessionType": {
90
- "file": "/Users/yasser/git/pikku/pikku/templates/functions/types/application-types.d.ts",
91
- "type": "UserSession",
92
- "variable": "UserSession",
93
- "typePath": "/Users/yasser/git/pikku/pikku/templates/functions/types/application-types.d.ts"
94
- },
95
- "singletonServicesType": {
96
- "file": "/Users/yasser/git/pikku/pikku/templates/functions/types/application-types.d.ts",
97
- "type": "SingletonServices",
98
- "variable": "SingletonServices",
99
- "typePath": "/Users/yasser/git/pikku/pikku/templates/functions/types/application-types.d.ts"
100
- },
101
- "wireServicesType": {
102
- "file": "/Users/yasser/git/pikku/pikku/templates/functions/types/application-types.d.ts",
103
- "type": "Services",
104
- "variable": "Services",
105
- "typePath": "/Users/yasser/git/pikku/pikku/templates/functions/types/application-types.d.ts"
106
- },
107
- "pikkuConfigType": {
108
- "file": "/Users/yasser/git/pikku/pikku/templates/functions/types/application-types.d.ts",
109
- "type": "Config",
110
- "variable": "Config",
111
- "typePath": "/Users/yasser/git/pikku/pikku/templates/functions/types/application-types.d.ts"
112
- },
113
- "pikkuConfigFactory": {
114
- "file": "src/services.ts",
115
- "type": "CreateConfig",
116
- "variable": "createConfig",
117
- "typePath": "src/services.ts"
118
- },
119
- "singletonServicesFactory": {
120
- "file": "src/services.ts",
121
- "type": "CreateSingletonServices",
122
- "variable": "createSingletonServices",
123
- "typePath": "src/services.ts"
124
- },
125
- "wireServicesFactory": {
126
- "file": "src/services.ts",
127
- "type": "CreateWireServices",
128
- "variable": "createWireServices",
129
- "typePath": "src/services.ts"
130
- }
131
- },
132
- "filesAndMethodsErrors": [],
133
- "functions": {
134
- "typesMap": {
135
- "map": [
136
- [
137
- "__object_4eav85",
138
- {
139
- "originalName": "__object",
140
- "path": "src/mcp.functions.ts"
141
- }
142
- ]
143
- ],
144
- "customTypes": [
145
- [
146
- "OnConnectInput",
147
- {
148
- "type": "\"hello!\"",
149
- "references": []
150
- }
151
- ],
152
- [
153
- "AuthenticateInput",
154
- {
155
- "type": "{ token: string; userId: string; }",
156
- "references": []
157
- }
158
- ],
159
- [
160
- "AuthenticateOutput",
161
- {
162
- "type": "{ authResult: boolean; action: \"auth\"; }",
163
- "references": []
164
- }
165
- ],
166
- [
167
- "LogoutOutput",
168
- {
169
- "type": "{ action: \"auth\"; }",
170
- "references": []
171
- }
172
- ],
173
- [
174
- "SubscribeInput",
175
- {
176
- "type": "{ name: string; }",
177
- "references": []
178
- }
179
- ],
180
- [
181
- "UnsubscribeInput",
182
- {
183
- "type": "{ name: string; }",
184
- "references": []
185
- }
186
- ],
187
- [
188
- "UnsubscribeOutput",
189
- {
190
- "type": "\"valid\"",
191
- "references": []
192
- }
193
- ],
194
- [
195
- "EmitMessageInput",
196
- {
197
- "type": "{ name: string; }",
198
- "references": []
199
- }
200
- ],
201
- [
202
- "EmitMessageOutput",
203
- {
204
- "type": "{ timestamp: string; from: string; } | { message: string; }",
205
- "references": []
206
- }
207
- ],
208
- [
209
- "OnMessageInput",
210
- {
211
- "type": "\"hello\"",
212
- "references": []
213
- }
214
- ],
215
- [
216
- "OnMessageOutput",
217
- {
218
- "type": "\"hey\"",
219
- "references": []
220
- }
221
- ],
222
- [
223
- "GreetUserInput",
224
- {
225
- "type": "{ name: string; loud: boolean; }",
226
- "references": []
227
- }
228
- ],
229
- [
230
- "GreetUserOutput",
231
- {
232
- "type": "{ message: string; timestamp: string; }",
233
- "references": []
234
- }
235
- ],
236
- [
237
- "AddNumbersInput",
238
- {
239
- "type": "{ a: number; b: number; }",
240
- "references": []
241
- }
242
- ],
243
- [
244
- "AddNumbersOutput",
245
- {
246
- "type": "{ operation: string; operands: number[]; result: number; expression: string; }",
247
- "references": []
248
- }
249
- ],
250
- [
251
- "SubtractNumbersInput",
252
- {
253
- "type": "{ a: number; b: number; }",
254
- "references": []
255
- }
256
- ],
257
- [
258
- "SubtractNumbersOutput",
259
- {
260
- "type": "{ operation: string; operands: number[]; result: number; expression: string; }",
261
- "references": []
262
- }
263
- ],
264
- [
265
- "MultiplyNumbersInput",
266
- {
267
- "type": "{ a: number; b: number; }",
268
- "references": []
269
- }
270
- ],
271
- [
272
- "MultiplyNumbersOutput",
273
- {
274
- "type": "{ operation: string; operands: number[]; result: number; expression: string; }",
275
- "references": []
276
- }
277
- ],
278
- [
279
- "DivideNumbersInput",
280
- {
281
- "type": "{ a: number; b: number; }",
282
- "references": []
283
- }
284
- ],
285
- [
286
- "DivideNumbersOutput",
287
- {
288
- "type": "{ operation: string; operands: number[]; result: number; expression: string; }",
289
- "references": []
290
- }
291
- ],
292
- [
293
- "CreateUserInput",
294
- {
295
- "type": "{ username: string; email: string; admin?: boolean; }",
296
- "references": []
297
- }
298
- ],
299
- [
300
- "CreateUserOutput",
301
- {
302
- "type": "{ id: number; username: string; email: string; admin: boolean; created: string; }",
303
- "references": []
304
- }
305
- ],
306
- [
307
- "ListUsersInput",
308
- {
309
- "type": "{ limit?: number; admin?: boolean; }",
310
- "references": []
311
- }
312
- ],
313
- [
314
- "ListUsersOutput",
315
- {
316
- "type": "{ users: any[]; total: number; filtered: boolean; }",
317
- "references": []
318
- }
319
- ],
320
- [
321
- "ProcessFileInput",
322
- {
323
- "type": "{ path: string; action: \"read\" | \"info\" | \"delete\"; backup?: boolean; }",
324
- "references": []
325
- }
326
- ],
327
- [
328
- "ProcessFileOutput",
329
- {
330
- "type": "{ path: string; action: string; backup: boolean; processed: boolean; timestamp: string; size: number; }",
331
- "references": []
332
- }
333
- ],
334
- [
335
- "ProgressiveEnhancementExampleOutput",
336
- {
337
- "type": "{ state: \"initial\" | \"pending\" | \"done\"; }",
338
- "references": []
339
- }
340
- ],
341
- [
342
- "TimeSinceOpenedOutput",
343
- {
344
- "type": "{ count: number; }",
345
- "references": []
346
- }
347
- ],
348
- [
349
- "SayHelloInput",
350
- {
351
- "type": "{ name?: string; }",
352
- "references": []
353
- }
354
- ],
355
- [
356
- "SayHelloOutput",
357
- {
358
- "type": "{ type: string; text: string; }[]",
359
- "references": ["__object_4eav85", "__object_4eav85"]
360
- }
361
- ],
362
- [
363
- "DisableToolInput",
364
- {
365
- "type": "{ name: string; }",
366
- "references": []
367
- }
368
- ],
369
- [
370
- "DisableToolOutput",
371
- {
372
- "type": "{ type: string; text: string; }[]",
373
- "references": ["__object_4eav85", "__object_4eav85"]
374
- }
375
- ],
376
- [
377
- "CalculateInput",
378
- {
379
- "type": "{ operation: \"add\" | \"subtract\" | \"multiply\" | \"divide\"; a: number; b: number; }",
380
- "references": []
381
- }
382
- ],
383
- [
384
- "CalculateOutput",
385
- {
386
- "type": "{ type: string; text: string; }[]",
387
- "references": ["__object_4eav85", "__object_4eav85"]
388
- }
389
- ],
390
- [
391
- "GetStaticResourceOutput",
392
- {
393
- "type": "{ uri: any; text: string; }[]",
394
- "references": ["__object_4eav85", "__object_4eav85"]
395
- }
396
- ],
397
- [
398
- "GetUserInfoInput",
399
- {
400
- "type": "{ userId: string; }",
401
- "references": []
402
- }
403
- ],
404
- [
405
- "GetUserInfoOutput",
406
- {
407
- "type": "{ uri: string; text: string; }[]",
408
- "references": ["__object_4eav85", "__object_4eav85"]
409
- }
410
- ],
411
- [
412
- "StaticPromptGeneratorOutput",
413
- {
414
- "type": "{ role: string; content: { type: string; text: string; }; }[]",
415
- "references": ["__object_4eav85", "__object_4eav85"]
416
- }
417
- ],
418
- [
419
- "DynamicPromptGeneratorInput",
420
- {
421
- "type": "{ topic: string; complexity: \"beginner\" | \"intermediate\" | \"advanced\"; includeExamples?: string; }",
422
- "references": []
423
- }
424
- ],
425
- [
426
- "DynamicPromptGeneratorOutput",
427
- {
428
- "type": "{ role: \"user\"; content: { type: \"text\"; text: string; }; }[]",
429
- "references": ["__object_4eav85", "__object_4eav85"]
430
- }
431
- ],
432
- [
433
- "QueueWorkerInput",
434
- {
435
- "type": "{ message: string; fail: boolean; }",
436
- "references": []
437
- }
438
- ],
439
- [
440
- "QueueWorkerOutput",
441
- {
442
- "type": "{ result: string; }",
443
- "references": []
444
- }
445
- ],
446
- [
447
- "QueueWorkerWithMiddlewareInput",
448
- {
449
- "type": "{ message: string; }",
450
- "references": []
451
- }
452
- ],
453
- [
454
- "QueueWorkerWithMiddlewareOutput",
455
- {
456
- "type": "{ result: string; }",
457
- "references": []
458
- }
459
- ],
460
- [
461
- "RpcTestInput",
462
- {
463
- "type": "{ in: number; }",
464
- "references": []
465
- }
466
- ],
467
- [
468
- "RpcCallerInput",
469
- {
470
- "type": "{ name: string; data: unknown; }",
471
- "references": []
472
- }
473
- ]
474
- ]
475
- },
476
- "meta": {
477
- "onConnect": {
478
- "pikkuFuncId": "onConnect",
479
- "name": "onConnect",
480
- "services": {
481
- "optimized": true,
482
- "services": ["logger", "channel"]
483
- },
484
- "inputSchemaName": "OnConnectInput",
485
- "outputSchemaName": null,
486
- "inputs": ["OnConnectInput"],
487
- "outputs": [],
488
- "isDirectFunction": true
489
- },
490
- "onDisconnect": {
491
- "pikkuFuncId": "onDisconnect",
492
- "name": "onDisconnect",
493
- "services": {
494
- "optimized": true,
495
- "services": ["logger", "channel"]
496
- },
497
- "inputSchemaName": null,
498
- "outputSchemaName": null,
499
- "inputs": [],
500
- "outputs": [],
501
- "isDirectFunction": true
502
- },
503
- "authenticate": {
504
- "pikkuFuncId": "authenticate",
505
- "name": "authenticate",
506
- "services": {
507
- "optimized": true,
508
- "services": ["userSession"]
509
- },
510
- "inputSchemaName": "AuthenticateInput",
511
- "outputSchemaName": "AuthenticateOutput",
512
- "inputs": ["AuthenticateInput"],
513
- "outputs": ["AuthenticateOutput"],
514
- "isDirectFunction": true
515
- },
516
- "logout": {
517
- "pikkuFuncId": "logout",
518
- "name": "logout",
519
- "services": {
520
- "optimized": true,
521
- "services": ["userSession"]
522
- },
523
- "inputSchemaName": null,
524
- "outputSchemaName": "LogoutOutput",
525
- "inputs": [],
526
- "outputs": ["LogoutOutput"],
527
- "isDirectFunction": false
528
- },
529
- "subscribe": {
530
- "pikkuFuncId": "subscribe",
531
- "name": "subscribe",
532
- "services": {
533
- "optimized": true,
534
- "services": ["eventHub", "channel"]
535
- },
536
- "inputSchemaName": "SubscribeInput",
537
- "outputSchemaName": null,
538
- "inputs": ["SubscribeInput"],
539
- "outputs": [],
540
- "isDirectFunction": true
541
- },
542
- "unsubscribe": {
543
- "pikkuFuncId": "unsubscribe",
544
- "name": "unsubscribe",
545
- "services": {
546
- "optimized": true,
547
- "services": ["channel", "eventHub"]
548
- },
549
- "inputSchemaName": "UnsubscribeInput",
550
- "outputSchemaName": "UnsubscribeOutput",
551
- "inputs": ["UnsubscribeInput"],
552
- "outputs": ["UnsubscribeOutput"],
553
- "isDirectFunction": true
554
- },
555
- "emitMessage": {
556
- "pikkuFuncId": "emitMessage",
557
- "name": "emitMessage",
558
- "services": {
559
- "optimized": true,
560
- "services": ["userSession", "eventHub", "channel"]
561
- },
562
- "inputSchemaName": "EmitMessageInput",
563
- "outputSchemaName": "EmitMessageOutput",
564
- "inputs": ["EmitMessageInput"],
565
- "outputs": ["EmitMessageOutput"],
566
- "isDirectFunction": true
567
- },
568
- "onMessage": {
569
- "pikkuFuncId": "onMessage",
570
- "name": "onMessage",
571
- "services": {
572
- "optimized": true,
573
- "services": ["logger", "channel"]
574
- },
575
- "inputSchemaName": "OnMessageInput",
576
- "outputSchemaName": "OnMessageOutput",
577
- "inputs": ["OnMessageInput"],
578
- "outputs": ["OnMessageOutput"],
579
- "isDirectFunction": true
580
- },
581
- "greetUser": {
582
- "pikkuFuncId": "greetUser",
583
- "name": "greetUser",
584
- "services": {
585
- "optimized": false,
586
- "services": []
587
- },
588
- "inputSchemaName": "GreetUserInput",
589
- "outputSchemaName": "GreetUserOutput",
590
- "inputs": ["GreetUserInput"],
591
- "outputs": ["GreetUserOutput"],
592
- "isDirectFunction": false
593
- },
594
- "addNumbers": {
595
- "pikkuFuncId": "addNumbers",
596
- "name": "addNumbers",
597
- "services": {
598
- "optimized": false,
599
- "services": []
600
- },
601
- "inputSchemaName": "AddNumbersInput",
602
- "outputSchemaName": "AddNumbersOutput",
603
- "inputs": ["AddNumbersInput"],
604
- "outputs": ["AddNumbersOutput"],
605
- "isDirectFunction": false
606
- },
607
- "subtractNumbers": {
608
- "pikkuFuncId": "subtractNumbers",
609
- "name": "subtractNumbers",
610
- "services": {
611
- "optimized": false,
612
- "services": []
613
- },
614
- "inputSchemaName": "SubtractNumbersInput",
615
- "outputSchemaName": "SubtractNumbersOutput",
616
- "inputs": ["SubtractNumbersInput"],
617
- "outputs": ["SubtractNumbersOutput"],
618
- "isDirectFunction": false
619
- },
620
- "multiplyNumbers": {
621
- "pikkuFuncId": "multiplyNumbers",
622
- "name": "multiplyNumbers",
623
- "services": {
624
- "optimized": false,
625
- "services": []
626
- },
627
- "inputSchemaName": "MultiplyNumbersInput",
628
- "outputSchemaName": "MultiplyNumbersOutput",
629
- "inputs": ["MultiplyNumbersInput"],
630
- "outputs": ["MultiplyNumbersOutput"],
631
- "isDirectFunction": false
632
- },
633
- "divideNumbers": {
634
- "pikkuFuncId": "divideNumbers",
635
- "name": "divideNumbers",
636
- "services": {
637
- "optimized": false,
638
- "services": []
639
- },
640
- "inputSchemaName": "DivideNumbersInput",
641
- "outputSchemaName": "DivideNumbersOutput",
642
- "inputs": ["DivideNumbersInput"],
643
- "outputs": ["DivideNumbersOutput"],
644
- "isDirectFunction": false
645
- },
646
- "createUser": {
647
- "pikkuFuncId": "createUser",
648
- "name": "createUser",
649
- "services": {
650
- "optimized": false,
651
- "services": []
652
- },
653
- "inputSchemaName": "CreateUserInput",
654
- "outputSchemaName": "CreateUserOutput",
655
- "inputs": ["CreateUserInput"],
656
- "outputs": ["CreateUserOutput"],
657
- "isDirectFunction": false
658
- },
659
- "listUsers": {
660
- "pikkuFuncId": "listUsers",
661
- "name": "listUsers",
662
- "services": {
663
- "optimized": false,
664
- "services": []
665
- },
666
- "inputSchemaName": "ListUsersInput",
667
- "outputSchemaName": "ListUsersOutput",
668
- "inputs": ["ListUsersInput"],
669
- "outputs": ["ListUsersOutput"],
670
- "isDirectFunction": false
671
- },
672
- "processFile": {
673
- "pikkuFuncId": "processFile",
674
- "name": "processFile",
675
- "services": {
676
- "optimized": false,
677
- "services": []
678
- },
679
- "inputSchemaName": "ProcessFileInput",
680
- "outputSchemaName": "ProcessFileOutput",
681
- "inputs": ["ProcessFileInput"],
682
- "outputs": ["ProcessFileOutput"],
683
- "isDirectFunction": false
684
- },
685
- "progressiveEnhancementExample": {
686
- "pikkuFuncId": "progressiveEnhancementExample",
687
- "name": "progressiveEnhancementExample",
688
- "services": {
689
- "optimized": false,
690
- "services": []
691
- },
692
- "inputSchemaName": null,
693
- "outputSchemaName": "ProgressiveEnhancementExampleOutput",
694
- "inputs": [],
695
- "outputs": ["ProgressiveEnhancementExampleOutput"],
696
- "isDirectFunction": true
697
- },
698
- "timeSinceOpened": {
699
- "pikkuFuncId": "timeSinceOpened",
700
- "name": "timeSinceOpened",
701
- "services": {
702
- "optimized": true,
703
- "services": ["channel"]
704
- },
705
- "inputSchemaName": null,
706
- "outputSchemaName": "TimeSinceOpenedOutput",
707
- "inputs": [],
708
- "outputs": ["TimeSinceOpenedOutput"],
709
- "isDirectFunction": true
710
- },
711
- "welcomeToPikku": {
712
- "pikkuFuncId": "welcomeToPikku",
713
- "name": "welcomeToPikku",
714
- "services": {
715
- "optimized": true,
716
- "services": []
717
- },
718
- "inputSchemaName": null,
719
- "outputSchemaName": "string",
720
- "inputs": [],
721
- "outputs": ["string"],
722
- "isDirectFunction": true
723
- },
724
- "helloWorld": {
725
- "pikkuFuncId": "helloWorld",
726
- "name": "helloWorld",
727
- "services": {
728
- "optimized": true,
729
- "services": []
730
- },
731
- "inputSchemaName": null,
732
- "outputSchemaName": "string",
733
- "inputs": [],
734
- "outputs": ["string"],
735
- "isDirectFunction": true
736
- },
737
- "sayHello": {
738
- "pikkuFuncId": "sayHello",
739
- "name": "sayHello",
740
- "services": {
741
- "optimized": false,
742
- "services": []
743
- },
744
- "inputSchemaName": "SayHelloInput",
745
- "outputSchemaName": "SayHelloOutput",
746
- "inputs": ["SayHelloInput"],
747
- "outputs": ["SayHelloOutput"],
748
- "isDirectFunction": true
749
- },
750
- "disableTool": {
751
- "pikkuFuncId": "disableTool",
752
- "name": "disableTool",
753
- "services": {
754
- "optimized": false,
755
- "services": []
756
- },
757
- "inputSchemaName": "DisableToolInput",
758
- "outputSchemaName": "DisableToolOutput",
759
- "inputs": ["DisableToolInput"],
760
- "outputs": ["DisableToolOutput"],
761
- "isDirectFunction": true
762
- },
763
- "calculate": {
764
- "pikkuFuncId": "calculate",
765
- "name": "calculate",
766
- "services": {
767
- "optimized": true,
768
- "services": ["logger"]
769
- },
770
- "inputSchemaName": "CalculateInput",
771
- "outputSchemaName": "CalculateOutput",
772
- "inputs": ["CalculateInput"],
773
- "outputs": ["CalculateOutput"],
774
- "isDirectFunction": true
775
- },
776
- "getStaticResource": {
777
- "pikkuFuncId": "getStaticResource",
778
- "name": "getStaticResource",
779
- "services": {
780
- "optimized": true,
781
- "services": ["mcp"]
782
- },
783
- "inputSchemaName": null,
784
- "outputSchemaName": "GetStaticResourceOutput",
785
- "inputs": [],
786
- "outputs": ["GetStaticResourceOutput"],
787
- "isDirectFunction": true
788
- },
789
- "getUserInfo": {
790
- "pikkuFuncId": "getUserInfo",
791
- "name": "getUserInfo",
792
- "services": {
793
- "optimized": false,
794
- "services": []
795
- },
796
- "inputSchemaName": "GetUserInfoInput",
797
- "outputSchemaName": "GetUserInfoOutput",
798
- "inputs": ["GetUserInfoInput"],
799
- "outputs": ["GetUserInfoOutput"],
800
- "isDirectFunction": true
801
- },
802
- "staticPromptGenerator": {
803
- "pikkuFuncId": "staticPromptGenerator",
804
- "name": "staticPromptGenerator",
805
- "services": {
806
- "optimized": true,
807
- "services": []
808
- },
809
- "inputSchemaName": null,
810
- "outputSchemaName": "StaticPromptGeneratorOutput",
811
- "inputs": [],
812
- "outputs": ["StaticPromptGeneratorOutput"],
813
- "isDirectFunction": true
814
- },
815
- "dynamicPromptGenerator": {
816
- "pikkuFuncId": "dynamicPromptGenerator",
817
- "name": "dynamicPromptGenerator",
818
- "services": {
819
- "optimized": false,
820
- "services": []
821
- },
822
- "inputSchemaName": "DynamicPromptGeneratorInput",
823
- "outputSchemaName": "DynamicPromptGeneratorOutput",
824
- "inputs": ["DynamicPromptGeneratorInput"],
825
- "outputs": ["DynamicPromptGeneratorOutput"],
826
- "isDirectFunction": true
827
- },
828
- "queueWorker": {
829
- "pikkuFuncId": "queueWorker",
830
- "name": "queueWorker",
831
- "services": {
832
- "optimized": true,
833
- "services": []
834
- },
835
- "inputSchemaName": "QueueWorkerInput",
836
- "outputSchemaName": "QueueWorkerOutput",
837
- "inputs": ["QueueWorkerInput"],
838
- "outputs": ["QueueWorkerOutput"],
839
- "isDirectFunction": true
840
- },
841
- "queueWorkerWithMiddleware": {
842
- "pikkuFuncId": "queueWorkerWithMiddleware",
843
- "name": "queueWorkerWithMiddleware",
844
- "services": {
845
- "optimized": true,
846
- "services": ["logger"]
847
- },
848
- "inputSchemaName": "QueueWorkerWithMiddlewareInput",
849
- "outputSchemaName": "QueueWorkerWithMiddlewareOutput",
850
- "inputs": ["QueueWorkerWithMiddlewareInput"],
851
- "outputs": ["QueueWorkerWithMiddlewareOutput"],
852
- "isDirectFunction": false,
853
- "middleware": [
854
- {
855
- "type": "wire",
856
- "name": "loggingMiddleware",
857
- "inline": false
858
- }
859
- ]
860
- },
861
- "rpcTest": {
862
- "pikkuFuncId": "rpcTest",
863
- "name": "rpcTest",
864
- "services": {
865
- "optimized": true,
866
- "services": ["logger", "rpc"]
867
- },
868
- "inputSchemaName": "RpcTestInput",
869
- "outputSchemaName": null,
870
- "inputs": ["RpcTestInput"],
871
- "outputs": [],
872
- "expose": true,
873
- "isDirectFunction": false
874
- },
875
- "rpcCaller": {
876
- "pikkuFuncId": "rpcCaller",
877
- "name": "rpcCaller",
878
- "services": {
879
- "optimized": true,
880
- "services": ["rpc"]
881
- },
882
- "inputSchemaName": "RpcCallerInput",
883
- "outputSchemaName": null,
884
- "inputs": ["RpcCallerInput"],
885
- "outputs": [],
886
- "isDirectFunction": true
887
- },
888
- "myScheduledTask": {
889
- "pikkuFuncId": "myScheduledTask",
890
- "name": "myScheduledTask",
891
- "services": {
892
- "optimized": true,
893
- "services": ["logger"]
894
- },
895
- "inputSchemaName": null,
896
- "outputSchemaName": null,
897
- "inputs": [],
898
- "outputs": [],
899
- "isDirectFunction": true
900
- }
901
- },
902
- "files": [
903
- [
904
- "onConnect",
905
- {
906
- "path": "src/channel.functions.ts",
907
- "exportedName": "onConnect"
908
- }
909
- ],
910
- [
911
- "onDisconnect",
912
- {
913
- "path": "src/channel.functions.ts",
914
- "exportedName": "onDisconnect"
915
- }
916
- ],
917
- [
918
- "authenticate",
919
- {
920
- "path": "src/channel.functions.ts",
921
- "exportedName": "authenticate"
922
- }
923
- ],
924
- [
925
- "logout",
926
- {
927
- "path": "src/channel.functions.ts",
928
- "exportedName": "logout"
929
- }
930
- ],
931
- [
932
- "subscribe",
933
- {
934
- "path": "src/channel.functions.ts",
935
- "exportedName": "subscribe"
936
- }
937
- ],
938
- [
939
- "unsubscribe",
940
- {
941
- "path": "src/channel.functions.ts",
942
- "exportedName": "unsubscribe"
943
- }
944
- ],
945
- [
946
- "emitMessage",
947
- {
948
- "path": "src/channel.functions.ts",
949
- "exportedName": "emitMessage"
950
- }
951
- ],
952
- [
953
- "onMessage",
954
- {
955
- "path": "src/channel.functions.ts",
956
- "exportedName": "onMessage"
957
- }
958
- ],
959
- [
960
- "greetUser",
961
- {
962
- "path": "src/cli.functions.ts",
963
- "exportedName": "greetUser"
964
- }
965
- ],
966
- [
967
- "addNumbers",
968
- {
969
- "path": "src/cli.functions.ts",
970
- "exportedName": "addNumbers"
971
- }
972
- ],
973
- [
974
- "subtractNumbers",
975
- {
976
- "path": "src/cli.functions.ts",
977
- "exportedName": "subtractNumbers"
978
- }
979
- ],
980
- [
981
- "multiplyNumbers",
982
- {
983
- "path": "src/cli.functions.ts",
984
- "exportedName": "multiplyNumbers"
985
- }
986
- ],
987
- [
988
- "divideNumbers",
989
- {
990
- "path": "src/cli.functions.ts",
991
- "exportedName": "divideNumbers"
992
- }
993
- ],
994
- [
995
- "createUser",
996
- {
997
- "path": "src/cli.functions.ts",
998
- "exportedName": "createUser"
999
- }
1000
- ],
1001
- [
1002
- "listUsers",
1003
- {
1004
- "path": "src/cli.functions.ts",
1005
- "exportedName": "listUsers"
1006
- }
1007
- ],
1008
- [
1009
- "processFile",
1010
- {
1011
- "path": "src/cli.functions.ts",
1012
- "exportedName": "processFile"
1013
- }
1014
- ],
1015
- [
1016
- "progressiveEnhancementExample",
1017
- {
1018
- "path": "src/http-progressive-enhancement.functions.ts",
1019
- "exportedName": "progressiveEnhancementExample"
1020
- }
1021
- ],
1022
- [
1023
- "timeSinceOpened",
1024
- {
1025
- "path": "src/http-sse.functions.ts",
1026
- "exportedName": "timeSinceOpened"
1027
- }
1028
- ],
1029
- [
1030
- "welcomeToPikku",
1031
- {
1032
- "path": "src/http.functions.ts",
1033
- "exportedName": "welcomeToPikku"
1034
- }
1035
- ],
1036
- [
1037
- "helloWorld",
1038
- {
1039
- "path": "src/http.functions.ts",
1040
- "exportedName": "helloWorld"
1041
- }
1042
- ],
1043
- [
1044
- "sayHello",
1045
- {
1046
- "path": "src/mcp.functions.ts",
1047
- "exportedName": "sayHello"
1048
- }
1049
- ],
1050
- [
1051
- "disableTool",
1052
- {
1053
- "path": "src/mcp.functions.ts",
1054
- "exportedName": "disableTool"
1055
- }
1056
- ],
1057
- [
1058
- "calculate",
1059
- {
1060
- "path": "src/mcp.functions.ts",
1061
- "exportedName": "calculate"
1062
- }
1063
- ],
1064
- [
1065
- "getStaticResource",
1066
- {
1067
- "path": "src/mcp.functions.ts",
1068
- "exportedName": "getStaticResource"
1069
- }
1070
- ],
1071
- [
1072
- "getUserInfo",
1073
- {
1074
- "path": "src/mcp.functions.ts",
1075
- "exportedName": "getUserInfo"
1076
- }
1077
- ],
1078
- [
1079
- "staticPromptGenerator",
1080
- {
1081
- "path": "src/mcp.functions.ts",
1082
- "exportedName": "staticPromptGenerator"
1083
- }
1084
- ],
1085
- [
1086
- "dynamicPromptGenerator",
1087
- {
1088
- "path": "src/mcp.functions.ts",
1089
- "exportedName": "dynamicPromptGenerator"
1090
- }
1091
- ],
1092
- [
1093
- "queueWorker",
1094
- {
1095
- "path": "src/queue-worker.functions.ts",
1096
- "exportedName": "queueWorker"
1097
- }
1098
- ],
1099
- [
1100
- "queueWorkerWithMiddleware",
1101
- {
1102
- "path": "src/queue-worker.functions.ts",
1103
- "exportedName": "queueWorkerWithMiddleware"
1104
- }
1105
- ],
1106
- [
1107
- "rpcTest",
1108
- {
1109
- "path": "src/rpc.functions.ts",
1110
- "exportedName": "rpcTest"
1111
- }
1112
- ],
1113
- [
1114
- "rpcCaller",
1115
- {
1116
- "path": "src/rpc.wiring.ts",
1117
- "exportedName": "rpcCaller"
1118
- }
1119
- ],
1120
- [
1121
- "myScheduledTask",
1122
- {
1123
- "path": "src/scheduled-task.functions.ts",
1124
- "exportedName": "myScheduledTask"
1125
- }
1126
- ]
1127
- ]
1128
- },
1129
- "http": {
1130
- "metaInputTypes": [
1131
- [
1132
- "RpcCallerInput",
1133
- {
1134
- "query": [],
1135
- "params": [],
1136
- "body": []
1137
- }
1138
- ]
1139
- ],
1140
- "meta": {
1141
- "get": {
1142
- "/status/sse": {
1143
- "pikkuFuncId": "progressiveEnhancementExample",
1144
- "route": "/status/sse",
1145
- "method": "get"
1146
- },
1147
- "/status/http": {
1148
- "pikkuFuncId": "progressiveEnhancementExample",
1149
- "route": "/status/http",
1150
- "method": "get"
1151
- },
1152
- "/sse": {
1153
- "pikkuFuncId": "timeSinceOpened",
1154
- "route": "/sse",
1155
- "method": "get"
1156
- },
1157
- "/": {
1158
- "pikkuFuncId": "welcomeToPikku",
1159
- "route": "/",
1160
- "method": "get",
1161
- "tags": ["welcome"]
1162
- },
1163
- "/hello-world": {
1164
- "pikkuFuncId": "helloWorld",
1165
- "route": "/hello-world",
1166
- "method": "get",
1167
- "tags": ["hello"]
1168
- }
1169
- },
1170
- "post": {
1171
- "/rpc": {
1172
- "pikkuFuncId": "rpcCaller",
1173
- "route": "/rpc",
1174
- "method": "post"
1175
- }
1176
- },
1177
- "put": {},
1178
- "delete": {},
1179
- "head": {},
1180
- "patch": {},
1181
- "options": {}
1182
- },
1183
- "files": [
1184
- "src/http-progressive-enhancement.wiring.ts",
1185
- "src/http-sse.wiring.ts",
1186
- "src/http.wiring.ts",
1187
- "src/rpc.wiring.ts"
1188
- ],
1189
- "routeMiddleware": [],
1190
- "routePermissions": []
1191
- },
1192
- "channels": {
1193
- "files": [
1194
- "src/channel.wiring.ts",
1195
- "src/http-progressive-enhancement.wiring.ts"
1196
- ],
1197
- "meta": {
1198
- "events": {
1199
- "name": "events",
1200
- "route": "/",
1201
- "input": null,
1202
- "connect": null,
1203
- "disconnect": null,
1204
- "message": null,
1205
- "messageWirings": {
1206
- "action": {
1207
- "auth": {
1208
- "pikkuFuncId": "authenticate"
1209
- },
1210
- "logout": {
1211
- "pikkuFuncId": "logout"
1212
- },
1213
- "subscribe": {
1214
- "pikkuFuncId": "subscribe"
1215
- },
1216
- "unsubscribe": {
1217
- "pikkuFuncId": "unsubscribe"
1218
- },
1219
- "emit": {
1220
- "pikkuFuncId": "emitMessage"
1221
- }
1222
- }
1223
- },
1224
- "tags": ["events"]
1225
- },
1226
- "progressive-enhancement": {
1227
- "name": "progressive-enhancement",
1228
- "route": "/status/websocket",
1229
- "input": null,
1230
- "connect": null,
1231
- "disconnect": null,
1232
- "message": null,
1233
- "messageWirings": {
1234
- "action": {
1235
- "status": {
1236
- "pikkuFuncId": "progressiveEnhancementExample"
1237
- }
1238
- }
1239
- }
1240
- }
1241
- }
1242
- },
1243
- "scheduledTasks": {
1244
- "meta": {
1245
- "myScheduledTask": {
1246
- "pikkuFuncId": "myScheduledTask",
1247
- "name": "myScheduledTask",
1248
- "schedule": "*/1 * * * *",
1249
- "tags": ["hello"]
1250
- }
1251
- },
1252
- "files": ["src/scheduled-task.wiring.ts"]
1253
- },
1254
- "queueWorkers": {
1255
- "meta": {
1256
- "hello-world-queue": {
1257
- "pikkuFuncId": "queueWorker",
1258
- "queueName": "hello-world-queue"
1259
- }
1260
- },
1261
- "files": ["src/queue-worker.wiring.ts"]
1262
- },
1263
- "workflows": {
1264
- "meta": {},
1265
- "files": [],
1266
- "invokedWorkflows": []
1267
- },
1268
- "rpc": {
1269
- "internalMeta": {
1270
- "onConnect": "onConnect",
1271
- "onDisconnect": "onDisconnect",
1272
- "authenticate": "authenticate",
1273
- "logout": "logout",
1274
- "subscribe": "subscribe",
1275
- "unsubscribe": "unsubscribe",
1276
- "emitMessage": "emitMessage",
1277
- "onMessage": "onMessage",
1278
- "greetUser": "greetUser",
1279
- "addNumbers": "addNumbers",
1280
- "subtractNumbers": "subtractNumbers",
1281
- "multiplyNumbers": "multiplyNumbers",
1282
- "divideNumbers": "divideNumbers",
1283
- "createUser": "createUser",
1284
- "listUsers": "listUsers",
1285
- "processFile": "processFile",
1286
- "progressiveEnhancementExample": "progressiveEnhancementExample",
1287
- "timeSinceOpened": "timeSinceOpened",
1288
- "welcomeToPikku": "welcomeToPikku",
1289
- "helloWorld": "helloWorld",
1290
- "sayHello": "sayHello",
1291
- "disableTool": "disableTool",
1292
- "calculate": "calculate",
1293
- "getStaticResource": "getStaticResource",
1294
- "getUserInfo": "getUserInfo",
1295
- "staticPromptGenerator": "staticPromptGenerator",
1296
- "dynamicPromptGenerator": "dynamicPromptGenerator",
1297
- "queueWorker": "queueWorker",
1298
- "queueWorkerWithMiddleware": "queueWorkerWithMiddleware",
1299
- "rpcTest": "rpcTest",
1300
- "rpcCaller": "rpcCaller",
1301
- "myScheduledTask": "myScheduledTask"
1302
- },
1303
- "internalFiles": [
1304
- [
1305
- "rpcTest",
1306
- {
1307
- "path": "src/rpc.functions.ts",
1308
- "exportedName": "rpcTest"
1309
- }
1310
- ]
1311
- ],
1312
- "exposedMeta": {
1313
- "rpcTest": "rpcTest"
1314
- },
1315
- "exposedFiles": [
1316
- [
1317
- "rpcTest",
1318
- {
1319
- "path": "src/rpc.functions.ts",
1320
- "exportedName": "rpcTest"
1321
- }
1322
- ]
1323
- ],
1324
- "invokedFunctions": ["rpcTest"]
1325
- },
1326
- "mcpEndpoints": {
1327
- "resourcesMeta": {
1328
- "getStaticResource": {
1329
- "pikkuFuncId": "getStaticResource",
1330
- "uri": "getStaticResource",
1331
- "title": "Static Resource",
1332
- "description": "Gets a static resource with predefined data",
1333
- "inputSchema": null,
1334
- "outputSchema": "GetStaticResourceOutput"
1335
- },
1336
- "getUserInfo/{userId}": {
1337
- "pikkuFuncId": "getUserInfo",
1338
- "uri": "getUserInfo/{userId}",
1339
- "title": "User Information",
1340
- "description": "Retrieve user information by user ID",
1341
- "tags": ["user", "profile", "data"],
1342
- "inputSchema": "GetUserInfoInput",
1343
- "outputSchema": "GetUserInfoOutput"
1344
- }
1345
- },
1346
- "toolsMeta": {
1347
- "sayHello": {
1348
- "pikkuFuncId": "sayHello",
1349
- "name": "sayHello",
1350
- "description": "Greet someone with a friendly hello message",
1351
- "tags": ["greeting", "hello", "demo"],
1352
- "inputSchema": "SayHelloInput",
1353
- "outputSchema": "SayHelloOutput"
1354
- },
1355
- "disableTool": {
1356
- "pikkuFuncId": "disableTool",
1357
- "name": "disableTool",
1358
- "description": "Disable a tool by name",
1359
- "inputSchema": "DisableToolInput",
1360
- "outputSchema": "DisableToolOutput"
1361
- },
1362
- "calculate": {
1363
- "pikkuFuncId": "calculate",
1364
- "name": "calculate",
1365
- "description": "Perform basic mathematical operations (add, subtract, multiply, divide)",
1366
- "tags": ["math", "calculator", "arithmetic"],
1367
- "inputSchema": "CalculateInput",
1368
- "outputSchema": "CalculateOutput"
1369
- }
1370
- },
1371
- "promptsMeta": {
1372
- "getStaticResource": {
1373
- "pikkuFuncId": "staticPromptGenerator",
1374
- "name": "getStaticResource",
1375
- "description": "A static prompt that returns a predefined message",
1376
- "inputSchema": null,
1377
- "outputSchema": "StaticPromptGeneratorOutput",
1378
- "arguments": []
1379
- },
1380
- "dynamicPromptGenerator": {
1381
- "pikkuFuncId": "dynamicPromptGenerator",
1382
- "name": "dynamicPromptGenerator",
1383
- "description": "Generate educational content with progressive complexity and optional examples",
1384
- "tags": ["education", "content", "progressive", "examples"],
1385
- "inputSchema": "DynamicPromptGeneratorInput",
1386
- "outputSchema": "DynamicPromptGeneratorOutput",
1387
- "arguments": []
1388
- }
1389
- },
1390
- "files": ["src/mcp.wiring.ts"]
1391
- },
1392
- "cli": {
1393
- "meta": {
1394
- "programs": {
1395
- "my-cli": {
1396
- "program": "my-cli",
1397
- "commands": {
1398
- "greet": {
1399
- "pikkuFuncId": "greetUser",
1400
- "positionals": [
1401
- {
1402
- "name": "name",
1403
- "required": true
1404
- }
1405
- ],
1406
- "options": {
1407
- "loud": {
1408
- "description": "Use loud greeting (uppercase)",
1409
- "short": "l",
1410
- "default": false
1411
- }
1412
- },
1413
- "parameters": "<name>",
1414
- "description": "Greet a user by name",
1415
- "renderName": "greetRenderer"
1416
- },
1417
- "calc": {
1418
- "pikkuFuncId": "",
1419
- "positionals": [],
1420
- "options": {},
1421
- "description": "Mathematical calculations",
1422
- "subcommands": {
1423
- "add": {
1424
- "pikkuFuncId": "addNumbers",
1425
- "positionals": [
1426
- {
1427
- "name": "a",
1428
- "required": true
1429
- },
1430
- {
1431
- "name": "b",
1432
- "required": true
1433
- }
1434
- ],
1435
- "options": {},
1436
- "parameters": "<a> <b>",
1437
- "description": "Add two numbers",
1438
- "renderName": "calcRenderer"
1439
- },
1440
- "subtract": {
1441
- "pikkuFuncId": "subtractNumbers",
1442
- "positionals": [
1443
- {
1444
- "name": "a",
1445
- "required": true
1446
- },
1447
- {
1448
- "name": "b",
1449
- "required": true
1450
- }
1451
- ],
1452
- "options": {},
1453
- "parameters": "<a> <b>",
1454
- "description": "Subtract two numbers",
1455
- "renderName": "calcRenderer"
1456
- },
1457
- "multiply": {
1458
- "pikkuFuncId": "multiplyNumbers",
1459
- "positionals": [
1460
- {
1461
- "name": "a",
1462
- "required": true
1463
- },
1464
- {
1465
- "name": "b",
1466
- "required": true
1467
- }
1468
- ],
1469
- "options": {},
1470
- "parameters": "<a> <b>",
1471
- "description": "Multiply two numbers",
1472
- "renderName": "calcRenderer"
1473
- },
1474
- "divide": {
1475
- "pikkuFuncId": "divideNumbers",
1476
- "positionals": [
1477
- {
1478
- "name": "a",
1479
- "required": true
1480
- },
1481
- {
1482
- "name": "b",
1483
- "required": true
1484
- }
1485
- ],
1486
- "options": {},
1487
- "parameters": "<a> <b>",
1488
- "description": "Divide two numbers",
1489
- "renderName": "calcRenderer"
1490
- }
1491
- }
1492
- },
1493
- "user": {
1494
- "pikkuFuncId": "",
1495
- "positionals": [],
1496
- "options": {},
1497
- "description": "User management commands",
1498
- "subcommands": {
1499
- "create": {
1500
- "pikkuFuncId": "createUser",
1501
- "positionals": [
1502
- {
1503
- "name": "username",
1504
- "required": true
1505
- },
1506
- {
1507
- "name": "email",
1508
- "required": true
1509
- }
1510
- ],
1511
- "options": {
1512
- "admin": {
1513
- "description": "Create user as admin",
1514
- "short": "a",
1515
- "default": false
1516
- }
1517
- },
1518
- "parameters": "<username> <email>",
1519
- "description": "Create a new user",
1520
- "renderName": "userRenderer"
1521
- },
1522
- "list": {
1523
- "pikkuFuncId": "listUsers",
1524
- "positionals": [],
1525
- "options": {
1526
- "limit": {
1527
- "description": "Limit number of users shown",
1528
- "short": "l"
1529
- },
1530
- "admin": {
1531
- "description": "Show only admin users",
1532
- "short": "a",
1533
- "default": false
1534
- }
1535
- },
1536
- "description": "List all users",
1537
- "renderName": "userRenderer"
1538
- }
1539
- }
1540
- },
1541
- "file": {
1542
- "pikkuFuncId": "processFile",
1543
- "positionals": [
1544
- {
1545
- "name": "path",
1546
- "required": true
1547
- }
1548
- ],
1549
- "options": {
1550
- "action": {
1551
- "description": "Action to perform on file",
1552
- "short": "a",
1553
- "choices": ["read", "info", "delete"]
1554
- },
1555
- "backup": {
1556
- "description": "Create backup before processing",
1557
- "short": "b",
1558
- "default": false
1559
- }
1560
- },
1561
- "parameters": "<path>",
1562
- "description": "Process a file",
1563
- "renderName": "fileRenderer"
1564
- }
1565
- },
1566
- "options": {
1567
- "verbose": {
1568
- "description": "Enable verbose output",
1569
- "short": "v",
1570
- "default": false
1571
- },
1572
- "config": {
1573
- "description": "Configuration file path",
1574
- "short": "c",
1575
- "default": "./config.json"
1576
- }
1577
- },
1578
- "defaultRenderName": "jsonRenderer"
1579
- }
1580
- },
1581
- "renderers": {
1582
- "jsonRenderer": {
1583
- "name": "jsonRenderer",
1584
- "exportedName": "jsonRenderer",
1585
- "services": {
1586
- "optimized": true,
1587
- "services": []
1588
- },
1589
- "filePath": "src/cli.render.ts"
1590
- },
1591
- "userRenderer": {
1592
- "name": "userRenderer",
1593
- "exportedName": "userRenderer",
1594
- "services": {
1595
- "optimized": true,
1596
- "services": []
1597
- },
1598
- "filePath": "src/cli.render.ts"
1599
- },
1600
- "greetRenderer": {
1601
- "name": "greetRenderer",
1602
- "exportedName": "greetRenderer",
1603
- "services": {
1604
- "optimized": true,
1605
- "services": []
1606
- },
1607
- "filePath": "src/cli.render.ts"
1608
- },
1609
- "calcRenderer": {
1610
- "name": "calcRenderer",
1611
- "exportedName": "calcRenderer",
1612
- "services": {
1613
- "optimized": true,
1614
- "services": []
1615
- },
1616
- "filePath": "src/cli.render.ts"
1617
- },
1618
- "fileRenderer": {
1619
- "name": "fileRenderer",
1620
- "exportedName": "fileRenderer",
1621
- "services": {
1622
- "optimized": true,
1623
- "services": []
1624
- },
1625
- "filePath": "src/cli.render.ts"
1626
- }
1627
- }
1628
- },
1629
- "files": ["src/cli.render.ts", "src/cli.wiring.ts"]
1630
- },
1631
- "middleware": {
1632
- "definitions": {
1633
- "loggingMiddleware": {
1634
- "services": {
1635
- "optimized": false,
1636
- "services": []
1637
- },
1638
- "sourceFile": "src/middleware.ts",
1639
- "position": 513,
1640
- "exportedName": "loggingMiddleware"
1641
- }
1642
- },
1643
- "instances": {},
1644
- "tagMiddleware": []
1645
- },
1646
- "permissions": {
1647
- "definitions": {},
1648
- "instances": {},
1649
- "tagPermissions": []
1650
- },
1651
- "serviceAggregation": {
1652
- "requiredServices": ["eventHub", "logger"],
1653
- "usedFunctions": [
1654
- "authenticate",
1655
- "logout",
1656
- "subscribe",
1657
- "unsubscribe",
1658
- "emitMessage",
1659
- "greetUser",
1660
- "addNumbers",
1661
- "subtractNumbers",
1662
- "multiplyNumbers",
1663
- "divideNumbers",
1664
- "",
1665
- "createUser",
1666
- "listUsers",
1667
- "processFile",
1668
- "progressiveEnhancementExample",
1669
- "timeSinceOpened",
1670
- "welcomeToPikku",
1671
- "helloWorld",
1672
- "sayHello",
1673
- "disableTool",
1674
- "calculate",
1675
- "getStaticResource",
1676
- "getUserInfo",
1677
- "staticPromptGenerator",
1678
- "dynamicPromptGenerator",
1679
- "queueWorker",
1680
- "rpcTest",
1681
- "rpcCaller",
1682
- "myScheduledTask"
1683
- ],
1684
- "usedMiddleware": [],
1685
- "usedPermissions": []
1686
- }
1687
- }