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/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 };