aiex-cli 0.0.1-beta.27 → 0.0.1-beta.29
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/README.md +13 -3
- package/dist/cli.mjs +819 -351
- package/dist/core/schema-sqlite/migrate-helper.mjs +16 -29
- package/dist/{doctor-IvHYLDX6.mjs → doctor-collector-j2dG7dG1.mjs} +270 -231
- package/dist/index.d.mts +14 -15
- package/dist/index.mjs +1 -1
- package/dist/web/assets/AISettings-Dn58ZHhM.js +339 -0
- package/dist/web/assets/DataBrowser-B6WECCZM.js +6 -0
- package/dist/web/assets/{ExtractionViewer-WMUdXeyU.js → ExtractionViewer-CTS1RXzc.js} +1 -1
- package/dist/web/assets/JsonSchemaEditor-Dpgu6HPz.js +570 -0
- package/dist/web/assets/api-client-CbQEkaKT.js +1 -0
- package/dist/web/assets/dialog-CUkPLPNP.js +109 -0
- package/dist/web/assets/{index-CuOQk7nB.js → index-g2pWXPQZ.js} +38 -38
- package/dist/web/assets/object-utils-DPPzLQjH.js +1 -0
- package/dist/web/assets/select-DyjIzt-v.js +439 -0
- package/dist/web/index.html +5 -5
- package/package.json +7 -1
- package/src/core/schema-sqlite/migrate-helper.ts +15 -40
- package/dist/web/assets/AISettings-DFi-nXIi.js +0 -334
- package/dist/web/assets/DataBrowser-BWSX8O2h.js +0 -5
- package/dist/web/assets/JsonSchemaEditor-B57coz1O.js +0 -929
- package/dist/web/assets/api-client-By2rWtpv.js +0 -1
- package/dist/web/assets/dialog-dMXSeJQQ.js +0 -108
- package/dist/web/assets/overlayeventbus-CRKW6UCj.js +0 -80
- package/dist/web/assets/table-schema-C90NJyfq.js +0 -2
- /package/dist/web/assets/{runtime-dom.esm-bundler-DmdkgxQM.js → runtime-dom.esm-bundler-ei_N7Xjw.js} +0 -0
package/README.md
CHANGED
|
@@ -33,6 +33,8 @@ aiex extract -s invoice -f invoice.pdf # extract data with AI and insert into d
|
|
|
33
33
|
- **JSON Schema → SQLite** — Define tables as JSON Schema files, generate Drizzle ORM schema, and migrate to SQLite
|
|
34
34
|
- **Visual Editor** — Browser-based UI for designing schemas without writing JSON by hand
|
|
35
35
|
- **AI Extraction** — Extract structured data from text, images, and PDFs using any OpenAI-compatible provider (OpenAI, Anthropic, Ollama, DeepSeek, local models, etc.)
|
|
36
|
+
- **Interactive Mode** — Run `aiex extract` without arguments for a guided extraction workflow
|
|
37
|
+
- **Batch Mode** — `aiex extract -d <dir>` processes entire directories with optional glob filtering
|
|
36
38
|
- **Built-in Model Registry** — Knows capabilities of 2000+ models (vision, structured output) so you don't have to guess
|
|
37
39
|
|
|
38
40
|
<br>
|
|
@@ -68,17 +70,22 @@ Converts your JSON Schema files into a SQLite database with full migration suppo
|
|
|
68
70
|
### 4. Extract Data
|
|
69
71
|
|
|
70
72
|
```bash
|
|
71
|
-
aiex extract
|
|
72
|
-
aiex extract -s <schema> -
|
|
73
|
-
aiex extract -s <schema> -
|
|
73
|
+
aiex extract # interactive mode (prompts for schema & input)
|
|
74
|
+
aiex extract -s <schema> -f <file> # from file (txt, pdf, png, jpg, ...)
|
|
75
|
+
aiex extract -s <schema> -t <text> # from text
|
|
76
|
+
aiex extract -s <schema> -f <file> -m <model> # specify AI model (overrides auto-selection)
|
|
77
|
+
aiex extract -s <schema> -d <directory> # batch extract all supported files in a directory
|
|
78
|
+
aiex extract -s <schema> -d <dir> -g "*.pdf" # batch with glob filter
|
|
74
79
|
```
|
|
75
80
|
|
|
76
81
|
The AI reads your document and outputs structured JSON matching your schema.
|
|
77
82
|
|
|
78
83
|
**Examples:**
|
|
79
84
|
```bash
|
|
85
|
+
aiex extract # interactive mode
|
|
80
86
|
aiex extract -s paper -f research.pdf # save result to .aiex/extracted/ and insert into database
|
|
81
87
|
aiex extract -s paper -f research.pdf -m gpt-4o # use a specific model
|
|
88
|
+
aiex extract -s paper -d ./papers -g "*.pdf" # batch extract PDFs from a directory
|
|
82
89
|
```
|
|
83
90
|
Saves the extracted result to `.aiex/extracted/<schema-name>-<timestamp>.json` with fields like `title`, `firstAuthor`, `journal`, `year` — exactly as defined in your schema. Data is automatically inserted into the SQLite database.
|
|
84
91
|
|
|
@@ -94,8 +101,11 @@ By default, aiex automatically selects a model based on your input type (vision-
|
|
|
94
101
|
| `aiex schema` | Parse JSON Schema files and migrate to SQLite |
|
|
95
102
|
| `aiex schema --generate` | Generate Drizzle schema code only (skip migration) |
|
|
96
103
|
| `aiex web` | Launch visual schema editor in browser |
|
|
104
|
+
| `aiex extract` | Interactive mode — prompts for schema and input source |
|
|
97
105
|
| `aiex extract -s <name> -f <file>` | Extract structured data from documents and insert into SQLite database |
|
|
98
106
|
| `aiex extract -s <name> -f <file> -m <model>` | Extract with a specific AI model |
|
|
107
|
+
| `aiex extract -s <name> -d <dir>` | Batch extract all supported files in a directory |
|
|
108
|
+
| `aiex extract -s <name> -d <dir> -g "*.pdf"` | Batch extract with glob filter |
|
|
99
109
|
| `aiex doctor` | System and configuration diagnostics |
|
|
100
110
|
| `aiex completion bash\|zsh\|fish` | Generate shell completion scripts |
|
|
101
111
|
|