@triedotdev/mcp 1.0.155 → 1.0.156

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 (112) hide show
  1. package/dist/{autonomy-config-RKLZW4XL.js → autonomy-config-FSERX3O3.js} +4 -4
  2. package/dist/{chat-store-O3IJ5PMN.js → chat-store-JNGNTDSN.js} +4 -4
  3. package/dist/{chunk-L4FODDDB.js → chunk-5BYSJ7XT.js} +2 -2
  4. package/dist/{chunk-LFNH3CSN.js → chunk-5TRCQAOE.js} +4 -4
  5. package/dist/{chunk-CBAMZERA.js → chunk-ACU2RJUJ.js} +2 -2
  6. package/dist/{chunk-X64XFVAY.js → chunk-CYKJIQNG.js} +13 -13
  7. package/dist/{chunk-EMJ7RVWB.js → chunk-EJKVKVWM.js} +18 -18
  8. package/dist/chunk-EJKVKVWM.js.map +1 -0
  9. package/dist/{chunk-XUGUKSKO.js → chunk-FNZPMR62.js} +6 -3
  10. package/dist/chunk-FNZPMR62.js.map +1 -0
  11. package/dist/{chunk-UL337UDQ.js → chunk-FQ45QP5A.js} +2 -2
  12. package/dist/{chunk-FTOF3FHT.js → chunk-GDWA3CH3.js} +3 -3
  13. package/dist/{chunk-4ZAFQEP6.js → chunk-IRZXBQVQ.js} +4 -4
  14. package/dist/{chunk-3CYMLM35.js → chunk-JVMBCWKS.js} +2 -2
  15. package/dist/{chunk-JKEEQAG2.js → chunk-KDHN2ZQE.js} +2 -2
  16. package/dist/chunk-KDHN2ZQE.js.map +1 -0
  17. package/dist/{chunk-BUA5PQJY.js → chunk-LGDZXKC5.js} +86 -53
  18. package/dist/{chunk-BUA5PQJY.js.map → chunk-LGDZXKC5.js.map} +1 -1
  19. package/dist/{chunk-NVZZUUEU.js → chunk-LR46VMIE.js} +5 -5
  20. package/dist/{chunk-XD2HKZVB.js → chunk-ME2OERF5.js} +2 -2
  21. package/dist/{chunk-FXZAABXO.js → chunk-OLNZJ3XV.js} +2 -2
  22. package/dist/{chunk-2LAJKFWU.js → chunk-OMR4YCBS.js} +2 -2
  23. package/dist/{chunk-RY57G46E.js → chunk-OMZSQAQ2.js} +6 -6
  24. package/dist/{chunk-YEQXKKZQ.js → chunk-Q5EKA5YA.js} +2 -2
  25. package/dist/{chunk-Z2E7X4WI.js → chunk-SSNOHUHY.js} +7 -7
  26. package/dist/{chunk-WO7CC5FH.js → chunk-SY6KQG44.js} +2 -2
  27. package/dist/{chunk-T7UAH7GE.js → chunk-T63OHG4Q.js} +2 -2
  28. package/dist/{chunk-KYKADM7P.js → chunk-TN5WEKWI.js} +2 -2
  29. package/dist/{chunk-KLMJKM63.js → chunk-VR4VWXXU.js} +3 -3
  30. package/dist/chunk-VR4VWXXU.js.map +1 -0
  31. package/dist/{chunk-JYWGYUKX.js → chunk-VUL52BQL.js} +6 -6
  32. package/dist/chunk-VUL52BQL.js.map +1 -0
  33. package/dist/{chunk-7F2R2ITA.js → chunk-VVITXIHN.js} +2 -2
  34. package/dist/{chunk-HD5H7YSW.js → chunk-Y4B3VEL7.js} +2 -2
  35. package/dist/{chunk-OVSYTWUU.js → chunk-ZBXW244P.js} +2 -2
  36. package/dist/cli/create-agent.js +2 -2
  37. package/dist/cli/main.js +19 -19
  38. package/dist/cli/yolo-daemon.js +24 -24
  39. package/dist/{client-ZHOLZTRW.js → client-NJPZE5JT.js} +4 -4
  40. package/dist/{codebase-index-N37NDF2A.js → codebase-index-VAPF32XX.js} +4 -4
  41. package/dist/{fast-analyzer-U6URGNQT.js → fast-analyzer-CRWPDN6C.js} +6 -6
  42. package/dist/github-ingester-TFBDUDIY.js +11 -0
  43. package/dist/{goal-manager-5QDITJKE.js → goal-manager-D6XKE3FY.js} +8 -8
  44. package/dist/{goal-validator-FU5QWDQT.js → goal-validator-4E5ZLCDH.js} +7 -7
  45. package/dist/graph-B3NA4S7I.js +10 -0
  46. package/dist/{hypothesis-JURDWVDC.js → hypothesis-RI3Q33JB.js} +8 -8
  47. package/dist/incident-index-EFNUSGWL.js +11 -0
  48. package/dist/index.js +29 -29
  49. package/dist/{insight-store-AMEP5PPF.js → insight-store-EC4PLSAW.js} +4 -4
  50. package/dist/{issue-store-RM3XLLKG.js → issue-store-DUR5UTYK.js} +5 -5
  51. package/dist/{ledger-PLE3C3X4.js → ledger-ZTR63P3L.js} +4 -4
  52. package/dist/linear-ingester-PLES2BRS.js +11 -0
  53. package/dist/{output-manager-FX4V7ERT.js → output-manager-JNMEAXFO.js} +3 -3
  54. package/dist/{progress-PAYTY7BF.js → progress-SRQ2V3BP.js} +2 -2
  55. package/dist/tiered-storage-SUYPBYJL.js +12 -0
  56. package/dist/trie-agent-GL3VQPCD.js +27 -0
  57. package/dist/{vibe-code-signatures-J4GD4JOV.js → vibe-code-signatures-F6URTBW3.js} +3 -3
  58. package/dist/{vulnerability-signatures-EIKOHFPK.js → vulnerability-signatures-T7SKHORW.js} +3 -3
  59. package/package.json +1 -1
  60. package/dist/chunk-EMJ7RVWB.js.map +0 -1
  61. package/dist/chunk-JKEEQAG2.js.map +0 -1
  62. package/dist/chunk-JYWGYUKX.js.map +0 -1
  63. package/dist/chunk-KLMJKM63.js.map +0 -1
  64. package/dist/chunk-XUGUKSKO.js.map +0 -1
  65. package/dist/github-ingester-AR5A4RAC.js +0 -11
  66. package/dist/graph-JO7GG65P.js +0 -10
  67. package/dist/incident-index-7CAXUNTL.js +0 -11
  68. package/dist/linear-ingester-NHFMKJBZ.js +0 -11
  69. package/dist/tiered-storage-SQDVZM2M.js +0 -12
  70. package/dist/trie-agent-TLOJ2UFS.js +0 -27
  71. /package/dist/{autonomy-config-RKLZW4XL.js.map → autonomy-config-FSERX3O3.js.map} +0 -0
  72. /package/dist/{chat-store-O3IJ5PMN.js.map → chat-store-JNGNTDSN.js.map} +0 -0
  73. /package/dist/{chunk-L4FODDDB.js.map → chunk-5BYSJ7XT.js.map} +0 -0
  74. /package/dist/{chunk-LFNH3CSN.js.map → chunk-5TRCQAOE.js.map} +0 -0
  75. /package/dist/{chunk-CBAMZERA.js.map → chunk-ACU2RJUJ.js.map} +0 -0
  76. /package/dist/{chunk-X64XFVAY.js.map → chunk-CYKJIQNG.js.map} +0 -0
  77. /package/dist/{chunk-UL337UDQ.js.map → chunk-FQ45QP5A.js.map} +0 -0
  78. /package/dist/{chunk-FTOF3FHT.js.map → chunk-GDWA3CH3.js.map} +0 -0
  79. /package/dist/{chunk-4ZAFQEP6.js.map → chunk-IRZXBQVQ.js.map} +0 -0
  80. /package/dist/{chunk-3CYMLM35.js.map → chunk-JVMBCWKS.js.map} +0 -0
  81. /package/dist/{chunk-NVZZUUEU.js.map → chunk-LR46VMIE.js.map} +0 -0
  82. /package/dist/{chunk-XD2HKZVB.js.map → chunk-ME2OERF5.js.map} +0 -0
  83. /package/dist/{chunk-FXZAABXO.js.map → chunk-OLNZJ3XV.js.map} +0 -0
  84. /package/dist/{chunk-2LAJKFWU.js.map → chunk-OMR4YCBS.js.map} +0 -0
  85. /package/dist/{chunk-RY57G46E.js.map → chunk-OMZSQAQ2.js.map} +0 -0
  86. /package/dist/{chunk-YEQXKKZQ.js.map → chunk-Q5EKA5YA.js.map} +0 -0
  87. /package/dist/{chunk-Z2E7X4WI.js.map → chunk-SSNOHUHY.js.map} +0 -0
  88. /package/dist/{chunk-WO7CC5FH.js.map → chunk-SY6KQG44.js.map} +0 -0
  89. /package/dist/{chunk-T7UAH7GE.js.map → chunk-T63OHG4Q.js.map} +0 -0
  90. /package/dist/{chunk-KYKADM7P.js.map → chunk-TN5WEKWI.js.map} +0 -0
  91. /package/dist/{chunk-7F2R2ITA.js.map → chunk-VVITXIHN.js.map} +0 -0
  92. /package/dist/{chunk-HD5H7YSW.js.map → chunk-Y4B3VEL7.js.map} +0 -0
  93. /package/dist/{chunk-OVSYTWUU.js.map → chunk-ZBXW244P.js.map} +0 -0
  94. /package/dist/{client-ZHOLZTRW.js.map → client-NJPZE5JT.js.map} +0 -0
  95. /package/dist/{codebase-index-N37NDF2A.js.map → codebase-index-VAPF32XX.js.map} +0 -0
  96. /package/dist/{fast-analyzer-U6URGNQT.js.map → fast-analyzer-CRWPDN6C.js.map} +0 -0
  97. /package/dist/{github-ingester-AR5A4RAC.js.map → github-ingester-TFBDUDIY.js.map} +0 -0
  98. /package/dist/{goal-manager-5QDITJKE.js.map → goal-manager-D6XKE3FY.js.map} +0 -0
  99. /package/dist/{goal-validator-FU5QWDQT.js.map → goal-validator-4E5ZLCDH.js.map} +0 -0
  100. /package/dist/{graph-JO7GG65P.js.map → graph-B3NA4S7I.js.map} +0 -0
  101. /package/dist/{hypothesis-JURDWVDC.js.map → hypothesis-RI3Q33JB.js.map} +0 -0
  102. /package/dist/{incident-index-7CAXUNTL.js.map → incident-index-EFNUSGWL.js.map} +0 -0
  103. /package/dist/{insight-store-AMEP5PPF.js.map → insight-store-EC4PLSAW.js.map} +0 -0
  104. /package/dist/{issue-store-RM3XLLKG.js.map → issue-store-DUR5UTYK.js.map} +0 -0
  105. /package/dist/{ledger-PLE3C3X4.js.map → ledger-ZTR63P3L.js.map} +0 -0
  106. /package/dist/{linear-ingester-NHFMKJBZ.js.map → linear-ingester-PLES2BRS.js.map} +0 -0
  107. /package/dist/{output-manager-FX4V7ERT.js.map → output-manager-JNMEAXFO.js.map} +0 -0
  108. /package/dist/{progress-PAYTY7BF.js.map → progress-SRQ2V3BP.js.map} +0 -0
  109. /package/dist/{tiered-storage-SQDVZM2M.js.map → tiered-storage-SUYPBYJL.js.map} +0 -0
  110. /package/dist/{trie-agent-TLOJ2UFS.js.map → trie-agent-GL3VQPCD.js.map} +0 -0
  111. /package/dist/{vibe-code-signatures-J4GD4JOV.js.map → vibe-code-signatures-F6URTBW3.js.map} +0 -0
  112. /package/dist/{vulnerability-signatures-EIKOHFPK.js.map → vulnerability-signatures-T7SKHORW.js.map} +0 -0
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  getChatStore
3
- } from "./chunk-3CYMLM35.js";
3
+ } from "./chunk-JVMBCWKS.js";
4
4
  import {
5
5
  getTrieAgent
6
- } from "./chunk-X64XFVAY.js";
6
+ } from "./chunk-CYKJIQNG.js";
7
7
  import {
8
8
  CodebaseIndex
9
- } from "./chunk-YEQXKKZQ.js";
9
+ } from "./chunk-Q5EKA5YA.js";
10
10
  import {
11
11
  getOutputManager
12
- } from "./chunk-KLMJKM63.js";
12
+ } from "./chunk-VR4VWXXU.js";
13
13
  import {
14
14
  LearningEngine,
15
15
  exportToJson,
@@ -20,57 +20,57 @@ import {
20
20
  perceiveCurrentChanges,
21
21
  reasonAboutChangesHumanReadable,
22
22
  saveCheckpoint
23
- } from "./chunk-EMJ7RVWB.js";
23
+ } from "./chunk-EJKVKVWM.js";
24
24
  import {
25
25
  loadConfig,
26
26
  saveConfig
27
- } from "./chunk-FTOF3FHT.js";
27
+ } from "./chunk-GDWA3CH3.js";
28
28
  import {
29
29
  IncidentIndex
30
- } from "./chunk-KYKADM7P.js";
30
+ } from "./chunk-TN5WEKWI.js";
31
31
  import {
32
32
  findCrossProjectPatterns
33
- } from "./chunk-RY57G46E.js";
33
+ } from "./chunk-OMZSQAQ2.js";
34
34
  import {
35
35
  ContextGraph
36
- } from "./chunk-JYWGYUKX.js";
36
+ } from "./chunk-VUL52BQL.js";
37
37
  import {
38
38
  measureInitialGoalValue
39
- } from "./chunk-Z2E7X4WI.js";
39
+ } from "./chunk-SSNOHUHY.js";
40
40
  import {
41
41
  getKeyFromKeychain,
42
42
  isAIAvailable,
43
43
  runAIAnalysis,
44
44
  runAIWithTools,
45
45
  setAPIKey
46
- } from "./chunk-UL337UDQ.js";
46
+ } from "./chunk-FQ45QP5A.js";
47
47
  import {
48
48
  getProjectState
49
- } from "./chunk-L4FODDDB.js";
49
+ } from "./chunk-5BYSJ7XT.js";
50
50
  import {
51
51
  TieredStorage,
52
52
  getStorage
53
- } from "./chunk-XUGUKSKO.js";
53
+ } from "./chunk-FNZPMR62.js";
54
54
  import {
55
55
  getAutonomyConfig,
56
56
  loadAutonomyConfig,
57
57
  saveAutonomyConfig
58
- } from "./chunk-XD2HKZVB.js";
58
+ } from "./chunk-ME2OERF5.js";
59
59
  import {
60
60
  storeIssues
61
- } from "./chunk-4ZAFQEP6.js";
61
+ } from "./chunk-IRZXBQVQ.js";
62
62
  import {
63
63
  getChangedFilesSinceTimestamp,
64
64
  getGitChangedFiles,
65
65
  getLedgerBlocks
66
- } from "./chunk-HD5H7YSW.js";
66
+ } from "./chunk-Y4B3VEL7.js";
67
67
  import {
68
68
  getTrieDirectory,
69
69
  getWorkingDirectory
70
- } from "./chunk-7F2R2ITA.js";
70
+ } from "./chunk-VVITXIHN.js";
71
71
  import {
72
72
  isInteractiveMode
73
- } from "./chunk-JKEEQAG2.js";
73
+ } from "./chunk-KDHN2ZQE.js";
74
74
 
75
75
  // src/utils/streaming.ts
76
76
  var shouldSuppressConsole = () => isInteractiveMode();
@@ -1216,7 +1216,7 @@ function ConfigDialog({ onClose }) {
1216
1216
  const loadStats = async () => {
1217
1217
  try {
1218
1218
  const workDir = getWorkingDirectory(void 0, true);
1219
- const { CodebaseIndex: CodebaseIndex2 } = await import("./codebase-index-N37NDF2A.js");
1219
+ const { CodebaseIndex: CodebaseIndex2 } = await import("./codebase-index-VAPF32XX.js");
1220
1220
  const index = new CodebaseIndex2(workDir);
1221
1221
  const stats = index.getStats();
1222
1222
  let lastUpdatedDisplay = "Never";
@@ -1409,7 +1409,7 @@ function ConfigDialog({ onClose }) {
1409
1409
  const loadStats = async () => {
1410
1410
  try {
1411
1411
  const workDir = getWorkingDirectory(void 0, true);
1412
- const { CodebaseIndex: CodebaseIndex2 } = await import("./codebase-index-N37NDF2A.js");
1412
+ const { CodebaseIndex: CodebaseIndex2 } = await import("./codebase-index-VAPF32XX.js");
1413
1413
  const index = new CodebaseIndex2(workDir);
1414
1414
  const stats = index.getStats();
1415
1415
  setIndexStats({
@@ -1484,7 +1484,7 @@ function ConfigDialog({ onClose }) {
1484
1484
  }
1485
1485
  async function reindexCodebase() {
1486
1486
  const workDir = getWorkingDirectory(void 0, true);
1487
- const { CodebaseIndex: CodebaseIndex2 } = await import("./codebase-index-N37NDF2A.js");
1487
+ const { CodebaseIndex: CodebaseIndex2 } = await import("./codebase-index-VAPF32XX.js");
1488
1488
  const { glob } = await import("glob");
1489
1489
  const index = new CodebaseIndex2(workDir);
1490
1490
  const indexPattern = `${workDir}/**/*.{ts,tsx,js,jsx,mjs,vue,svelte,astro,py,go,rs,java,c,cpp,h,hpp,cs,rb,php,css,scss,html}`;
@@ -1947,10 +1947,10 @@ function AgentView() {
1947
1947
  if (!insight) return;
1948
1948
  try {
1949
1949
  const workDir = getWorkingDirectory(void 0, true);
1950
- const { getInsightStore } = await import("./insight-store-AMEP5PPF.js");
1950
+ const { getInsightStore } = await import("./insight-store-EC4PLSAW.js");
1951
1951
  const store = getInsightStore(workDir);
1952
1952
  await store.dismissInsight(insight.id);
1953
- const { getStorage: getStorage2 } = await import("./tiered-storage-SQDVZM2M.js");
1953
+ const { getStorage: getStorage2 } = await import("./tiered-storage-SUYPBYJL.js");
1954
1954
  const storage = getStorage2(workDir);
1955
1955
  await storage.dismissNudge(insight.id).catch(() => {
1956
1956
  });
@@ -2309,7 +2309,7 @@ function GoalsView() {
2309
2309
  dispatch({ type: "SET_GOAL_SCANNING", goalId, progress: "Starting scan..." });
2310
2310
  dispatch({ type: "ADD_ACTIVITY", message: `Scanning goal: ${goalSummary.description}...` });
2311
2311
  dispatch({ type: "SET_GOAL_SCANNING", goalId, progress: "Loading goal configuration..." });
2312
- const { checkFilesForGoalViolations } = await import("./goal-validator-FU5QWDQT.js");
2312
+ const { checkFilesForGoalViolations } = await import("./goal-validator-4E5ZLCDH.js");
2313
2313
  const agentState = getProjectState(workDir);
2314
2314
  await agentState.load();
2315
2315
  const fullGoal = agentState.getAllGoals().find((g) => g.id === goalId);
@@ -2584,7 +2584,7 @@ function HypothesesView() {
2584
2584
  dispatch({ type: "SET_HYPOTHESIS_SCANNING", hypothesisId: hypoId, progress: "Gathering evidence..." });
2585
2585
  dispatch({ type: "ADD_ACTIVITY", message: `Testing hypothesis: ${hypo.statement}` });
2586
2586
  dispatch({ type: "SHOW_NOTIFICATION", message: `Gathering evidence for hypothesis...`, severity: "info", autoHideMs: 3e3 });
2587
- const { gatherEvidenceForHypothesis } = await import("./hypothesis-JURDWVDC.js");
2587
+ const { gatherEvidenceForHypothesis } = await import("./hypothesis-RI3Q33JB.js");
2588
2588
  const evidence = await gatherEvidenceForHypothesis(hypoId, workDir, signal);
2589
2589
  scanAbortRef.current = null;
2590
2590
  dispatch({ type: "SET_HYPOTHESIS_SCANNING", hypothesisId: null, progress: "" });
@@ -6260,7 +6260,7 @@ function getPendingFixes() {
6260
6260
  }
6261
6261
  async function loadPendingFixesFromMemory() {
6262
6262
  try {
6263
- const { getRecentIssues } = await import("./issue-store-RM3XLLKG.js");
6263
+ const { getRecentIssues } = await import("./issue-store-DUR5UTYK.js");
6264
6264
  pendingFixes.clear();
6265
6265
  const recentIssues = await getRecentIssues({ limit: 50, includeResolved: false });
6266
6266
  for (const storedIssue of recentIssues) {
@@ -6563,7 +6563,7 @@ var TrieCloudFixTool = class {
6563
6563
  if (pending.length === 0) {
6564
6564
  try {
6565
6565
  console.log("Loading issues from memory...");
6566
- const { getRecentIssues } = await import("./issue-store-RM3XLLKG.js");
6566
+ const { getRecentIssues } = await import("./issue-store-DUR5UTYK.js");
6567
6567
  const recentIssues = await getRecentIssues({ limit: 50, includeResolved: false });
6568
6568
  console.log(`Found ${recentIssues.length} recent issues in memory`);
6569
6569
  const memoryIssues = recentIssues.map((storedIssue) => ({
@@ -7003,7 +7003,7 @@ var TrieQueryContextTool = class {
7003
7003
  }
7004
7004
  if (includeIncidents) {
7005
7005
  try {
7006
- const { ContextGraph: ContextGraph2 } = await import("./graph-JO7GG65P.js");
7006
+ const { ContextGraph: ContextGraph2 } = await import("./graph-B3NA4S7I.js");
7007
7007
  const graph = new ContextGraph2(workDir);
7008
7008
  const allNodes = await graph.listNodes();
7009
7009
  const incidentNodes = allNodes.filter((n) => n.type === "incident");
@@ -8268,7 +8268,7 @@ ${truncated}`;
8268
8268
  const goalId = input.goalId ? String(input.goalId).trim() : void 0;
8269
8269
  try {
8270
8270
  onProgress?.("Loading goals...");
8271
- const { getActiveGoals } = await import("./goal-validator-FU5QWDQT.js");
8271
+ const { getActiveGoals } = await import("./goal-validator-4E5ZLCDH.js");
8272
8272
  const agentState = getProjectState(directory);
8273
8273
  await agentState.load();
8274
8274
  const allGoals = await getActiveGoals(directory);
@@ -8277,7 +8277,7 @@ ${truncated}`;
8277
8277
  return goalId ? `No active goal found with ID: ${goalId}` : "No active goals to check. Add goals in the Goals view first.";
8278
8278
  }
8279
8279
  onProgress?.("Scanning codebase for violations...");
8280
- const { analyzeFilesRapidly } = await import("./fast-analyzer-U6URGNQT.js");
8280
+ const { analyzeFilesRapidly } = await import("./fast-analyzer-CRWPDN6C.js");
8281
8281
  const analysisOptions = {
8282
8282
  maxFiles: 50,
8283
8283
  enableSmartBatching: true
@@ -8291,7 +8291,7 @@ ${truncated}`;
8291
8291
  const cacheInfo2 = analysisResult.cacheHitRatio > 0 ? ` (${Math.round(analysisResult.cacheHitRatio * 100)}% cache hit, ${analysisResult.timeMs}ms)` : ` (${analysisResult.timeMs}ms)`;
8292
8292
  return `\u2713 Scan complete! No violations found for ${goalsToCheck.length} goal(s).${cacheInfo2}`;
8293
8293
  }
8294
- const { storeIssues: storeIssues2 } = await import("./issue-store-RM3XLLKG.js");
8294
+ const { storeIssues: storeIssues2 } = await import("./issue-store-DUR5UTYK.js");
8295
8295
  const { basename: basename2 } = await import("path");
8296
8296
  const issuesToStore = violations.map((v, i) => ({
8297
8297
  id: `goal-violation-${Date.now()}-${i}`,
@@ -8370,7 +8370,7 @@ ${truncated}`;
8370
8370
  }
8371
8371
  try {
8372
8372
  onProgress?.("Gathering evidence for hypothesis...");
8373
- const { gatherEvidenceForHypothesis } = await import("./hypothesis-JURDWVDC.js");
8373
+ const { gatherEvidenceForHypothesis } = await import("./hypothesis-RI3Q33JB.js");
8374
8374
  const evidence = await gatherEvidenceForHypothesis(hypothesisId, directory);
8375
8375
  if (evidence.length === 0) {
8376
8376
  return `No evidence found for this hypothesis yet. The codebase may not have enough data to validate it \u2014 try running trie_scan_for_goal_violations first to populate issues, or add more context.`;
@@ -8634,7 +8634,7 @@ function ChatView() {
8634
8634
  const saveChat = async () => {
8635
8635
  try {
8636
8636
  const workDir = getWorkingDirectory(void 0, true);
8637
- const { getChatStore: getChatStore2 } = await import("./chat-store-O3IJ5PMN.js");
8637
+ const { getChatStore: getChatStore2 } = await import("./chat-store-JNGNTDSN.js");
8638
8638
  const store = getChatStore2(workDir);
8639
8639
  const sessionId = await store.saveSession(
8640
8640
  messages,
@@ -9269,7 +9269,7 @@ import { jsx as jsx15, jsxs as jsxs14 } from "react/jsx-runtime";
9269
9269
  var MAIN_VIEWS = ["overview", "memory", "goals", "hypotheses", "agent", "chat"];
9270
9270
  async function applyGoalFix(fix, dispatch) {
9271
9271
  try {
9272
- const { runAIAnalysis: runAIAnalysis2, isAIAvailable: isAIAvailable2 } = await import("./client-ZHOLZTRW.js");
9272
+ const { runAIAnalysis: runAIAnalysis2, isAIAvailable: isAIAvailable2 } = await import("./client-NJPZE5JT.js");
9273
9273
  if (!isAIAvailable2()) {
9274
9274
  dispatch({ type: "DISMISS_FIX", id: fix.id });
9275
9275
  getOutputManager().nudge("AI not available for fix", "warning");
@@ -9304,7 +9304,7 @@ ${content}
9304
9304
  fixedContent = fixedContent.replace(/^```\w*\n?/, "").replace(/\n?```$/, "");
9305
9305
  }
9306
9306
  await writeFile2(fullPath, fixedContent, "utf-8");
9307
- const { recordGoalViolationFixed, getActiveGoals } = await import("./goal-validator-FU5QWDQT.js");
9307
+ const { recordGoalViolationFixed, getActiveGoals } = await import("./goal-validator-4E5ZLCDH.js");
9308
9308
  const goals = await getActiveGoals(projectPath);
9309
9309
  const matchedGoal = goals.find((g) => g.description === fix.goalDescription);
9310
9310
  if (matchedGoal) {
@@ -9342,7 +9342,7 @@ function DashboardApp({ onReady }) {
9342
9342
  const workDir = getWorkingDirectory(void 0, true);
9343
9343
  await mkdir2(getTrieDirectory(workDir), { recursive: true });
9344
9344
  await writeFile2(configPath, JSON.stringify(stateRef.current.agentConfig, null, 2), "utf-8");
9345
- const { saveAutonomyConfig: saveAutonomyConfig2, loadAutonomyConfig: loadAutonomyConfig2 } = await import("./autonomy-config-RKLZW4XL.js");
9345
+ const { saveAutonomyConfig: saveAutonomyConfig2, loadAutonomyConfig: loadAutonomyConfig2 } = await import("./autonomy-config-FSERX3O3.js");
9346
9346
  const autonomy = await loadAutonomyConfig2(workDir);
9347
9347
  autonomy.aiWatcher = stateRef.current.agentConfig.aiWatcher;
9348
9348
  await saveAutonomyConfig2(workDir, autonomy);
@@ -9420,7 +9420,7 @@ function DashboardApp({ onReady }) {
9420
9420
  const loadPersistedNudges = useCallback7(async () => {
9421
9421
  try {
9422
9422
  const workDir = getWorkingDirectory(void 0, true);
9423
- const { getStorage: getStorage2 } = await import("./tiered-storage-SQDVZM2M.js");
9423
+ const { getStorage: getStorage2 } = await import("./tiered-storage-SUYPBYJL.js");
9424
9424
  const storage = getStorage2(workDir);
9425
9425
  await storage.initialize();
9426
9426
  const nudges = await storage.queryNudges({ resolved: false, limit: 50 });
@@ -10175,8 +10175,8 @@ ${f.content.slice(0, 1e3)}`
10175
10175
  async checkAndGenerateHypotheses(projectPath) {
10176
10176
  if (!isAIAvailable()) return;
10177
10177
  try {
10178
- const { getHypothesisEngine } = await import("./hypothesis-JURDWVDC.js");
10179
- const { getOutputManager: getOutputManager2 } = await import("./output-manager-FX4V7ERT.js");
10178
+ const { getHypothesisEngine } = await import("./hypothesis-RI3Q33JB.js");
10179
+ const { getOutputManager: getOutputManager2 } = await import("./output-manager-JNMEAXFO.js");
10180
10180
  const hypothesisEngine = getHypothesisEngine(projectPath);
10181
10181
  const recentIssues = Array.from(this.state.issueCache.values()).flat();
10182
10182
  const patterns = [];
@@ -10239,16 +10239,23 @@ ${f.content.slice(0, 1e3)}`
10239
10239
  * Patterns emerge naturally from your coding workflow
10240
10240
  */
10241
10241
  async discoverPatternsFromIssues(projectPath) {
10242
- const totalIssues = Array.from(this.state.issueCache.values()).flat().length;
10243
- if (totalIssues < 5) return;
10244
10242
  try {
10245
- const { ContextGraph: ContextGraph2 } = await import("./graph-JO7GG65P.js");
10246
- const { IncidentIndex: IncidentIndex2 } = await import("./incident-index-7CAXUNTL.js");
10243
+ const { searchIssues } = await import("./issue-store-DUR5UTYK.js");
10244
+ const allIssues = await searchIssues("", {
10245
+ workDir: projectPath,
10246
+ limit: 1e3,
10247
+ includeResolved: false
10248
+ // Only active issues
10249
+ });
10250
+ if (allIssues.length < 5) return;
10251
+ const { ContextGraph: ContextGraph2 } = await import("./graph-B3NA4S7I.js");
10252
+ const { IncidentIndex: IncidentIndex2 } = await import("./incident-index-EFNUSGWL.js");
10247
10253
  const { TriePatternDiscovery } = await import("./pattern-discovery-F7LU5K6E.js");
10248
10254
  const graph = new ContextGraph2(projectPath);
10249
10255
  const incidentIndex = await IncidentIndex2.build(graph, projectPath);
10250
10256
  const discovery = new TriePatternDiscovery(graph, incidentIndex);
10251
10257
  const hotPatterns = discovery.discoverHotPatterns(2);
10258
+ let patternsAdded = 0;
10252
10259
  for (const hot of hotPatterns) {
10253
10260
  const existingPatterns = await graph.listNodes();
10254
10261
  const alreadyExists = existingPatterns.some(
@@ -10266,6 +10273,7 @@ ${f.content.slice(0, 1e3)}`
10266
10273
  // 3+ incidents = anti-pattern
10267
10274
  source: "local"
10268
10275
  });
10276
+ patternsAdded++;
10269
10277
  if (!isInteractiveMode()) {
10270
10278
  console.error(` [+] Pattern discovered: ${hot.path} (${hot.incidentCount} issues)`);
10271
10279
  }
@@ -10280,7 +10288,7 @@ ${f.content.slice(0, 1e3)}`
10280
10288
  }
10281
10289
  }
10282
10290
  }
10283
- if (totalIssues >= 10) {
10291
+ if (allIssues.length >= 10) {
10284
10292
  const coOccurrences = await discovery.discoverCoOccurrences(2);
10285
10293
  for (const coOcc of coOccurrences.slice(0, 3)) {
10286
10294
  const desc = `Files break together: ${coOcc.files[0]} + ${coOcc.files[1]}`;
@@ -10299,12 +10307,20 @@ ${f.content.slice(0, 1e3)}`
10299
10307
  isAntiPattern: coOcc.confidence > 0.7,
10300
10308
  source: "local"
10301
10309
  });
10310
+ patternsAdded++;
10302
10311
  if (!isInteractiveMode()) {
10303
10312
  console.error(` [+] Co-occurrence pattern: ${coOcc.files[0]} + ${coOcc.files[1]}`);
10304
10313
  }
10305
10314
  }
10306
10315
  }
10307
10316
  }
10317
+ if (patternsAdded > 0) {
10318
+ const { exportToJson: exportToJson2 } = await import("./graph-B3NA4S7I.js");
10319
+ await exportToJson2(graph);
10320
+ if (!isInteractiveMode()) {
10321
+ console.error(` [\u2713] Discovered ${patternsAdded} pattern(s) from ${allIssues.length} issues`);
10322
+ }
10323
+ }
10308
10324
  } catch (error) {
10309
10325
  if (!isInteractiveMode()) {
10310
10326
  console.error(` [!] Pattern discovery failed: ${error}`);
@@ -10385,7 +10401,7 @@ ${f.content.slice(0, 1e3)}`
10385
10401
  if (remaining < 500) return;
10386
10402
  try {
10387
10403
  const graph = new ContextGraph(projectPath);
10388
- const { getActiveGoals, recordGoalViolationCaught } = await import("./goal-validator-FU5QWDQT.js");
10404
+ const { getActiveGoals, recordGoalViolationCaught } = await import("./goal-validator-4E5ZLCDH.js");
10389
10405
  console.debug("[AI Watcher] Loading active goals...");
10390
10406
  const activeGoals = await getActiveGoals(projectPath);
10391
10407
  const hasGoals = activeGoals.length > 0;
@@ -10640,7 +10656,7 @@ ${filesBlock}`,
10640
10656
  const projectPath = this.watchedDirectory || getWorkingDirectory(void 0, true);
10641
10657
  console.debug("[Initial Hypothesis] Starting initial hypothesis generation", { projectPath });
10642
10658
  try {
10643
- const { getHypothesisEngine } = await import("./hypothesis-JURDWVDC.js");
10659
+ const { getHypothesisEngine } = await import("./hypothesis-RI3Q33JB.js");
10644
10660
  const hypothesisEngine = getHypothesisEngine(projectPath);
10645
10661
  console.debug("[Initial Hypothesis] Running AI-powered hypothesis generation...");
10646
10662
  const generated = await hypothesisEngine.generateHypothesesWithAI({
@@ -10654,7 +10670,7 @@ ${filesBlock}`,
10654
10670
  hypotheses: generated.map((h) => ({ statement: h.statement, confidence: h.confidence }))
10655
10671
  });
10656
10672
  if (generated.length > 0) {
10657
- const { getOutputManager: getOutputManager2 } = await import("./output-manager-FX4V7ERT.js");
10673
+ const { getOutputManager: getOutputManager2 } = await import("./output-manager-JNMEAXFO.js");
10658
10674
  const outputManager = getOutputManager2();
10659
10675
  for (const hypothesis of generated.slice(0, 2)) {
10660
10676
  const message = `[Initial Hypothesis] "${hypothesis.statement}" (${Math.round(hypothesis.confidence * 100)}% confidence)`;
@@ -10698,7 +10714,7 @@ ${filesBlock}`,
10698
10714
  const projectPath = this.watchedDirectory || getWorkingDirectory(void 0, true);
10699
10715
  console.debug("[Initial Scan] Starting initial goal compliance scan", { projectPath });
10700
10716
  try {
10701
- const { getActiveGoals, recordGoalViolationCaught } = await import("./goal-validator-FU5QWDQT.js");
10717
+ const { getActiveGoals, recordGoalViolationCaught } = await import("./goal-validator-4E5ZLCDH.js");
10702
10718
  const activeGoals = await getActiveGoals(projectPath);
10703
10719
  console.debug("[Initial Scan] Loaded goals for initial scan:", {
10704
10720
  goalCount: activeGoals.length,
@@ -10841,6 +10857,23 @@ ${filesBlock}`,
10841
10857
  this.streamingManager.reportLedgerUpdate(issuesToStore.length, "goal-violation");
10842
10858
  }
10843
10859
  }
10860
+ const { resolveGoalViolation } = await import("./issue-store-DUR5UTYK.js");
10861
+ const { recordGoalViolationFixed } = await import("./goal-validator-4E5ZLCDH.js");
10862
+ const scannedFiles = new Set(issues.map((i) => i.file));
10863
+ const filesWithViolations = new Set(issuesToStore.map((i) => i.file));
10864
+ for (const scannedFile of scannedFiles) {
10865
+ if (!filesWithViolations.has(scannedFile)) {
10866
+ for (const goal of activeGoals) {
10867
+ const resolvedCount = await resolveGoalViolation(scannedFile, goal.description, projectPath);
10868
+ if (resolvedCount > 0) {
10869
+ await recordGoalViolationFixed(goal, scannedFile, projectPath);
10870
+ if (!isInteractiveMode()) {
10871
+ console.error(` [\u2713] Auto-resolved ${resolvedCount} violation(s) in ${scannedFile}`);
10872
+ }
10873
+ }
10874
+ }
10875
+ }
10876
+ }
10844
10877
  if (!isInteractiveMode()) {
10845
10878
  if (violationsFound > 0) {
10846
10879
  console.error(` [!] Found ${violationsFound} goal violation(s) in recent files`);
@@ -10864,7 +10897,7 @@ ${filesBlock}`,
10864
10897
  const graph = new ContextGraph(projectPath);
10865
10898
  if (hasLinear) {
10866
10899
  try {
10867
- const { LinearIngester } = await import("./linear-ingester-NHFMKJBZ.js");
10900
+ const { LinearIngester } = await import("./linear-ingester-PLES2BRS.js");
10868
10901
  const ingester = new LinearIngester(projectPath, graph);
10869
10902
  await ingester.syncTickets();
10870
10903
  if (!isInteractiveMode()) {
@@ -10878,7 +10911,7 @@ ${filesBlock}`,
10878
10911
  }
10879
10912
  if (hasGithub) {
10880
10913
  try {
10881
- const { GitHubIngester } = await import("./github-ingester-AR5A4RAC.js");
10914
+ const { GitHubIngester } = await import("./github-ingester-TFBDUDIY.js");
10882
10915
  const ingester = new GitHubIngester(graph);
10883
10916
  const token = await ingester.getApiToken();
10884
10917
  const repoInfo = ingester.getRepoInfo(projectPath);
@@ -10907,7 +10940,7 @@ ${filesBlock}`,
10907
10940
  }]
10908
10941
  };
10909
10942
  }
10910
- for (const watcher of this.watchers.values()) {
10943
+ for (const watcher of Array.from(this.watchers.values())) {
10911
10944
  watcher.close();
10912
10945
  }
10913
10946
  this.watchers.clear();
@@ -10978,7 +11011,7 @@ Use \`trie_watch start\` to begin autonomous scanning.`
10978
11011
  ).join("\n");
10979
11012
  let agencyStatus = "";
10980
11013
  try {
10981
- const { getTrieAgent: getTrieAgent2 } = await import("./trie-agent-TLOJ2UFS.js");
11014
+ const { getTrieAgent: getTrieAgent2 } = await import("./trie-agent-GL3VQPCD.js");
10982
11015
  const trieAgent = getTrieAgent2(this.watchedDirectory || getWorkingDirectory(void 0, true));
10983
11016
  await trieAgent.initialize();
10984
11017
  const status = await trieAgent.getAgencyStatus();
@@ -11115,4 +11148,4 @@ export {
11115
11148
  InteractiveDashboard,
11116
11149
  TrieWatchTool
11117
11150
  };
11118
- //# sourceMappingURL=chunk-BUA5PQJY.js.map
11151
+ //# sourceMappingURL=chunk-LGDZXKC5.js.map