@noetic-tools/core 5.4.0 → 5.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/builders/acp-agent-tool.d.ts +67 -0
- package/dist/builders/acp-agent-tool.js +87 -0
- package/dist/builders/dynamic-workflow.js +2 -2
- package/dist/builders/step-builders.d.ts +42 -42
- package/dist/builders/step-builders.js +38 -62
- package/dist/builders/workflow-hydrator.d.ts +8 -4
- package/dist/builders/workflow-hydrator.js +16 -24
- package/dist/builders/workflow-step.d.ts +3 -3
- package/dist/builders/workflow-step.js +1 -1
- package/dist/harness/agent-harness.d.ts +36 -7
- package/dist/harness/agent-harness.js +49 -6
- package/dist/harness/deps/types.d.ts +1 -1
- package/dist/index.d.ts +8 -4
- package/dist/index.js +3 -3
- package/dist/interpreter/acp-events.d.ts +67 -0
- package/dist/interpreter/acp-events.js +256 -0
- package/dist/interpreter/acp-history.d.ts +22 -0
- package/dist/interpreter/acp-history.js +58 -0
- package/dist/interpreter/collect-tools.js +3 -6
- package/dist/interpreter/execute-acp-agent.d.ts +10 -0
- package/dist/interpreter/execute-acp-agent.js +505 -0
- package/dist/interpreter/execute.js +4 -11
- package/dist/interpreter/structured-output.d.ts +1 -1
- package/dist/interpreter/structured-output.js +1 -1
- package/dist/portable/builders.d.ts +2 -0
- package/dist/portable/builders.js +3 -1
- package/dist/runtime/acp-session-store.d.ts +75 -0
- package/dist/runtime/acp-session-store.js +0 -0
- package/dist/schemas/workflow.d.ts +1 -1
- package/package.json +3 -3
- package/schema/noetic-workflow.schema.json +215 -249
- package/dist/interpreter/execute-sub-harness.d.ts +0 -8
- package/dist/interpreter/execute-sub-harness.js +0 -222
- package/dist/interpreter/sub-harness-events.d.ts +0 -48
- package/dist/interpreter/sub-harness-events.js +0 -208
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@noetic-tools/core",
|
|
3
|
-
"version": "5.4.
|
|
3
|
+
"version": "5.4.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Step primitives, interpreter, runtime, and context layer contract for Noetic agents.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -68,8 +68,8 @@
|
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"@noetic-tools/context": "^1.2.
|
|
72
|
-
"@noetic-tools/types": "^3.2.
|
|
71
|
+
"@noetic-tools/context": "^1.2.2",
|
|
72
|
+
"@noetic-tools/types": "^3.2.2",
|
|
73
73
|
"@openrouter/agent": "^0.6.0",
|
|
74
74
|
"zod": "^4.0.0"
|
|
75
75
|
},
|
|
@@ -488,89 +488,13 @@
|
|
|
488
488
|
"properties": {
|
|
489
489
|
"kind": {
|
|
490
490
|
"type": "string",
|
|
491
|
-
"const": "
|
|
491
|
+
"const": "acp-agent"
|
|
492
492
|
},
|
|
493
493
|
"id": {
|
|
494
494
|
"type": "string",
|
|
495
495
|
"minLength": 1
|
|
496
496
|
},
|
|
497
|
-
"
|
|
498
|
-
"type": "string",
|
|
499
|
-
"minLength": 1
|
|
500
|
-
},
|
|
501
|
-
"instructions": {
|
|
502
|
-
"type": "string"
|
|
503
|
-
},
|
|
504
|
-
"settings": {
|
|
505
|
-
"type": "object",
|
|
506
|
-
"properties": {
|
|
507
|
-
"model": {
|
|
508
|
-
"type": "string"
|
|
509
|
-
},
|
|
510
|
-
"permissionMode": {
|
|
511
|
-
"type": "string",
|
|
512
|
-
"enum": [
|
|
513
|
-
"default",
|
|
514
|
-
"plan",
|
|
515
|
-
"acceptEdits",
|
|
516
|
-
"bypassPermissions"
|
|
517
|
-
]
|
|
518
|
-
},
|
|
519
|
-
"maxTurns": {
|
|
520
|
-
"type": "integer",
|
|
521
|
-
"exclusiveMinimum": 0,
|
|
522
|
-
"maximum": 9007199254740991
|
|
523
|
-
},
|
|
524
|
-
"allowedTools": {
|
|
525
|
-
"type": "array",
|
|
526
|
-
"items": {
|
|
527
|
-
"type": "string"
|
|
528
|
-
}
|
|
529
|
-
},
|
|
530
|
-
"extra": {
|
|
531
|
-
"type": "object",
|
|
532
|
-
"propertyNames": {
|
|
533
|
-
"type": "string"
|
|
534
|
-
},
|
|
535
|
-
"additionalProperties": {}
|
|
536
|
-
}
|
|
537
|
-
},
|
|
538
|
-
"additionalProperties": false
|
|
539
|
-
},
|
|
540
|
-
"session": {
|
|
541
|
-
"type": "object",
|
|
542
|
-
"properties": {
|
|
543
|
-
"reuse": {
|
|
544
|
-
"type": "string",
|
|
545
|
-
"minLength": 1
|
|
546
|
-
},
|
|
547
|
-
"onComplete": {
|
|
548
|
-
"type": "string",
|
|
549
|
-
"enum": [
|
|
550
|
-
"stop",
|
|
551
|
-
"detach",
|
|
552
|
-
"destroy"
|
|
553
|
-
]
|
|
554
|
-
}
|
|
555
|
-
},
|
|
556
|
-
"additionalProperties": false
|
|
557
|
-
}
|
|
558
|
-
},
|
|
559
|
-
"required": [
|
|
560
|
-
"kind",
|
|
561
|
-
"id",
|
|
562
|
-
"prompt"
|
|
563
|
-
],
|
|
564
|
-
"additionalProperties": false
|
|
565
|
-
},
|
|
566
|
-
{
|
|
567
|
-
"type": "object",
|
|
568
|
-
"properties": {
|
|
569
|
-
"kind": {
|
|
570
|
-
"type": "string",
|
|
571
|
-
"const": "codex"
|
|
572
|
-
},
|
|
573
|
-
"id": {
|
|
497
|
+
"agent": {
|
|
574
498
|
"type": "string",
|
|
575
499
|
"minLength": 1
|
|
576
500
|
},
|
|
@@ -578,201 +502,238 @@
|
|
|
578
502
|
"type": "string",
|
|
579
503
|
"minLength": 1
|
|
580
504
|
},
|
|
581
|
-
"
|
|
582
|
-
"type": "string"
|
|
583
|
-
},
|
|
584
|
-
"settings": {
|
|
585
|
-
"type": "object",
|
|
586
|
-
"properties": {
|
|
587
|
-
"model": {
|
|
588
|
-
"type": "string"
|
|
589
|
-
},
|
|
590
|
-
"permissionMode": {
|
|
591
|
-
"type": "string",
|
|
592
|
-
"enum": [
|
|
593
|
-
"default",
|
|
594
|
-
"plan",
|
|
595
|
-
"acceptEdits",
|
|
596
|
-
"bypassPermissions"
|
|
597
|
-
]
|
|
598
|
-
},
|
|
599
|
-
"maxTurns": {
|
|
600
|
-
"type": "integer",
|
|
601
|
-
"exclusiveMinimum": 0,
|
|
602
|
-
"maximum": 9007199254740991
|
|
603
|
-
},
|
|
604
|
-
"allowedTools": {
|
|
605
|
-
"type": "array",
|
|
606
|
-
"items": {
|
|
607
|
-
"type": "string"
|
|
608
|
-
}
|
|
609
|
-
},
|
|
610
|
-
"extra": {
|
|
611
|
-
"type": "object",
|
|
612
|
-
"propertyNames": {
|
|
613
|
-
"type": "string"
|
|
614
|
-
},
|
|
615
|
-
"additionalProperties": {}
|
|
616
|
-
}
|
|
617
|
-
},
|
|
618
|
-
"additionalProperties": false
|
|
619
|
-
},
|
|
620
|
-
"session": {
|
|
621
|
-
"type": "object",
|
|
622
|
-
"properties": {
|
|
623
|
-
"reuse": {
|
|
624
|
-
"type": "string",
|
|
625
|
-
"minLength": 1
|
|
626
|
-
},
|
|
627
|
-
"onComplete": {
|
|
628
|
-
"type": "string",
|
|
629
|
-
"enum": [
|
|
630
|
-
"stop",
|
|
631
|
-
"detach",
|
|
632
|
-
"destroy"
|
|
633
|
-
]
|
|
634
|
-
}
|
|
635
|
-
},
|
|
636
|
-
"additionalProperties": false
|
|
637
|
-
}
|
|
638
|
-
},
|
|
639
|
-
"required": [
|
|
640
|
-
"kind",
|
|
641
|
-
"id",
|
|
642
|
-
"prompt"
|
|
643
|
-
],
|
|
644
|
-
"additionalProperties": false
|
|
645
|
-
},
|
|
646
|
-
{
|
|
647
|
-
"type": "object",
|
|
648
|
-
"properties": {
|
|
649
|
-
"kind": {
|
|
505
|
+
"cwd": {
|
|
650
506
|
"type": "string",
|
|
651
|
-
"
|
|
507
|
+
"minLength": 1
|
|
652
508
|
},
|
|
653
|
-
"
|
|
509
|
+
"mode": {
|
|
654
510
|
"type": "string",
|
|
655
511
|
"minLength": 1
|
|
656
512
|
},
|
|
657
|
-
"
|
|
513
|
+
"model": {
|
|
658
514
|
"type": "string",
|
|
659
515
|
"minLength": 1
|
|
660
516
|
},
|
|
661
|
-
"
|
|
662
|
-
"type": "
|
|
517
|
+
"mcpServers": {
|
|
518
|
+
"type": "array",
|
|
519
|
+
"items": {
|
|
520
|
+
"anyOf": [
|
|
521
|
+
{
|
|
522
|
+
"type": "object",
|
|
523
|
+
"properties": {
|
|
524
|
+
"type": {
|
|
525
|
+
"type": "string",
|
|
526
|
+
"const": "http"
|
|
527
|
+
},
|
|
528
|
+
"name": {
|
|
529
|
+
"type": "string",
|
|
530
|
+
"minLength": 1
|
|
531
|
+
},
|
|
532
|
+
"url": {
|
|
533
|
+
"type": "string"
|
|
534
|
+
},
|
|
535
|
+
"headers": {
|
|
536
|
+
"type": "array",
|
|
537
|
+
"items": {
|
|
538
|
+
"type": "object",
|
|
539
|
+
"properties": {
|
|
540
|
+
"name": {
|
|
541
|
+
"type": "string"
|
|
542
|
+
},
|
|
543
|
+
"value": {
|
|
544
|
+
"type": "string"
|
|
545
|
+
}
|
|
546
|
+
},
|
|
547
|
+
"required": [
|
|
548
|
+
"name",
|
|
549
|
+
"value"
|
|
550
|
+
],
|
|
551
|
+
"additionalProperties": false
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
},
|
|
555
|
+
"required": [
|
|
556
|
+
"type",
|
|
557
|
+
"name",
|
|
558
|
+
"url",
|
|
559
|
+
"headers"
|
|
560
|
+
],
|
|
561
|
+
"additionalProperties": false
|
|
562
|
+
},
|
|
563
|
+
{
|
|
564
|
+
"type": "object",
|
|
565
|
+
"properties": {
|
|
566
|
+
"type": {
|
|
567
|
+
"type": "string",
|
|
568
|
+
"const": "sse"
|
|
569
|
+
},
|
|
570
|
+
"name": {
|
|
571
|
+
"type": "string",
|
|
572
|
+
"minLength": 1
|
|
573
|
+
},
|
|
574
|
+
"url": {
|
|
575
|
+
"type": "string"
|
|
576
|
+
},
|
|
577
|
+
"headers": {
|
|
578
|
+
"type": "array",
|
|
579
|
+
"items": {
|
|
580
|
+
"type": "object",
|
|
581
|
+
"properties": {
|
|
582
|
+
"name": {
|
|
583
|
+
"type": "string"
|
|
584
|
+
},
|
|
585
|
+
"value": {
|
|
586
|
+
"type": "string"
|
|
587
|
+
}
|
|
588
|
+
},
|
|
589
|
+
"required": [
|
|
590
|
+
"name",
|
|
591
|
+
"value"
|
|
592
|
+
],
|
|
593
|
+
"additionalProperties": false
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
},
|
|
597
|
+
"required": [
|
|
598
|
+
"type",
|
|
599
|
+
"name",
|
|
600
|
+
"url",
|
|
601
|
+
"headers"
|
|
602
|
+
],
|
|
603
|
+
"additionalProperties": false
|
|
604
|
+
},
|
|
605
|
+
{
|
|
606
|
+
"type": "object",
|
|
607
|
+
"properties": {
|
|
608
|
+
"name": {
|
|
609
|
+
"type": "string",
|
|
610
|
+
"minLength": 1
|
|
611
|
+
},
|
|
612
|
+
"command": {
|
|
613
|
+
"type": "string",
|
|
614
|
+
"minLength": 1
|
|
615
|
+
},
|
|
616
|
+
"args": {
|
|
617
|
+
"type": "array",
|
|
618
|
+
"items": {
|
|
619
|
+
"type": "string"
|
|
620
|
+
}
|
|
621
|
+
},
|
|
622
|
+
"env": {
|
|
623
|
+
"type": "array",
|
|
624
|
+
"items": {
|
|
625
|
+
"type": "object",
|
|
626
|
+
"properties": {
|
|
627
|
+
"name": {
|
|
628
|
+
"type": "string"
|
|
629
|
+
},
|
|
630
|
+
"value": {
|
|
631
|
+
"type": "string"
|
|
632
|
+
}
|
|
633
|
+
},
|
|
634
|
+
"required": [
|
|
635
|
+
"name",
|
|
636
|
+
"value"
|
|
637
|
+
],
|
|
638
|
+
"additionalProperties": false
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
},
|
|
642
|
+
"required": [
|
|
643
|
+
"name",
|
|
644
|
+
"command",
|
|
645
|
+
"args",
|
|
646
|
+
"env"
|
|
647
|
+
],
|
|
648
|
+
"additionalProperties": false
|
|
649
|
+
}
|
|
650
|
+
]
|
|
651
|
+
}
|
|
663
652
|
},
|
|
664
|
-
"
|
|
653
|
+
"permissions": {
|
|
665
654
|
"type": "object",
|
|
666
655
|
"properties": {
|
|
667
|
-
"
|
|
668
|
-
"type": "string"
|
|
669
|
-
},
|
|
670
|
-
"permissionMode": {
|
|
656
|
+
"default": {
|
|
671
657
|
"type": "string",
|
|
672
658
|
"enum": [
|
|
673
|
-
"
|
|
674
|
-
"
|
|
675
|
-
"
|
|
676
|
-
"bypassPermissions"
|
|
659
|
+
"allow",
|
|
660
|
+
"deny",
|
|
661
|
+
"cancel"
|
|
677
662
|
]
|
|
678
663
|
},
|
|
679
|
-
"
|
|
680
|
-
"type": "integer",
|
|
681
|
-
"exclusiveMinimum": 0,
|
|
682
|
-
"maximum": 9007199254740991
|
|
683
|
-
},
|
|
684
|
-
"allowedTools": {
|
|
664
|
+
"allow": {
|
|
685
665
|
"type": "array",
|
|
686
666
|
"items": {
|
|
687
|
-
"type": "
|
|
667
|
+
"type": "object",
|
|
668
|
+
"properties": {
|
|
669
|
+
"kind": {
|
|
670
|
+
"type": "string",
|
|
671
|
+
"enum": [
|
|
672
|
+
"read",
|
|
673
|
+
"edit",
|
|
674
|
+
"delete",
|
|
675
|
+
"move",
|
|
676
|
+
"search",
|
|
677
|
+
"execute",
|
|
678
|
+
"think",
|
|
679
|
+
"fetch",
|
|
680
|
+
"switch_mode",
|
|
681
|
+
"other"
|
|
682
|
+
]
|
|
683
|
+
},
|
|
684
|
+
"title": {
|
|
685
|
+
"type": "string",
|
|
686
|
+
"minLength": 1
|
|
687
|
+
}
|
|
688
|
+
},
|
|
689
|
+
"additionalProperties": false
|
|
688
690
|
}
|
|
689
691
|
},
|
|
690
|
-
"
|
|
691
|
-
"type": "
|
|
692
|
-
"
|
|
693
|
-
"type": "
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
692
|
+
"deny": {
|
|
693
|
+
"type": "array",
|
|
694
|
+
"items": {
|
|
695
|
+
"type": "object",
|
|
696
|
+
"properties": {
|
|
697
|
+
"kind": {
|
|
698
|
+
"type": "string",
|
|
699
|
+
"enum": [
|
|
700
|
+
"read",
|
|
701
|
+
"edit",
|
|
702
|
+
"delete",
|
|
703
|
+
"move",
|
|
704
|
+
"search",
|
|
705
|
+
"execute",
|
|
706
|
+
"think",
|
|
707
|
+
"fetch",
|
|
708
|
+
"switch_mode",
|
|
709
|
+
"other"
|
|
710
|
+
]
|
|
711
|
+
},
|
|
712
|
+
"title": {
|
|
713
|
+
"type": "string",
|
|
714
|
+
"minLength": 1
|
|
715
|
+
}
|
|
716
|
+
},
|
|
717
|
+
"additionalProperties": false
|
|
718
|
+
}
|
|
706
719
|
},
|
|
707
|
-
"
|
|
708
|
-
"type": "
|
|
709
|
-
"enum": [
|
|
710
|
-
"stop",
|
|
711
|
-
"detach",
|
|
712
|
-
"destroy"
|
|
713
|
-
]
|
|
720
|
+
"persist": {
|
|
721
|
+
"type": "boolean"
|
|
714
722
|
}
|
|
715
723
|
},
|
|
716
724
|
"additionalProperties": false
|
|
717
|
-
}
|
|
718
|
-
},
|
|
719
|
-
"required": [
|
|
720
|
-
"kind",
|
|
721
|
-
"id",
|
|
722
|
-
"prompt"
|
|
723
|
-
],
|
|
724
|
-
"additionalProperties": false
|
|
725
|
-
},
|
|
726
|
-
{
|
|
727
|
-
"type": "object",
|
|
728
|
-
"properties": {
|
|
729
|
-
"kind": {
|
|
730
|
-
"type": "string",
|
|
731
|
-
"const": "pi"
|
|
732
|
-
},
|
|
733
|
-
"id": {
|
|
734
|
-
"type": "string",
|
|
735
|
-
"minLength": 1
|
|
736
725
|
},
|
|
737
|
-
"
|
|
738
|
-
"type": "string",
|
|
739
|
-
"minLength": 1
|
|
740
|
-
},
|
|
741
|
-
"instructions": {
|
|
742
|
-
"type": "string"
|
|
743
|
-
},
|
|
744
|
-
"settings": {
|
|
726
|
+
"clientCapabilities": {
|
|
745
727
|
"type": "object",
|
|
746
728
|
"properties": {
|
|
747
|
-
"
|
|
748
|
-
"type": "
|
|
749
|
-
},
|
|
750
|
-
"permissionMode": {
|
|
751
|
-
"type": "string",
|
|
752
|
-
"enum": [
|
|
753
|
-
"default",
|
|
754
|
-
"plan",
|
|
755
|
-
"acceptEdits",
|
|
756
|
-
"bypassPermissions"
|
|
757
|
-
]
|
|
758
|
-
},
|
|
759
|
-
"maxTurns": {
|
|
760
|
-
"type": "integer",
|
|
761
|
-
"exclusiveMinimum": 0,
|
|
762
|
-
"maximum": 9007199254740991
|
|
729
|
+
"readTextFile": {
|
|
730
|
+
"type": "boolean"
|
|
763
731
|
},
|
|
764
|
-
"
|
|
765
|
-
"type": "
|
|
766
|
-
"items": {
|
|
767
|
-
"type": "string"
|
|
768
|
-
}
|
|
732
|
+
"writeTextFile": {
|
|
733
|
+
"type": "boolean"
|
|
769
734
|
},
|
|
770
|
-
"
|
|
771
|
-
"type": "
|
|
772
|
-
"propertyNames": {
|
|
773
|
-
"type": "string"
|
|
774
|
-
},
|
|
775
|
-
"additionalProperties": {}
|
|
735
|
+
"terminal": {
|
|
736
|
+
"type": "boolean"
|
|
776
737
|
}
|
|
777
738
|
},
|
|
778
739
|
"additionalProperties": false
|
|
@@ -784,13 +745,17 @@
|
|
|
784
745
|
"type": "string",
|
|
785
746
|
"minLength": 1
|
|
786
747
|
},
|
|
787
|
-
"
|
|
748
|
+
"keepAlive": {
|
|
788
749
|
"type": "string",
|
|
789
750
|
"enum": [
|
|
790
|
-
"
|
|
791
|
-
"
|
|
792
|
-
"
|
|
751
|
+
"step",
|
|
752
|
+
"run",
|
|
753
|
+
"harness"
|
|
793
754
|
]
|
|
755
|
+
},
|
|
756
|
+
"load": {
|
|
757
|
+
"type": "string",
|
|
758
|
+
"minLength": 1
|
|
794
759
|
}
|
|
795
760
|
},
|
|
796
761
|
"additionalProperties": false
|
|
@@ -799,6 +764,7 @@
|
|
|
799
764
|
"required": [
|
|
800
765
|
"kind",
|
|
801
766
|
"id",
|
|
767
|
+
"agent",
|
|
802
768
|
"prompt"
|
|
803
769
|
],
|
|
804
770
|
"additionalProperties": false
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* SubHarness step handler: drives an external coding-agent harness
|
|
3
|
-
* (Claude Code, Codex, opencode, pi) for one agentic turn and folds its output
|
|
4
|
-
* back into the Noetic execution context — the harness analogue of
|
|
5
|
-
* `executeCallModel`.
|
|
6
|
-
*/
|
|
7
|
-
import type { Context, StepSubHarness } from '@noetic-tools/types';
|
|
8
|
-
export declare function executeSubHarness<TContext, I, O>(step: StepSubHarness<TContext, I, O>, input: I, ctx: Context<TContext>): Promise<O>;
|