@soat/cli 0.13.1 → 0.13.3
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 +76 -1
- 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.3";
|
|
15
15
|
|
|
16
16
|
//#endregion
|
|
17
17
|
//#region src/cli-wrappers/wrappers/formations.ts
|
|
@@ -1628,6 +1628,81 @@ var routes = {
|
|
|
1628
1628
|
"required": false,
|
|
1629
1629
|
"type": "string",
|
|
1630
1630
|
"in": "body"
|
|
1631
|
+
}, {
|
|
1632
|
+
"name": "chunk_strategy",
|
|
1633
|
+
"description": "How to split the content into embeddable chunks. `whole` (default) stores the content as a single chunk; `size` splits into fixed-size character windows with overlap. `page` is equivalent to `whole` for plain text.",
|
|
1634
|
+
"required": false,
|
|
1635
|
+
"type": "string",
|
|
1636
|
+
"in": "body"
|
|
1637
|
+
}, {
|
|
1638
|
+
"name": "chunk_size",
|
|
1639
|
+
"description": "Window size in characters when `chunk_strategy=size`. Defaults to 1000.",
|
|
1640
|
+
"required": false,
|
|
1641
|
+
"type": "integer",
|
|
1642
|
+
"in": "body"
|
|
1643
|
+
}, {
|
|
1644
|
+
"name": "chunk_overlap",
|
|
1645
|
+
"description": "Overlap in characters between consecutive windows when `chunk_strategy=size`. Defaults to 200.",
|
|
1646
|
+
"required": false,
|
|
1647
|
+
"type": "integer",
|
|
1648
|
+
"in": "body"
|
|
1649
|
+
}]
|
|
1650
|
+
},
|
|
1651
|
+
"ingest-document": {
|
|
1652
|
+
serviceClass: "Documents",
|
|
1653
|
+
operationId: "ingestDocument",
|
|
1654
|
+
description: "Parses an already-uploaded file and creates one Document split into one or more embedded chunks. The source format is detected from the file's content type: PDFs are parsed page-by-page; `text/plain` and `text/markdown` files are read as a single source. How the source is chunked is controlled by `chunk_strategy`.",
|
|
1655
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/documents",
|
|
1656
|
+
pathParams: [],
|
|
1657
|
+
queryParams: ["async"],
|
|
1658
|
+
flags: [{
|
|
1659
|
+
"name": "async",
|
|
1660
|
+
"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`.",
|
|
1661
|
+
"required": false,
|
|
1662
|
+
"type": "boolean",
|
|
1663
|
+
"in": "query"
|
|
1664
|
+
}, {
|
|
1665
|
+
"name": "file_id",
|
|
1666
|
+
"description": "ID of the uploaded file. Must be one of application/pdf, text/plain, text/markdown.",
|
|
1667
|
+
"required": true,
|
|
1668
|
+
"type": "string",
|
|
1669
|
+
"in": "body"
|
|
1670
|
+
}, {
|
|
1671
|
+
"name": "project_id",
|
|
1672
|
+
"description": "Project ID. Required for JWT auth; omit when using a project key.",
|
|
1673
|
+
"required": false,
|
|
1674
|
+
"type": "string",
|
|
1675
|
+
"in": "body"
|
|
1676
|
+
}, {
|
|
1677
|
+
"name": "path_prefix",
|
|
1678
|
+
"description": "Path prefix under which to store the document (e.g. /docs/). The filename is appended automatically.",
|
|
1679
|
+
"required": false,
|
|
1680
|
+
"type": "string",
|
|
1681
|
+
"in": "body"
|
|
1682
|
+
}, {
|
|
1683
|
+
"name": "tags",
|
|
1684
|
+
"description": "Key-value tags to attach to the document.",
|
|
1685
|
+
"required": false,
|
|
1686
|
+
"type": "object",
|
|
1687
|
+
"in": "body"
|
|
1688
|
+
}, {
|
|
1689
|
+
"name": "chunk_strategy",
|
|
1690
|
+
"description": "How to split the source into chunks. `page` (default) creates one chunk per non-empty page (PDF); for non-paged sources it yields a single chunk. `whole` joins everything into one chunk. `size` splits into fixed-size character windows with overlap.",
|
|
1691
|
+
"required": false,
|
|
1692
|
+
"type": "string",
|
|
1693
|
+
"in": "body"
|
|
1694
|
+
}, {
|
|
1695
|
+
"name": "chunk_size",
|
|
1696
|
+
"description": "Window size in characters when `chunk_strategy=size`. Defaults to 1000.",
|
|
1697
|
+
"required": false,
|
|
1698
|
+
"type": "integer",
|
|
1699
|
+
"in": "body"
|
|
1700
|
+
}, {
|
|
1701
|
+
"name": "chunk_overlap",
|
|
1702
|
+
"description": "Overlap in characters between consecutive windows when `chunk_strategy=size`. Defaults to 200.",
|
|
1703
|
+
"required": false,
|
|
1704
|
+
"type": "integer",
|
|
1705
|
+
"in": "body"
|
|
1631
1706
|
}]
|
|
1632
1707
|
},
|
|
1633
1708
|
"get-document": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soat/cli",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.3",
|
|
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.3"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
14
|
"@ttoss/config": "^1.37.15",
|