@noetic-tools/core 5.20.0-next.1 → 5.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/dist/adapters/openrouter.d.ts +1 -48
  2. package/dist/adapters/openrouter.js +3 -204
  3. package/dist/builders/acp-agent-checks.d.ts +20 -0
  4. package/dist/builders/acp-agent-checks.js +68 -0
  5. package/dist/builders/acp-agent-tool.d.ts +4 -3
  6. package/dist/builders/acp-agent-tool.js +5 -2
  7. package/dist/builders/connection-ceiling.d.ts +13 -0
  8. package/dist/builders/connection-ceiling.js +17 -0
  9. package/dist/builders/document-entries.d.ts +13 -0
  10. package/dist/builders/document-entries.js +18 -0
  11. package/dist/builders/dynamic-workflow.d.ts +53 -8
  12. package/dist/builders/dynamic-workflow.js +53 -25
  13. package/dist/builders/mcp-url-pattern.d.ts +13 -0
  14. package/dist/builders/mcp-url-pattern.js +85 -0
  15. package/dist/builders/step-builders.d.ts +14 -6
  16. package/dist/builders/step-builders.js +25 -2
  17. package/dist/builders/workflow-acp-grants.d.ts +42 -0
  18. package/dist/builders/workflow-acp-grants.js +224 -0
  19. package/dist/builders/workflow-child-nodes.js +8 -0
  20. package/dist/builders/workflow-connection-nodes.d.ts +13 -3
  21. package/dist/builders/workflow-connection-nodes.js +129 -3
  22. package/dist/builders/workflow-connections.js +2 -1
  23. package/dist/builders/workflow-hydrator.d.ts +24 -1
  24. package/dist/builders/workflow-hydrator.js +8 -167
  25. package/dist/builders/workflow-mcp-servers.d.ts +44 -0
  26. package/dist/builders/workflow-mcp-servers.js +327 -0
  27. package/dist/builders/workflow-tool-entries.d.ts +84 -0
  28. package/dist/builders/workflow-tool-entries.js +216 -0
  29. package/dist/connections/durability.d.ts +11 -1
  30. package/dist/connections/durability.js +34 -0
  31. package/dist/connections/entries.d.ts +33 -0
  32. package/dist/connections/entries.js +118 -0
  33. package/dist/connections/errors.d.ts +6 -0
  34. package/dist/connections/errors.js +12 -0
  35. package/dist/connections/harness-wiring.d.ts +4 -4
  36. package/dist/connections/harness-wiring.js +1 -1
  37. package/dist/connections/in-memory-connection.d.ts +2 -0
  38. package/dist/connections/in-memory-connection.js +5 -0
  39. package/dist/connections/model-tools.d.ts +35 -12
  40. package/dist/connections/model-tools.js +348 -202
  41. package/dist/connections/registry-types.d.ts +7 -0
  42. package/dist/connections/registry.d.ts +35 -6
  43. package/dist/connections/registry.js +183 -39
  44. package/dist/connections/step-tools.d.ts +64 -0
  45. package/dist/connections/step-tools.js +154 -0
  46. package/dist/connections/views.d.ts +3 -2
  47. package/dist/connections/views.js +15 -6
  48. package/dist/harness/agent-harness.d.ts +11 -1
  49. package/dist/harness/agent-harness.js +69 -8
  50. package/dist/harness/connection-gate.d.ts +49 -8
  51. package/dist/harness/connection-gate.js +137 -26
  52. package/dist/harness/deps/interpreter.d.ts +3 -3
  53. package/dist/harness/deps/interpreter.js +3 -3
  54. package/dist/harness/harness-options.d.ts +4 -3
  55. package/dist/harness/model-call.d.ts +0 -1
  56. package/dist/harness/model-call.js +0 -48
  57. package/dist/harness/model-request.js +3 -1
  58. package/dist/harness/model-schema.d.ts +1 -19
  59. package/dist/harness/model-schema.js +0 -28
  60. package/dist/harness/model-tool-round.js +2 -2
  61. package/dist/index.d.ts +5 -5
  62. package/dist/index.js +1 -1
  63. package/dist/interpreter/acp-events.d.ts +25 -1
  64. package/dist/interpreter/acp-events.js +53 -1
  65. package/dist/interpreter/acp-layers.d.ts +20 -0
  66. package/dist/interpreter/acp-layers.js +55 -0
  67. package/dist/interpreter/acp-tools.d.ts +108 -0
  68. package/dist/interpreter/acp-tools.js +462 -0
  69. package/dist/interpreter/collect-tools.d.ts +28 -0
  70. package/dist/interpreter/collect-tools.js +112 -15
  71. package/dist/interpreter/connection-steps.d.ts +0 -2
  72. package/dist/interpreter/connection-steps.js +30 -8
  73. package/dist/interpreter/execute-acp-agent.js +263 -72
  74. package/dist/interpreter/execute-action.d.ts +76 -1
  75. package/dist/interpreter/execute-action.js +35 -42
  76. package/dist/interpreter/execute.d.ts +2 -0
  77. package/dist/interpreter/execute.js +24 -1
  78. package/dist/interpreter/verify-host.js +2 -1
  79. package/dist/runtime/tool-call.d.ts +67 -0
  80. package/dist/runtime/tool-call.js +244 -0
  81. package/dist/runtime/tool-context.d.ts +1 -2
  82. package/dist/runtime/tool-context.js +6 -2
  83. package/dist/schemas/workflow.d.ts +1 -1
  84. package/dist/types/connection-entry.d.ts +22 -0
  85. package/dist/types/connection-entry.js +8 -0
  86. package/dist/util/harness-internals.d.ts +2 -0
  87. package/dist/util/root-context.d.ts +3 -0
  88. package/dist/util/root-context.js +8 -0
  89. package/dist/util/tool-name.d.ts +8 -0
  90. package/dist/util/tool-name.js +10 -0
  91. package/package.json +3 -3
  92. package/schema/noetic-workflow.schema.json +498 -128
@@ -57,6 +57,124 @@
57
57
  "additionalProperties": {
58
58
  "type": "object",
59
59
  "properties": {
60
+ "mcp": {
61
+ "anyOf": [
62
+ {
63
+ "type": "object",
64
+ "properties": {
65
+ "name": {
66
+ "type": "string",
67
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
68
+ },
69
+ "type": {
70
+ "type": "string",
71
+ "enum": [
72
+ "http",
73
+ "sse"
74
+ ]
75
+ },
76
+ "url": {
77
+ "type": "string",
78
+ "minLength": 1
79
+ },
80
+ "headers": {
81
+ "type": "array",
82
+ "items": {
83
+ "type": "object",
84
+ "properties": {
85
+ "name": {
86
+ "type": "string",
87
+ "minLength": 1
88
+ },
89
+ "value": {
90
+ "type": "object",
91
+ "properties": {
92
+ "$secret": {
93
+ "type": "string",
94
+ "minLength": 1
95
+ }
96
+ },
97
+ "required": [
98
+ "$secret"
99
+ ],
100
+ "additionalProperties": false
101
+ }
102
+ },
103
+ "required": [
104
+ "name",
105
+ "value"
106
+ ],
107
+ "additionalProperties": false
108
+ }
109
+ }
110
+ },
111
+ "required": [
112
+ "name",
113
+ "type",
114
+ "url"
115
+ ],
116
+ "additionalProperties": false
117
+ },
118
+ {
119
+ "type": "object",
120
+ "properties": {
121
+ "name": {
122
+ "type": "string",
123
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
124
+ },
125
+ "type": {
126
+ "type": "string",
127
+ "const": "stdio"
128
+ },
129
+ "command": {
130
+ "type": "string",
131
+ "minLength": 1
132
+ },
133
+ "args": {
134
+ "type": "array",
135
+ "items": {
136
+ "type": "string"
137
+ }
138
+ },
139
+ "env": {
140
+ "type": "array",
141
+ "items": {
142
+ "type": "object",
143
+ "properties": {
144
+ "name": {
145
+ "type": "string",
146
+ "minLength": 1
147
+ },
148
+ "value": {
149
+ "type": "object",
150
+ "properties": {
151
+ "$secret": {
152
+ "type": "string",
153
+ "minLength": 1
154
+ }
155
+ },
156
+ "required": [
157
+ "$secret"
158
+ ],
159
+ "additionalProperties": false
160
+ }
161
+ },
162
+ "required": [
163
+ "name",
164
+ "value"
165
+ ],
166
+ "additionalProperties": false
167
+ }
168
+ }
169
+ },
170
+ "required": [
171
+ "name",
172
+ "command"
173
+ ],
174
+ "additionalProperties": false
175
+ }
176
+ ]
177
+ },
60
178
  "profile": {
61
179
  "type": "string"
62
180
  },
@@ -223,24 +341,179 @@
223
341
  "tools": {
224
342
  "type": "array",
225
343
  "items": {
226
- "type": "object",
227
- "properties": {
228
- "type": {
229
- "type": "string",
230
- "minLength": 1
231
- },
232
- "parameters": {
344
+ "anyOf": [
345
+ {
233
346
  "type": "object",
234
- "propertyNames": {
235
- "type": "string"
347
+ "properties": {
348
+ "type": {
349
+ "type": "string",
350
+ "minLength": 1
351
+ },
352
+ "parameters": {
353
+ "type": "object",
354
+ "propertyNames": {
355
+ "type": "string"
356
+ },
357
+ "additionalProperties": {}
358
+ }
236
359
  },
237
- "additionalProperties": {}
360
+ "required": [
361
+ "type"
362
+ ],
363
+ "additionalProperties": false
364
+ },
365
+ {
366
+ "anyOf": [
367
+ {
368
+ "type": "object",
369
+ "properties": {
370
+ "connection": {
371
+ "type": "string",
372
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
373
+ },
374
+ "ops": {
375
+ "type": "array",
376
+ "items": {
377
+ "type": "string",
378
+ "minLength": 1
379
+ }
380
+ }
381
+ },
382
+ "required": [
383
+ "connection"
384
+ ],
385
+ "additionalProperties": false
386
+ },
387
+ {
388
+ "type": "object",
389
+ "properties": {
390
+ "mcp": {
391
+ "anyOf": [
392
+ {
393
+ "type": "object",
394
+ "properties": {
395
+ "name": {
396
+ "type": "string",
397
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
398
+ },
399
+ "type": {
400
+ "type": "string",
401
+ "enum": [
402
+ "http",
403
+ "sse"
404
+ ]
405
+ },
406
+ "url": {
407
+ "type": "string",
408
+ "minLength": 1
409
+ },
410
+ "headers": {
411
+ "type": "array",
412
+ "items": {
413
+ "type": "object",
414
+ "properties": {
415
+ "name": {
416
+ "type": "string",
417
+ "minLength": 1
418
+ },
419
+ "value": {
420
+ "type": "object",
421
+ "properties": {
422
+ "$secret": {
423
+ "type": "string",
424
+ "minLength": 1
425
+ }
426
+ },
427
+ "required": [
428
+ "$secret"
429
+ ],
430
+ "additionalProperties": false
431
+ }
432
+ },
433
+ "required": [
434
+ "name",
435
+ "value"
436
+ ],
437
+ "additionalProperties": false
438
+ }
439
+ }
440
+ },
441
+ "required": [
442
+ "name",
443
+ "type",
444
+ "url"
445
+ ],
446
+ "additionalProperties": false
447
+ },
448
+ {
449
+ "type": "object",
450
+ "properties": {
451
+ "name": {
452
+ "type": "string",
453
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
454
+ },
455
+ "type": {
456
+ "type": "string",
457
+ "const": "stdio"
458
+ },
459
+ "command": {
460
+ "type": "string",
461
+ "minLength": 1
462
+ },
463
+ "args": {
464
+ "type": "array",
465
+ "items": {
466
+ "type": "string"
467
+ }
468
+ },
469
+ "env": {
470
+ "type": "array",
471
+ "items": {
472
+ "type": "object",
473
+ "properties": {
474
+ "name": {
475
+ "type": "string",
476
+ "minLength": 1
477
+ },
478
+ "value": {
479
+ "type": "object",
480
+ "properties": {
481
+ "$secret": {
482
+ "type": "string",
483
+ "minLength": 1
484
+ }
485
+ },
486
+ "required": [
487
+ "$secret"
488
+ ],
489
+ "additionalProperties": false
490
+ }
491
+ },
492
+ "required": [
493
+ "name",
494
+ "value"
495
+ ],
496
+ "additionalProperties": false
497
+ }
498
+ }
499
+ },
500
+ "required": [
501
+ "name",
502
+ "command"
503
+ ],
504
+ "additionalProperties": false
505
+ }
506
+ ]
507
+ }
508
+ },
509
+ "required": [
510
+ "mcp"
511
+ ],
512
+ "additionalProperties": false
513
+ }
514
+ ]
238
515
  }
239
- },
240
- "required": [
241
- "type"
242
- ],
243
- "additionalProperties": false
516
+ ]
244
517
  }
245
518
  },
246
519
  "toolChoice": {
@@ -2409,7 +2682,62 @@
2409
2682
  }
2410
2683
  },
2411
2684
  "document": {
2412
- "$ref": "#/$defs/WorkflowDocument"
2685
+ "type": "object",
2686
+ "properties": {
2687
+ "version": {
2688
+ "type": "number",
2689
+ "const": 1
2690
+ },
2691
+ "customItems": {
2692
+ "type": "object",
2693
+ "propertyNames": {
2694
+ "type": "string",
2695
+ "minLength": 1
2696
+ },
2697
+ "additionalProperties": {
2698
+ "type": "object",
2699
+ "properties": {
2700
+ "type": {
2701
+ "type": "string",
2702
+ "pattern": "^[^:]+:.+$"
2703
+ },
2704
+ "description": {
2705
+ "type": "string"
2706
+ },
2707
+ "event": {
2708
+ "type": "object",
2709
+ "propertyNames": {
2710
+ "type": "string"
2711
+ },
2712
+ "additionalProperties": {}
2713
+ },
2714
+ "output": {
2715
+ "type": "object",
2716
+ "propertyNames": {
2717
+ "type": "string"
2718
+ },
2719
+ "additionalProperties": {}
2720
+ }
2721
+ },
2722
+ "required": [
2723
+ "type",
2724
+ "output"
2725
+ ],
2726
+ "additionalProperties": false
2727
+ }
2728
+ },
2729
+ "connections": {
2730
+ "not": {}
2731
+ },
2732
+ "root": {
2733
+ "$ref": "#/$defs/WorkflowNode"
2734
+ }
2735
+ },
2736
+ "required": [
2737
+ "version",
2738
+ "root"
2739
+ ],
2740
+ "additionalProperties": false
2413
2741
  },
2414
2742
  "ref": {
2415
2743
  "type": "string",
@@ -2545,7 +2873,7 @@
2545
2873
  "type": "string",
2546
2874
  "minLength": 1
2547
2875
  },
2548
- "mcpServers": {
2876
+ "tools": {
2549
2877
  "type": "array",
2550
2878
  "items": {
2551
2879
  "anyOf": [
@@ -2553,130 +2881,172 @@
2553
2881
  "type": "object",
2554
2882
  "properties": {
2555
2883
  "type": {
2556
- "type": "string",
2557
- "const": "http"
2558
- },
2559
- "name": {
2560
2884
  "type": "string",
2561
2885
  "minLength": 1
2562
2886
  },
2563
- "url": {
2564
- "type": "string"
2565
- },
2566
- "headers": {
2567
- "type": "array",
2568
- "items": {
2569
- "type": "object",
2570
- "properties": {
2571
- "name": {
2572
- "type": "string"
2573
- },
2574
- "value": {
2575
- "type": "string"
2576
- }
2577
- },
2578
- "required": [
2579
- "name",
2580
- "value"
2581
- ],
2582
- "additionalProperties": false
2583
- }
2887
+ "parameters": {
2888
+ "type": "object",
2889
+ "propertyNames": {
2890
+ "type": "string"
2891
+ },
2892
+ "additionalProperties": {}
2584
2893
  }
2585
2894
  },
2586
2895
  "required": [
2587
- "type",
2588
- "name",
2589
- "url",
2590
- "headers"
2896
+ "type"
2591
2897
  ],
2592
2898
  "additionalProperties": false
2593
2899
  },
2594
2900
  {
2595
- "type": "object",
2596
- "properties": {
2597
- "type": {
2598
- "type": "string",
2599
- "const": "sse"
2600
- },
2601
- "name": {
2602
- "type": "string",
2603
- "minLength": 1
2604
- },
2605
- "url": {
2606
- "type": "string"
2607
- },
2608
- "headers": {
2609
- "type": "array",
2610
- "items": {
2611
- "type": "object",
2612
- "properties": {
2613
- "name": {
2614
- "type": "string"
2615
- },
2616
- "value": {
2617
- "type": "string"
2618
- }
2901
+ "anyOf": [
2902
+ {
2903
+ "type": "object",
2904
+ "properties": {
2905
+ "connection": {
2906
+ "type": "string",
2907
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
2619
2908
  },
2620
- "required": [
2621
- "name",
2622
- "value"
2623
- ],
2624
- "additionalProperties": false
2625
- }
2626
- }
2627
- },
2628
- "required": [
2629
- "type",
2630
- "name",
2631
- "url",
2632
- "headers"
2633
- ],
2634
- "additionalProperties": false
2635
- },
2636
- {
2637
- "type": "object",
2638
- "properties": {
2639
- "name": {
2640
- "type": "string",
2641
- "minLength": 1
2642
- },
2643
- "command": {
2644
- "type": "string",
2645
- "minLength": 1
2646
- },
2647
- "args": {
2648
- "type": "array",
2649
- "items": {
2650
- "type": "string"
2651
- }
2652
- },
2653
- "env": {
2654
- "type": "array",
2655
- "items": {
2656
- "type": "object",
2657
- "properties": {
2658
- "name": {
2659
- "type": "string"
2660
- },
2661
- "value": {
2662
- "type": "string"
2909
+ "ops": {
2910
+ "type": "array",
2911
+ "items": {
2912
+ "type": "string",
2913
+ "minLength": 1
2663
2914
  }
2664
- },
2665
- "required": [
2666
- "name",
2667
- "value"
2668
- ],
2669
- "additionalProperties": false
2670
- }
2915
+ }
2916
+ },
2917
+ "required": [
2918
+ "connection"
2919
+ ],
2920
+ "additionalProperties": false
2921
+ },
2922
+ {
2923
+ "type": "object",
2924
+ "properties": {
2925
+ "mcp": {
2926
+ "anyOf": [
2927
+ {
2928
+ "type": "object",
2929
+ "properties": {
2930
+ "name": {
2931
+ "type": "string",
2932
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
2933
+ },
2934
+ "type": {
2935
+ "type": "string",
2936
+ "enum": [
2937
+ "http",
2938
+ "sse"
2939
+ ]
2940
+ },
2941
+ "url": {
2942
+ "type": "string",
2943
+ "minLength": 1
2944
+ },
2945
+ "headers": {
2946
+ "type": "array",
2947
+ "items": {
2948
+ "type": "object",
2949
+ "properties": {
2950
+ "name": {
2951
+ "type": "string",
2952
+ "minLength": 1
2953
+ },
2954
+ "value": {
2955
+ "type": "object",
2956
+ "properties": {
2957
+ "$secret": {
2958
+ "type": "string",
2959
+ "minLength": 1
2960
+ }
2961
+ },
2962
+ "required": [
2963
+ "$secret"
2964
+ ],
2965
+ "additionalProperties": false
2966
+ }
2967
+ },
2968
+ "required": [
2969
+ "name",
2970
+ "value"
2971
+ ],
2972
+ "additionalProperties": false
2973
+ }
2974
+ }
2975
+ },
2976
+ "required": [
2977
+ "name",
2978
+ "type",
2979
+ "url"
2980
+ ],
2981
+ "additionalProperties": false
2982
+ },
2983
+ {
2984
+ "type": "object",
2985
+ "properties": {
2986
+ "name": {
2987
+ "type": "string",
2988
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
2989
+ },
2990
+ "type": {
2991
+ "type": "string",
2992
+ "const": "stdio"
2993
+ },
2994
+ "command": {
2995
+ "type": "string",
2996
+ "minLength": 1
2997
+ },
2998
+ "args": {
2999
+ "type": "array",
3000
+ "items": {
3001
+ "type": "string"
3002
+ }
3003
+ },
3004
+ "env": {
3005
+ "type": "array",
3006
+ "items": {
3007
+ "type": "object",
3008
+ "properties": {
3009
+ "name": {
3010
+ "type": "string",
3011
+ "minLength": 1
3012
+ },
3013
+ "value": {
3014
+ "type": "object",
3015
+ "properties": {
3016
+ "$secret": {
3017
+ "type": "string",
3018
+ "minLength": 1
3019
+ }
3020
+ },
3021
+ "required": [
3022
+ "$secret"
3023
+ ],
3024
+ "additionalProperties": false
3025
+ }
3026
+ },
3027
+ "required": [
3028
+ "name",
3029
+ "value"
3030
+ ],
3031
+ "additionalProperties": false
3032
+ }
3033
+ }
3034
+ },
3035
+ "required": [
3036
+ "name",
3037
+ "command"
3038
+ ],
3039
+ "additionalProperties": false
3040
+ }
3041
+ ]
3042
+ }
3043
+ },
3044
+ "required": [
3045
+ "mcp"
3046
+ ],
3047
+ "additionalProperties": false
2671
3048
  }
2672
- },
2673
- "required": [
2674
- "name",
2675
- "command",
2676
- "args",
2677
- "env"
2678
- ],
2679
- "additionalProperties": false
3049
+ ]
2680
3050
  }
2681
3051
  ]
2682
3052
  }