@soat/cli 0.5.6 → 0.5.7

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 (2) hide show
  1. package/dist/esm/index.js +186 -186
  2. 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.6",
19
+ version: "0.5.7",
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/agentFormations.ts
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-agent-formation", "plan-agent-formation", "create-agent-formation", "update-agent-formation"];
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 agentFormationsWrapper = {
143
- id: "agent-formations-wrapper",
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 = [agentFormationsWrapper];
274
+ var WRAPPERS = [formationsWrapper];
275
275
  var resolveWrapperForCommand = /* @__PURE__ */__name(args => {
276
276
  const {
277
277
  commandName
@@ -550,186 +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
553
  "list-agent-tools": {
734
554
  serviceClass: "AgentTools",
735
555
  operationId: "listAgentTools",
@@ -2023,6 +1843,186 @@ var routes = {
2023
1843
  "in": "path"
2024
1844
  }]
2025
1845
  },
1846
+ "validate-formation": {
1847
+ serviceClass: "Formations",
1848
+ operationId: "validateFormation",
1849
+ 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.",
1850
+ moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/formations",
1851
+ pathParams: [],
1852
+ queryParams: [],
1853
+ flags: [{
1854
+ "name": "template",
1855
+ "description": "",
1856
+ "required": true,
1857
+ "type": "string",
1858
+ "in": "body"
1859
+ }]
1860
+ },
1861
+ "plan-formation": {
1862
+ serviceClass: "Formations",
1863
+ operationId: "planFormation",
1864
+ description: "Computes a diff between the desired template and the current stack state without making any changes. Returns the list of planned actions.",
1865
+ moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/formations",
1866
+ pathParams: [],
1867
+ queryParams: [],
1868
+ flags: [{
1869
+ "name": "project_id",
1870
+ "description": "Project ID",
1871
+ "required": true,
1872
+ "type": "string",
1873
+ "in": "body"
1874
+ }, {
1875
+ "name": "formation_id",
1876
+ "description": "Existing formation ID to compare against. Omit for new formation planning.",
1877
+ "required": false,
1878
+ "type": "string",
1879
+ "in": "body"
1880
+ }, {
1881
+ "name": "template",
1882
+ "description": "",
1883
+ "required": true,
1884
+ "type": "string",
1885
+ "in": "body"
1886
+ }, {
1887
+ "name": "parameters",
1888
+ "description": "Runtime parameter values that override or supply template parameter defaults. Keys must match parameter names declared in `template.parameters`.\n",
1889
+ "required": false,
1890
+ "type": "object",
1891
+ "in": "body"
1892
+ }]
1893
+ },
1894
+ "list-formations": {
1895
+ serviceClass: "Formations",
1896
+ operationId: "listFormations",
1897
+ description: "Returns all formation stacks for a project",
1898
+ moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/formations",
1899
+ pathParams: [],
1900
+ queryParams: ["project_id"],
1901
+ flags: [{
1902
+ "name": "project_id",
1903
+ "description": "Project ID (required if not using project key auth)",
1904
+ "required": false,
1905
+ "type": "string",
1906
+ "in": "query"
1907
+ }]
1908
+ },
1909
+ "create-formation": {
1910
+ serviceClass: "Formations",
1911
+ operationId: "createFormation",
1912
+ description: "Validates the template, creates the formation record, then provisions all declared resources in dependency order.",
1913
+ moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/formations",
1914
+ pathParams: [],
1915
+ queryParams: [],
1916
+ flags: [{
1917
+ "name": "project_id",
1918
+ "description": "Project ID",
1919
+ "required": true,
1920
+ "type": "string",
1921
+ "in": "body"
1922
+ }, {
1923
+ "name": "name",
1924
+ "description": "Human-readable name for the formation stack",
1925
+ "required": true,
1926
+ "type": "string",
1927
+ "in": "body"
1928
+ }, {
1929
+ "name": "template",
1930
+ "description": "",
1931
+ "required": true,
1932
+ "type": "string",
1933
+ "in": "body"
1934
+ }, {
1935
+ "name": "parameters",
1936
+ "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",
1937
+ "required": false,
1938
+ "type": "object",
1939
+ "in": "body"
1940
+ }, {
1941
+ "name": "metadata",
1942
+ "description": "",
1943
+ "required": false,
1944
+ "type": "object",
1945
+ "in": "body"
1946
+ }]
1947
+ },
1948
+ "get-formation": {
1949
+ serviceClass: "Formations",
1950
+ operationId: "getFormation",
1951
+ description: "Returns the formation stack including its current resources.",
1952
+ moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/formations",
1953
+ pathParams: ["formation_id"],
1954
+ queryParams: [],
1955
+ flags: [{
1956
+ "name": "formation_id",
1957
+ "description": "",
1958
+ "required": true,
1959
+ "type": "string",
1960
+ "in": "path"
1961
+ }]
1962
+ },
1963
+ "update-formation": {
1964
+ serviceClass: "Formations",
1965
+ operationId: "updateFormation",
1966
+ description: "Applies a new template to the formation. Resources are created, updated, or deleted to reconcile the current state with the desired state.",
1967
+ moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/formations",
1968
+ pathParams: ["formation_id"],
1969
+ queryParams: [],
1970
+ flags: [{
1971
+ "name": "formation_id",
1972
+ "description": "",
1973
+ "required": true,
1974
+ "type": "string",
1975
+ "in": "path"
1976
+ }, {
1977
+ "name": "template",
1978
+ "description": "",
1979
+ "required": false,
1980
+ "type": "string",
1981
+ "in": "body"
1982
+ }, {
1983
+ "name": "parameters",
1984
+ "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",
1985
+ "required": false,
1986
+ "type": "object",
1987
+ "in": "body"
1988
+ }, {
1989
+ "name": "metadata",
1990
+ "description": "",
1991
+ "required": false,
1992
+ "type": "object",
1993
+ "in": "body"
1994
+ }]
1995
+ },
1996
+ "delete-formation": {
1997
+ serviceClass: "Formations",
1998
+ operationId: "deleteFormation",
1999
+ description: "Deletes the formation stack and all its managed resources in reverse dependency order.",
2000
+ moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/formations",
2001
+ pathParams: ["formation_id"],
2002
+ queryParams: [],
2003
+ flags: [{
2004
+ "name": "formation_id",
2005
+ "description": "",
2006
+ "required": true,
2007
+ "type": "string",
2008
+ "in": "path"
2009
+ }]
2010
+ },
2011
+ "list-formation-events": {
2012
+ serviceClass: "Formations",
2013
+ operationId: "listFormationEvents",
2014
+ description: "Returns all operations (create, update, delete) with their event logs for the formation, ordered chronologically.",
2015
+ moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/formations",
2016
+ pathParams: ["formation_id"],
2017
+ queryParams: [],
2018
+ flags: [{
2019
+ "name": "formation_id",
2020
+ "description": "",
2021
+ "required": true,
2022
+ "type": "string",
2023
+ "in": "path"
2024
+ }]
2025
+ },
2026
2026
  "search-knowledge": {
2027
2027
  serviceClass: "Knowledge",
2028
2028
  operationId: "searchKnowledge",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soat/cli",
3
- "version": "0.5.6",
3
+ "version": "0.5.7",
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.6"
11
+ "@soat/sdk": "0.5.7"
12
12
  },
13
13
  "devDependencies": {
14
14
  "@ttoss/config": "^1.37.10",