@soat/cli 0.13.3 → 0.13.5
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 +111 -15
- 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.5";
|
|
15
15
|
|
|
16
16
|
//#endregion
|
|
17
17
|
//#region src/cli-wrappers/wrappers/formations.ts
|
|
@@ -1882,8 +1882,8 @@ var routes = {
|
|
|
1882
1882
|
queryParams: [],
|
|
1883
1883
|
flags: [{
|
|
1884
1884
|
"name": "project_id",
|
|
1885
|
-
"description": "Public ID of the project",
|
|
1886
|
-
"required":
|
|
1885
|
+
"description": "Public ID of the project. Optional when authenticating with a project-scoped API key, which defaults to the key's project; required otherwise.",
|
|
1886
|
+
"required": false,
|
|
1887
1887
|
"type": "string",
|
|
1888
1888
|
"in": "body"
|
|
1889
1889
|
}, {
|
|
@@ -1984,6 +1984,78 @@ var routes = {
|
|
|
1984
1984
|
"in": "body"
|
|
1985
1985
|
}]
|
|
1986
1986
|
},
|
|
1987
|
+
"create-upload-token": {
|
|
1988
|
+
serviceClass: "Files",
|
|
1989
|
+
operationId: "createUploadToken",
|
|
1990
|
+
description: "Creates a short-lived, single-use upload token — 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.",
|
|
1991
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/files",
|
|
1992
|
+
pathParams: [],
|
|
1993
|
+
queryParams: [],
|
|
1994
|
+
flags: [{
|
|
1995
|
+
"name": "project_id",
|
|
1996
|
+
"description": "Public ID of the project",
|
|
1997
|
+
"required": true,
|
|
1998
|
+
"type": "string",
|
|
1999
|
+
"in": "body"
|
|
2000
|
+
}, {
|
|
2001
|
+
"name": "filename",
|
|
2002
|
+
"description": "Name of the file to be uploaded",
|
|
2003
|
+
"required": false,
|
|
2004
|
+
"type": "string",
|
|
2005
|
+
"in": "body"
|
|
2006
|
+
}, {
|
|
2007
|
+
"name": "content_type",
|
|
2008
|
+
"description": "MIME type of the file to be uploaded",
|
|
2009
|
+
"required": false,
|
|
2010
|
+
"type": "string",
|
|
2011
|
+
"in": "body"
|
|
2012
|
+
}, {
|
|
2013
|
+
"name": "path",
|
|
2014
|
+
"description": "Logical path within the project (e.g. /documents/report.pdf). Defaults to /filename if omitted.",
|
|
2015
|
+
"required": false,
|
|
2016
|
+
"type": "string",
|
|
2017
|
+
"in": "body"
|
|
2018
|
+
}]
|
|
2019
|
+
},
|
|
2020
|
+
"upload-file-with-token": {
|
|
2021
|
+
serviceClass: "Files",
|
|
2022
|
+
operationId: "uploadFileWithToken",
|
|
2023
|
+
description: "Uploads file content authorized by a single-use token from `POST /api/v1/files/upload-token`. No bearer credential is required — the token is the credential. Accepts either multipart/form-data (field `file`) or JSON with a base64-encoded `content` field. Excluded from the MCP tool surface; clients call it directly over HTTP.",
|
|
2024
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/files",
|
|
2025
|
+
pathParams: ["token"],
|
|
2026
|
+
queryParams: [],
|
|
2027
|
+
flags: [{
|
|
2028
|
+
"name": "token",
|
|
2029
|
+
"description": "The single-use upload token (e.g. upt_...)",
|
|
2030
|
+
"required": true,
|
|
2031
|
+
"type": "string",
|
|
2032
|
+
"in": "path"
|
|
2033
|
+
}, {
|
|
2034
|
+
"name": "content",
|
|
2035
|
+
"description": "Base64-encoded file content",
|
|
2036
|
+
"required": true,
|
|
2037
|
+
"type": "string",
|
|
2038
|
+
"in": "body"
|
|
2039
|
+
}, {
|
|
2040
|
+
"name": "filename",
|
|
2041
|
+
"description": "Name of the file (overrides the token's filename)",
|
|
2042
|
+
"required": false,
|
|
2043
|
+
"type": "string",
|
|
2044
|
+
"in": "body"
|
|
2045
|
+
}, {
|
|
2046
|
+
"name": "content_type",
|
|
2047
|
+
"description": "MIME type of the file (overrides the token's content type)",
|
|
2048
|
+
"required": false,
|
|
2049
|
+
"type": "string",
|
|
2050
|
+
"in": "body"
|
|
2051
|
+
}, {
|
|
2052
|
+
"name": "metadata",
|
|
2053
|
+
"description": "JSON string with additional metadata",
|
|
2054
|
+
"required": false,
|
|
2055
|
+
"type": "string",
|
|
2056
|
+
"in": "body"
|
|
2057
|
+
}]
|
|
2058
|
+
},
|
|
1987
2059
|
"get-file": {
|
|
1988
2060
|
serviceClass: "Files",
|
|
1989
2061
|
operationId: "getFile",
|
|
@@ -2140,8 +2212,8 @@ var routes = {
|
|
|
2140
2212
|
queryParams: [],
|
|
2141
2213
|
flags: [{
|
|
2142
2214
|
"name": "project_id",
|
|
2143
|
-
"description": "Project ID",
|
|
2144
|
-
"required":
|
|
2215
|
+
"description": "Project ID. Optional when authenticating with a project-scoped API key, which defaults to the key's project; required otherwise.",
|
|
2216
|
+
"required": false,
|
|
2145
2217
|
"type": "string",
|
|
2146
2218
|
"in": "body"
|
|
2147
2219
|
}, {
|
|
@@ -2188,8 +2260,8 @@ var routes = {
|
|
|
2188
2260
|
queryParams: [],
|
|
2189
2261
|
flags: [{
|
|
2190
2262
|
"name": "project_id",
|
|
2191
|
-
"description": "Project ID",
|
|
2192
|
-
"required":
|
|
2263
|
+
"description": "Project ID. Optional when authenticating with a project-scoped API key, which defaults to the key's project; required otherwise.",
|
|
2264
|
+
"required": false,
|
|
2193
2265
|
"type": "string",
|
|
2194
2266
|
"in": "body"
|
|
2195
2267
|
}, {
|
|
@@ -2302,7 +2374,7 @@ var routes = {
|
|
|
2302
2374
|
description: "Returns generations the caller can access, optionally filtered by agent, trace, and status. Replaces the former per-trace generations endpoint (use the trace_id query filter).",
|
|
2303
2375
|
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/generations",
|
|
2304
2376
|
pathParams: [],
|
|
2305
|
-
queryParams: ["agent_id", "trace_id", "status", "limit", "offset"],
|
|
2377
|
+
queryParams: ["agent_id", "trace_id", "initiator_generation_id", "status", "limit", "offset"],
|
|
2306
2378
|
flags: [{
|
|
2307
2379
|
"name": "agent_id",
|
|
2308
2380
|
"description": "Filter by agent public ID",
|
|
@@ -2315,6 +2387,12 @@ var routes = {
|
|
|
2315
2387
|
"required": false,
|
|
2316
2388
|
"type": "string",
|
|
2317
2389
|
"in": "query"
|
|
2390
|
+
}, {
|
|
2391
|
+
"name": "initiator_generation_id",
|
|
2392
|
+
"description": "Filter by the public ID of the parent generation. Returns all generations triggered by that generation — debate perspective turns, synthesis steps, and sub-agent invocations. Null-initiated (top-level) generations are not returned.\n",
|
|
2393
|
+
"required": false,
|
|
2394
|
+
"type": "string",
|
|
2395
|
+
"in": "query"
|
|
2318
2396
|
}, {
|
|
2319
2397
|
"name": "status",
|
|
2320
2398
|
"description": "Filter by lifecycle status",
|
|
@@ -2559,7 +2637,7 @@ var routes = {
|
|
|
2559
2637
|
"type": "string",
|
|
2560
2638
|
"in": "body"
|
|
2561
2639
|
}, {
|
|
2562
|
-
"name": "
|
|
2640
|
+
"name": "source_type",
|
|
2563
2641
|
"description": "How this entry was created",
|
|
2564
2642
|
"required": false,
|
|
2565
2643
|
"type": "string",
|
|
@@ -2653,8 +2731,8 @@ var routes = {
|
|
|
2653
2731
|
queryParams: [],
|
|
2654
2732
|
flags: [{
|
|
2655
2733
|
"name": "project_id",
|
|
2656
|
-
"description": "Public ID of the project.",
|
|
2657
|
-
"required":
|
|
2734
|
+
"description": "Public ID of the project. Optional when authenticating with a project-scoped API key, which defaults to the key's project; required otherwise.",
|
|
2735
|
+
"required": false,
|
|
2658
2736
|
"type": "string",
|
|
2659
2737
|
"in": "body"
|
|
2660
2738
|
}, {
|
|
@@ -3572,6 +3650,12 @@ var routes = {
|
|
|
3572
3650
|
"required": false,
|
|
3573
3651
|
"type": "object",
|
|
3574
3652
|
"in": "body"
|
|
3653
|
+
}, {
|
|
3654
|
+
"name": "pipeline",
|
|
3655
|
+
"description": "Pipeline definition for `pipeline` tools. See the `pipeline` field on the Tool schema for the full structure.",
|
|
3656
|
+
"required": false,
|
|
3657
|
+
"type": "object",
|
|
3658
|
+
"in": "body"
|
|
3575
3659
|
}]
|
|
3576
3660
|
},
|
|
3577
3661
|
"get-tool": {
|
|
@@ -3650,6 +3734,12 @@ var routes = {
|
|
|
3650
3734
|
"required": false,
|
|
3651
3735
|
"type": "object",
|
|
3652
3736
|
"in": "body"
|
|
3737
|
+
}, {
|
|
3738
|
+
"name": "pipeline",
|
|
3739
|
+
"description": "Pipeline definition for `pipeline` tools. See the `pipeline` field on the Tool schema for the full structure.",
|
|
3740
|
+
"required": false,
|
|
3741
|
+
"type": "object",
|
|
3742
|
+
"in": "body"
|
|
3653
3743
|
}]
|
|
3654
3744
|
},
|
|
3655
3745
|
"delete-tool": {
|
|
@@ -3670,7 +3760,7 @@ var routes = {
|
|
|
3670
3760
|
"call-tool": {
|
|
3671
3761
|
serviceClass: "Tools",
|
|
3672
3762
|
operationId: "callTool",
|
|
3673
|
-
description: "Directly invokes a tool and returns its output. Supported for `http`, `soat`, and `
|
|
3763
|
+
description: "Directly invokes a tool and returns its output. Supported for `http`, `soat`, `mcp`, and `pipeline` tools. `client` tools cannot be invoked server-side and will return 422. A `pipeline` tool runs its declared steps in order and returns the mapped `output` (or the last step's output); `action` is ignored and `input` is the pipeline input. 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.",
|
|
3674
3764
|
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/tools",
|
|
3675
3765
|
pathParams: ["tool_id"],
|
|
3676
3766
|
queryParams: [],
|
|
@@ -3742,13 +3832,19 @@ var routes = {
|
|
|
3742
3832
|
description: "Returns the full execution tree rooted at the given trace (or its root if the given trace is a child). Each node represents one agent's execution session. The `children` array contains traces triggered by sub-agent tool calls from that trace.",
|
|
3743
3833
|
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/traces",
|
|
3744
3834
|
pathParams: ["trace_id"],
|
|
3745
|
-
queryParams: [],
|
|
3835
|
+
queryParams: ["include"],
|
|
3746
3836
|
flags: [{
|
|
3747
3837
|
"name": "trace_id",
|
|
3748
3838
|
"description": "Public ID of any trace in the tree (root or child)",
|
|
3749
3839
|
"required": true,
|
|
3750
3840
|
"type": "string",
|
|
3751
3841
|
"in": "path"
|
|
3842
|
+
}, {
|
|
3843
|
+
"name": "include",
|
|
3844
|
+
"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 debate perspective/synthesis children linked via `initiator_generation_id`).\n",
|
|
3845
|
+
"required": false,
|
|
3846
|
+
"type": "string",
|
|
3847
|
+
"in": "query"
|
|
3752
3848
|
}]
|
|
3753
3849
|
},
|
|
3754
3850
|
"get-current-user": {
|
|
@@ -3913,8 +4009,8 @@ var routes = {
|
|
|
3913
4009
|
queryParams: [],
|
|
3914
4010
|
flags: [{
|
|
3915
4011
|
"name": "project_id",
|
|
3916
|
-
"description": "",
|
|
3917
|
-
"required":
|
|
4012
|
+
"description": "Public ID of the project. Optional when authenticating with a project-scoped API key, which defaults to the key's project; required otherwise.",
|
|
4013
|
+
"required": false,
|
|
3918
4014
|
"type": "string",
|
|
3919
4015
|
"in": "body"
|
|
3920
4016
|
}, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soat/cli",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.5",
|
|
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.5"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
14
|
"@ttoss/config": "^1.37.15",
|