@soat/cli 0.13.5 → 0.13.6
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 +26 -32
- 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.6";
|
|
15
15
|
|
|
16
16
|
//#endregion
|
|
17
17
|
//#region src/cli-wrappers/wrappers/formations.ts
|
|
@@ -1887,14 +1887,14 @@ var routes = {
|
|
|
1887
1887
|
"type": "string",
|
|
1888
1888
|
"in": "body"
|
|
1889
1889
|
}, {
|
|
1890
|
-
"name": "
|
|
1891
|
-
"description": "
|
|
1890
|
+
"name": "prefix",
|
|
1891
|
+
"description": "Directory within the project (e.g. /images). Optional; defaults to / (root). Combined with filename to form the file's key (path).",
|
|
1892
1892
|
"required": false,
|
|
1893
1893
|
"type": "string",
|
|
1894
1894
|
"in": "body"
|
|
1895
1895
|
}, {
|
|
1896
1896
|
"name": "filename",
|
|
1897
|
-
"description": "
|
|
1897
|
+
"description": "Original / download name and the key's leaf segment (e.g. logo.png).",
|
|
1898
1898
|
"required": false,
|
|
1899
1899
|
"type": "string",
|
|
1900
1900
|
"in": "body"
|
|
@@ -1910,18 +1910,6 @@ var routes = {
|
|
|
1910
1910
|
"required": false,
|
|
1911
1911
|
"type": "integer",
|
|
1912
1912
|
"in": "body"
|
|
1913
|
-
}, {
|
|
1914
|
-
"name": "storage_type",
|
|
1915
|
-
"description": "Storage backend type",
|
|
1916
|
-
"required": true,
|
|
1917
|
-
"type": "string",
|
|
1918
|
-
"in": "body"
|
|
1919
|
-
}, {
|
|
1920
|
-
"name": "storage_path",
|
|
1921
|
-
"description": "Path where the file is stored",
|
|
1922
|
-
"required": true,
|
|
1923
|
-
"type": "string",
|
|
1924
|
-
"in": "body"
|
|
1925
1913
|
}, {
|
|
1926
1914
|
"name": "metadata",
|
|
1927
1915
|
"description": "JSON string with additional metadata",
|
|
@@ -1959,14 +1947,14 @@ var routes = {
|
|
|
1959
1947
|
"type": "string",
|
|
1960
1948
|
"in": "body"
|
|
1961
1949
|
}, {
|
|
1962
|
-
"name": "
|
|
1963
|
-
"description": "
|
|
1950
|
+
"name": "prefix",
|
|
1951
|
+
"description": "Directory within the project (e.g. /documents). Optional; defaults to / (root).",
|
|
1964
1952
|
"required": false,
|
|
1965
1953
|
"type": "string",
|
|
1966
1954
|
"in": "body"
|
|
1967
1955
|
}, {
|
|
1968
|
-
"name": "
|
|
1969
|
-
"description": "
|
|
1956
|
+
"name": "filename",
|
|
1957
|
+
"description": "Original / download name and the key's leaf segment.",
|
|
1970
1958
|
"required": false,
|
|
1971
1959
|
"type": "string",
|
|
1972
1960
|
"in": "body"
|
|
@@ -1984,10 +1972,10 @@ var routes = {
|
|
|
1984
1972
|
"in": "body"
|
|
1985
1973
|
}]
|
|
1986
1974
|
},
|
|
1987
|
-
"create-
|
|
1975
|
+
"create-presigned-url": {
|
|
1988
1976
|
serviceClass: "Files",
|
|
1989
|
-
operationId: "
|
|
1990
|
-
description: "Creates a short-lived, single-use upload
|
|
1977
|
+
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 `SERVER_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.",
|
|
1991
1979
|
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/files",
|
|
1992
1980
|
pathParams: [],
|
|
1993
1981
|
queryParams: [],
|
|
@@ -1998,20 +1986,20 @@ var routes = {
|
|
|
1998
1986
|
"type": "string",
|
|
1999
1987
|
"in": "body"
|
|
2000
1988
|
}, {
|
|
2001
|
-
"name": "
|
|
2002
|
-
"description": "
|
|
1989
|
+
"name": "prefix",
|
|
1990
|
+
"description": "Directory within the project (e.g. /documents). Optional; defaults to / (root).",
|
|
2003
1991
|
"required": false,
|
|
2004
1992
|
"type": "string",
|
|
2005
1993
|
"in": "body"
|
|
2006
1994
|
}, {
|
|
2007
|
-
"name": "
|
|
2008
|
-
"description": "
|
|
1995
|
+
"name": "filename",
|
|
1996
|
+
"description": "Original / download name and the key's leaf segment.",
|
|
2009
1997
|
"required": false,
|
|
2010
1998
|
"type": "string",
|
|
2011
1999
|
"in": "body"
|
|
2012
2000
|
}, {
|
|
2013
|
-
"name": "
|
|
2014
|
-
"description": "
|
|
2001
|
+
"name": "content_type",
|
|
2002
|
+
"description": "MIME type of the file to be uploaded",
|
|
2015
2003
|
"required": false,
|
|
2016
2004
|
"type": "string",
|
|
2017
2005
|
"in": "body"
|
|
@@ -2020,7 +2008,7 @@ var routes = {
|
|
|
2020
2008
|
"upload-file-with-token": {
|
|
2021
2009
|
serviceClass: "Files",
|
|
2022
2010
|
operationId: "uploadFileWithToken",
|
|
2023
|
-
description: "Uploads file content authorized by a single-use token from `POST /api/v1/files/
|
|
2011
|
+
description: "Uploads file content authorized by a single-use token from `POST /api/v1/files/presigned-url`. 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
2012
|
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/files",
|
|
2025
2013
|
pathParams: ["token"],
|
|
2026
2014
|
queryParams: [],
|
|
@@ -2038,7 +2026,7 @@ var routes = {
|
|
|
2038
2026
|
"in": "body"
|
|
2039
2027
|
}, {
|
|
2040
2028
|
"name": "filename",
|
|
2041
|
-
"description": "
|
|
2029
|
+
"description": "Original / download name (overrides the token's filename)",
|
|
2042
2030
|
"required": false,
|
|
2043
2031
|
"type": "string",
|
|
2044
2032
|
"in": "body"
|
|
@@ -2120,9 +2108,15 @@ var routes = {
|
|
|
2120
2108
|
"required": false,
|
|
2121
2109
|
"type": "string",
|
|
2122
2110
|
"in": "body"
|
|
2111
|
+
}, {
|
|
2112
|
+
"name": "prefix",
|
|
2113
|
+
"description": "New directory — moves the file. The resulting path (prefix + filename) must be unique within the project.",
|
|
2114
|
+
"required": false,
|
|
2115
|
+
"type": "string",
|
|
2116
|
+
"in": "body"
|
|
2123
2117
|
}, {
|
|
2124
2118
|
"name": "filename",
|
|
2125
|
-
"description": "New filename
|
|
2119
|
+
"description": "New filename — renames the key's leaf and the download name.",
|
|
2126
2120
|
"required": false,
|
|
2127
2121
|
"type": "string",
|
|
2128
2122
|
"in": "body"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soat/cli",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.6",
|
|
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.6"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
14
|
"@ttoss/config": "^1.37.15",
|