index-vault.mjs
22 lines 499 B
Raw
sha256:fbe982a22c05c6fe2e93876f250deecdb43d883f648b4e1810c7546caa9f17db docs: activate KNOWTATION- board identity and preserve livi… Human minor ⚠ breaking 3 days 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:fbe982a22c05c6fe2e93876f250deecdb43d883f648b4e1810c7546caa9f17db docs: activate KNOWTATION- board identity and preserve livi… Human minor 3 days ago