@soat/cli 0.13.0 → 0.13.2
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 +97 -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.2";
|
|
15
15
|
|
|
16
16
|
//#endregion
|
|
17
17
|
//#region src/cli-wrappers/wrappers/formations.ts
|
|
@@ -1628,6 +1628,75 @@ 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: [],
|
|
1658
|
+
flags: [{
|
|
1659
|
+
"name": "file_id",
|
|
1660
|
+
"description": "ID of the uploaded file. Must be one of application/pdf, text/plain, text/markdown.",
|
|
1661
|
+
"required": true,
|
|
1662
|
+
"type": "string",
|
|
1663
|
+
"in": "body"
|
|
1664
|
+
}, {
|
|
1665
|
+
"name": "project_id",
|
|
1666
|
+
"description": "Project ID. Required for JWT auth; omit when using a project key.",
|
|
1667
|
+
"required": false,
|
|
1668
|
+
"type": "string",
|
|
1669
|
+
"in": "body"
|
|
1670
|
+
}, {
|
|
1671
|
+
"name": "path_prefix",
|
|
1672
|
+
"description": "Path prefix under which to store the document (e.g. /docs/). The filename is appended automatically.",
|
|
1673
|
+
"required": false,
|
|
1674
|
+
"type": "string",
|
|
1675
|
+
"in": "body"
|
|
1676
|
+
}, {
|
|
1677
|
+
"name": "tags",
|
|
1678
|
+
"description": "Key-value tags to attach to the document.",
|
|
1679
|
+
"required": false,
|
|
1680
|
+
"type": "object",
|
|
1681
|
+
"in": "body"
|
|
1682
|
+
}, {
|
|
1683
|
+
"name": "chunk_strategy",
|
|
1684
|
+
"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.",
|
|
1685
|
+
"required": false,
|
|
1686
|
+
"type": "string",
|
|
1687
|
+
"in": "body"
|
|
1688
|
+
}, {
|
|
1689
|
+
"name": "chunk_size",
|
|
1690
|
+
"description": "Window size in characters when `chunk_strategy=size`. Defaults to 1000.",
|
|
1691
|
+
"required": false,
|
|
1692
|
+
"type": "integer",
|
|
1693
|
+
"in": "body"
|
|
1694
|
+
}, {
|
|
1695
|
+
"name": "chunk_overlap",
|
|
1696
|
+
"description": "Overlap in characters between consecutive windows when `chunk_strategy=size`. Defaults to 200.",
|
|
1697
|
+
"required": false,
|
|
1698
|
+
"type": "integer",
|
|
1699
|
+
"in": "body"
|
|
1631
1700
|
}]
|
|
1632
1701
|
},
|
|
1633
1702
|
"get-document": {
|
|
@@ -2620,6 +2689,33 @@ var routes = {
|
|
|
2620
2689
|
"in": "body"
|
|
2621
2690
|
}]
|
|
2622
2691
|
},
|
|
2692
|
+
"validate-orchestration": {
|
|
2693
|
+
serviceClass: "Orchestrations",
|
|
2694
|
+
operationId: "validateOrchestration",
|
|
2695
|
+
description: "Statically validates an orchestration graph without persisting anything. Checks that every node has its required field, node ids are unique, edges reference existing nodes, the graph is acyclic (unless it contains a loop node), and every `input_mapping` `{\"var\": \"...\"}` reference resolves to a state key written by an upstream node or seeded by `input_schema`. Returns blocking `errors` and non-blocking `warnings` (e.g. a state key only written on a conditional branch). The same `errors` checks are enforced on create and update, which fail with `400` when any error is present.",
|
|
2696
|
+
moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/orchestrations",
|
|
2697
|
+
pathParams: [],
|
|
2698
|
+
queryParams: [],
|
|
2699
|
+
flags: [{
|
|
2700
|
+
"name": "nodes",
|
|
2701
|
+
"description": "",
|
|
2702
|
+
"required": true,
|
|
2703
|
+
"type": "array",
|
|
2704
|
+
"in": "body"
|
|
2705
|
+
}, {
|
|
2706
|
+
"name": "edges",
|
|
2707
|
+
"description": "",
|
|
2708
|
+
"required": true,
|
|
2709
|
+
"type": "array",
|
|
2710
|
+
"in": "body"
|
|
2711
|
+
}, {
|
|
2712
|
+
"name": "input_schema",
|
|
2713
|
+
"description": "Optional JSON Schema for run inputs; its top-level properties seed state.",
|
|
2714
|
+
"required": false,
|
|
2715
|
+
"type": "object",
|
|
2716
|
+
"in": "body"
|
|
2717
|
+
}]
|
|
2718
|
+
},
|
|
2623
2719
|
"get-orchestration": {
|
|
2624
2720
|
serviceClass: "Orchestrations",
|
|
2625
2721
|
operationId: "getOrchestration",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soat/cli",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.2",
|
|
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.2"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
14
|
"@ttoss/config": "^1.37.15",
|