@edihasaj/recall 0.8.10 → 0.8.11

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.
Files changed (55) hide show
  1. package/dist/{chunk-TW7QBUPE.js → chunk-33KM4YYX.js} +5 -5
  2. package/dist/{chunk-IZSEBIZH.js → chunk-55KCGAOX.js} +3 -2
  3. package/dist/{chunk-IZSEBIZH.js.map → chunk-55KCGAOX.js.map} +1 -1
  4. package/dist/{chunk-6RVG472Q.js → chunk-BUE2NYW7.js} +8 -88
  5. package/dist/chunk-BUE2NYW7.js.map +1 -0
  6. package/dist/{chunk-2WNWDLUS.js → chunk-CQZVFS3P.js} +4 -4
  7. package/dist/{chunk-246257OY.js → chunk-FKZ7IDIY.js} +3 -3
  8. package/dist/{chunk-ORJTJU52.js → chunk-FXBABQCO.js} +8 -8
  9. package/dist/{chunk-K3SFQAT4.js → chunk-GLQOAY5O.js} +2 -2
  10. package/dist/{chunk-KCSMBLOA.js → chunk-MIRCNPUN.js} +4 -4
  11. package/dist/{chunk-BB66SNQU.js → chunk-OBKXBR7R.js} +164 -7
  12. package/dist/chunk-OBKXBR7R.js.map +1 -0
  13. package/dist/{chunk-LWCBXHOI.js → chunk-R4G62MKZ.js} +2 -2
  14. package/dist/{chunk-NTUQTB4R.js → chunk-TPCWQS6Q.js} +3 -3
  15. package/dist/{chunk-QXFNOEC5.js → chunk-UKDCVU5J.js} +8 -8
  16. package/dist/{chunk-3GRPT3EJ.js → chunk-VT5VAEHY.js} +2 -2
  17. package/dist/{cleanup-KRK5B3AD.js → cleanup-JSUCG5OV.js} +8 -6
  18. package/dist/cli.js +24 -24
  19. package/dist/cli.js.map +1 -1
  20. package/dist/daemon.js +16 -16
  21. package/dist/daemon.js.map +1 -1
  22. package/dist/{dispatcher-JQIVQUIM.js → dispatcher-SUJCOGWL.js} +6 -6
  23. package/dist/{embeddings-GYY66SAT.js → embeddings-5ARZAEM5.js} +3 -3
  24. package/dist/{ingest-27GZFC7Y.js → ingest-55ISNXYX.js} +6 -6
  25. package/dist/mcp.js +10 -10
  26. package/dist/{memory-value-EO7V2QMP.js → memory-value-56GK4AC6.js} +6 -6
  27. package/dist/{quality-E272AKPW.js → quality-IXRBBLYF.js} +7 -7
  28. package/dist/retrieval-M566ZUK5.js +13 -0
  29. package/dist/{store-PRLXSOOC.js → store-QLWSC7S4.js} +3 -3
  30. package/dist/{tasks-43I6WNJS.js → tasks-XLCCB2LL.js} +6 -6
  31. package/dist/{usage-KHOLIR3S.js → usage-CAAACLUR.js} +3 -3
  32. package/package.json +1 -1
  33. package/dist/chunk-6RVG472Q.js.map +0 -1
  34. package/dist/chunk-BB66SNQU.js.map +0 -1
  35. package/dist/retrieval-MXYJRAEW.js +0 -13
  36. /package/dist/{chunk-TW7QBUPE.js.map → chunk-33KM4YYX.js.map} +0 -0
  37. /package/dist/{chunk-2WNWDLUS.js.map → chunk-CQZVFS3P.js.map} +0 -0
  38. /package/dist/{chunk-246257OY.js.map → chunk-FKZ7IDIY.js.map} +0 -0
  39. /package/dist/{chunk-ORJTJU52.js.map → chunk-FXBABQCO.js.map} +0 -0
  40. /package/dist/{chunk-K3SFQAT4.js.map → chunk-GLQOAY5O.js.map} +0 -0
  41. /package/dist/{chunk-KCSMBLOA.js.map → chunk-MIRCNPUN.js.map} +0 -0
  42. /package/dist/{chunk-LWCBXHOI.js.map → chunk-R4G62MKZ.js.map} +0 -0
  43. /package/dist/{chunk-NTUQTB4R.js.map → chunk-TPCWQS6Q.js.map} +0 -0
  44. /package/dist/{chunk-QXFNOEC5.js.map → chunk-UKDCVU5J.js.map} +0 -0
  45. /package/dist/{chunk-3GRPT3EJ.js.map → chunk-VT5VAEHY.js.map} +0 -0
  46. /package/dist/{cleanup-KRK5B3AD.js.map → cleanup-JSUCG5OV.js.map} +0 -0
  47. /package/dist/{dispatcher-JQIVQUIM.js.map → dispatcher-SUJCOGWL.js.map} +0 -0
  48. /package/dist/{embeddings-GYY66SAT.js.map → embeddings-5ARZAEM5.js.map} +0 -0
  49. /package/dist/{ingest-27GZFC7Y.js.map → ingest-55ISNXYX.js.map} +0 -0
  50. /package/dist/{memory-value-EO7V2QMP.js.map → memory-value-56GK4AC6.js.map} +0 -0
  51. /package/dist/{quality-E272AKPW.js.map → quality-IXRBBLYF.js.map} +0 -0
  52. /package/dist/{retrieval-MXYJRAEW.js.map → retrieval-M566ZUK5.js.map} +0 -0
  53. /package/dist/{store-PRLXSOOC.js.map → store-QLWSC7S4.js.map} +0 -0
  54. /package/dist/{tasks-43I6WNJS.js.map → tasks-XLCCB2LL.js.map} +0 -0
  55. /package/dist/{usage-KHOLIR3S.js.map → usage-CAAACLUR.js.map} +0 -0
@@ -4,15 +4,16 @@ import {
4
4
  recordOutcomeValueEvent,
5
5
  resolveMemoryInjectionOutcome,
6
6
  textMatchScore
7
- } from "./chunk-TW7QBUPE.js";
7
+ } from "./chunk-33KM4YYX.js";
8
8
  import {
9
9
  computeHealthScore,
10
+ evaluateScannedMemory,
10
11
  getRepoQualityProfile,
11
12
  processCorrection,
12
13
  recordAudit,
13
14
  redactSensitiveValue,
14
15
  seedScannedConfidence
15
- } from "./chunk-BB66SNQU.js";
16
+ } from "./chunk-OBKXBR7R.js";
16
17
  import {
17
18
  activityEventDedupeKey,
18
19
  confirmMemory,
@@ -27,11 +28,11 @@ import {
27
28
  recordFeedback,
28
29
  rejectMemory,
29
30
  statusFromConfidence
30
- } from "./chunk-NTUQTB4R.js";
31
+ } from "./chunk-TPCWQS6Q.js";
31
32
  import {
32
33
  asc,
33
34
  desc
34
- } from "./chunk-3GRPT3EJ.js";
35
+ } from "./chunk-VT5VAEHY.js";
35
36
  import {
36
37
  CONFIDENCE,
37
38
  RetrievalEvalCase,
@@ -47,7 +48,7 @@ import {
47
48
  queueMemoryEmbeddingSync,
48
49
  resolveProvider,
49
50
  tagActivitySource
50
- } from "./chunk-K3SFQAT4.js";
51
+ } from "./chunk-GLQOAY5O.js";
51
52
  import {
52
53
  Column,
53
54
  Columns,
@@ -109,7 +110,7 @@ import {
109
110
  policyRules,
110
111
  schema_exports,
111
112
  sql
112
- } from "./chunk-IZSEBIZH.js";
113
+ } from "./chunk-55KCGAOX.js";
113
114
 
114
115
  // src/db/client.ts
115
116
  import Database from "better-sqlite3";
@@ -3787,86 +3788,6 @@ function rowToActivityEvent(row) {
3787
3788
  import { readFileSync, existsSync as existsSync2 } from "fs";
3788
3789
  import { join as join2, basename } from "path";
3789
3790
  import { execSync } from "child_process";
3790
-
3791
- // src/scanner/signal.ts
3792
- var ACTIVE_COMMAND_PATTERNS = [
3793
- /^use\b/i,
3794
- /^(test|build|lint|dev|start|typecheck|check):\s*`.+`$/i,
3795
- /^makefile targets:/i
3796
- ];
3797
- var CANDIDATE_GOTCHA_PATTERNS = [
3798
- /^next\.js project$/i,
3799
- /^react project\b/i,
3800
- /^vue\.js project$/i,
3801
- /^svelte project$/i,
3802
- /^server framework:/i,
3803
- /^uses alembic\b/i
3804
- ];
3805
- var ACTIONABLE_RULE_PATTERN = /\b(always|never|must|don't|do not|required|prefer|avoid|use|keep|run|update|add|remove|check|only)\b/i;
3806
- function evaluateScannedMemory(input) {
3807
- const normalized = normalizeScannedText(input.text);
3808
- const lower = normalized.toLowerCase();
3809
- if (!normalized || normalized.length < 12) {
3810
- return reject(normalized, "too_short");
3811
- }
3812
- if (lower.startsWith("setup commands from readme:")) {
3813
- return reject(normalized, "readme_setup_noise");
3814
- }
3815
- if (lower === "what we do not build") {
3816
- return reject(normalized, "section_heading");
3817
- }
3818
- if (/^ci:\s*(github actions|gitlab ci)\b/i.test(normalized)) {
3819
- return reject(normalized, "generic_ci");
3820
- }
3821
- if (/^req-[a-z0-9-]+:/i.test(lower)) {
3822
- return reject(normalized, "spec_requirement");
3823
- }
3824
- if (/^[A-Z][A-Za-z0-9 /_-]{1,80}:$/.test(normalized)) {
3825
- return reject(normalized, "heading");
3826
- }
3827
- if (input.source === "config_parse" && lower.startsWith("linting/formatting: python project")) {
3828
- return reject(normalized, "generic_tooling");
3829
- }
3830
- if (input.source === "config_parse" && lower.startsWith("linting/formatting:")) {
3831
- return keep(normalized, toCandidateConfidence(input.confidence));
3832
- }
3833
- if (ACTIVE_COMMAND_PATTERNS.some((pattern) => pattern.test(normalized))) {
3834
- return keep(normalized, Math.max(input.confidence, 0.62));
3835
- }
3836
- if (input.type === "command") {
3837
- return keep(normalized, toCandidateConfidence(input.confidence));
3838
- }
3839
- if (input.type === "gotcha") {
3840
- if (CANDIDATE_GOTCHA_PATTERNS.some((pattern) => pattern.test(normalized))) {
3841
- return keep(normalized, toCandidateConfidence(input.confidence));
3842
- }
3843
- return reject(normalized, "generic_gotcha");
3844
- }
3845
- if (input.type === "rule") {
3846
- if (!ACTIONABLE_RULE_PATTERN.test(normalized)) {
3847
- return reject(normalized, "non_actionable_rule");
3848
- }
3849
- return keep(normalized, toCandidateConfidence(input.confidence));
3850
- }
3851
- return keep(normalized, toCandidateConfidence(input.confidence));
3852
- }
3853
- function normalizeScannedText(text) {
3854
- return text.replace(/\*\*/g, "").split("\n").map((line) => line.replace(/^[-*#>\s]+/, "").replace(/^\d+\.\s+/, "").trim()).filter(Boolean).join("\n").replace(/[ \t]+/g, " ").trim();
3855
- }
3856
- function toCandidateConfidence(confidence) {
3857
- return clamp(confidence, CONFIDENCE.TRANSIENT_MAX + 0.05, CONFIDENCE.ACTIVE_MIN - 0.01);
3858
- }
3859
- function keep(text, confidence) {
3860
- return { action: "keep", text, confidence: clamp(confidence) };
3861
- }
3862
- function reject(text, reason) {
3863
- return { action: "reject", text, confidence: 0, reason };
3864
- }
3865
- function clamp(n, min = 0, max = 1) {
3866
- return Math.max(min, Math.min(max, n));
3867
- }
3868
-
3869
- // src/scanner/repo.ts
3870
3791
  function scanRepo(repoPath) {
3871
3792
  const repoName = inferRepoName(repoPath);
3872
3793
  const candidates = [];
@@ -6526,7 +6447,6 @@ export {
6526
6447
  createActivityEvent,
6527
6448
  listActivityEvents,
6528
6449
  listActivitySessions,
6529
- evaluateScannedMemory,
6530
6450
  scanAndStore,
6531
6451
  ensureRepoBootstrapped,
6532
6452
  inferRepoSlugFromPath,
@@ -6580,4 +6500,4 @@ export {
6580
6500
  pruneMemories,
6581
6501
  formatPruneReport
6582
6502
  };
6583
- //# sourceMappingURL=chunk-6RVG472Q.js.map
6503
+ //# sourceMappingURL=chunk-BUE2NYW7.js.map