gitmem-mcp 1.0.2 → 1.0.3
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/CHANGELOG.md +14 -0
- package/README.md +30 -9
- package/dist/schemas/create-learning.d.ts +4 -4
- package/dist/services/agent-briefing.d.ts +12 -0
- package/dist/services/agent-briefing.d.ts.map +1 -0
- package/dist/services/agent-briefing.js +81 -0
- package/dist/services/agent-briefing.js.map +1 -0
- package/dist/services/agent-detection.d.ts +1 -1
- package/dist/services/agent-detection.js +3 -3
- package/dist/services/agent-detection.js.map +1 -1
- package/dist/services/local-file-storage.d.ts.map +1 -1
- package/dist/services/local-file-storage.js +13 -8
- package/dist/services/local-file-storage.js.map +1 -1
- package/dist/services/tier.d.ts +2 -0
- package/dist/services/tier.d.ts.map +1 -1
- package/dist/services/tier.js +4 -0
- package/dist/services/tier.js.map +1 -1
- package/dist/services/triple-writer.d.ts +4 -4
- package/dist/services/triple-writer.d.ts.map +1 -1
- package/dist/services/triple-writer.js +11 -20
- package/dist/services/triple-writer.js.map +1 -1
- package/dist/tools/confirm-scars.d.ts.map +1 -1
- package/dist/tools/confirm-scars.js +4 -0
- package/dist/tools/confirm-scars.js.map +1 -1
- package/dist/tools/definitions.d.ts +280 -58
- package/dist/tools/definitions.d.ts.map +1 -1
- package/dist/tools/definitions.js +80 -42
- package/dist/tools/definitions.js.map +1 -1
- package/dist/tools/graph-traverse.d.ts +1 -1
- package/dist/tools/graph-traverse.d.ts.map +1 -1
- package/dist/tools/graph-traverse.js +3 -2
- package/dist/tools/graph-traverse.js.map +1 -1
- package/dist/tools/prepare-context.js +1 -1
- package/dist/tools/recall.d.ts +1 -0
- package/dist/tools/recall.d.ts.map +1 -1
- package/dist/tools/recall.js +15 -6
- package/dist/tools/recall.js.map +1 -1
- package/dist/tools/session-close.d.ts.map +1 -1
- package/dist/tools/session-close.js +30 -29
- package/dist/tools/session-close.js.map +1 -1
- package/dist/types/index.d.ts +4 -0
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/schema/starter-scars.json +3 -153
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../../src/tools/definitions.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
|
1
|
+
{"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../../src/tools/definitions.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAWH;;GAEG;AACH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA2BjC"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* All tool registrations (names, descriptions, JSON schemas) for the GitMem MCP server.
|
|
5
5
|
* Extracted from server.ts for maintainability.
|
|
6
6
|
*/
|
|
7
|
-
import { hasBatchOperations, hasTranscripts, hasCacheManagement, hasSupabase, } from "../services/tier.js";
|
|
7
|
+
import { hasBatchOperations, hasTranscripts, hasCacheManagement, hasSupabase, hasFullAliases, } from "../services/tier.js";
|
|
8
8
|
/**
|
|
9
9
|
* Tool definitions for MCP
|
|
10
10
|
*/
|
|
@@ -21,7 +21,7 @@ export const TOOLS = [
|
|
|
21
21
|
},
|
|
22
22
|
project: {
|
|
23
23
|
type: "string",
|
|
24
|
-
description: "Project namespace (e.g., 'my-project'
|
|
24
|
+
description: "Project namespace (e.g., 'my-project'). Scopes sessions and searches.",
|
|
25
25
|
},
|
|
26
26
|
match_count: {
|
|
27
27
|
type: "number",
|
|
@@ -31,6 +31,10 @@ export const TOOLS = [
|
|
|
31
31
|
type: "string",
|
|
32
32
|
description: "Linear issue identifier for variant assignment (e.g., 'OD-525'). When provided, scars with variants will be randomly assigned and formatted accordingly.",
|
|
33
33
|
},
|
|
34
|
+
similarity_threshold: {
|
|
35
|
+
type: "number",
|
|
36
|
+
description: "Minimum similarity score (0-1) to include results. Weak matches below threshold are suppressed. Default: 0.4 (free tier BM25), 0.35 (pro tier embeddings).",
|
|
37
|
+
},
|
|
34
38
|
},
|
|
35
39
|
required: ["plan"],
|
|
36
40
|
},
|
|
@@ -59,6 +63,11 @@ export const TOOLS = [
|
|
|
59
63
|
type: "string",
|
|
60
64
|
description: "Past-tense evidence (APPLYING), scenario comparison (N_A), or risk acknowledgment (REFUTED). Minimum 50 characters.",
|
|
61
65
|
},
|
|
66
|
+
relevance: {
|
|
67
|
+
type: "string",
|
|
68
|
+
enum: ["high", "low", "noise"],
|
|
69
|
+
description: "How relevant was this scar to your plan? high=directly applicable, low=tangentially related, noise=not relevant to this context. Helps improve future recall quality.",
|
|
70
|
+
},
|
|
62
71
|
},
|
|
63
72
|
required: ["scar_id", "decision", "evidence"],
|
|
64
73
|
},
|
|
@@ -98,7 +107,7 @@ export const TOOLS = [
|
|
|
98
107
|
},
|
|
99
108
|
project: {
|
|
100
109
|
type: "string",
|
|
101
|
-
description: "Project namespace (e.g., 'my-project'
|
|
110
|
+
description: "Project namespace (e.g., 'my-project'). Scopes sessions and searches.",
|
|
102
111
|
},
|
|
103
112
|
force: {
|
|
104
113
|
type: "boolean",
|
|
@@ -210,7 +219,7 @@ export const TOOLS = [
|
|
|
210
219
|
},
|
|
211
220
|
project: {
|
|
212
221
|
type: "string",
|
|
213
|
-
description: "Project namespace (e.g., 'my-project'
|
|
222
|
+
description: "Project namespace (e.g., 'my-project'). Scopes sessions and searches.",
|
|
214
223
|
},
|
|
215
224
|
},
|
|
216
225
|
required: ["learning_type", "title", "description"],
|
|
@@ -259,7 +268,7 @@ export const TOOLS = [
|
|
|
259
268
|
},
|
|
260
269
|
project: {
|
|
261
270
|
type: "string",
|
|
262
|
-
description: "Project namespace (e.g., 'my-project'
|
|
271
|
+
description: "Project namespace (e.g., 'my-project'). Scopes sessions and searches.",
|
|
263
272
|
},
|
|
264
273
|
},
|
|
265
274
|
required: ["title", "decision", "rationale"],
|
|
@@ -273,7 +282,7 @@ export const TOOLS = [
|
|
|
273
282
|
properties: {
|
|
274
283
|
scar_id: {
|
|
275
284
|
type: "string",
|
|
276
|
-
description: "UUID of the scar
|
|
285
|
+
description: "UUID of the scar",
|
|
277
286
|
},
|
|
278
287
|
issue_id: {
|
|
279
288
|
type: "string",
|
|
@@ -406,7 +415,7 @@ export const TOOLS = [
|
|
|
406
415
|
},
|
|
407
416
|
project: {
|
|
408
417
|
type: "string",
|
|
409
|
-
description: "Project namespace (e.g., 'my-project'
|
|
418
|
+
description: "Project namespace (e.g., 'my-project'). Scopes sessions and searches.",
|
|
410
419
|
},
|
|
411
420
|
},
|
|
412
421
|
required: ["session_id", "transcript"],
|
|
@@ -446,7 +455,7 @@ export const TOOLS = [
|
|
|
446
455
|
},
|
|
447
456
|
project: {
|
|
448
457
|
type: "string",
|
|
449
|
-
description: "Project namespace to filter by (e.g., '
|
|
458
|
+
description: "Project namespace to filter by (e.g., 'my-project')",
|
|
450
459
|
},
|
|
451
460
|
},
|
|
452
461
|
required: ["query"],
|
|
@@ -471,7 +480,7 @@ export const TOOLS = [
|
|
|
471
480
|
},
|
|
472
481
|
project: {
|
|
473
482
|
type: "string",
|
|
474
|
-
description: "Project namespace (e.g., 'my-project'
|
|
483
|
+
description: "Project namespace (e.g., 'my-project'). Scopes sessions and searches.",
|
|
475
484
|
},
|
|
476
485
|
severity: {
|
|
477
486
|
type: "string",
|
|
@@ -499,7 +508,7 @@ export const TOOLS = [
|
|
|
499
508
|
},
|
|
500
509
|
project: {
|
|
501
510
|
type: "string",
|
|
502
|
-
description: "Project namespace (e.g., 'my-project'
|
|
511
|
+
description: "Project namespace (e.g., 'my-project'). Scopes sessions and searches.",
|
|
503
512
|
},
|
|
504
513
|
learning_type: {
|
|
505
514
|
type: "string",
|
|
@@ -546,7 +555,7 @@ export const TOOLS = [
|
|
|
546
555
|
},
|
|
547
556
|
project: {
|
|
548
557
|
type: "string",
|
|
549
|
-
description: "Project namespace (e.g., 'my-project'
|
|
558
|
+
description: "Project namespace (e.g., 'my-project'). Scopes sessions and searches.",
|
|
550
559
|
},
|
|
551
560
|
},
|
|
552
561
|
required: ["plan", "format"],
|
|
@@ -601,7 +610,7 @@ export const TOOLS = [
|
|
|
601
610
|
},
|
|
602
611
|
project: {
|
|
603
612
|
type: "string",
|
|
604
|
-
description: "Project namespace (e.g., 'my-project'
|
|
613
|
+
description: "Project namespace (e.g., 'my-project'). Scopes sessions and searches.",
|
|
605
614
|
},
|
|
606
615
|
},
|
|
607
616
|
},
|
|
@@ -658,7 +667,7 @@ export const TOOLS = [
|
|
|
658
667
|
},
|
|
659
668
|
project: {
|
|
660
669
|
type: "string",
|
|
661
|
-
description: "Project namespace (e.g., 'my-project'
|
|
670
|
+
description: "Project namespace (e.g., 'my-project'). Scopes sessions and searches.",
|
|
662
671
|
},
|
|
663
672
|
},
|
|
664
673
|
required: ["suggestion_id"],
|
|
@@ -687,7 +696,7 @@ export const TOOLS = [
|
|
|
687
696
|
properties: {
|
|
688
697
|
project: {
|
|
689
698
|
type: "string",
|
|
690
|
-
description: "Project namespace (e.g., 'my-project'
|
|
699
|
+
description: "Project namespace (e.g., 'my-project'). Scopes sessions and searches.",
|
|
691
700
|
},
|
|
692
701
|
auto_archive: {
|
|
693
702
|
type: "boolean",
|
|
@@ -726,7 +735,7 @@ export const TOOLS = [
|
|
|
726
735
|
},
|
|
727
736
|
project: {
|
|
728
737
|
type: "string",
|
|
729
|
-
description: "Project namespace (e.g., 'my-project'
|
|
738
|
+
description: "Project namespace (e.g., 'my-project'). Scopes sessions and searches.",
|
|
730
739
|
},
|
|
731
740
|
match_count: {
|
|
732
741
|
type: "number",
|
|
@@ -789,7 +798,7 @@ export const TOOLS = [
|
|
|
789
798
|
},
|
|
790
799
|
project: {
|
|
791
800
|
type: "string",
|
|
792
|
-
description: "Project namespace (e.g., 'my-project'
|
|
801
|
+
description: "Project namespace (e.g., 'my-project'). Scopes sessions and searches.",
|
|
793
802
|
},
|
|
794
803
|
force: {
|
|
795
804
|
type: "boolean",
|
|
@@ -901,7 +910,7 @@ export const TOOLS = [
|
|
|
901
910
|
},
|
|
902
911
|
project: {
|
|
903
912
|
type: "string",
|
|
904
|
-
description: "Project namespace (e.g., 'my-project'
|
|
913
|
+
description: "Project namespace (e.g., 'my-project'). Scopes sessions and searches.",
|
|
905
914
|
},
|
|
906
915
|
},
|
|
907
916
|
required: ["learning_type", "title", "description"],
|
|
@@ -950,7 +959,7 @@ export const TOOLS = [
|
|
|
950
959
|
},
|
|
951
960
|
project: {
|
|
952
961
|
type: "string",
|
|
953
|
-
description: "Project namespace (e.g., 'my-project'
|
|
962
|
+
description: "Project namespace (e.g., 'my-project'). Scopes sessions and searches.",
|
|
954
963
|
},
|
|
955
964
|
},
|
|
956
965
|
required: ["title", "decision", "rationale"],
|
|
@@ -964,7 +973,7 @@ export const TOOLS = [
|
|
|
964
973
|
properties: {
|
|
965
974
|
scar_id: {
|
|
966
975
|
type: "string",
|
|
967
|
-
description: "UUID of the scar
|
|
976
|
+
description: "UUID of the scar",
|
|
968
977
|
},
|
|
969
978
|
issue_id: {
|
|
970
979
|
type: "string",
|
|
@@ -1097,7 +1106,7 @@ export const TOOLS = [
|
|
|
1097
1106
|
},
|
|
1098
1107
|
project: {
|
|
1099
1108
|
type: "string",
|
|
1100
|
-
description: "Project namespace (e.g., 'my-project'
|
|
1109
|
+
description: "Project namespace (e.g., 'my-project'). Scopes sessions and searches.",
|
|
1101
1110
|
},
|
|
1102
1111
|
},
|
|
1103
1112
|
required: ["session_id", "transcript"],
|
|
@@ -1187,7 +1196,7 @@ export const TOOLS = [
|
|
|
1187
1196
|
},
|
|
1188
1197
|
project: {
|
|
1189
1198
|
type: "string",
|
|
1190
|
-
description: "Project namespace (e.g., 'my-project'
|
|
1199
|
+
description: "Project namespace (e.g., 'my-project'). Scopes sessions and searches.",
|
|
1191
1200
|
},
|
|
1192
1201
|
severity: {
|
|
1193
1202
|
type: "string",
|
|
@@ -1216,7 +1225,7 @@ export const TOOLS = [
|
|
|
1216
1225
|
},
|
|
1217
1226
|
project: {
|
|
1218
1227
|
type: "string",
|
|
1219
|
-
description: "Project namespace (e.g., 'my-project'
|
|
1228
|
+
description: "Project namespace (e.g., 'my-project'). Scopes sessions and searches.",
|
|
1220
1229
|
},
|
|
1221
1230
|
learning_type: {
|
|
1222
1231
|
type: "string",
|
|
@@ -1261,7 +1270,7 @@ export const TOOLS = [
|
|
|
1261
1270
|
},
|
|
1262
1271
|
project: {
|
|
1263
1272
|
type: "string",
|
|
1264
|
-
description: "Project namespace (e.g., 'my-project'
|
|
1273
|
+
description: "Project namespace (e.g., 'my-project'). Scopes sessions and searches.",
|
|
1265
1274
|
},
|
|
1266
1275
|
},
|
|
1267
1276
|
required: ["plan", "format"],
|
|
@@ -1413,7 +1422,7 @@ export const TOOLS = [
|
|
|
1413
1422
|
},
|
|
1414
1423
|
project: {
|
|
1415
1424
|
type: "string",
|
|
1416
|
-
description: "Project namespace (e.g., 'my-project'
|
|
1425
|
+
description: "Project namespace (e.g., 'my-project'). Scopes sessions and searches.",
|
|
1417
1426
|
},
|
|
1418
1427
|
force: {
|
|
1419
1428
|
type: "boolean",
|
|
@@ -1548,7 +1557,7 @@ export const TOOLS = [
|
|
|
1548
1557
|
},
|
|
1549
1558
|
project: {
|
|
1550
1559
|
type: "string",
|
|
1551
|
-
description: "Project namespace (e.g., 'my-project'
|
|
1560
|
+
description: "Project namespace (e.g., 'my-project'). Scopes sessions and searches.",
|
|
1552
1561
|
},
|
|
1553
1562
|
},
|
|
1554
1563
|
required: ["learning_type", "title", "description"],
|
|
@@ -1571,7 +1580,7 @@ export const TOOLS = [
|
|
|
1571
1580
|
},
|
|
1572
1581
|
project: {
|
|
1573
1582
|
type: "string",
|
|
1574
|
-
description: "Project namespace (e.g., 'my-project'
|
|
1583
|
+
description: "Project namespace (e.g., 'my-project'). Scopes sessions and searches.",
|
|
1575
1584
|
},
|
|
1576
1585
|
severity: {
|
|
1577
1586
|
type: "string",
|
|
@@ -1600,7 +1609,7 @@ export const TOOLS = [
|
|
|
1600
1609
|
},
|
|
1601
1610
|
project: {
|
|
1602
1611
|
type: "string",
|
|
1603
|
-
description: "Project namespace (e.g., 'my-project'
|
|
1612
|
+
description: "Project namespace (e.g., 'my-project'). Scopes sessions and searches.",
|
|
1604
1613
|
},
|
|
1605
1614
|
learning_type: {
|
|
1606
1615
|
type: "string",
|
|
@@ -1645,7 +1654,7 @@ export const TOOLS = [
|
|
|
1645
1654
|
},
|
|
1646
1655
|
project: {
|
|
1647
1656
|
type: "string",
|
|
1648
|
-
description: "Project namespace (e.g., 'my-project'
|
|
1657
|
+
description: "Project namespace (e.g., 'my-project'). Scopes sessions and searches.",
|
|
1649
1658
|
},
|
|
1650
1659
|
},
|
|
1651
1660
|
required: ["plan", "format"],
|
|
@@ -1784,7 +1793,7 @@ export const TOOLS = [
|
|
|
1784
1793
|
},
|
|
1785
1794
|
project: {
|
|
1786
1795
|
type: "string",
|
|
1787
|
-
description: "Project namespace (e.g., 'my-project'
|
|
1796
|
+
description: "Project namespace (e.g., 'my-project'). Scopes sessions and searches.",
|
|
1788
1797
|
},
|
|
1789
1798
|
agent: {
|
|
1790
1799
|
type: "string",
|
|
@@ -1816,7 +1825,7 @@ export const TOOLS = [
|
|
|
1816
1825
|
},
|
|
1817
1826
|
project: {
|
|
1818
1827
|
type: "string",
|
|
1819
|
-
description: "Project namespace (e.g., 'my-project'
|
|
1828
|
+
description: "Project namespace (e.g., 'my-project'). Scopes sessions and searches.",
|
|
1820
1829
|
},
|
|
1821
1830
|
agent: {
|
|
1822
1831
|
type: "string",
|
|
@@ -1848,7 +1857,7 @@ export const TOOLS = [
|
|
|
1848
1857
|
},
|
|
1849
1858
|
project: {
|
|
1850
1859
|
type: "string",
|
|
1851
|
-
description: "Project namespace (e.g., 'my-project'
|
|
1860
|
+
description: "Project namespace (e.g., 'my-project'). Scopes sessions and searches.",
|
|
1852
1861
|
},
|
|
1853
1862
|
agent: {
|
|
1854
1863
|
type: "string",
|
|
@@ -1881,7 +1890,7 @@ export const TOOLS = [
|
|
|
1881
1890
|
properties: {
|
|
1882
1891
|
project: {
|
|
1883
1892
|
type: "string",
|
|
1884
|
-
description: "Project namespace (e.g., 'my-project'
|
|
1893
|
+
description: "Project namespace (e.g., 'my-project'). Scopes sessions and searches.",
|
|
1885
1894
|
},
|
|
1886
1895
|
},
|
|
1887
1896
|
},
|
|
@@ -1894,7 +1903,7 @@ export const TOOLS = [
|
|
|
1894
1903
|
properties: {
|
|
1895
1904
|
project: {
|
|
1896
1905
|
type: "string",
|
|
1897
|
-
description: "Project namespace (e.g., 'my-project'
|
|
1906
|
+
description: "Project namespace (e.g., 'my-project'). Scopes sessions and searches.",
|
|
1898
1907
|
},
|
|
1899
1908
|
},
|
|
1900
1909
|
},
|
|
@@ -1907,7 +1916,7 @@ export const TOOLS = [
|
|
|
1907
1916
|
properties: {
|
|
1908
1917
|
project: {
|
|
1909
1918
|
type: "string",
|
|
1910
|
-
description: "Project namespace (e.g., 'my-project'
|
|
1919
|
+
description: "Project namespace (e.g., 'my-project'). Scopes sessions and searches.",
|
|
1911
1920
|
},
|
|
1912
1921
|
},
|
|
1913
1922
|
},
|
|
@@ -1920,7 +1929,7 @@ export const TOOLS = [
|
|
|
1920
1929
|
properties: {
|
|
1921
1930
|
project: {
|
|
1922
1931
|
type: "string",
|
|
1923
|
-
description: "Project namespace (e.g., 'my-project'
|
|
1932
|
+
description: "Project namespace (e.g., 'my-project'). Scopes sessions and searches.",
|
|
1924
1933
|
},
|
|
1925
1934
|
},
|
|
1926
1935
|
},
|
|
@@ -1933,7 +1942,7 @@ export const TOOLS = [
|
|
|
1933
1942
|
properties: {
|
|
1934
1943
|
project: {
|
|
1935
1944
|
type: "string",
|
|
1936
|
-
description: "Project namespace (e.g., 'my-project'
|
|
1945
|
+
description: "Project namespace (e.g., 'my-project'). Scopes sessions and searches.",
|
|
1937
1946
|
},
|
|
1938
1947
|
},
|
|
1939
1948
|
},
|
|
@@ -1946,7 +1955,7 @@ export const TOOLS = [
|
|
|
1946
1955
|
properties: {
|
|
1947
1956
|
project: {
|
|
1948
1957
|
type: "string",
|
|
1949
|
-
description: "Project namespace (e.g., 'my-project'
|
|
1958
|
+
description: "Project namespace (e.g., 'my-project'). Scopes sessions and searches.",
|
|
1950
1959
|
},
|
|
1951
1960
|
},
|
|
1952
1961
|
},
|
|
@@ -2020,7 +2029,7 @@ export const TOOLS = [
|
|
|
2020
2029
|
},
|
|
2021
2030
|
node: {
|
|
2022
2031
|
type: "string",
|
|
2023
|
-
description: "Starting node. Examples: 'OD-466', 'CLI', '
|
|
2032
|
+
description: "Starting node. Examples: 'OD-466', 'CLI', 'Scar: Done ≠ Deployed'. Required for all lenses except stats.",
|
|
2024
2033
|
},
|
|
2025
2034
|
predicate: {
|
|
2026
2035
|
type: "string",
|
|
@@ -2033,7 +2042,7 @@ export const TOOLS = [
|
|
|
2033
2042
|
},
|
|
2034
2043
|
project: {
|
|
2035
2044
|
type: "string",
|
|
2036
|
-
description: "Project namespace (e.g., 'my-project'
|
|
2045
|
+
description: "Project namespace (e.g., 'my-project'). Scopes sessions and searches.",
|
|
2037
2046
|
},
|
|
2038
2047
|
limit: {
|
|
2039
2048
|
type: "number",
|
|
@@ -2056,7 +2065,7 @@ export const TOOLS = [
|
|
|
2056
2065
|
},
|
|
2057
2066
|
node: {
|
|
2058
2067
|
type: "string",
|
|
2059
|
-
description: "Starting node (e.g., 'OD-466', 'CLI'
|
|
2068
|
+
description: "Starting node (e.g., 'OD-466', 'CLI')",
|
|
2060
2069
|
},
|
|
2061
2070
|
predicate: {
|
|
2062
2071
|
type: "string",
|
|
@@ -2066,7 +2075,7 @@ export const TOOLS = [
|
|
|
2066
2075
|
depth: { type: "number", description: "Max depth for provenance (default: 3)" },
|
|
2067
2076
|
project: {
|
|
2068
2077
|
type: "string",
|
|
2069
|
-
description: "Project namespace (e.g., 'my-project'
|
|
2078
|
+
description: "Project namespace (e.g., 'my-project'). Scopes sessions and searches.",
|
|
2070
2079
|
},
|
|
2071
2080
|
limit: { type: "number", description: "Max triples (default: 50)" },
|
|
2072
2081
|
},
|
|
@@ -2093,7 +2102,7 @@ export const TOOLS = [
|
|
|
2093
2102
|
depth: { type: "number", description: "Max depth for provenance" },
|
|
2094
2103
|
project: {
|
|
2095
2104
|
type: "string",
|
|
2096
|
-
description: "Project namespace (e.g., 'my-project'
|
|
2105
|
+
description: "Project namespace (e.g., 'my-project'). Scopes sessions and searches.",
|
|
2097
2106
|
},
|
|
2098
2107
|
limit: { type: "number", description: "Max triples" },
|
|
2099
2108
|
},
|
|
@@ -2101,6 +2110,30 @@ export const TOOLS = [
|
|
|
2101
2110
|
},
|
|
2102
2111
|
},
|
|
2103
2112
|
];
|
|
2113
|
+
/**
|
|
2114
|
+
* Alias tool names — filtered out by default to reduce context window cost.
|
|
2115
|
+
* Set GITMEM_FULL_ALIASES=1 to advertise all aliases.
|
|
2116
|
+
* Aliases still route correctly in server.ts even when not advertised.
|
|
2117
|
+
*/
|
|
2118
|
+
export const ALIAS_TOOL_NAMES = new Set([
|
|
2119
|
+
// gitmem-* aliases
|
|
2120
|
+
"gitmem-r", "gitmem-cs", "gitmem-ss", "gitmem-sr", "gitmem-sc",
|
|
2121
|
+
"gitmem-cl", "gitmem-cd", "gitmem-rs", "gitmem-rsb",
|
|
2122
|
+
"gitmem-st", "gitmem-gt", "gitmem-stx",
|
|
2123
|
+
"gitmem-search", "gitmem-log", "gitmem-analyze",
|
|
2124
|
+
"gitmem-pc", "gitmem-ao",
|
|
2125
|
+
"gitmem-lt", "gitmem-rt", "gitmem-ct", "gitmem-ps", "gitmem-ds",
|
|
2126
|
+
"gitmem-cleanup", "gitmem-health", "gitmem-al", "gitmem-graph",
|
|
2127
|
+
// gm-* aliases
|
|
2128
|
+
"gm-open", "gm-confirm", "gm-refresh", "gm-close",
|
|
2129
|
+
"gm-scar", "gm-search", "gm-log", "gm-analyze",
|
|
2130
|
+
"gm-pc", "gm-absorb",
|
|
2131
|
+
"gm-threads", "gm-resolve", "gm-thread-new", "gm-promote", "gm-dismiss",
|
|
2132
|
+
"gm-cleanup", "gm-health", "gm-archive", "gm-graph",
|
|
2133
|
+
"gm-stx",
|
|
2134
|
+
// gm-cache-* aliases (canonical names are gitmem-cache-*, tier-gated separately)
|
|
2135
|
+
"gm-cache-s", "gm-cache-h", "gm-cache-f",
|
|
2136
|
+
]);
|
|
2104
2137
|
/**
|
|
2105
2138
|
* Tier-gated tool names
|
|
2106
2139
|
*
|
|
@@ -2136,7 +2169,12 @@ export const ARCHIVE_TOOL_NAMES = new Set([
|
|
|
2136
2169
|
* Dev: + batch operations + transcripts
|
|
2137
2170
|
*/
|
|
2138
2171
|
export function getRegisteredTools() {
|
|
2172
|
+
const showAliases = hasFullAliases();
|
|
2139
2173
|
return TOOLS.filter(tool => {
|
|
2174
|
+
// Filter aliases unless GITMEM_FULL_ALIASES=1 (OD-691)
|
|
2175
|
+
if (!showAliases && ALIAS_TOOL_NAMES.has(tool.name)) {
|
|
2176
|
+
return false;
|
|
2177
|
+
}
|
|
2140
2178
|
if (BATCH_TOOL_NAMES.has(tool.name)) {
|
|
2141
2179
|
return hasBatchOperations();
|
|
2142
2180
|
}
|