@yugenlab/vaayu 0.1.11 → 0.1.12
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/chunks/{agentic-tool-loop-O3NUV7KG.js → agentic-tool-loop-NQESOBLC.js} +2 -2
- package/chunks/akasha-5C5Q6NMP.js +12 -0
- package/chunks/{chunk-7XV5ISV7.js → chunk-26K6DS6N.js} +2 -2
- package/chunks/chunk-5E3ZS5SW.js +529 -0
- package/chunks/{chunk-D46QTN3G.js → chunk-ARZCIITZ.js} +47 -18
- package/chunks/{chunk-ZYY6N3SP.js → chunk-FEDPZOZ5.js} +548 -389
- package/chunks/{chunk-3AYSJ7WB.js → chunk-GWYC7R2L.js} +13 -7
- package/chunks/chunk-H46F2Y6R.js +134 -0
- package/chunks/{chunk-QV4GPIPT.js → chunk-HXHDP2PZ.js} +8 -4
- package/chunks/chunk-KVQH4LE7.js +396 -0
- package/chunks/{chunk-Z576WVLG.js → chunk-LJCT7UYP.js} +17 -7
- package/chunks/{chunk-LJUEMPLG.js → chunk-M2RLX5LU.js} +32 -14
- package/chunks/{chunk-IGKYKEKT.js → chunk-NAQKA54E.js} +8 -2
- package/chunks/{chunk-F6RNEGFX.js → chunk-PZ4AQ22L.js} +78 -13
- package/chunks/{chunk-G2QREGXK.js → chunk-R273KC7J.js} +275 -2
- package/chunks/{chunk-A3HOZBC5.js → chunk-RVKTGKFD.js} +2 -2
- package/chunks/{chunk-VCUJES75.js → chunk-TSOQ2CT3.js} +763 -620
- package/chunks/{chunk-V2ZIKDN4.js → chunk-VEZ2DI2M.js} +16 -5
- package/chunks/{chunk-W4PVGBUH.js → chunk-XP3NIH5F.js} +7 -3
- package/chunks/{chunk-7AYYXHYZ.js → chunk-Y6IZH6FT.js} +19 -4
- package/chunks/{chunk-JZTFJE7M.js → chunk-YRTGGYJU.js} +14 -10
- package/chunks/{consolidation-indexer-VIWOP6VO.js → consolidation-indexer-KPXORCJ4.js} +9 -9
- package/chunks/database-BX3LVYXS.js +11 -0
- package/chunks/{day-consolidation-HMHSXIOM.js → day-consolidation-CR3TJFAL.js} +5 -5
- package/chunks/{dist-CY5NX2IK.js → dist-ESCM3CP5.js} +31 -21
- package/chunks/graphrag-73XA7LBX.js +14 -0
- package/chunks/hierarchical-temporal-search-GHKVKNZ6.js +8 -0
- package/chunks/hybrid-search-OD756RDV.js +20 -0
- package/chunks/{memory-store-LEERUQGL.js → memory-store-4GCBR2DZ.js} +4 -4
- package/chunks/periodic-consolidation-IINCHP6L.js +11 -0
- package/chunks/{postgres-7GZDDX77.js → postgres-YLCUNVPQ.js} +2 -2
- package/chunks/recall-64RROTUC.js +21 -0
- package/chunks/search-JVCDNTAJ.js +19 -0
- package/chunks/{session-store-O3TS7DUY.js → session-store-3EDQZEDS.js} +12 -6
- package/chunks/{sqlite-7BC4DJTN.js → sqlite-4N7YH2KK.js} +2 -2
- package/chunks/{src-6GVZTUH6.js → src-OPSDZEFI.js} +2 -2
- package/chunks/{suncalc-NOHGYHDU.js → suncalc-RM7URNUR.js} +2 -2
- package/chunks/{tree-RSHKDTCR.js → tree-FIUVGJ5J.js} +2 -2
- package/chunks/{vasana-engine-BJFHJVGM.js → vasana-engine-W4PYWT5H.js} +5 -5
- package/gateway.js +2358 -768
- package/package.json +1 -1
- package/pair-cli.js +2 -2
- package/chunks/chunk-2OBLQJYJ.js +0 -198
- package/chunks/chunk-67DXWEKG.js +0 -123
- package/chunks/graphrag-T2QWNX57.js +0 -14
- package/chunks/hierarchical-temporal-search-U6DG74IR.js +0 -8
- package/chunks/hybrid-search-BYTXCOXP.js +0 -20
- package/chunks/periodic-consolidation-D6SSKZ7H.js +0 -11
- package/chunks/recall-LNRQVATQ.js +0 -21
- package/chunks/search-BIODUW2P.js +0 -19
|
@@ -1,26 +1,34 @@
|
|
|
1
1
|
import {
|
|
2
|
+
init_session_store,
|
|
2
3
|
listSessions,
|
|
3
4
|
loadSession
|
|
4
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-FEDPZOZ5.js";
|
|
5
6
|
import {
|
|
6
7
|
EmbeddingService,
|
|
7
8
|
cosineSimilarity,
|
|
8
9
|
estimateTokens
|
|
9
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-RVKTGKFD.js";
|
|
10
11
|
import {
|
|
11
|
-
initVectorsSchema
|
|
12
|
-
|
|
12
|
+
initVectorsSchema,
|
|
13
|
+
init_schema
|
|
14
|
+
} from "./chunk-VEZ2DI2M.js";
|
|
13
15
|
import {
|
|
14
|
-
DatabaseManager
|
|
15
|
-
|
|
16
|
+
DatabaseManager,
|
|
17
|
+
init_database
|
|
18
|
+
} from "./chunk-H46F2Y6R.js";
|
|
16
19
|
import {
|
|
17
|
-
getChitraguptaHome
|
|
18
|
-
|
|
20
|
+
getChitraguptaHome,
|
|
21
|
+
init_dist
|
|
22
|
+
} from "./chunk-KVQH4LE7.js";
|
|
19
23
|
|
|
20
24
|
// ../chitragupta/packages/smriti/dist/recall.js
|
|
25
|
+
init_database();
|
|
26
|
+
init_schema();
|
|
27
|
+
init_session_store();
|
|
21
28
|
import fs3 from "fs";
|
|
22
29
|
|
|
23
30
|
// ../chitragupta/packages/smriti/dist/streams.js
|
|
31
|
+
init_dist();
|
|
24
32
|
import fs from "fs";
|
|
25
33
|
import path from "path";
|
|
26
34
|
var STREAM_CONFIGS = {
|
|
@@ -368,6 +376,9 @@ function resetOllamaAvailability() {
|
|
|
368
376
|
}
|
|
369
377
|
|
|
370
378
|
// ../chitragupta/packages/smriti/dist/recall-storage.js
|
|
379
|
+
init_dist();
|
|
380
|
+
init_database();
|
|
381
|
+
init_schema();
|
|
371
382
|
import fs2 from "fs";
|
|
372
383
|
import path2 from "path";
|
|
373
384
|
var DEFAULT_TOP_K = 10;
|
|
@@ -395,7 +406,9 @@ function migrateEmbeddingsJson() {
|
|
|
395
406
|
try {
|
|
396
407
|
const raw = fs2.readFileSync(jsonPath, "utf-8");
|
|
397
408
|
entries = JSON.parse(raw);
|
|
398
|
-
} catch {
|
|
409
|
+
} catch (err) {
|
|
410
|
+
process.stderr.write(`[smriti:recall-storage] embeddings JSON parse failed: ${err instanceof Error ? err.message : String(err)}
|
|
411
|
+
`);
|
|
399
412
|
return { migrated: 0, skipped: 0 };
|
|
400
413
|
}
|
|
401
414
|
if (!entries || entries.length === 0) {
|
|
@@ -426,7 +439,9 @@ function migrateEmbeddingsJson() {
|
|
|
426
439
|
} else {
|
|
427
440
|
skipped++;
|
|
428
441
|
}
|
|
429
|
-
} catch {
|
|
442
|
+
} catch (err) {
|
|
443
|
+
process.stderr.write(`[smriti:recall-storage] migration insert failed for ${entry.id}: ${err instanceof Error ? err.message : String(err)}
|
|
444
|
+
`);
|
|
430
445
|
skipped++;
|
|
431
446
|
}
|
|
432
447
|
}
|
|
@@ -434,9 +449,13 @@ function migrateEmbeddingsJson() {
|
|
|
434
449
|
txn();
|
|
435
450
|
try {
|
|
436
451
|
fs2.renameSync(jsonPath, jsonPath + ".bak");
|
|
437
|
-
} catch {
|
|
452
|
+
} catch (err) {
|
|
453
|
+
process.stderr.write(`[smriti:recall-storage] JSON backup rename failed: ${err instanceof Error ? err.message : String(err)}
|
|
454
|
+
`);
|
|
438
455
|
}
|
|
439
|
-
} catch {
|
|
456
|
+
} catch (err) {
|
|
457
|
+
process.stderr.write(`[smriti:recall-storage] migration transaction failed: ${err instanceof Error ? err.message : String(err)}
|
|
458
|
+
`);
|
|
440
459
|
return { migrated: 0, skipped: entries.length };
|
|
441
460
|
}
|
|
442
461
|
return { migrated, skipped };
|
|
@@ -492,7 +511,9 @@ var RecallEngine = class {
|
|
|
492
511
|
deviceId: metadata.deviceId
|
|
493
512
|
};
|
|
494
513
|
});
|
|
495
|
-
} catch {
|
|
514
|
+
} catch (err) {
|
|
515
|
+
process.stderr.write(`[smriti:recall] SQLite load failed, trying JSON fallback: ${err instanceof Error ? err.message : String(err)}
|
|
516
|
+
`);
|
|
496
517
|
this.loadIndexJson();
|
|
497
518
|
}
|
|
498
519
|
this.loaded = true;
|
|
@@ -517,7 +538,9 @@ var RecallEngine = class {
|
|
|
517
538
|
}
|
|
518
539
|
});
|
|
519
540
|
txn();
|
|
520
|
-
} catch {
|
|
541
|
+
} catch (err) {
|
|
542
|
+
process.stderr.write(`[smriti:recall] SQLite save failed, using JSON fallback: ${err instanceof Error ? err.message : String(err)}
|
|
543
|
+
`);
|
|
521
544
|
this.saveIndexJson();
|
|
522
545
|
}
|
|
523
546
|
}
|
|
@@ -529,7 +552,9 @@ var RecallEngine = class {
|
|
|
529
552
|
const raw = fs3.readFileSync(indexPath, "utf-8");
|
|
530
553
|
this.entries = JSON.parse(raw);
|
|
531
554
|
}
|
|
532
|
-
} catch {
|
|
555
|
+
} catch (err) {
|
|
556
|
+
process.stderr.write(`[smriti:recall] JSON index load failed: ${err instanceof Error ? err.message : String(err)}
|
|
557
|
+
`);
|
|
533
558
|
this.entries = [];
|
|
534
559
|
}
|
|
535
560
|
}
|
|
@@ -538,7 +563,9 @@ var RecallEngine = class {
|
|
|
538
563
|
const dir = getIndexDir();
|
|
539
564
|
fs3.mkdirSync(dir, { recursive: true });
|
|
540
565
|
fs3.writeFileSync(getEmbeddingsPath(), JSON.stringify(this.entries, null, " "), "utf-8");
|
|
541
|
-
} catch {
|
|
566
|
+
} catch (err) {
|
|
567
|
+
process.stderr.write(`[smriti:recall] JSON index save failed: ${err instanceof Error ? err.message : String(err)}
|
|
568
|
+
`);
|
|
542
569
|
}
|
|
543
570
|
}
|
|
544
571
|
// ─── Session Indexing ────────────────────────────────────────────
|
|
@@ -659,7 +686,9 @@ var RecallEngine = class {
|
|
|
659
686
|
try {
|
|
660
687
|
const session = loadSession(meta.id, meta.project);
|
|
661
688
|
await this.indexSession(session);
|
|
662
|
-
} catch {
|
|
689
|
+
} catch (err) {
|
|
690
|
+
process.stderr.write(`[smriti:recall] reindex session ${meta.id} failed: ${err instanceof Error ? err.message : String(err)}
|
|
691
|
+
`);
|
|
663
692
|
}
|
|
664
693
|
}
|
|
665
694
|
const streamManager = new StreamManager();
|
|
@@ -703,4 +732,4 @@ export {
|
|
|
703
732
|
_resetRecallDbInit,
|
|
704
733
|
RecallEngine
|
|
705
734
|
};
|
|
706
|
-
//# sourceMappingURL=chunk-
|
|
735
|
+
//# sourceMappingURL=chunk-ARZCIITZ.js.map
|