@soat/cli 0.13.1 → 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.
Files changed (2) hide show
  1. package/dist/index.mjs +70 -1
  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.1";
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": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soat/cli",
3
- "version": "0.13.1",
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.1"
11
+ "@soat/sdk": "0.13.2"
12
12
  },
13
13
  "devDependencies": {
14
14
  "@ttoss/config": "^1.37.15",