index-vault.mjs
22 lines 499 B
Raw
sha256:8915fe406161f95c1681f9469375e7bae5b28c884f00bedbdef65e4b0cd0738d docs(flow): commit FLOW-V0-SPEC.md hygiene for 7A-INT merge Human 18 hours ago
1 #!/usr/bin/env node
2 import '../lib/load-env.mjs';
3
4 /**
5 * Index vault: walk Markdown under vault_path → chunk → embed → upsert to Qdrant.
6 * Config: config/local.yaml or env (KNOWTATION_VAULT_PATH, QDRANT_URL).
7 * Exit 0 on success, 2 on failure. SPEC §5; Phase 2.
8 */
9
10 import { runIndex } from '../lib/indexer.mjs';
11
12 async function main() {
13 try {
14 await runIndex();
15 process.exit(0);
16 } catch (e) {
17 console.error('Index failed:', e.message);
18 process.exit(2);
19 }
20 }
21
22 main();
File History 1 commit
sha256:8915fe406161f95c1681f9469375e7bae5b28c884f00bedbdef65e4b0cd0738d docs(flow): commit FLOW-V0-SPEC.md hygiene for 7A-INT merge Human 18 hours ago