index-vault.mjs
22 lines 499 B
Raw
sha256:c2dbf04d56308f3bbf2d06e6d2eb022b8948b1e827195fe525a44e5e18d5f9c0 feat(auth): Phase B Connect cloud agent (RFC 8628) + Hermes… Human minor ⚠ breaking 11 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:93bcf8f9bd56d8c5b9339f4ec73b9ebd66571398d56262d38eedc2cfa9db9882 fix(test): align Band B landing assertion with desktop MCP … Human 11 days ago