@soat/cli 0.13.6 → 0.13.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/index.mjs +193 -7
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -11,7 +11,7 @@ import yaml from "js-yaml";
|
|
|
11
11
|
import * as os from "node:os";
|
|
12
12
|
|
|
13
13
|
//#region package.json
|
|
14
|
-
var version = "0.13.
|
|
14
|
+
var version = "0.13.8";
|
|
15
15
|
|
|
16
16
|
//#endregion
|
|
17
17
|
//#region src/cli-wrappers/wrappers/formations.ts
|
|
@@ -637,7 +637,7 @@ var routes = {
|
|
|
637
637
|
"in": "body"
|
|
638
638
|
}, {
|
|
639
639
|
"name": "reasoning",
|
|
640
|
-
"description": "Deep-thinking configuration. `effort` forwards provider-native reasoning; `mode:
|
|
640
|
+
"description": "Deep-thinking configuration. `effort` forwards provider-native reasoning; `mode: pipeline` runs an ordered list of reasoning steps after the base draft. reflect and debate are expressed as pipelines — see the Agents module docs.",
|
|
641
641
|
"required": false,
|
|
642
642
|
"type": "object",
|
|
643
643
|
"in": "body"
|
|
@@ -673,7 +673,7 @@ var routes = {
|
|
|
673
673
|
"update-agent": {
|
|
674
674
|
serviceClass: "Agents",
|
|
675
675
|
operationId: "updateAgent",
|
|
676
|
-
description: "Updates an existing agent.",
|
|
676
|
+
description: "Updates an existing agent. Identical to PATCH — both perform partial updates.",
|
|
677
677
|
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/agents",
|
|
678
678
|
pathParams: ["agent_id"],
|
|
679
679
|
queryParams: [],
|
|
@@ -763,7 +763,118 @@ var routes = {
|
|
|
763
763
|
"in": "body"
|
|
764
764
|
}, {
|
|
765
765
|
"name": "reasoning",
|
|
766
|
-
"description": "Deep-thinking configuration. `effort` forwards provider-native reasoning; `mode:
|
|
766
|
+
"description": "Deep-thinking configuration. `effort` forwards provider-native reasoning; `mode: pipeline` runs an ordered list of reasoning steps after the base draft. reflect and debate are expressed as pipelines — see the Agents module docs.",
|
|
767
|
+
"required": false,
|
|
768
|
+
"type": "object",
|
|
769
|
+
"in": "body"
|
|
770
|
+
}, {
|
|
771
|
+
"name": "max_context_messages",
|
|
772
|
+
"description": "Maximum number of recent messages included in the context window. Null means no limit.",
|
|
773
|
+
"required": false,
|
|
774
|
+
"type": "integer",
|
|
775
|
+
"in": "body"
|
|
776
|
+
}, {
|
|
777
|
+
"name": "single_session_per_actor",
|
|
778
|
+
"description": "When true, only one open session per actor_id is allowed for this agent.",
|
|
779
|
+
"required": false,
|
|
780
|
+
"type": "boolean",
|
|
781
|
+
"in": "body"
|
|
782
|
+
}]
|
|
783
|
+
},
|
|
784
|
+
"patch-agent": {
|
|
785
|
+
serviceClass: "Agents",
|
|
786
|
+
operationId: "patchAgent",
|
|
787
|
+
description: "Partially updates an existing agent. Identical to PUT — both perform partial updates.",
|
|
788
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/agents",
|
|
789
|
+
pathParams: ["agent_id"],
|
|
790
|
+
queryParams: [],
|
|
791
|
+
flags: [{
|
|
792
|
+
"name": "agent_id",
|
|
793
|
+
"description": "",
|
|
794
|
+
"required": true,
|
|
795
|
+
"type": "string",
|
|
796
|
+
"in": "path"
|
|
797
|
+
}, {
|
|
798
|
+
"name": "ai_provider_id",
|
|
799
|
+
"description": "",
|
|
800
|
+
"required": false,
|
|
801
|
+
"type": "string",
|
|
802
|
+
"in": "body"
|
|
803
|
+
}, {
|
|
804
|
+
"name": "name",
|
|
805
|
+
"description": "",
|
|
806
|
+
"required": false,
|
|
807
|
+
"type": "string",
|
|
808
|
+
"in": "body"
|
|
809
|
+
}, {
|
|
810
|
+
"name": "instructions",
|
|
811
|
+
"description": "",
|
|
812
|
+
"required": false,
|
|
813
|
+
"type": "string",
|
|
814
|
+
"in": "body"
|
|
815
|
+
}, {
|
|
816
|
+
"name": "model",
|
|
817
|
+
"description": "",
|
|
818
|
+
"required": false,
|
|
819
|
+
"type": "string",
|
|
820
|
+
"in": "body"
|
|
821
|
+
}, {
|
|
822
|
+
"name": "tool_ids",
|
|
823
|
+
"description": "",
|
|
824
|
+
"required": false,
|
|
825
|
+
"type": "array",
|
|
826
|
+
"in": "body"
|
|
827
|
+
}, {
|
|
828
|
+
"name": "max_steps",
|
|
829
|
+
"description": "",
|
|
830
|
+
"required": false,
|
|
831
|
+
"type": "integer",
|
|
832
|
+
"in": "body"
|
|
833
|
+
}, {
|
|
834
|
+
"name": "tool_choice",
|
|
835
|
+
"description": "Tool choice strategy. Accepts a string (`\"auto\"`, `\"required\"`) or an object (`{ \"type\": \"tool\", \"name\": \"my_tool\" }`).",
|
|
836
|
+
"required": false,
|
|
837
|
+
"type": "string",
|
|
838
|
+
"in": "body"
|
|
839
|
+
}, {
|
|
840
|
+
"name": "stop_conditions",
|
|
841
|
+
"description": "",
|
|
842
|
+
"required": false,
|
|
843
|
+
"type": "array",
|
|
844
|
+
"in": "body"
|
|
845
|
+
}, {
|
|
846
|
+
"name": "active_tool_ids",
|
|
847
|
+
"description": "",
|
|
848
|
+
"required": false,
|
|
849
|
+
"type": "array",
|
|
850
|
+
"in": "body"
|
|
851
|
+
}, {
|
|
852
|
+
"name": "step_rules",
|
|
853
|
+
"description": "",
|
|
854
|
+
"required": false,
|
|
855
|
+
"type": "array",
|
|
856
|
+
"in": "body"
|
|
857
|
+
}, {
|
|
858
|
+
"name": "boundary_policy",
|
|
859
|
+
"description": "",
|
|
860
|
+
"required": false,
|
|
861
|
+
"type": "object",
|
|
862
|
+
"in": "body"
|
|
863
|
+
}, {
|
|
864
|
+
"name": "temperature",
|
|
865
|
+
"description": "",
|
|
866
|
+
"required": false,
|
|
867
|
+
"type": "number",
|
|
868
|
+
"in": "body"
|
|
869
|
+
}, {
|
|
870
|
+
"name": "knowledge_config",
|
|
871
|
+
"description": "",
|
|
872
|
+
"required": false,
|
|
873
|
+
"type": "object",
|
|
874
|
+
"in": "body"
|
|
875
|
+
}, {
|
|
876
|
+
"name": "reasoning",
|
|
877
|
+
"description": "Deep-thinking configuration. `effort` forwards provider-native reasoning; `mode: pipeline` runs an ordered list of reasoning steps after the base draft. reflect and debate are expressed as pipelines — see the Agents module docs.",
|
|
767
878
|
"required": false,
|
|
768
879
|
"type": "object",
|
|
769
880
|
"in": "body"
|
|
@@ -1780,6 +1891,60 @@ var routes = {
|
|
|
1780
1891
|
"in": "path"
|
|
1781
1892
|
}]
|
|
1782
1893
|
},
|
|
1894
|
+
"get-document-status": {
|
|
1895
|
+
serviceClass: "Documents",
|
|
1896
|
+
operationId: "getDocumentStatus",
|
|
1897
|
+
description: "Returns a lightweight ingestion status payload for polling — `status`, `chunk_count`, `total_pages`, and (when failed) `error`. Unlike `GET /documents/{document_id}`, it never returns the assembled chunk content, so it is cheap to poll on large documents. A document whose ingestion has stalled (no progress past the configured timeout) is transitioned to `failed` with `error=INGESTION_TIMEOUT` on read.",
|
|
1898
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/documents",
|
|
1899
|
+
pathParams: ["document_id"],
|
|
1900
|
+
queryParams: [],
|
|
1901
|
+
flags: [{
|
|
1902
|
+
"name": "document_id",
|
|
1903
|
+
"description": "Document ID",
|
|
1904
|
+
"required": true,
|
|
1905
|
+
"type": "string",
|
|
1906
|
+
"in": "path"
|
|
1907
|
+
}]
|
|
1908
|
+
},
|
|
1909
|
+
"reingest-document": {
|
|
1910
|
+
serviceClass: "Documents",
|
|
1911
|
+
operationId: "reingestDocument",
|
|
1912
|
+
description: "Re-runs ingestion for an existing document against its already-stored source file. Existing chunks are discarded and the document is reset to `status=pending` before re-processing. Use this to recover a document stuck in `processing`/`failed` or to re-chunk with a different strategy without re-uploading the file. Async by default (`202`); pass `?async=false` to run synchronously (`201`).",
|
|
1913
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/documents",
|
|
1914
|
+
pathParams: ["document_id"],
|
|
1915
|
+
queryParams: ["async"],
|
|
1916
|
+
flags: [{
|
|
1917
|
+
"name": "document_id",
|
|
1918
|
+
"description": "Document ID",
|
|
1919
|
+
"required": true,
|
|
1920
|
+
"type": "string",
|
|
1921
|
+
"in": "path"
|
|
1922
|
+
}, {
|
|
1923
|
+
"name": "async",
|
|
1924
|
+
"description": "When omitted or `true` (default), processing runs in the background and `202 Accepted` is returned immediately with `status=pending`. Pass `false` to run synchronously and receive `201 Created` with `status=ready`.",
|
|
1925
|
+
"required": false,
|
|
1926
|
+
"type": "boolean",
|
|
1927
|
+
"in": "query"
|
|
1928
|
+
}, {
|
|
1929
|
+
"name": "chunk_strategy",
|
|
1930
|
+
"description": "How to split the source into chunks. Defaults to `page`.",
|
|
1931
|
+
"required": false,
|
|
1932
|
+
"type": "string",
|
|
1933
|
+
"in": "body"
|
|
1934
|
+
}, {
|
|
1935
|
+
"name": "chunk_size",
|
|
1936
|
+
"description": "Window size in characters when `chunk_strategy=size`. Defaults to 1000.",
|
|
1937
|
+
"required": false,
|
|
1938
|
+
"type": "integer",
|
|
1939
|
+
"in": "body"
|
|
1940
|
+
}, {
|
|
1941
|
+
"name": "chunk_overlap",
|
|
1942
|
+
"description": "Overlap in characters between consecutive windows when `chunk_strategy=size`. Defaults to 200.",
|
|
1943
|
+
"required": false,
|
|
1944
|
+
"type": "integer",
|
|
1945
|
+
"in": "body"
|
|
1946
|
+
}]
|
|
1947
|
+
},
|
|
1783
1948
|
"get-document-tags": {
|
|
1784
1949
|
serviceClass: "Documents",
|
|
1785
1950
|
operationId: "getDocumentTags",
|
|
@@ -1975,7 +2140,7 @@ var routes = {
|
|
|
1975
2140
|
"create-presigned-url": {
|
|
1976
2141
|
serviceClass: "Files",
|
|
1977
2142
|
operationId: "createPresignedUrl",
|
|
1978
|
-
description: "Creates a short-lived, single-use presigned upload URL — the local-storage equivalent of an S3 presigned URL. The client then uploads the file content directly to the returned `upload_url` via `POST /api/v1/files/upload/{token}`, bypassing MCP payload size limits. When the server is configured with `
|
|
2143
|
+
description: "Creates a short-lived, single-use presigned upload URL — the local-storage equivalent of an S3 presigned URL. The client then uploads the file content directly to the returned `upload_url` via `POST /api/v1/files/upload/{token}`, bypassing MCP payload size limits. When the server is configured with `SOAT_BASE_URL`, `upload_url` is a fully-qualified absolute URL so MCP agents and other clients can POST to it without knowing the server base URL in advance.",
|
|
1979
2144
|
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/files",
|
|
1980
2145
|
pathParams: [],
|
|
1981
2146
|
queryParams: [],
|
|
@@ -2383,7 +2548,7 @@ var routes = {
|
|
|
2383
2548
|
"in": "query"
|
|
2384
2549
|
}, {
|
|
2385
2550
|
"name": "initiator_generation_id",
|
|
2386
|
-
"description": "Filter by the public ID of the parent generation. Returns all generations triggered by that generation —
|
|
2551
|
+
"description": "Filter by the public ID of the parent generation. Returns all generations triggered by that generation — reasoning pipeline steps and perspective turns, and sub-agent invocations. Null-initiated (top-level) generations are not returned.\n",
|
|
2387
2552
|
"required": false,
|
|
2388
2553
|
"type": "string",
|
|
2389
2554
|
"in": "query"
|
|
@@ -3127,6 +3292,27 @@ var routes = {
|
|
|
3127
3292
|
"in": "path"
|
|
3128
3293
|
}]
|
|
3129
3294
|
},
|
|
3295
|
+
"update-project": {
|
|
3296
|
+
serviceClass: "Projects",
|
|
3297
|
+
operationId: "updateProject",
|
|
3298
|
+
description: "Updates a project's name. Requires admin role.",
|
|
3299
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/projects",
|
|
3300
|
+
pathParams: ["project_id"],
|
|
3301
|
+
queryParams: [],
|
|
3302
|
+
flags: [{
|
|
3303
|
+
"name": "project_id",
|
|
3304
|
+
"description": "Project public ID (proj_ prefix)",
|
|
3305
|
+
"required": true,
|
|
3306
|
+
"type": "string",
|
|
3307
|
+
"in": "path"
|
|
3308
|
+
}, {
|
|
3309
|
+
"name": "name",
|
|
3310
|
+
"description": "",
|
|
3311
|
+
"required": true,
|
|
3312
|
+
"type": "string",
|
|
3313
|
+
"in": "body"
|
|
3314
|
+
}]
|
|
3315
|
+
},
|
|
3130
3316
|
"delete-project": {
|
|
3131
3317
|
serviceClass: "Projects",
|
|
3132
3318
|
operationId: "deleteProject",
|
|
@@ -3835,7 +4021,7 @@ var routes = {
|
|
|
3835
4021
|
"in": "path"
|
|
3836
4022
|
}, {
|
|
3837
4023
|
"name": "include",
|
|
3838
|
-
"description": "Comma-separated list of related resources to embed on each node. Supported value: `generations` — attaches all generations that belong to each trace node (including
|
|
4024
|
+
"description": "Comma-separated list of related resources to embed on each node. Supported value: `generations` — attaches all generations that belong to each trace node (including reasoning pipeline children linked via `initiator_generation_id`).\n",
|
|
3839
4025
|
"required": false,
|
|
3840
4026
|
"type": "string",
|
|
3841
4027
|
"in": "query"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soat/cli",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@inquirer/input": "^5.1.2",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"@ttoss/logger": "^0.8.16",
|
|
9
9
|
"commander": "^15.0.0",
|
|
10
10
|
"js-yaml": "^4.2.0",
|
|
11
|
-
"@soat/sdk": "0.13.
|
|
11
|
+
"@soat/sdk": "0.13.8"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
14
|
"@ttoss/config": "^1.37.15",
|