@soat/cli 0.5.6 → 0.5.8
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/esm/index.js +305 -262
- package/package.json +2 -2
package/dist/esm/index.js
CHANGED
|
@@ -16,7 +16,7 @@ import { program } from "commander";
|
|
|
16
16
|
// package.json
|
|
17
17
|
var package_default = {
|
|
18
18
|
name: "@soat/cli",
|
|
19
|
-
version: "0.5.
|
|
19
|
+
version: "0.5.8",
|
|
20
20
|
type: "module",
|
|
21
21
|
scripts: {
|
|
22
22
|
generate: "tsx scripts/generate.ts",
|
|
@@ -57,10 +57,10 @@ var package_default = {
|
|
|
57
57
|
}
|
|
58
58
|
};
|
|
59
59
|
|
|
60
|
-
// src/cli-wrappers/wrappers/
|
|
60
|
+
// src/cli-wrappers/wrappers/formations.ts
|
|
61
61
|
import * as fs from "fs";
|
|
62
62
|
import yaml from "js-yaml";
|
|
63
|
-
var FORMATION_COMMANDS = ["validate-
|
|
63
|
+
var FORMATION_COMMANDS = ["validate-formation", "plan-formation", "create-formation", "update-formation"];
|
|
64
64
|
var TEMPLATE_PATH_FLAG = "template-path";
|
|
65
65
|
var TEMPLATE_FILE_FLAG = "template-file";
|
|
66
66
|
var ENV_FILE_FLAG = "env-file";
|
|
@@ -139,8 +139,8 @@ var resolveEnvRef = /* @__PURE__ */__name(args => {
|
|
|
139
139
|
}
|
|
140
140
|
return value;
|
|
141
141
|
}, "resolveEnvRef");
|
|
142
|
-
var
|
|
143
|
-
id: "
|
|
142
|
+
var formationsWrapper = {
|
|
143
|
+
id: "formations-wrapper",
|
|
144
144
|
commands: FORMATION_COMMANDS,
|
|
145
145
|
helpFlags: [{
|
|
146
146
|
name: "template-path",
|
|
@@ -271,7 +271,7 @@ var parseUnknownWithRepeats = /* @__PURE__ */__name(args => {
|
|
|
271
271
|
}, "parseUnknownWithRepeats");
|
|
272
272
|
|
|
273
273
|
// src/cli-wrappers/index.ts
|
|
274
|
-
var WRAPPERS = [
|
|
274
|
+
var WRAPPERS = [formationsWrapper];
|
|
275
275
|
var resolveWrapperForCommand = /* @__PURE__ */__name(args => {
|
|
276
276
|
const {
|
|
277
277
|
commandName
|
|
@@ -550,255 +550,6 @@ var routes = {
|
|
|
550
550
|
"in": "path"
|
|
551
551
|
}]
|
|
552
552
|
},
|
|
553
|
-
"validate-agent-formation": {
|
|
554
|
-
serviceClass: "AgentFormations",
|
|
555
|
-
operationId: "validateAgentFormation",
|
|
556
|
-
description: "Validates a formation template without creating any resources. Returns a list of errors and warnings. Accepts the template as a JSON object or as a YAML/JSON string.",
|
|
557
|
-
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/agent-formations",
|
|
558
|
-
pathParams: [],
|
|
559
|
-
queryParams: [],
|
|
560
|
-
flags: [{
|
|
561
|
-
"name": "template",
|
|
562
|
-
"description": "",
|
|
563
|
-
"required": true,
|
|
564
|
-
"type": "string",
|
|
565
|
-
"in": "body"
|
|
566
|
-
}]
|
|
567
|
-
},
|
|
568
|
-
"plan-agent-formation": {
|
|
569
|
-
serviceClass: "AgentFormations",
|
|
570
|
-
operationId: "planAgentFormation",
|
|
571
|
-
description: "Computes a diff between the desired template and the current stack state without making any changes. Returns the list of planned actions.",
|
|
572
|
-
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/agent-formations",
|
|
573
|
-
pathParams: [],
|
|
574
|
-
queryParams: [],
|
|
575
|
-
flags: [{
|
|
576
|
-
"name": "project_id",
|
|
577
|
-
"description": "Project ID",
|
|
578
|
-
"required": true,
|
|
579
|
-
"type": "string",
|
|
580
|
-
"in": "body"
|
|
581
|
-
}, {
|
|
582
|
-
"name": "formation_id",
|
|
583
|
-
"description": "Existing formation ID to compare against. Omit for new formation planning.",
|
|
584
|
-
"required": false,
|
|
585
|
-
"type": "string",
|
|
586
|
-
"in": "body"
|
|
587
|
-
}, {
|
|
588
|
-
"name": "template",
|
|
589
|
-
"description": "",
|
|
590
|
-
"required": true,
|
|
591
|
-
"type": "string",
|
|
592
|
-
"in": "body"
|
|
593
|
-
}, {
|
|
594
|
-
"name": "parameters",
|
|
595
|
-
"description": "Runtime parameter values that override or supply template parameter defaults. Keys must match parameter names declared in `template.parameters`.\n",
|
|
596
|
-
"required": false,
|
|
597
|
-
"type": "object",
|
|
598
|
-
"in": "body"
|
|
599
|
-
}]
|
|
600
|
-
},
|
|
601
|
-
"list-agent-formations": {
|
|
602
|
-
serviceClass: "AgentFormations",
|
|
603
|
-
operationId: "listAgentFormations",
|
|
604
|
-
description: "Returns all formation stacks for a project",
|
|
605
|
-
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/agent-formations",
|
|
606
|
-
pathParams: [],
|
|
607
|
-
queryParams: ["project_id"],
|
|
608
|
-
flags: [{
|
|
609
|
-
"name": "project_id",
|
|
610
|
-
"description": "Project ID (required if not using project key auth)",
|
|
611
|
-
"required": false,
|
|
612
|
-
"type": "string",
|
|
613
|
-
"in": "query"
|
|
614
|
-
}]
|
|
615
|
-
},
|
|
616
|
-
"create-agent-formation": {
|
|
617
|
-
serviceClass: "AgentFormations",
|
|
618
|
-
operationId: "createAgentFormation",
|
|
619
|
-
description: "Validates the template, creates the formation record, then provisions all declared resources in dependency order.",
|
|
620
|
-
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/agent-formations",
|
|
621
|
-
pathParams: [],
|
|
622
|
-
queryParams: [],
|
|
623
|
-
flags: [{
|
|
624
|
-
"name": "project_id",
|
|
625
|
-
"description": "Project ID",
|
|
626
|
-
"required": true,
|
|
627
|
-
"type": "string",
|
|
628
|
-
"in": "body"
|
|
629
|
-
}, {
|
|
630
|
-
"name": "name",
|
|
631
|
-
"description": "Human-readable name for the formation stack",
|
|
632
|
-
"required": true,
|
|
633
|
-
"type": "string",
|
|
634
|
-
"in": "body"
|
|
635
|
-
}, {
|
|
636
|
-
"name": "template",
|
|
637
|
-
"description": "",
|
|
638
|
-
"required": true,
|
|
639
|
-
"type": "string",
|
|
640
|
-
"in": "body"
|
|
641
|
-
}, {
|
|
642
|
-
"name": "parameters",
|
|
643
|
-
"description": "Runtime parameter values that override or supply template parameter defaults. Keys must match parameter names declared in `template.parameters`. Required parameters (those without a default) must be provided here.\n",
|
|
644
|
-
"required": false,
|
|
645
|
-
"type": "object",
|
|
646
|
-
"in": "body"
|
|
647
|
-
}, {
|
|
648
|
-
"name": "metadata",
|
|
649
|
-
"description": "",
|
|
650
|
-
"required": false,
|
|
651
|
-
"type": "object",
|
|
652
|
-
"in": "body"
|
|
653
|
-
}]
|
|
654
|
-
},
|
|
655
|
-
"get-agent-formation": {
|
|
656
|
-
serviceClass: "AgentFormations",
|
|
657
|
-
operationId: "getAgentFormation",
|
|
658
|
-
description: "Returns the formation stack including its current resources.",
|
|
659
|
-
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/agent-formations",
|
|
660
|
-
pathParams: ["formation_id"],
|
|
661
|
-
queryParams: [],
|
|
662
|
-
flags: [{
|
|
663
|
-
"name": "formation_id",
|
|
664
|
-
"description": "",
|
|
665
|
-
"required": true,
|
|
666
|
-
"type": "string",
|
|
667
|
-
"in": "path"
|
|
668
|
-
}]
|
|
669
|
-
},
|
|
670
|
-
"update-agent-formation": {
|
|
671
|
-
serviceClass: "AgentFormations",
|
|
672
|
-
operationId: "updateAgentFormation",
|
|
673
|
-
description: "Applies a new template to the formation. Resources are created, updated, or deleted to reconcile the current state with the desired state.",
|
|
674
|
-
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/agent-formations",
|
|
675
|
-
pathParams: ["formation_id"],
|
|
676
|
-
queryParams: [],
|
|
677
|
-
flags: [{
|
|
678
|
-
"name": "formation_id",
|
|
679
|
-
"description": "",
|
|
680
|
-
"required": true,
|
|
681
|
-
"type": "string",
|
|
682
|
-
"in": "path"
|
|
683
|
-
}, {
|
|
684
|
-
"name": "template",
|
|
685
|
-
"description": "",
|
|
686
|
-
"required": false,
|
|
687
|
-
"type": "string",
|
|
688
|
-
"in": "body"
|
|
689
|
-
}, {
|
|
690
|
-
"name": "parameters",
|
|
691
|
-
"description": "Runtime parameter values that override or supply template parameter defaults. Keys must match parameter names declared in `template.parameters`. Required parameters (those without a default) must be provided here.\n",
|
|
692
|
-
"required": false,
|
|
693
|
-
"type": "object",
|
|
694
|
-
"in": "body"
|
|
695
|
-
}, {
|
|
696
|
-
"name": "metadata",
|
|
697
|
-
"description": "",
|
|
698
|
-
"required": false,
|
|
699
|
-
"type": "object",
|
|
700
|
-
"in": "body"
|
|
701
|
-
}]
|
|
702
|
-
},
|
|
703
|
-
"delete-agent-formation": {
|
|
704
|
-
serviceClass: "AgentFormations",
|
|
705
|
-
operationId: "deleteAgentFormation",
|
|
706
|
-
description: "Deletes the formation stack and all its managed resources in reverse dependency order.",
|
|
707
|
-
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/agent-formations",
|
|
708
|
-
pathParams: ["formation_id"],
|
|
709
|
-
queryParams: [],
|
|
710
|
-
flags: [{
|
|
711
|
-
"name": "formation_id",
|
|
712
|
-
"description": "",
|
|
713
|
-
"required": true,
|
|
714
|
-
"type": "string",
|
|
715
|
-
"in": "path"
|
|
716
|
-
}]
|
|
717
|
-
},
|
|
718
|
-
"list-agent-formation-events": {
|
|
719
|
-
serviceClass: "AgentFormations",
|
|
720
|
-
operationId: "listAgentFormationEvents",
|
|
721
|
-
description: "Returns all operations (create, update, delete) with their event logs for the formation, ordered chronologically.",
|
|
722
|
-
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/agent-formations",
|
|
723
|
-
pathParams: ["formation_id"],
|
|
724
|
-
queryParams: [],
|
|
725
|
-
flags: [{
|
|
726
|
-
"name": "formation_id",
|
|
727
|
-
"description": "",
|
|
728
|
-
"required": true,
|
|
729
|
-
"type": "string",
|
|
730
|
-
"in": "path"
|
|
731
|
-
}]
|
|
732
|
-
},
|
|
733
|
-
"list-agent-tools": {
|
|
734
|
-
serviceClass: "AgentTools",
|
|
735
|
-
operationId: "listAgentTools",
|
|
736
|
-
description: "Returns all agent tools in the project.",
|
|
737
|
-
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/agents",
|
|
738
|
-
pathParams: [],
|
|
739
|
-
queryParams: ["project_id"],
|
|
740
|
-
flags: [{
|
|
741
|
-
"name": "project_id",
|
|
742
|
-
"description": "Project public ID to filter by",
|
|
743
|
-
"required": false,
|
|
744
|
-
"type": "string",
|
|
745
|
-
"in": "query"
|
|
746
|
-
}]
|
|
747
|
-
},
|
|
748
|
-
"create-agent-tool": {
|
|
749
|
-
serviceClass: "AgentTools",
|
|
750
|
-
operationId: "createAgentTool",
|
|
751
|
-
description: "Creates a new agent tool in the project.",
|
|
752
|
-
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/agents",
|
|
753
|
-
pathParams: [],
|
|
754
|
-
queryParams: [],
|
|
755
|
-
flags: []
|
|
756
|
-
},
|
|
757
|
-
"get-agent-tool": {
|
|
758
|
-
serviceClass: "AgentTools",
|
|
759
|
-
operationId: "getAgentTool",
|
|
760
|
-
description: "Returns a single agent tool by ID.",
|
|
761
|
-
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/agents",
|
|
762
|
-
pathParams: ["tool_id"],
|
|
763
|
-
queryParams: [],
|
|
764
|
-
flags: [{
|
|
765
|
-
"name": "tool_id",
|
|
766
|
-
"description": "",
|
|
767
|
-
"required": true,
|
|
768
|
-
"type": "string",
|
|
769
|
-
"in": "path"
|
|
770
|
-
}]
|
|
771
|
-
},
|
|
772
|
-
"update-agent-tool": {
|
|
773
|
-
serviceClass: "AgentTools",
|
|
774
|
-
operationId: "updateAgentTool",
|
|
775
|
-
description: "Updates an existing agent tool.",
|
|
776
|
-
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/agents",
|
|
777
|
-
pathParams: ["tool_id"],
|
|
778
|
-
queryParams: [],
|
|
779
|
-
flags: [{
|
|
780
|
-
"name": "tool_id",
|
|
781
|
-
"description": "",
|
|
782
|
-
"required": true,
|
|
783
|
-
"type": "string",
|
|
784
|
-
"in": "path"
|
|
785
|
-
}]
|
|
786
|
-
},
|
|
787
|
-
"delete-agent-tool": {
|
|
788
|
-
serviceClass: "AgentTools",
|
|
789
|
-
operationId: "deleteAgentTool",
|
|
790
|
-
description: "Deletes an agent tool by ID.",
|
|
791
|
-
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/agents",
|
|
792
|
-
pathParams: ["tool_id"],
|
|
793
|
-
queryParams: [],
|
|
794
|
-
flags: [{
|
|
795
|
-
"name": "tool_id",
|
|
796
|
-
"description": "",
|
|
797
|
-
"required": true,
|
|
798
|
-
"type": "string",
|
|
799
|
-
"in": "path"
|
|
800
|
-
}]
|
|
801
|
-
},
|
|
802
553
|
"list-agents": {
|
|
803
554
|
serviceClass: "Agents",
|
|
804
555
|
operationId: "listAgents",
|
|
@@ -2023,6 +1774,186 @@ var routes = {
|
|
|
2023
1774
|
"in": "path"
|
|
2024
1775
|
}]
|
|
2025
1776
|
},
|
|
1777
|
+
"validate-formation": {
|
|
1778
|
+
serviceClass: "Formations",
|
|
1779
|
+
operationId: "validateFormation",
|
|
1780
|
+
description: "Validates a formation template without creating any resources. Returns a list of errors and warnings. Accepts the template as a JSON object or as a YAML/JSON string.",
|
|
1781
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/formations",
|
|
1782
|
+
pathParams: [],
|
|
1783
|
+
queryParams: [],
|
|
1784
|
+
flags: [{
|
|
1785
|
+
"name": "template",
|
|
1786
|
+
"description": "",
|
|
1787
|
+
"required": true,
|
|
1788
|
+
"type": "string",
|
|
1789
|
+
"in": "body"
|
|
1790
|
+
}]
|
|
1791
|
+
},
|
|
1792
|
+
"plan-formation": {
|
|
1793
|
+
serviceClass: "Formations",
|
|
1794
|
+
operationId: "planFormation",
|
|
1795
|
+
description: "Computes a diff between the desired template and the current stack state without making any changes. Returns the list of planned actions.",
|
|
1796
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/formations",
|
|
1797
|
+
pathParams: [],
|
|
1798
|
+
queryParams: [],
|
|
1799
|
+
flags: [{
|
|
1800
|
+
"name": "project_id",
|
|
1801
|
+
"description": "Project ID",
|
|
1802
|
+
"required": true,
|
|
1803
|
+
"type": "string",
|
|
1804
|
+
"in": "body"
|
|
1805
|
+
}, {
|
|
1806
|
+
"name": "formation_id",
|
|
1807
|
+
"description": "Existing formation ID to compare against. Omit for new formation planning.",
|
|
1808
|
+
"required": false,
|
|
1809
|
+
"type": "string",
|
|
1810
|
+
"in": "body"
|
|
1811
|
+
}, {
|
|
1812
|
+
"name": "template",
|
|
1813
|
+
"description": "",
|
|
1814
|
+
"required": true,
|
|
1815
|
+
"type": "string",
|
|
1816
|
+
"in": "body"
|
|
1817
|
+
}, {
|
|
1818
|
+
"name": "parameters",
|
|
1819
|
+
"description": "Runtime parameter values that override or supply template parameter defaults. Keys must match parameter names declared in `template.parameters`.\n",
|
|
1820
|
+
"required": false,
|
|
1821
|
+
"type": "object",
|
|
1822
|
+
"in": "body"
|
|
1823
|
+
}]
|
|
1824
|
+
},
|
|
1825
|
+
"list-formations": {
|
|
1826
|
+
serviceClass: "Formations",
|
|
1827
|
+
operationId: "listFormations",
|
|
1828
|
+
description: "Returns all formation stacks for a project",
|
|
1829
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/formations",
|
|
1830
|
+
pathParams: [],
|
|
1831
|
+
queryParams: ["project_id"],
|
|
1832
|
+
flags: [{
|
|
1833
|
+
"name": "project_id",
|
|
1834
|
+
"description": "Project ID (required if not using project key auth)",
|
|
1835
|
+
"required": false,
|
|
1836
|
+
"type": "string",
|
|
1837
|
+
"in": "query"
|
|
1838
|
+
}]
|
|
1839
|
+
},
|
|
1840
|
+
"create-formation": {
|
|
1841
|
+
serviceClass: "Formations",
|
|
1842
|
+
operationId: "createFormation",
|
|
1843
|
+
description: "Validates the template, creates the formation record, then provisions all declared resources in dependency order.",
|
|
1844
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/formations",
|
|
1845
|
+
pathParams: [],
|
|
1846
|
+
queryParams: [],
|
|
1847
|
+
flags: [{
|
|
1848
|
+
"name": "project_id",
|
|
1849
|
+
"description": "Project ID",
|
|
1850
|
+
"required": true,
|
|
1851
|
+
"type": "string",
|
|
1852
|
+
"in": "body"
|
|
1853
|
+
}, {
|
|
1854
|
+
"name": "name",
|
|
1855
|
+
"description": "Human-readable name for the formation stack",
|
|
1856
|
+
"required": true,
|
|
1857
|
+
"type": "string",
|
|
1858
|
+
"in": "body"
|
|
1859
|
+
}, {
|
|
1860
|
+
"name": "template",
|
|
1861
|
+
"description": "",
|
|
1862
|
+
"required": true,
|
|
1863
|
+
"type": "string",
|
|
1864
|
+
"in": "body"
|
|
1865
|
+
}, {
|
|
1866
|
+
"name": "parameters",
|
|
1867
|
+
"description": "Runtime parameter values that override or supply template parameter defaults. Keys must match parameter names declared in `template.parameters`. Required parameters (those without a default) must be provided here.\n",
|
|
1868
|
+
"required": false,
|
|
1869
|
+
"type": "object",
|
|
1870
|
+
"in": "body"
|
|
1871
|
+
}, {
|
|
1872
|
+
"name": "metadata",
|
|
1873
|
+
"description": "",
|
|
1874
|
+
"required": false,
|
|
1875
|
+
"type": "object",
|
|
1876
|
+
"in": "body"
|
|
1877
|
+
}]
|
|
1878
|
+
},
|
|
1879
|
+
"get-formation": {
|
|
1880
|
+
serviceClass: "Formations",
|
|
1881
|
+
operationId: "getFormation",
|
|
1882
|
+
description: "Returns the formation stack including its current resources.",
|
|
1883
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/formations",
|
|
1884
|
+
pathParams: ["formation_id"],
|
|
1885
|
+
queryParams: [],
|
|
1886
|
+
flags: [{
|
|
1887
|
+
"name": "formation_id",
|
|
1888
|
+
"description": "",
|
|
1889
|
+
"required": true,
|
|
1890
|
+
"type": "string",
|
|
1891
|
+
"in": "path"
|
|
1892
|
+
}]
|
|
1893
|
+
},
|
|
1894
|
+
"update-formation": {
|
|
1895
|
+
serviceClass: "Formations",
|
|
1896
|
+
operationId: "updateFormation",
|
|
1897
|
+
description: "Applies a new template to the formation. Resources are created, updated, or deleted to reconcile the current state with the desired state.",
|
|
1898
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/formations",
|
|
1899
|
+
pathParams: ["formation_id"],
|
|
1900
|
+
queryParams: [],
|
|
1901
|
+
flags: [{
|
|
1902
|
+
"name": "formation_id",
|
|
1903
|
+
"description": "",
|
|
1904
|
+
"required": true,
|
|
1905
|
+
"type": "string",
|
|
1906
|
+
"in": "path"
|
|
1907
|
+
}, {
|
|
1908
|
+
"name": "template",
|
|
1909
|
+
"description": "",
|
|
1910
|
+
"required": false,
|
|
1911
|
+
"type": "string",
|
|
1912
|
+
"in": "body"
|
|
1913
|
+
}, {
|
|
1914
|
+
"name": "parameters",
|
|
1915
|
+
"description": "Runtime parameter values that override or supply template parameter defaults. Keys must match parameter names declared in `template.parameters`. Required parameters (those without a default) must be provided here.\n",
|
|
1916
|
+
"required": false,
|
|
1917
|
+
"type": "object",
|
|
1918
|
+
"in": "body"
|
|
1919
|
+
}, {
|
|
1920
|
+
"name": "metadata",
|
|
1921
|
+
"description": "",
|
|
1922
|
+
"required": false,
|
|
1923
|
+
"type": "object",
|
|
1924
|
+
"in": "body"
|
|
1925
|
+
}]
|
|
1926
|
+
},
|
|
1927
|
+
"delete-formation": {
|
|
1928
|
+
serviceClass: "Formations",
|
|
1929
|
+
operationId: "deleteFormation",
|
|
1930
|
+
description: "Deletes the formation stack and all its managed resources in reverse dependency order.",
|
|
1931
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/formations",
|
|
1932
|
+
pathParams: ["formation_id"],
|
|
1933
|
+
queryParams: [],
|
|
1934
|
+
flags: [{
|
|
1935
|
+
"name": "formation_id",
|
|
1936
|
+
"description": "",
|
|
1937
|
+
"required": true,
|
|
1938
|
+
"type": "string",
|
|
1939
|
+
"in": "path"
|
|
1940
|
+
}]
|
|
1941
|
+
},
|
|
1942
|
+
"list-formation-events": {
|
|
1943
|
+
serviceClass: "Formations",
|
|
1944
|
+
operationId: "listFormationEvents",
|
|
1945
|
+
description: "Returns all operations (create, update, delete) with their event logs for the formation, ordered chronologically.",
|
|
1946
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/formations",
|
|
1947
|
+
pathParams: ["formation_id"],
|
|
1948
|
+
queryParams: [],
|
|
1949
|
+
flags: [{
|
|
1950
|
+
"name": "formation_id",
|
|
1951
|
+
"description": "",
|
|
1952
|
+
"required": true,
|
|
1953
|
+
"type": "string",
|
|
1954
|
+
"in": "path"
|
|
1955
|
+
}]
|
|
1956
|
+
},
|
|
2026
1957
|
"search-knowledge": {
|
|
2027
1958
|
serviceClass: "Knowledge",
|
|
2028
1959
|
operationId: "searchKnowledge",
|
|
@@ -2857,6 +2788,90 @@ var routes = {
|
|
|
2857
2788
|
"in": "path"
|
|
2858
2789
|
}]
|
|
2859
2790
|
},
|
|
2791
|
+
"list-tools": {
|
|
2792
|
+
serviceClass: "Tools",
|
|
2793
|
+
operationId: "listTools",
|
|
2794
|
+
description: "Returns all tools in the project.",
|
|
2795
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/tools",
|
|
2796
|
+
pathParams: [],
|
|
2797
|
+
queryParams: ["project_id"],
|
|
2798
|
+
flags: [{
|
|
2799
|
+
"name": "project_id",
|
|
2800
|
+
"description": "Project public ID to filter by",
|
|
2801
|
+
"required": false,
|
|
2802
|
+
"type": "string",
|
|
2803
|
+
"in": "query"
|
|
2804
|
+
}]
|
|
2805
|
+
},
|
|
2806
|
+
"create-tool": {
|
|
2807
|
+
serviceClass: "Tools",
|
|
2808
|
+
operationId: "createTool",
|
|
2809
|
+
description: "Creates a new tool in the project.",
|
|
2810
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/tools",
|
|
2811
|
+
pathParams: [],
|
|
2812
|
+
queryParams: [],
|
|
2813
|
+
flags: []
|
|
2814
|
+
},
|
|
2815
|
+
"get-tool": {
|
|
2816
|
+
serviceClass: "Tools",
|
|
2817
|
+
operationId: "getTool",
|
|
2818
|
+
description: "Returns a single tool by ID.",
|
|
2819
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/tools",
|
|
2820
|
+
pathParams: ["tool_id"],
|
|
2821
|
+
queryParams: [],
|
|
2822
|
+
flags: [{
|
|
2823
|
+
"name": "tool_id",
|
|
2824
|
+
"description": "",
|
|
2825
|
+
"required": true,
|
|
2826
|
+
"type": "string",
|
|
2827
|
+
"in": "path"
|
|
2828
|
+
}]
|
|
2829
|
+
},
|
|
2830
|
+
"update-tool": {
|
|
2831
|
+
serviceClass: "Tools",
|
|
2832
|
+
operationId: "updateTool",
|
|
2833
|
+
description: "Updates an existing tool.",
|
|
2834
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/tools",
|
|
2835
|
+
pathParams: ["tool_id"],
|
|
2836
|
+
queryParams: [],
|
|
2837
|
+
flags: [{
|
|
2838
|
+
"name": "tool_id",
|
|
2839
|
+
"description": "",
|
|
2840
|
+
"required": true,
|
|
2841
|
+
"type": "string",
|
|
2842
|
+
"in": "path"
|
|
2843
|
+
}]
|
|
2844
|
+
},
|
|
2845
|
+
"delete-tool": {
|
|
2846
|
+
serviceClass: "Tools",
|
|
2847
|
+
operationId: "deleteTool",
|
|
2848
|
+
description: "Deletes a tool by ID.",
|
|
2849
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/tools",
|
|
2850
|
+
pathParams: ["tool_id"],
|
|
2851
|
+
queryParams: [],
|
|
2852
|
+
flags: [{
|
|
2853
|
+
"name": "tool_id",
|
|
2854
|
+
"description": "",
|
|
2855
|
+
"required": true,
|
|
2856
|
+
"type": "string",
|
|
2857
|
+
"in": "path"
|
|
2858
|
+
}]
|
|
2859
|
+
},
|
|
2860
|
+
"call-tool": {
|
|
2861
|
+
serviceClass: "Tools",
|
|
2862
|
+
operationId: "callTool",
|
|
2863
|
+
description: "Directly invokes a tool and returns its output. Supported for `http`, `soat`, and `mcp` tools. `client` tools cannot be invoked server-side and will return 422. For `soat` and `mcp` tools the `action` field is required and identifies which action (SOAT) or tool name (MCP) to invoke. For `http` tools `action` is ignored. `preset_parameters` stored on the tool are merged with the caller-supplied `input` before execution; preset keys take lower precedence.",
|
|
2864
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/tools",
|
|
2865
|
+
pathParams: ["tool_id"],
|
|
2866
|
+
queryParams: [],
|
|
2867
|
+
flags: [{
|
|
2868
|
+
"name": "tool_id",
|
|
2869
|
+
"description": "",
|
|
2870
|
+
"required": true,
|
|
2871
|
+
"type": "string",
|
|
2872
|
+
"in": "path"
|
|
2873
|
+
}]
|
|
2874
|
+
},
|
|
2860
2875
|
"list-traces": {
|
|
2861
2876
|
serviceClass: "Traces",
|
|
2862
2877
|
operationId: "listTraces",
|
|
@@ -3211,6 +3226,27 @@ var routes = {
|
|
|
3211
3226
|
"in": "path"
|
|
3212
3227
|
}]
|
|
3213
3228
|
},
|
|
3229
|
+
"get-webhook-secret": {
|
|
3230
|
+
serviceClass: "Webhooks",
|
|
3231
|
+
operationId: "getWebhookSecret",
|
|
3232
|
+
description: "Retrieves the signing secret for the specified webhook",
|
|
3233
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/webhooks",
|
|
3234
|
+
pathParams: ["project_id", "webhook_id"],
|
|
3235
|
+
queryParams: [],
|
|
3236
|
+
flags: [{
|
|
3237
|
+
"name": "project_id",
|
|
3238
|
+
"description": "",
|
|
3239
|
+
"required": true,
|
|
3240
|
+
"type": "string",
|
|
3241
|
+
"in": "path"
|
|
3242
|
+
}, {
|
|
3243
|
+
"name": "webhook_id",
|
|
3244
|
+
"description": "",
|
|
3245
|
+
"required": true,
|
|
3246
|
+
"type": "string",
|
|
3247
|
+
"in": "path"
|
|
3248
|
+
}]
|
|
3249
|
+
},
|
|
3214
3250
|
"rotate-webhook-secret": {
|
|
3215
3251
|
serviceClass: "Webhooks",
|
|
3216
3252
|
operationId: "rotateWebhookSecret",
|
|
@@ -3503,14 +3539,21 @@ Usage: soat ${commandName} [flags]
|
|
|
3503
3539
|
const result = await method(callOpts);
|
|
3504
3540
|
if (result.error) {
|
|
3505
3541
|
const status = result.response && "status" in result.response ? result.response.status : void 0;
|
|
3506
|
-
const
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3542
|
+
const rawError = result.error;
|
|
3543
|
+
const errorOutput = rawError instanceof Error ? {
|
|
3544
|
+
status,
|
|
3545
|
+
error: {
|
|
3546
|
+
name: rawError.name,
|
|
3547
|
+
message: rawError.message
|
|
3548
|
+
}
|
|
3549
|
+
} : typeof rawError === "object" && rawError !== null ? {
|
|
3550
|
+
status,
|
|
3551
|
+
...rawError
|
|
3552
|
+
} : {
|
|
3511
3553
|
status,
|
|
3512
|
-
error:
|
|
3513
|
-
}
|
|
3554
|
+
error: rawError
|
|
3555
|
+
};
|
|
3556
|
+
console.error(JSON.stringify(errorOutput, null, 2));
|
|
3514
3557
|
process.exit(1);
|
|
3515
3558
|
}
|
|
3516
3559
|
console.log(JSON.stringify(result.data, null, 2));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soat/cli",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@inquirer/input": "^5.0.12",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"@ttoss/logger": "^0.8.10",
|
|
9
9
|
"commander": "^14.0.3",
|
|
10
10
|
"js-yaml": "^4.1.1",
|
|
11
|
-
"@soat/sdk": "0.5.
|
|
11
|
+
"@soat/sdk": "0.5.8"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
14
|
"@ttoss/config": "^1.37.10",
|