@triedotdev/mcp 1.0.137 → 1.0.139

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 (110) hide show
  1. package/README.md +188 -43
  2. package/dist/{autonomy-config-QA6ATWLJ.js → autonomy-config-ZCOSTMPD.js} +3 -3
  3. package/dist/{chat-store-HFOOWZYN.js → chat-store-OJLJCJFI.js} +3 -3
  4. package/dist/{chunk-DFPVUMVE.js → chunk-23RJT5WT.js} +5 -4
  5. package/dist/chunk-23RJT5WT.js.map +1 -0
  6. package/dist/{chunk-QNKBXOIQ.js → chunk-3MUCUZ46.js} +3 -5
  7. package/dist/chunk-3MUCUZ46.js.map +1 -0
  8. package/dist/{chunk-WHIQAGB7.js → chunk-4C67GV3O.js} +2 -2
  9. package/dist/{chunk-AXYNWBME.js → chunk-4O2KRHK4.js} +1907 -414
  10. package/dist/chunk-4O2KRHK4.js.map +1 -0
  11. package/dist/{chunk-ZEXMMTIQ.js → chunk-5KJ4UJOY.js} +10 -5
  12. package/dist/chunk-5KJ4UJOY.js.map +1 -0
  13. package/dist/chunk-62POBLFC.js +1925 -0
  14. package/dist/chunk-62POBLFC.js.map +1 -0
  15. package/dist/{chunk-HUR67JXG.js → chunk-75ADWWUF.js} +38 -19
  16. package/dist/chunk-75ADWWUF.js.map +1 -0
  17. package/dist/{chunk-4JQ6W7LW.js → chunk-7OJ6JIPL.js} +40 -608
  18. package/dist/chunk-7OJ6JIPL.js.map +1 -0
  19. package/dist/{chunk-6VIMBFUZ.js → chunk-AF2APASP.js} +58 -20
  20. package/dist/chunk-AF2APASP.js.map +1 -0
  21. package/dist/{chunk-Z4DN527J.js → chunk-FG467PDD.js} +156 -39
  22. package/dist/chunk-FG467PDD.js.map +1 -0
  23. package/dist/{chunk-55CBWOEZ.js → chunk-FH335WL5.js} +10 -2
  24. package/dist/chunk-FH335WL5.js.map +1 -0
  25. package/dist/{chunk-O6OTJI3W.js → chunk-FPEMP54L.js} +22 -16
  26. package/dist/chunk-FPEMP54L.js.map +1 -0
  27. package/dist/{chunk-K6NTRSDF.js → chunk-GXF6JOCN.js} +24 -326
  28. package/dist/chunk-GXF6JOCN.js.map +1 -0
  29. package/dist/chunk-LD7ZEFNY.js +132 -0
  30. package/dist/chunk-LD7ZEFNY.js.map +1 -0
  31. package/dist/{chunk-6EP2VTHC.js → chunk-LT6VUZG2.js} +7 -4
  32. package/dist/chunk-LT6VUZG2.js.map +1 -0
  33. package/dist/chunk-NKHO34UZ.js +467 -0
  34. package/dist/chunk-NKHO34UZ.js.map +1 -0
  35. package/dist/{chunk-QM5VIDFN.js → chunk-OQ4A3RDY.js} +46 -30
  36. package/dist/chunk-OQ4A3RDY.js.map +1 -0
  37. package/dist/{chunk-45Y5TLQZ.js → chunk-SH7H3WRU.js} +3 -6
  38. package/dist/chunk-SH7H3WRU.js.map +1 -0
  39. package/dist/{chunk-G74XEI7K.js → chunk-UOSTOLU7.js} +21 -21
  40. package/dist/chunk-UOSTOLU7.js.map +1 -0
  41. package/dist/{chunk-DPZLABUC.js → chunk-XTTZAQWJ.js} +28 -22
  42. package/dist/chunk-XTTZAQWJ.js.map +1 -0
  43. package/dist/{chunk-A6PWS6ZV.js → chunk-YEIJW6X6.js} +15 -5
  44. package/dist/chunk-YEIJW6X6.js.map +1 -0
  45. package/dist/chunk-YOJGSRZK.js +216 -0
  46. package/dist/chunk-YOJGSRZK.js.map +1 -0
  47. package/dist/cli/create-agent.js +1 -1
  48. package/dist/cli/main.js +636 -99
  49. package/dist/cli/main.js.map +1 -1
  50. package/dist/cli/yolo-daemon.js +21 -19
  51. package/dist/cli/yolo-daemon.js.map +1 -1
  52. package/dist/{client-BZHI675W.js → client-INNE2GGZ.js} +3 -3
  53. package/dist/{codebase-index-CR6Q2HEI.js → codebase-index-5SEOESWM.js} +4 -4
  54. package/dist/fast-analyzer-AYLZB5TW.js +216 -0
  55. package/dist/fast-analyzer-AYLZB5TW.js.map +1 -0
  56. package/dist/github-ingester-J2ZFYXVE.js +11 -0
  57. package/dist/{goal-manager-62IL6WGY.js → goal-manager-ZBWKWEML.js} +6 -6
  58. package/dist/{goal-validator-HPPBSDXD.js → goal-validator-HNXXUCPW.js} +5 -5
  59. package/dist/{graph-PAUZ5EMP.js → graph-J4OGTYCO.js} +3 -3
  60. package/dist/{hypothesis-W37VG6DA.js → hypothesis-JCUMZKTG.js} +6 -6
  61. package/dist/{incident-index-ZCDSJ42L.js → incident-index-BWW2UEY7.js} +3 -3
  62. package/dist/index.js +1168 -137
  63. package/dist/index.js.map +1 -1
  64. package/dist/{insight-store-U3NYTOJE.js → insight-store-A5XXMFD6.js} +3 -5
  65. package/dist/{issue-store-EZMBHOVN.js → issue-store-LZWZIGM7.js} +3 -3
  66. package/dist/linear-ingester-JRDQAIAA.js +11 -0
  67. package/dist/{tiered-storage-QW2G7GSG.js → tiered-storage-VZL7KK64.js} +3 -3
  68. package/dist/tiered-storage-VZL7KK64.js.map +1 -0
  69. package/dist/trie-agent-M6PHM6UD.js +26 -0
  70. package/dist/trie-agent-M6PHM6UD.js.map +1 -0
  71. package/dist/ui/chat.html +260 -67
  72. package/dist/ui/goals.html +246 -3
  73. package/dist/ui/hypotheses.html +248 -5
  74. package/dist/ui/ledger.html +252 -9
  75. package/dist/ui/nudges.html +244 -1
  76. package/package.json +15 -8
  77. package/dist/chunk-45Y5TLQZ.js.map +0 -1
  78. package/dist/chunk-4JQ6W7LW.js.map +0 -1
  79. package/dist/chunk-55CBWOEZ.js.map +0 -1
  80. package/dist/chunk-6EP2VTHC.js.map +0 -1
  81. package/dist/chunk-6VIMBFUZ.js.map +0 -1
  82. package/dist/chunk-A6PWS6ZV.js.map +0 -1
  83. package/dist/chunk-AXYNWBME.js.map +0 -1
  84. package/dist/chunk-DFPVUMVE.js.map +0 -1
  85. package/dist/chunk-DPZLABUC.js.map +0 -1
  86. package/dist/chunk-G74XEI7K.js.map +0 -1
  87. package/dist/chunk-HUR67JXG.js.map +0 -1
  88. package/dist/chunk-K6NTRSDF.js.map +0 -1
  89. package/dist/chunk-O6OTJI3W.js.map +0 -1
  90. package/dist/chunk-QM5VIDFN.js.map +0 -1
  91. package/dist/chunk-QNKBXOIQ.js.map +0 -1
  92. package/dist/chunk-R3WZI6QZ.js +0 -883
  93. package/dist/chunk-R3WZI6QZ.js.map +0 -1
  94. package/dist/chunk-Z4DN527J.js.map +0 -1
  95. package/dist/chunk-ZEXMMTIQ.js.map +0 -1
  96. package/dist/guardian-agent-YKG5XURG.js +0 -30
  97. /package/dist/{autonomy-config-QA6ATWLJ.js.map → autonomy-config-ZCOSTMPD.js.map} +0 -0
  98. /package/dist/{chat-store-HFOOWZYN.js.map → chat-store-OJLJCJFI.js.map} +0 -0
  99. /package/dist/{chunk-WHIQAGB7.js.map → chunk-4C67GV3O.js.map} +0 -0
  100. /package/dist/{client-BZHI675W.js.map → client-INNE2GGZ.js.map} +0 -0
  101. /package/dist/{codebase-index-CR6Q2HEI.js.map → codebase-index-5SEOESWM.js.map} +0 -0
  102. /package/dist/{goal-manager-62IL6WGY.js.map → github-ingester-J2ZFYXVE.js.map} +0 -0
  103. /package/dist/{goal-validator-HPPBSDXD.js.map → goal-manager-ZBWKWEML.js.map} +0 -0
  104. /package/dist/{graph-PAUZ5EMP.js.map → goal-validator-HNXXUCPW.js.map} +0 -0
  105. /package/dist/{guardian-agent-YKG5XURG.js.map → graph-J4OGTYCO.js.map} +0 -0
  106. /package/dist/{hypothesis-W37VG6DA.js.map → hypothesis-JCUMZKTG.js.map} +0 -0
  107. /package/dist/{incident-index-ZCDSJ42L.js.map → incident-index-BWW2UEY7.js.map} +0 -0
  108. /package/dist/{insight-store-U3NYTOJE.js.map → insight-store-A5XXMFD6.js.map} +0 -0
  109. /package/dist/{issue-store-EZMBHOVN.js.map → issue-store-LZWZIGM7.js.map} +0 -0
  110. /package/dist/{tiered-storage-QW2G7GSG.js.map → linear-ingester-JRDQAIAA.js.map} +0 -0
@@ -644,20 +644,263 @@ h4 { font-size: 14px; }
644
644
  flex: 1;
645
645
  }
646
646
 
647
+ /* Chat App Styles */
648
+ .chat-container {
649
+ display: flex;
650
+ flex-direction: column;
651
+ height: calc(100vh - 120px);
652
+ max-height: 800px;
653
+ margin-top: 16px;
654
+ }
655
+
656
+ .messages-container {
657
+ flex: 1;
658
+ overflow-y: auto;
659
+ padding: 16px;
660
+ border: 1px solid var(--trie-border);
661
+ border-radius: var(--radius) var(--radius) 0 0;
662
+ background: var(--trie-surface);
663
+ min-height: 400px;
664
+ }
665
+
666
+ .message {
667
+ margin-bottom: 16px;
668
+ padding: 12px 16px;
669
+ border-radius: var(--radius);
670
+ background: var(--trie-bg);
671
+ border: 1px solid var(--trie-border);
672
+ }
673
+
674
+ .message.user-message {
675
+ margin-left: 20%;
676
+ background: rgba(88, 166, 255, 0.1);
677
+ border-color: rgba(88, 166, 255, 0.3);
678
+ }
679
+
680
+ .message.assistant-message {
681
+ margin-right: 20%;
682
+ }
683
+
684
+ .message-header {
685
+ display: flex;
686
+ justify-content: space-between;
687
+ margin-bottom: 8px;
688
+ font-size: 12px;
689
+ color: var(--trie-text-muted);
690
+ }
691
+
692
+ .message-author {
693
+ font-weight: 600;
694
+ }
695
+
696
+ .message-content {
697
+ line-height: 1.6;
698
+ white-space: pre-wrap;
699
+ word-wrap: break-word;
700
+ }
701
+
702
+ .message-content pre {
703
+ background: var(--trie-surface);
704
+ border: 1px solid var(--trie-border);
705
+ border-radius: var(--radius);
706
+ padding: 12px;
707
+ margin: 8px 0;
708
+ overflow-x: auto;
709
+ font-family: var(--font-mono);
710
+ font-size: 12px;
711
+ }
712
+
713
+ .message-content code {
714
+ font-family: var(--font-mono);
715
+ font-size: 12px;
716
+ background: rgba(110, 118, 129, 0.2);
717
+ padding: 2px 6px;
718
+ border-radius: 4px;
719
+ }
720
+
721
+ .message-content pre code {
722
+ background: none;
723
+ padding: 0;
724
+ }
725
+
726
+ .typing-indicator {
727
+ display: flex;
728
+ gap: 4px;
729
+ align-items: center;
730
+ }
731
+
732
+ .typing-indicator span {
733
+ width: 8px;
734
+ height: 8px;
735
+ border-radius: 50%;
736
+ background: var(--trie-text-muted);
737
+ animation: typing 1.4s infinite ease-in-out;
738
+ }
739
+
740
+ .typing-indicator span:nth-child(1) { animation-delay: 0s; }
741
+ .typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
742
+ .typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
743
+
744
+ @keyframes typing {
745
+ 0%, 80%, 100% {
746
+ opacity: 0.3;
747
+ transform: scale(0.8);
748
+ }
749
+ 40% {
750
+ opacity: 1;
751
+ transform: scale(1);
752
+ }
753
+ }
754
+
755
+ .tool-calls {
756
+ margin-bottom: 12px;
757
+ padding: 12px;
758
+ background: var(--trie-surface);
759
+ border: 1px solid var(--trie-border);
760
+ border-radius: var(--radius);
761
+ font-family: var(--font-mono);
762
+ font-size: 12px;
763
+ }
764
+
765
+ .tool-call {
766
+ display: flex;
767
+ gap: 8px;
768
+ margin-bottom: 4px;
769
+ }
770
+
771
+ .tool-call:last-child {
772
+ margin-bottom: 0;
773
+ }
774
+
775
+ .tool-name {
776
+ color: var(--trie-primary);
777
+ font-weight: 600;
778
+ }
779
+
780
+ .tool-input {
781
+ color: var(--trie-text-muted);
782
+ }
783
+
784
+ .pending-fix {
785
+ margin-top: 12px;
786
+ padding: 16px;
787
+ background: rgba(210, 153, 34, 0.1);
788
+ border: 1px solid rgba(210, 153, 34, 0.3);
789
+ border-radius: var(--radius);
790
+ }
791
+
792
+ .fix-header {
793
+ margin-bottom: 12px;
794
+ color: var(--trie-warning);
795
+ }
796
+
797
+ .fix-details p {
798
+ margin-bottom: 8px;
799
+ font-size: 14px;
800
+ }
801
+
802
+ .fix-actions {
803
+ display: flex;
804
+ gap: 8px;
805
+ margin-top: 12px;
806
+ }
807
+
808
+ .chat-input-container {
809
+ background: var(--trie-surface);
810
+ border: 1px solid var(--trie-border);
811
+ border-top: none;
812
+ border-radius: 0 0 var(--radius) var(--radius);
813
+ padding: 16px;
814
+ flex-shrink: 0;
815
+ }
816
+
817
+ .input-wrapper {
818
+ display: flex;
819
+ gap: 12px;
820
+ align-items: flex-end;
821
+ }
822
+
823
+ .chat-input {
824
+ flex: 1;
825
+ min-height: 60px;
826
+ max-height: 120px;
827
+ padding: 12px;
828
+ font-size: 14px;
829
+ line-height: 1.5;
830
+ border: 1px solid var(--trie-border);
831
+ border-radius: var(--radius);
832
+ background: var(--trie-bg);
833
+ color: var(--trie-text);
834
+ resize: none;
835
+ font-family: var(--font-sans);
836
+ }
837
+
838
+ .chat-input:focus {
839
+ outline: none;
840
+ border-color: var(--trie-primary);
841
+ }
842
+
843
+ .chat-input::placeholder {
844
+ color: var(--trie-text-muted);
845
+ }
846
+
847
+ .send-button {
848
+ padding: 12px 24px;
849
+ font-size: 14px;
850
+ font-weight: 600;
851
+ border: none;
852
+ border-radius: var(--radius);
853
+ background: var(--trie-primary);
854
+ color: #fff;
855
+ cursor: pointer;
856
+ transition: all 0.15s ease;
857
+ flex-shrink: 0;
858
+ height: fit-content;
859
+ }
860
+
861
+ .send-button:hover:not(:disabled) {
862
+ background: rgba(88, 166, 255, 0.9);
863
+ }
864
+
865
+ .send-button:disabled {
866
+ opacity: 0.5;
867
+ cursor: not-allowed;
868
+ }
869
+
870
+ .input-help {
871
+ margin-top: 8px;
872
+ font-size: 12px;
873
+ color: var(--trie-text-muted);
874
+ text-align: center;
875
+ }
876
+
877
+ .app-header {
878
+ margin-bottom: 0;
879
+ }
880
+
881
+ .app-header h1 {
882
+ margin-bottom: 4px;
883
+ }
884
+
885
+ .app-header p {
886
+ color: var(--trie-text-muted);
887
+ margin-bottom: 0;
888
+ }
889
+
647
890
  </style>
648
891
  </head>
649
892
  <body>
650
893
  <div id="app" class="container"></div>
651
894
  <script type="module">
652
- var u=Object.defineProperty;var g=(t,e,i)=>e in t?u(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var o=(t,e,i)=>g(t,typeof e!="symbol"?e+"":e,i);function v(t,e,i){let n=document.createElement(t);if(e)for(let[s,a]of Object.entries(e))s==="className"?n.className=String(a):typeof a=="boolean"?a&&n.setAttribute(s,""):n.setAttribute(s,String(a));if(i)for(let s of i)typeof s=="string"?n.appendChild(document.createTextNode(s)):n.appendChild(s);return n}var r=v;function f(t){return r("div",{className:"loading"},[r("div",{className:"spinner"}),t?r("span",{className:"ml-2"},[t]):document.createTextNode("")])}function p(t,e="Loading..."){t.innerHTML="",t.appendChild(f(e))}function d(t,e){t.innerHTML="",t.appendChild(r("div",{className:"error-state"},[r("div",{className:"error-icon"},["\u26A0\uFE0F"]),r("p",{className:"error-message"},[e])]))}function m(t){document.addEventListener("DOMContentLoaded",()=>{let e=document.getElementById("app");if(!e){console.error("App container not found");return}try{new t(e)}catch(i){d(e,`Failed to initialize app: ${i}`)}})}var l=class{constructor(e){o(this,"container");o(this,"data",{decisions:[],blockers:[],facts:[],questions:[]});o(this,"activeTab","decisions");this.container=e,this.init()}async init(){await this.loadData(),this.render(),this.setupEventListeners()}async loadData(){try{p(this.container,"Loading ledger data..."),this.data={decisions:[{id:"dec-1",decision:"Switch to TypeScript for new components",context:"Increasing type safety needs",timestamp:new Date().toISOString(),outcome:"success",reasoning:"Better dev experience and fewer runtime errors"},{id:"dec-2",decision:"Implement goal-based validation system",context:"Need systematic way to track code quality",timestamp:new Date(Date.now()-864e5).toISOString(),outcome:"active"}],blockers:[{id:"block-1",blocker:"Missing test coverage for validation logic",impact:"high",description:"Core validation functions lack comprehensive tests",timestamp:new Date().toISOString()}],facts:[],questions:[]}}catch(e){d(this.container,`Failed to load ledger data: ${e}`)}}render(){let e=`
895
+ var g=Object.defineProperty;var v=(t,e,n)=>e in t?g(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var o=(t,e,n)=>v(t,typeof e!="symbol"?e+"":e,n);function u(t,e,n){let i=document.createElement(t);if(e)for(let[a,s]of Object.entries(e))a==="className"?i.className=String(s):typeof s=="boolean"?s&&i.setAttribute(a,""):i.setAttribute(a,String(s));if(n)for(let a of n)typeof a=="string"?i.appendChild(document.createTextNode(a)):i.appendChild(a);return i}var r=u;function f(t){return r("div",{className:"loading"},[r("div",{className:"spinner"}),t?r("span",{className:"ml-2"},[t]):document.createTextNode("")])}function p(t,e="Loading..."){t.innerHTML="",t.appendChild(f(e))}function d(t,e){t.innerHTML="",t.appendChild(r("div",{className:"error-state"},[r("div",{className:"error-icon"},["\u26A0\uFE0F"]),r("p",{className:"error-message"},[e])]))}function m(t){document.addEventListener("DOMContentLoaded",()=>{let e=document.getElementById("app");if(!e){console.error("App container not found");return}try{new t(e)}catch(n){d(e,`Failed to initialize app: ${n}`)}})}var l=class{constructor(e){o(this,"container");o(this,"data",{governance:[],blockers:[],facts:[],questions:[]});o(this,"activeTab","governance");this.container=e,this.init()}async init(){await this.loadData(),this.render(),this.setupEventListeners()}async loadData(){try{p(this.container,"Loading ledger data..."),this.data={governance:[{id:"dec-1",decision:"Switch to TypeScript for new components",context:"Increasing type safety needs",timestamp:new Date().toISOString(),outcome:"success",reasoning:"Better dev experience and fewer runtime errors"},{id:"dec-2",decision:"Implement goal-based validation system",context:"Need systematic way to track code quality",timestamp:new Date(Date.now()-864e5).toISOString(),outcome:"active"}],blockers:[{id:"block-1",blocker:"Missing test coverage for validation logic",impact:"high",description:"Core validation functions lack comprehensive tests",timestamp:new Date().toISOString()}],facts:[],questions:[]}}catch(e){d(this.container,`Failed to load ledger data: ${e}`)}}render(){let e=`
653
896
  <div class="app-header">
654
- <h1>Decision Ledger</h1>
655
- <p>Track decisions, blockers, facts, and questions across your project</p>
897
+ <h1>Governance Ledger</h1>
898
+ <p>Track governance, blockers, facts, and questions across your project</p>
656
899
  </div>
657
900
 
658
901
  <div class="tab-nav">
659
- <button class="tab-btn ${this.activeTab==="decisions"?"active":""}" data-tab="decisions">
660
- Decisions (${this.data.decisions.length})
902
+ <button class="tab-btn ${this.activeTab==="governance"?"active":""}" data-tab="governance">
903
+ Governance (${this.data.governance.length})
661
904
  </button>
662
905
  <button class="tab-btn ${this.activeTab==="blockers"?"active":""}" data-tab="blockers">
663
906
  Blockers (${this.data.blockers.length})
@@ -673,10 +916,10 @@ var u=Object.defineProperty;var g=(t,e,i)=>e in t?u(t,e,{enumerable:!0,configura
673
916
  <div class="tab-content">
674
917
  ${this.renderTabContent()}
675
918
  </div>
676
- `;this.container.innerHTML=e}renderTabContent(){switch(this.activeTab){case"decisions":return this.renderDecisions();case"blockers":return this.renderBlockers();case"facts":return this.renderFacts();case"questions":return this.renderQuestions();default:return""}}renderDecisions(){return this.data.decisions.length===0?'<div class="empty-state">No decisions recorded yet</div>':`
919
+ `;this.container.innerHTML=e}renderTabContent(){switch(this.activeTab){case"governance":return this.renderGovernance();case"blockers":return this.renderBlockers();case"facts":return this.renderFacts();case"questions":return this.renderQuestions();default:return""}}renderGovernance(){return this.data.governance.length===0?'<div class="empty-state">No governance recorded yet</div>':`
677
920
  <div class="items-list">
678
- ${this.data.decisions.map(e=>`
679
- <div class="item-card decision-card">
921
+ ${this.data.governance.map(e=>`
922
+ <div class="item-card governance-card">
680
923
  <div class="item-header">
681
924
  <span class="item-title">${e.decision}</span>
682
925
  <span class="item-meta">${this.formatTimeAgo(e.timestamp)}</span>
@@ -704,7 +947,7 @@ var u=Object.defineProperty;var g=(t,e,i)=>e in t?u(t,e,{enumerable:!0,configura
704
947
  </div>
705
948
  `).join("")}
706
949
  </div>
707
- `}renderFacts(){return'<div class="empty-state">No facts recorded yet</div>'}renderQuestions(){return'<div class="empty-state">No questions recorded yet</div>'}formatTimeAgo(e){let i=Date.now(),n=new Date(e).getTime(),s=i-n,a=Math.floor(s/(1e3*60));if(a<60)return`${a}m ago`;let c=Math.floor(a/60);return c<24?`${c}h ago`:`${Math.floor(c/24)}d ago`}setupEventListeners(){this.container.addEventListener("click",e=>{let i=e.target;if(i.classList.contains("tab-btn")){let n=i.getAttribute("data-tab");n&&(this.activeTab=n,this.render(),this.setupEventListeners())}})}};m(l);
950
+ `}renderFacts(){return'<div class="empty-state">No facts recorded yet</div>'}renderQuestions(){return'<div class="empty-state">No questions recorded yet</div>'}formatTimeAgo(e){let n=Date.now(),i=new Date(e).getTime(),a=n-i,s=Math.floor(a/(1e3*60));if(s<60)return`${s}m ago`;let c=Math.floor(s/60);return c<24?`${c}h ago`:`${Math.floor(c/24)}d ago`}setupEventListeners(){this.container.addEventListener("click",e=>{let n=e.target;if(n.classList.contains("tab-btn")){let i=n.getAttribute("data-tab");i&&(this.activeTab=i,this.render(),this.setupEventListeners())}})}};m(l);
708
951
 
709
952
  </script>
710
953
  </body>
@@ -644,6 +644,249 @@ h4 { font-size: 14px; }
644
644
  flex: 1;
645
645
  }
646
646
 
647
+ /* Chat App Styles */
648
+ .chat-container {
649
+ display: flex;
650
+ flex-direction: column;
651
+ height: calc(100vh - 120px);
652
+ max-height: 800px;
653
+ margin-top: 16px;
654
+ }
655
+
656
+ .messages-container {
657
+ flex: 1;
658
+ overflow-y: auto;
659
+ padding: 16px;
660
+ border: 1px solid var(--trie-border);
661
+ border-radius: var(--radius) var(--radius) 0 0;
662
+ background: var(--trie-surface);
663
+ min-height: 400px;
664
+ }
665
+
666
+ .message {
667
+ margin-bottom: 16px;
668
+ padding: 12px 16px;
669
+ border-radius: var(--radius);
670
+ background: var(--trie-bg);
671
+ border: 1px solid var(--trie-border);
672
+ }
673
+
674
+ .message.user-message {
675
+ margin-left: 20%;
676
+ background: rgba(88, 166, 255, 0.1);
677
+ border-color: rgba(88, 166, 255, 0.3);
678
+ }
679
+
680
+ .message.assistant-message {
681
+ margin-right: 20%;
682
+ }
683
+
684
+ .message-header {
685
+ display: flex;
686
+ justify-content: space-between;
687
+ margin-bottom: 8px;
688
+ font-size: 12px;
689
+ color: var(--trie-text-muted);
690
+ }
691
+
692
+ .message-author {
693
+ font-weight: 600;
694
+ }
695
+
696
+ .message-content {
697
+ line-height: 1.6;
698
+ white-space: pre-wrap;
699
+ word-wrap: break-word;
700
+ }
701
+
702
+ .message-content pre {
703
+ background: var(--trie-surface);
704
+ border: 1px solid var(--trie-border);
705
+ border-radius: var(--radius);
706
+ padding: 12px;
707
+ margin: 8px 0;
708
+ overflow-x: auto;
709
+ font-family: var(--font-mono);
710
+ font-size: 12px;
711
+ }
712
+
713
+ .message-content code {
714
+ font-family: var(--font-mono);
715
+ font-size: 12px;
716
+ background: rgba(110, 118, 129, 0.2);
717
+ padding: 2px 6px;
718
+ border-radius: 4px;
719
+ }
720
+
721
+ .message-content pre code {
722
+ background: none;
723
+ padding: 0;
724
+ }
725
+
726
+ .typing-indicator {
727
+ display: flex;
728
+ gap: 4px;
729
+ align-items: center;
730
+ }
731
+
732
+ .typing-indicator span {
733
+ width: 8px;
734
+ height: 8px;
735
+ border-radius: 50%;
736
+ background: var(--trie-text-muted);
737
+ animation: typing 1.4s infinite ease-in-out;
738
+ }
739
+
740
+ .typing-indicator span:nth-child(1) { animation-delay: 0s; }
741
+ .typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
742
+ .typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
743
+
744
+ @keyframes typing {
745
+ 0%, 80%, 100% {
746
+ opacity: 0.3;
747
+ transform: scale(0.8);
748
+ }
749
+ 40% {
750
+ opacity: 1;
751
+ transform: scale(1);
752
+ }
753
+ }
754
+
755
+ .tool-calls {
756
+ margin-bottom: 12px;
757
+ padding: 12px;
758
+ background: var(--trie-surface);
759
+ border: 1px solid var(--trie-border);
760
+ border-radius: var(--radius);
761
+ font-family: var(--font-mono);
762
+ font-size: 12px;
763
+ }
764
+
765
+ .tool-call {
766
+ display: flex;
767
+ gap: 8px;
768
+ margin-bottom: 4px;
769
+ }
770
+
771
+ .tool-call:last-child {
772
+ margin-bottom: 0;
773
+ }
774
+
775
+ .tool-name {
776
+ color: var(--trie-primary);
777
+ font-weight: 600;
778
+ }
779
+
780
+ .tool-input {
781
+ color: var(--trie-text-muted);
782
+ }
783
+
784
+ .pending-fix {
785
+ margin-top: 12px;
786
+ padding: 16px;
787
+ background: rgba(210, 153, 34, 0.1);
788
+ border: 1px solid rgba(210, 153, 34, 0.3);
789
+ border-radius: var(--radius);
790
+ }
791
+
792
+ .fix-header {
793
+ margin-bottom: 12px;
794
+ color: var(--trie-warning);
795
+ }
796
+
797
+ .fix-details p {
798
+ margin-bottom: 8px;
799
+ font-size: 14px;
800
+ }
801
+
802
+ .fix-actions {
803
+ display: flex;
804
+ gap: 8px;
805
+ margin-top: 12px;
806
+ }
807
+
808
+ .chat-input-container {
809
+ background: var(--trie-surface);
810
+ border: 1px solid var(--trie-border);
811
+ border-top: none;
812
+ border-radius: 0 0 var(--radius) var(--radius);
813
+ padding: 16px;
814
+ flex-shrink: 0;
815
+ }
816
+
817
+ .input-wrapper {
818
+ display: flex;
819
+ gap: 12px;
820
+ align-items: flex-end;
821
+ }
822
+
823
+ .chat-input {
824
+ flex: 1;
825
+ min-height: 60px;
826
+ max-height: 120px;
827
+ padding: 12px;
828
+ font-size: 14px;
829
+ line-height: 1.5;
830
+ border: 1px solid var(--trie-border);
831
+ border-radius: var(--radius);
832
+ background: var(--trie-bg);
833
+ color: var(--trie-text);
834
+ resize: none;
835
+ font-family: var(--font-sans);
836
+ }
837
+
838
+ .chat-input:focus {
839
+ outline: none;
840
+ border-color: var(--trie-primary);
841
+ }
842
+
843
+ .chat-input::placeholder {
844
+ color: var(--trie-text-muted);
845
+ }
846
+
847
+ .send-button {
848
+ padding: 12px 24px;
849
+ font-size: 14px;
850
+ font-weight: 600;
851
+ border: none;
852
+ border-radius: var(--radius);
853
+ background: var(--trie-primary);
854
+ color: #fff;
855
+ cursor: pointer;
856
+ transition: all 0.15s ease;
857
+ flex-shrink: 0;
858
+ height: fit-content;
859
+ }
860
+
861
+ .send-button:hover:not(:disabled) {
862
+ background: rgba(88, 166, 255, 0.9);
863
+ }
864
+
865
+ .send-button:disabled {
866
+ opacity: 0.5;
867
+ cursor: not-allowed;
868
+ }
869
+
870
+ .input-help {
871
+ margin-top: 8px;
872
+ font-size: 12px;
873
+ color: var(--trie-text-muted);
874
+ text-align: center;
875
+ }
876
+
877
+ .app-header {
878
+ margin-bottom: 0;
879
+ }
880
+
881
+ .app-header h1 {
882
+ margin-bottom: 4px;
883
+ }
884
+
885
+ .app-header p {
886
+ color: var(--trie-text-muted);
887
+ margin-bottom: 0;
888
+ }
889
+
647
890
  </style>
648
891
  </head>
649
892
  <body>
@@ -745,7 +988,7 @@ var u=Object.defineProperty;var f=(s,e,t)=>e in s?u(s,e,{enumerable:!0,configura
745
988
  `:""}
746
989
  </div>
747
990
  </div>
748
- `}getFilteredInsights(){return this.insights.filter(e=>!(this.filter==="active"&&e.dismissed||this.filter==="dismissed"&&!e.dismissed||this.categoryFilter!=="all"&&e.category!==this.categoryFilter)).sort((e,t)=>e.priority!==t.priority?t.priority-e.priority:t.timestamp-e.timestamp)}getTypeIcon(e){switch(e){case"warning":return"\u26A0\uFE0F";case"celebration":return"\u{1F389}";case"suggestion":return"\u{1F4A1}";default:return"\u2139\uFE0F"}}formatTimeAgo(e){let n=Date.now()-e,i=Math.floor(n/(1e3*60));if(i<60)return`${i}m ago`;let r=Math.floor(i/60);return r<24?`${r}h ago`:`${Math.floor(r/24)}d ago`}setupEventListeners(){this.container.addEventListener("change",e=>{let t=e.target;if(t.classList.contains("filter-select")){let n=t.getAttribute("data-filter"),i=t.value;n==="status"?this.filter=i:n==="category"&&(this.categoryFilter=i),this.render(),this.setupEventListeners()}}),window.dismissInsight=async e=>{let t=this.insights.find(n=>n.id===e);t&&(t.dismissed=!0,this.render(),this.setupEventListeners())},window.openFile=e=>{console.log("Opening file:",e)}}};m(d);
991
+ `}getFilteredInsights(){return this.insights.filter(e=>!(this.filter==="active"&&e.dismissed||this.filter==="dismissed"&&!e.dismissed||this.categoryFilter!=="all"&&e.category!==this.categoryFilter)).sort((e,t)=>e.priority!==t.priority?t.priority-e.priority:t.timestamp-e.timestamp)}getTypeIcon(e){switch(e){case"warning":return"[!]";case"celebration":return"[*]";case"suggestion":return"[?]";default:return"[i]"}}formatTimeAgo(e){let n=Date.now()-e,i=Math.floor(n/(1e3*60));if(i<60)return`${i}m ago`;let r=Math.floor(i/60);return r<24?`${r}h ago`:`${Math.floor(r/24)}d ago`}setupEventListeners(){this.container.addEventListener("change",e=>{let t=e.target;if(t.classList.contains("filter-select")){let n=t.getAttribute("data-filter"),i=t.value;n==="status"?this.filter=i:n==="category"&&(this.categoryFilter=i),this.render(),this.setupEventListeners()}}),window.dismissInsight=async e=>{let t=this.insights.find(n=>n.id===e);t&&(t.dismissed=!0,this.render(),this.setupEventListeners())},window.openFile=e=>{console.log("Opening file:",e)}}};m(d);
749
992
 
750
993
  </script>
751
994
  </body>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@triedotdev/mcp",
3
- "version": "1.0.137",
4
- "description": "Trainable AI Agent for Maintaining AI-Generated Codebases",
3
+ "version": "1.0.139",
4
+ "description": "Trainable AI agent with a cryptographic governance ledger and portable context for AI-generated codebases.",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
7
7
  "bin": {
@@ -25,17 +25,24 @@
25
25
  "prepublishOnly": "npm run build"
26
26
  },
27
27
  "keywords": [
28
+ "governance",
29
+ "ledger",
28
30
  "ai",
31
+ "agent",
32
+ "mcp",
33
+ "cursor",
34
+ "claude",
29
35
  "code-review",
30
36
  "security",
31
- "mcp",
32
- "agent",
33
37
  "orchestration",
38
+ "decision-memory",
39
+ "incident-tracking",
40
+ "linear",
41
+ "github",
34
42
  "trie",
35
- "pdf",
36
- "document-to-agent",
37
- "custom-agents",
38
- "knowledge-base"
43
+ "custom-agent",
44
+ "knowledge-base",
45
+ "blockchain"
39
46
  ],
40
47
  "author": "Trie Team",
41
48
  "license": "MIT",
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/utils/workspace.ts"],"sourcesContent":["/**\n * Workspace detection utilities\n * \n * MCP servers run as separate processes where process.cwd() may not be\n * the user's workspace. These utilities detect the actual project root\n * by looking for common project indicators.\n */\n\nimport { execSync } from 'node:child_process';\nimport { existsSync } from 'fs';\nimport { basename, dirname, join, resolve } from 'path';\nimport { isInteractiveMode } from './progress.js';\n\n// Project root indicators - files/directories that indicate a project root\n// Ordered by strength: primary indicators first\nconst PROJECT_ROOT_INDICATORS = [\n 'package.json', // Node.js/npm projects\n '.git', // Git repository root\n 'Cargo.toml', // Rust projects\n 'go.mod', // Go modules\n 'pyproject.toml', // Python projects (modern)\n 'pom.xml', // Maven (Java)\n 'build.gradle', // Gradle (Java/Kotlin)\n 'deno.json', // Deno projects\n // Note: .trie/config.json would be a better indicator, but empty .trie dirs exist\n // tsconfig.json is secondary as it can exist in subdirectories\n];\n\n// Directories that indicate we're in an npm package, not a user workspace\nconst NPM_PACKAGE_INDICATORS = [\n 'node_modules/@', // Scoped packages\n 'node_modules/', // Regular packages\n '.npm/', // npm cache\n '.nvm/', // nvm\n 'lib/node_modules/', // Global npm\n];\n\nfunction getGitCommonDir(startDir: string): string | null {\n try {\n const output = execSync('git rev-parse --git-common-dir', {\n cwd: startDir,\n stdio: ['ignore', 'pipe', 'ignore'],\n })\n .toString()\n .trim();\n if (!output) return null;\n return resolve(startDir, output);\n } catch {\n return null;\n }\n}\n\nfunction getSharedWorktreeRoot(startDir: string): string | null {\n const commonDir = getGitCommonDir(startDir);\n if (!commonDir) return null;\n if (basename(commonDir) !== '.git') return null;\n return dirname(commonDir);\n}\n\nexport function getTrieDirectory(workDir: string): string {\n const mode = process.env.TRIE_WORKTREE_MODE?.toLowerCase();\n if (mode === 'isolated') {\n return join(workDir, '.trie');\n }\n const sharedRoot = getSharedWorktreeRoot(workDir);\n if (sharedRoot) {\n return join(sharedRoot, '.trie');\n }\n return join(workDir, '.trie');\n}\n\n/**\n * Find the nearest project root by walking up from a starting directory\n * Returns the directory containing a project root indicator, or null if none found\n */\nexport function findProjectRoot(startDir: string, maxLevels: number = 10): string | null {\n let currentDir = resolve(startDir);\n let levels = 0;\n \n while (levels < maxLevels) {\n // Check if any project root indicator exists in this directory\n for (const indicator of PROJECT_ROOT_INDICATORS) {\n const indicatorPath = join(currentDir, indicator);\n if (existsSync(indicatorPath)) {\n return currentDir;\n }\n }\n \n // Move up one directory\n const parentDir = dirname(currentDir);\n if (parentDir === currentDir) {\n // Reached filesystem root\n break;\n }\n currentDir = parentDir;\n levels++;\n }\n \n return null;\n}\n\n/**\n * Check if a path looks like it's inside an npm package installation\n */\nfunction isInsideNpmPackage(dir: string): boolean {\n const normalizedPath = dir.replace(/\\\\/g, '/');\n return NPM_PACKAGE_INDICATORS.some(indicator => normalizedPath.includes(indicator));\n}\n\n/**\n * Try to get workspace from environment variables\n * Various tools set these when invoking MCP servers\n */\nfunction getWorkspaceFromEnv(): string | null {\n // Common environment variables that might contain workspace path\n const envVars = [\n 'CURSOR_WORKSPACE', // Cursor IDE\n 'CURSOR_WORKSPACE_ROOT', // Alternative Cursor env var\n 'VSCODE_WORKSPACE', // VS Code\n 'VSCODE_CWD', // VS Code working directory\n 'WORKSPACE_FOLDER', // Generic workspace\n 'PROJECT_ROOT', // Generic project root\n 'INIT_CWD', // npm's original directory\n 'PWD', // Original shell directory\n ];\n \n for (const envVar of envVars) {\n const value = process.env[envVar];\n if (value && existsSync(value)) {\n // Verify it looks like a project\n const hasProjectIndicator = PROJECT_ROOT_INDICATORS.some(\n indicator => existsSync(join(value, indicator))\n );\n if (hasProjectIndicator) {\n return value;\n }\n }\n }\n \n return null;\n}\n\n/**\n * Get the best working directory for scanning/operations\n * Priority: \n * 1. Explicit directory arg\n * 2. Environment variable (CURSOR_WORKSPACE, etc.)\n * 3. Detected project root from cwd (if not inside npm package)\n * 4. process.cwd() with warning\n * \n * @param explicitDir - Optional explicit directory from user\n * @param silent - If true, don't log warnings when falling back to cwd\n */\nexport function getWorkingDirectory(explicitDir?: string, silent: boolean = false): string {\n // If explicitly provided, use it\n if (explicitDir) {\n return resolve(explicitDir);\n }\n\n // Suppress all logs in interactive mode (TUI handles its own display)\n const shouldLog = !silent && !isInteractiveMode();\n\n // Debug: Log all relevant environment variables\n if (shouldLog && process.env.DEBUG_TRIE_WORKSPACE) {\n console.error('Debug: Environment variables:');\n console.error(` CURSOR_WORKSPACE: ${process.env.CURSOR_WORKSPACE || 'not set'}`);\n console.error(` CURSOR_WORKSPACE_ROOT: ${process.env.CURSOR_WORKSPACE_ROOT || 'not set'}`);\n console.error(` VSCODE_CWD: ${process.env.VSCODE_CWD || 'not set'}`);\n console.error(` INIT_CWD: ${process.env.INIT_CWD || 'not set'}`);\n console.error(` PWD: ${process.env.PWD || 'not set'}`);\n console.error(` process.cwd(): ${process.cwd()}`);\n }\n\n // Try environment variables first\n const envWorkspace = getWorkspaceFromEnv();\n if (envWorkspace) {\n if (shouldLog) {\n console.error(`Using workspace from environment: ${envWorkspace}`);\n }\n return envWorkspace;\n }\n \n // Try to find a project root from cwd\n const cwd = process.cwd();\n \n // Check if we're running from inside an npm package (common for MCP servers)\n if (isInsideNpmPackage(cwd)) {\n if (shouldLog) {\n console.error('Warning: MCP server running from npm package directory.');\n console.error(' Please pass the \"directory\" parameter with your project path.');\n console.error(` Current directory: ${cwd}`);\n }\n // Still return cwd, but we've warned\n return cwd;\n }\n \n const projectRoot = findProjectRoot(cwd);\n \n if (projectRoot) {\n // Extra check: make sure we're not returning the Trie package itself\n const packageJsonPath = join(projectRoot, 'package.json');\n if (existsSync(packageJsonPath)) {\n try {\n const pkg = JSON.parse(require('fs').readFileSync(packageJsonPath, 'utf-8'));\n if (pkg.name === '@triedotdev/mcp' || pkg.name === 'trie-mcp-agent') {\n if (shouldLog) {\n console.error('Warning: Detected Trie package directory, not user workspace.');\n console.error(' Please pass the \"directory\" parameter with your project path.');\n }\n return cwd;\n }\n } catch {\n // Ignore parse errors\n }\n }\n return projectRoot;\n }\n \n // Fallback to cwd, but warn\n if (shouldLog) {\n console.error('Warning: Could not detect project root. Operating from:', cwd);\n console.error(' Tip: Pass directory parameter or run from a directory with package.json/.git');\n console.error(' Or set DEBUG_TRIE_WORKSPACE=1 to debug workspace detection');\n console.error(` Current working directory: ${cwd}`);\n\n // Show how to properly call with directory\n console.error(' Examples:');\n console.error(' Use trie_security with directory: \"/path/to/your/project\"');\n console.error(' Use trie_scan with directory: \"./your-project\"');\n }\n\n return cwd;\n}\n"],"mappings":"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","names":[]}