@soat/cli 0.13.5 → 0.13.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/index.mjs +84 -36
  2. 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.5";
14
+ var version = "0.13.7";
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: reflect` critiques and revises; `mode: debate` runs multiple perspectives then synthesizes.",
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"
@@ -763,7 +763,7 @@ var routes = {
763
763
  "in": "body"
764
764
  }, {
765
765
  "name": "reasoning",
766
- "description": "Deep-thinking configuration. `effort` forwards provider-native reasoning; `mode: reflect` critiques and revises; `mode: debate` runs multiple perspectives then synthesizes.",
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
767
  "required": false,
768
768
  "type": "object",
769
769
  "in": "body"
@@ -1780,6 +1780,60 @@ var routes = {
1780
1780
  "in": "path"
1781
1781
  }]
1782
1782
  },
1783
+ "get-document-status": {
1784
+ serviceClass: "Documents",
1785
+ operationId: "getDocumentStatus",
1786
+ 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.",
1787
+ moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/documents",
1788
+ pathParams: ["document_id"],
1789
+ queryParams: [],
1790
+ flags: [{
1791
+ "name": "document_id",
1792
+ "description": "Document ID",
1793
+ "required": true,
1794
+ "type": "string",
1795
+ "in": "path"
1796
+ }]
1797
+ },
1798
+ "reingest-document": {
1799
+ serviceClass: "Documents",
1800
+ operationId: "reingestDocument",
1801
+ 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`).",
1802
+ moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/documents",
1803
+ pathParams: ["document_id"],
1804
+ queryParams: ["async"],
1805
+ flags: [{
1806
+ "name": "document_id",
1807
+ "description": "Document ID",
1808
+ "required": true,
1809
+ "type": "string",
1810
+ "in": "path"
1811
+ }, {
1812
+ "name": "async",
1813
+ "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`.",
1814
+ "required": false,
1815
+ "type": "boolean",
1816
+ "in": "query"
1817
+ }, {
1818
+ "name": "chunk_strategy",
1819
+ "description": "How to split the source into chunks. Defaults to `page`.",
1820
+ "required": false,
1821
+ "type": "string",
1822
+ "in": "body"
1823
+ }, {
1824
+ "name": "chunk_size",
1825
+ "description": "Window size in characters when `chunk_strategy=size`. Defaults to 1000.",
1826
+ "required": false,
1827
+ "type": "integer",
1828
+ "in": "body"
1829
+ }, {
1830
+ "name": "chunk_overlap",
1831
+ "description": "Overlap in characters between consecutive windows when `chunk_strategy=size`. Defaults to 200.",
1832
+ "required": false,
1833
+ "type": "integer",
1834
+ "in": "body"
1835
+ }]
1836
+ },
1783
1837
  "get-document-tags": {
1784
1838
  serviceClass: "Documents",
1785
1839
  operationId: "getDocumentTags",
@@ -1887,14 +1941,14 @@ var routes = {
1887
1941
  "type": "string",
1888
1942
  "in": "body"
1889
1943
  }, {
1890
- "name": "path",
1891
- "description": "Logical path within the project (e.g. /images/logo.png). Defaults to /filename if omitted.",
1944
+ "name": "prefix",
1945
+ "description": "Directory within the project (e.g. /images). Optional; defaults to / (root). Combined with filename to form the file's key (path).",
1892
1946
  "required": false,
1893
1947
  "type": "string",
1894
1948
  "in": "body"
1895
1949
  }, {
1896
1950
  "name": "filename",
1897
- "description": "Name of the file",
1951
+ "description": "Original / download name and the key's leaf segment (e.g. logo.png).",
1898
1952
  "required": false,
1899
1953
  "type": "string",
1900
1954
  "in": "body"
@@ -1910,18 +1964,6 @@ var routes = {
1910
1964
  "required": false,
1911
1965
  "type": "integer",
1912
1966
  "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
1967
  }, {
1926
1968
  "name": "metadata",
1927
1969
  "description": "JSON string with additional metadata",
@@ -1959,14 +2001,14 @@ var routes = {
1959
2001
  "type": "string",
1960
2002
  "in": "body"
1961
2003
  }, {
1962
- "name": "filename",
1963
- "description": "Name of the file",
2004
+ "name": "prefix",
2005
+ "description": "Directory within the project (e.g. /documents). Optional; defaults to / (root).",
1964
2006
  "required": false,
1965
2007
  "type": "string",
1966
2008
  "in": "body"
1967
2009
  }, {
1968
- "name": "path",
1969
- "description": "Logical path within the project (e.g. /images/logo.png). Defaults to /filename if omitted.",
2010
+ "name": "filename",
2011
+ "description": "Original / download name and the key's leaf segment.",
1970
2012
  "required": false,
1971
2013
  "type": "string",
1972
2014
  "in": "body"
@@ -1984,10 +2026,10 @@ var routes = {
1984
2026
  "in": "body"
1985
2027
  }]
1986
2028
  },
1987
- "create-upload-token": {
2029
+ "create-presigned-url": {
1988
2030
  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.",
2031
+ operationId: "createPresignedUrl",
2032
+ 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.",
1991
2033
  moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/files",
1992
2034
  pathParams: [],
1993
2035
  queryParams: [],
@@ -1998,20 +2040,20 @@ var routes = {
1998
2040
  "type": "string",
1999
2041
  "in": "body"
2000
2042
  }, {
2001
- "name": "filename",
2002
- "description": "Name of the file to be uploaded",
2043
+ "name": "prefix",
2044
+ "description": "Directory within the project (e.g. /documents). Optional; defaults to / (root).",
2003
2045
  "required": false,
2004
2046
  "type": "string",
2005
2047
  "in": "body"
2006
2048
  }, {
2007
- "name": "content_type",
2008
- "description": "MIME type of the file to be uploaded",
2049
+ "name": "filename",
2050
+ "description": "Original / download name and the key's leaf segment.",
2009
2051
  "required": false,
2010
2052
  "type": "string",
2011
2053
  "in": "body"
2012
2054
  }, {
2013
- "name": "path",
2014
- "description": "Logical path within the project (e.g. /documents/report.pdf). Defaults to /filename if omitted.",
2055
+ "name": "content_type",
2056
+ "description": "MIME type of the file to be uploaded",
2015
2057
  "required": false,
2016
2058
  "type": "string",
2017
2059
  "in": "body"
@@ -2020,7 +2062,7 @@ var routes = {
2020
2062
  "upload-file-with-token": {
2021
2063
  serviceClass: "Files",
2022
2064
  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.",
2065
+ 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
2066
  moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/files",
2025
2067
  pathParams: ["token"],
2026
2068
  queryParams: [],
@@ -2038,7 +2080,7 @@ var routes = {
2038
2080
  "in": "body"
2039
2081
  }, {
2040
2082
  "name": "filename",
2041
- "description": "Name of the file (overrides the token's filename)",
2083
+ "description": "Original / download name (overrides the token's filename)",
2042
2084
  "required": false,
2043
2085
  "type": "string",
2044
2086
  "in": "body"
@@ -2120,9 +2162,15 @@ var routes = {
2120
2162
  "required": false,
2121
2163
  "type": "string",
2122
2164
  "in": "body"
2165
+ }, {
2166
+ "name": "prefix",
2167
+ "description": "New directory — moves the file. The resulting path (prefix + filename) must be unique within the project.",
2168
+ "required": false,
2169
+ "type": "string",
2170
+ "in": "body"
2123
2171
  }, {
2124
2172
  "name": "filename",
2125
- "description": "New filename for the file",
2173
+ "description": "New filename renames the key's leaf and the download name.",
2126
2174
  "required": false,
2127
2175
  "type": "string",
2128
2176
  "in": "body"
@@ -2389,7 +2437,7 @@ var routes = {
2389
2437
  "in": "query"
2390
2438
  }, {
2391
2439
  "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",
2440
+ "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",
2393
2441
  "required": false,
2394
2442
  "type": "string",
2395
2443
  "in": "query"
@@ -3841,7 +3889,7 @@ var routes = {
3841
3889
  "in": "path"
3842
3890
  }, {
3843
3891
  "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",
3892
+ "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",
3845
3893
  "required": false,
3846
3894
  "type": "string",
3847
3895
  "in": "query"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soat/cli",
3
- "version": "0.13.5",
3
+ "version": "0.13.7",
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.5"
11
+ "@soat/sdk": "0.13.7"
12
12
  },
13
13
  "devDependencies": {
14
14
  "@ttoss/config": "^1.37.15",