@triedotdev/mcp 1.0.154 → 1.0.155

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.
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-3CYMLM35.js";
4
4
  import {
5
5
  getTrieAgent
6
- } from "./chunk-LJISDV3A.js";
6
+ } from "./chunk-X64XFVAY.js";
7
7
  import {
8
8
  CodebaseIndex
9
9
  } from "./chunk-YEQXKKZQ.js";
@@ -30,7 +30,7 @@ import {
30
30
  } from "./chunk-KYKADM7P.js";
31
31
  import {
32
32
  findCrossProjectPatterns
33
- } from "./chunk-OWSGJUUR.js";
33
+ } from "./chunk-RY57G46E.js";
34
34
  import {
35
35
  ContextGraph
36
36
  } from "./chunk-JYWGYUKX.js";
@@ -50,7 +50,7 @@ import {
50
50
  import {
51
51
  TieredStorage,
52
52
  getStorage
53
- } from "./chunk-ALSCZ7WR.js";
53
+ } from "./chunk-XUGUKSKO.js";
54
54
  import {
55
55
  getAutonomyConfig,
56
56
  loadAutonomyConfig,
@@ -249,6 +249,12 @@ var StreamingManager = class {
249
249
  reportSignalExtraction(signals) {
250
250
  this.emit("signal_extracted", signals);
251
251
  }
252
+ /**
253
+ * Report ledger update (new entries added)
254
+ */
255
+ reportLedgerUpdate(entryCount, source) {
256
+ this.emit("ledger_updated", { entryCount, source });
257
+ }
252
258
  // ============================================
253
259
  // Rich Content Events (for TUI panes)
254
260
  // ============================================
@@ -454,6 +460,11 @@ function handleStreamUpdate(state, update) {
454
460
  }
455
461
  break;
456
462
  }
463
+ case "ledger_updated": {
464
+ s.memoryTree = { ...s.memoryTree, loaded: false };
465
+ s = addActivity(s, `[L] Ledger updated: ${update.data.entryCount} ${update.data.source} entries`);
466
+ break;
467
+ }
457
468
  case "memory":
458
469
  if (update.data.action === "saving") s = addActivity(s, "[~] Saving to memory...");
459
470
  else if (update.data.action === "saved") s = addActivity(s, `[+] Memory updated: ${update.data.details || "context saved"}`);
@@ -1939,7 +1950,7 @@ function AgentView() {
1939
1950
  const { getInsightStore } = await import("./insight-store-AMEP5PPF.js");
1940
1951
  const store = getInsightStore(workDir);
1941
1952
  await store.dismissInsight(insight.id);
1942
- const { getStorage: getStorage2 } = await import("./tiered-storage-3TUUR3L2.js");
1953
+ const { getStorage: getStorage2 } = await import("./tiered-storage-SQDVZM2M.js");
1943
1954
  const storage = getStorage2(workDir);
1944
1955
  await storage.dismissNudge(insight.id).catch(() => {
1945
1956
  });
@@ -9409,7 +9420,7 @@ function DashboardApp({ onReady }) {
9409
9420
  const loadPersistedNudges = useCallback7(async () => {
9410
9421
  try {
9411
9422
  const workDir = getWorkingDirectory(void 0, true);
9412
- const { getStorage: getStorage2 } = await import("./tiered-storage-3TUUR3L2.js");
9423
+ const { getStorage: getStorage2 } = await import("./tiered-storage-SQDVZM2M.js");
9413
9424
  const storage = getStorage2(workDir);
9414
9425
  await storage.initialize();
9415
9426
  const nudges = await storage.queryNudges({ resolved: false, limit: 50 });
@@ -10106,6 +10117,10 @@ ${f.content.slice(0, 1e3)}`
10106
10117
  console.error(` [!] Signal extraction failed: ${error}`);
10107
10118
  }
10108
10119
  }
10120
+ } else {
10121
+ if (files.length > 0 && !isInteractiveMode()) {
10122
+ console.debug("[Watch] Signal extraction skipped: ANTHROPIC_API_KEY not set");
10123
+ }
10109
10124
  }
10110
10125
  void this.autoScanFiles(files).catch((err) => {
10111
10126
  getOutputManager().log("warn", `Auto scan failed: ${err}`);
@@ -10518,6 +10533,9 @@ ${filesBlock}`,
10518
10533
  };
10519
10534
  await storeIssues([goalViolationIssue], basename(projectPath), projectPath);
10520
10535
  await recordGoalViolationCaught(goal, issue.file, projectPath);
10536
+ if (this.streamingManager) {
10537
+ this.streamingManager.reportLedgerUpdate(1, "goal-violation");
10538
+ }
10521
10539
  const confidenceStr = `${confidence}%`;
10522
10540
  const nudgeMsg = `Goal "${goal.description}" violated in ${issue.file}: ${issue.description} [${confidenceStr} confidence]`;
10523
10541
  console.debug("[AI Watcher] Sending nudge:", {
@@ -10819,6 +10837,9 @@ ${filesBlock}`,
10819
10837
  }
10820
10838
  if (issuesToStore.length > 0) {
10821
10839
  await storeIssues(issuesToStore, basename(projectPath), projectPath);
10840
+ if (this.streamingManager) {
10841
+ this.streamingManager.reportLedgerUpdate(issuesToStore.length, "goal-violation");
10842
+ }
10822
10843
  }
10823
10844
  if (!isInteractiveMode()) {
10824
10845
  if (violationsFound > 0) {
@@ -10957,7 +10978,7 @@ Use \`trie_watch start\` to begin autonomous scanning.`
10957
10978
  ).join("\n");
10958
10979
  let agencyStatus = "";
10959
10980
  try {
10960
- const { getTrieAgent: getTrieAgent2 } = await import("./trie-agent-QHPS4C5Z.js");
10981
+ const { getTrieAgent: getTrieAgent2 } = await import("./trie-agent-TLOJ2UFS.js");
10961
10982
  const trieAgent = getTrieAgent2(this.watchedDirectory || getWorkingDirectory(void 0, true));
10962
10983
  await trieAgent.initialize();
10963
10984
  const status = await trieAgent.getAgencyStatus();
@@ -11094,4 +11115,4 @@ export {
11094
11115
  InteractiveDashboard,
11095
11116
  TrieWatchTool
11096
11117
  };
11097
- //# sourceMappingURL=chunk-QAM5X5HM.js.map
11118
+ //# sourceMappingURL=chunk-BUA5PQJY.js.map