okrapdf 0.13.0 → 0.14.0
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 +29 -4
- package/dist/browser.d.ts +1 -1
- package/dist/browser.js +1 -1
- package/dist/{chunk-KJMV6TN2.js → chunk-7BAEYVWG.js} +2 -2
- package/dist/{chunk-F3LECDPP.js → chunk-ETARIBOV.js} +293 -35
- package/dist/chunk-ETARIBOV.js.map +1 -0
- package/dist/{chunk-QKII53VN.js → chunk-HPTXRSWK.js} +2 -2
- package/dist/chunk-HPTXRSWK.js.map +1 -0
- package/dist/chunk-MSZQPLMQ.js +497 -0
- package/dist/chunk-MSZQPLMQ.js.map +1 -0
- package/dist/{chunk-2VKGPLAA.js → chunk-YGIBZV5J.js} +174 -92
- package/dist/chunk-YGIBZV5J.js.map +1 -0
- package/dist/cli/bin.d.ts +39 -0
- package/dist/cli/bin.js +440 -56
- package/dist/cli/bin.js.map +1 -1
- package/dist/cli/index.d.ts +2 -2
- package/dist/cli/index.js +2 -1
- package/dist/{client-DMEw0oK3.d.ts → client-D4A0dQ4h.d.ts} +2 -1
- package/dist/index.d.ts +146 -4
- package/dist/index.js +19 -3
- package/dist/index.js.map +1 -1
- package/dist/react/index.d.ts +3 -3
- package/dist/react/index.js +2 -2
- package/dist/{types-D2JaySEg.d.ts → types-SYOi8k1l.d.ts} +12 -4
- package/dist/url.d.ts +1 -1
- package/dist/url.js +1 -1
- package/package.json +4 -2
- package/dist/chunk-2VKGPLAA.js.map +0 -1
- package/dist/chunk-F3LECDPP.js.map +0 -1
- package/dist/chunk-QKII53VN.js.map +0 -1
- /package/dist/{chunk-KJMV6TN2.js.map → chunk-7BAEYVWG.js.map} +0 -0
package/dist/cli/bin.d.ts
CHANGED
|
@@ -1 +1,40 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import { Command } from 'commander';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* okra CLI — Agent-friendly PDF extraction and collection queries.
|
|
6
|
+
*
|
|
7
|
+
* Global flags:
|
|
8
|
+
* -j, --json Structured JSON output
|
|
9
|
+
* -q, --quiet Suppress progress (just data to stdout)
|
|
10
|
+
* -o, --output Write output to file (CSV/JSON/ZIP)
|
|
11
|
+
*
|
|
12
|
+
* Action commands (agent-grade):
|
|
13
|
+
* okra upload <source> # Upload + wait
|
|
14
|
+
* okra extract <source> --schema schema.json # Upload + structured extract
|
|
15
|
+
* okra extract <docId> --schema schema.json # Extract from existing doc
|
|
16
|
+
* okra list # List documents
|
|
17
|
+
* okra read <id> [--pages 1-5] # Full markdown
|
|
18
|
+
* okra delete <id> # Delete document
|
|
19
|
+
* okra chat "<question>" --doc <id> # Ask a question
|
|
20
|
+
* okra collection list # List collections
|
|
21
|
+
* okra collection query <name> "<question>" # Fan-out → CSV
|
|
22
|
+
* okra collection extract <name> --schema s.json # Experimental structured extract → CSV
|
|
23
|
+
*
|
|
24
|
+
* Review commands:
|
|
25
|
+
* okra tree / find / page / search / tables / history / toc
|
|
26
|
+
*
|
|
27
|
+
* Exit codes: 0=success, 1=client error, 2=server error
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
declare const CLI_VERSION: string;
|
|
31
|
+
declare const PRIMARY_COMMANDS: readonly ["auth", "upload", "extract", "chat", "list", "read", "delete", "collection"];
|
|
32
|
+
declare const ADVANCED_COMMANDS: readonly ["status", "tree", "find", "page", "search", "tables", "history", "toc", "local"];
|
|
33
|
+
declare const PRIMARY_COLLECTION_SUBCOMMANDS: readonly ["list", "query"];
|
|
34
|
+
declare const ADVANCED_COLLECTION_SUBCOMMANDS: readonly ["create", "show", "delete", "add", "remove", "publish", "unpublish", "export"];
|
|
35
|
+
declare const ROOT_HELP_FOOTER: string;
|
|
36
|
+
declare const COLLECTION_HELP_FOOTER: string;
|
|
37
|
+
declare const program: Command;
|
|
38
|
+
declare function getMissingApiKeyMessage(): string;
|
|
39
|
+
|
|
40
|
+
export { ADVANCED_COLLECTION_SUBCOMMANDS, ADVANCED_COMMANDS, CLI_VERSION, COLLECTION_HELP_FOOTER, PRIMARY_COLLECTION_SUBCOMMANDS, PRIMARY_COMMANDS, ROOT_HELP_FOOTER, getMissingApiKeyMessage, program };
|