@graphysdk/agents-sdk 1.8.0 → 1.8.1-beta.1786024899180
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/LICENSE.md +17 -0
- package/README.md +20 -6
- package/dist/index.cjs +2 -1
- package/dist/index.d.ts +3893 -3667
- package/dist/index.mjs +1068 -1
- package/package.json +21 -17
- package/dist/README.md +0 -26
package/package.json
CHANGED
|
@@ -1,14 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphysdk/agents-sdk",
|
|
3
3
|
"author": "Graphy",
|
|
4
|
-
"
|
|
4
|
+
"description": "TypeScript client for the Graphy Agents API",
|
|
5
|
+
"homepage": "https://docs.graphy.dev/agents/sdk/installation",
|
|
6
|
+
"license": "SEE LICENSE IN LICENSE.md",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"graphy",
|
|
9
|
+
"agents",
|
|
10
|
+
"typescript",
|
|
11
|
+
"sse",
|
|
12
|
+
"ai",
|
|
13
|
+
"charts"
|
|
14
|
+
],
|
|
15
|
+
"version": "1.8.1-beta.1786024899180",
|
|
5
16
|
"type": "module",
|
|
6
17
|
"sideEffects": false,
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
7
19
|
"files": [
|
|
8
20
|
"dist",
|
|
21
|
+
"LICENSE.md",
|
|
9
22
|
"README.md"
|
|
10
23
|
],
|
|
11
|
-
"types": "./dist/index.d.ts",
|
|
12
24
|
"exports": {
|
|
13
25
|
".": {
|
|
14
26
|
"types": "./dist/index.d.ts",
|
|
@@ -17,23 +29,17 @@
|
|
|
17
29
|
}
|
|
18
30
|
},
|
|
19
31
|
"dependencies": {
|
|
20
|
-
"zod": "^4.3.6"
|
|
21
|
-
"@graphysdk/core": "1.8.0"
|
|
32
|
+
"zod": "^4.3.6"
|
|
22
33
|
},
|
|
23
34
|
"devDependencies": {
|
|
24
|
-
"@
|
|
25
|
-
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
26
|
-
"@rollup/plugin-terser": "^1.0.0",
|
|
27
|
-
"@rollup/plugin-typescript": "^12.1.4",
|
|
28
|
-
"lodash-es": "^4.18.1",
|
|
29
|
-
"rollup": "^4.59.0",
|
|
30
|
-
"rollup-plugin-clear": "^2.0.7",
|
|
31
|
-
"rollup-plugin-copy": "^3.5.0",
|
|
32
|
-
"rollup-plugin-dts": "^6.2.3",
|
|
35
|
+
"@types/node": "^24.1.0",
|
|
33
36
|
"rollup-plugin-node-externals": "^8.1.1",
|
|
34
37
|
"tslib": "^2.8.1",
|
|
38
|
+
"vite": "^8.1.5",
|
|
39
|
+
"vite-plugin-dts": "^4.5.4",
|
|
35
40
|
"vitest": "^4.1.0",
|
|
36
41
|
"@graphytools/eslint-config": "0.0.1",
|
|
42
|
+
"@graphytools/eslint-plugin-graphy": "1.0.0",
|
|
37
43
|
"@graphytools/typescript-config": "0.0.1",
|
|
38
44
|
"@graphytools/vitest-config": "1.0.0"
|
|
39
45
|
},
|
|
@@ -46,15 +52,13 @@
|
|
|
46
52
|
]
|
|
47
53
|
},
|
|
48
54
|
"scripts": {
|
|
49
|
-
"build": "
|
|
50
|
-
"build:dev": "rollup -c --watch",
|
|
55
|
+
"build": "vite build",
|
|
51
56
|
"test": "vitest run",
|
|
52
57
|
"test:watch": "TZ=utc vitest",
|
|
53
58
|
"lint": "eslint . --max-warnings 0",
|
|
54
59
|
"lint:fix": "eslint . --fix",
|
|
55
60
|
"format": "prettier --write .",
|
|
56
61
|
"format:check": "prettier --check .",
|
|
57
|
-
"typecheck": "tsc --noEmit"
|
|
58
|
-
"yalc:push": "yalc push --private"
|
|
62
|
+
"typecheck": "tsc --noEmit"
|
|
59
63
|
}
|
|
60
64
|
}
|
package/dist/README.md
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# @graphysdk/agents-sdk
|
|
2
|
-
|
|
3
|
-
TypeScript client types and helpers for Graphy agent HTTP APIs.
|
|
4
|
-
|
|
5
|
-
## Initial datasets (`datasetRef`)
|
|
6
|
-
|
|
7
|
-
Chart agent requests accept either inline **`config.data`** or a staged **`datasetRef`** (`graphy://attachments/{uuid}`).
|
|
8
|
-
Use **`uploadDataset(file)`** to stage CSV, TSV, or XLSX (presigned flow), then pass `datasetRef` on
|
|
9
|
-
`generateGraph`, `generateGraphStream`, and other `GraphGenerationRequestSchema` methods. Inline non-empty data and
|
|
10
|
-
`datasetRef` are mutually exclusive. See **`apps/agents-api/README.md`** (Initial datasets) for size limits and auth.
|
|
11
|
-
|
|
12
|
-
## Extract (`POST /api/v0/extract`)
|
|
13
|
-
|
|
14
|
-
`ExtractFromProseParams` mirrors `ExtractFromProseRequestSchema` in **agents-api**. Prefer **`attachments[]`** over deprecated **`images[]`** (do not send both).
|
|
15
|
-
|
|
16
|
-
Each attachment uses **`kind`**:
|
|
17
|
-
|
|
18
|
-
| `kind` | Purpose | Helper |
|
|
19
|
-
| --------------- | ------------------------------------- | ---------------------------- |
|
|
20
|
-
| `"image"` | PNG / JPEG / WebP / GIF | `buildImageAttachment` |
|
|
21
|
-
| `"document"` | PDF (`application/pdf`) | `buildPdfAttachment` |
|
|
22
|
-
| `"spreadsheet"` | Excel `.xlsx` (OOXML ZIP on the wire) | `buildSpreadsheetAttachment` |
|
|
23
|
-
|
|
24
|
-
Spreadsheet rows must use MIME **`application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`**, RFC 4648 **base64** payload (no `data:` prefix), and optional **`filename`**. Client-side caps (`MAX_EXTRACT_SPREADSHEETS`, per-file and combined totals) align with **agents-api**; the server re-validates decoded size and that the payload starts with a ZIP local-file header (`PK\x03\x04`).
|
|
25
|
-
|
|
26
|
-
See **`apps/agents-api/README.md`** (`POST /api/v0/extract`) for route limits and runtime behavior (e.g. spreadsheet tools enabled when `.xlsx` attachments are present).
|