gitmem-mcp 1.0.2 → 1.0.4
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 +20 -6
- package/README.md +30 -9
- package/dist/commands/check.d.ts +1 -1
- package/dist/commands/check.js +4 -3
- package/dist/diagnostics/anonymizer.d.ts +1 -1
- package/dist/diagnostics/anonymizer.js +1 -1
- package/dist/diagnostics/channels.d.ts +1 -1
- package/dist/diagnostics/channels.js +1 -1
- package/dist/diagnostics/collector.d.ts +1 -1
- package/dist/diagnostics/collector.js +1 -1
- package/dist/diagnostics/index.d.ts +1 -1
- package/dist/diagnostics/index.js +1 -1
- package/dist/hooks/quick-retrieve.js +2 -1
- package/dist/index.js +0 -0
- package/dist/schemas/active-sessions.d.ts +9 -9
- package/dist/schemas/active-sessions.js +1 -1
- package/dist/schemas/common.d.ts +2 -5
- package/dist/schemas/common.js +13 -7
- package/dist/schemas/create-learning.d.ts +4 -4
- package/dist/schemas/create-learning.js +1 -1
- package/dist/schemas/session-close.d.ts +5 -8
- package/dist/schemas/session-close.js +7 -3
- package/dist/schemas/session-start.d.ts +4 -4
- package/dist/schemas/session-start.js +1 -1
- package/dist/schemas/thread.d.ts +1 -1
- package/dist/schemas/thread.js +1 -1
- package/dist/server.d.ts +2 -2
- package/dist/server.js +21 -10
- package/dist/services/active-sessions.js +3 -2
- package/dist/services/agent-briefing.d.ts +12 -0
- package/dist/services/agent-briefing.js +81 -0
- package/dist/services/agent-detection.d.ts +2 -1
- package/dist/services/agent-detection.js +23 -14
- package/dist/services/analytics.d.ts +1 -1
- package/dist/services/analytics.js +3 -3
- package/dist/services/behavioral-decay.js +2 -2
- package/dist/services/cache.d.ts +1 -1
- package/dist/services/cache.js +1 -1
- package/dist/services/compliance-validator.d.ts +1 -1
- package/dist/services/compliance-validator.js +5 -5
- package/dist/services/config.d.ts +1 -1
- package/dist/services/config.js +1 -1
- package/dist/services/file-lock.js +12 -0
- package/dist/services/gitmem-dir.d.ts +17 -4
- package/dist/services/gitmem-dir.js +43 -9
- package/dist/services/local-file-storage.d.ts +1 -1
- package/dist/services/local-file-storage.js +16 -10
- package/dist/services/local-vector-search.d.ts +1 -1
- package/dist/services/local-vector-search.js +2 -2
- package/dist/services/metrics.d.ts +6 -6
- package/dist/services/metrics.js +8 -8
- package/dist/services/session-state.d.ts +7 -7
- package/dist/services/session-state.js +19 -7
- package/dist/services/startup.d.ts +1 -1
- package/dist/services/startup.js +3 -2
- package/dist/services/supabase-client.d.ts +17 -6
- package/dist/services/supabase-client.js +44 -8
- package/dist/services/thread-manager.d.ts +1 -1
- package/dist/services/thread-manager.js +5 -5
- package/dist/services/thread-supabase.d.ts +1 -1
- package/dist/services/thread-supabase.js +2 -2
- package/dist/services/tier.d.ts +2 -0
- package/dist/services/tier.js +4 -0
- package/dist/services/transcript-chunker.d.ts +1 -1
- package/dist/services/transcript-chunker.js +1 -1
- package/dist/services/triple-writer.d.ts +4 -4
- package/dist/services/triple-writer.js +11 -20
- package/dist/services/variant-assignment.d.ts +6 -6
- package/dist/services/variant-assignment.js +9 -8
- package/dist/tools/analyze.d.ts +2 -2
- package/dist/tools/analyze.js +2 -2
- package/dist/tools/archive-learning.js +36 -22
- package/dist/tools/confirm-scars.js +4 -0
- package/dist/tools/create-decision.d.ts +1 -1
- package/dist/tools/create-decision.js +2 -2
- package/dist/tools/create-learning.d.ts +1 -1
- package/dist/tools/create-learning.js +4 -4
- package/dist/tools/create-linear-issue.d.ts +18 -0
- package/dist/tools/create-linear-issue.js +197 -0
- package/dist/tools/create-thread.d.ts +1 -1
- package/dist/tools/create-thread.js +2 -2
- package/dist/tools/definitions.d.ts +280 -58
- package/dist/tools/definitions.js +127 -87
- package/dist/tools/get-transcript.d.ts +1 -1
- package/dist/tools/get-transcript.js +1 -1
- package/dist/tools/graph-traverse.d.ts +1 -1
- package/dist/tools/graph-traverse.js +20 -17
- package/dist/tools/list-threads.d.ts +2 -2
- package/dist/tools/list-threads.js +4 -4
- package/dist/tools/log.d.ts +1 -1
- package/dist/tools/log.js +1 -1
- package/dist/tools/prepare-context.d.ts +1 -1
- package/dist/tools/prepare-context.js +2 -2
- package/dist/tools/recall.d.ts +5 -4
- package/dist/tools/recall.js +37 -28
- package/dist/tools/record-scar-usage-batch.js +2 -2
- package/dist/tools/record-scar-usage.d.ts +1 -1
- package/dist/tools/record-scar-usage.js +3 -3
- package/dist/tools/resolve-thread.d.ts +2 -2
- package/dist/tools/resolve-thread.js +3 -3
- package/dist/tools/save-transcript.d.ts +1 -1
- package/dist/tools/save-transcript.js +1 -1
- package/dist/tools/search.d.ts +1 -1
- package/dist/tools/search.js +1 -1
- package/dist/tools/session-close.d.ts +1 -1
- package/dist/tools/session-close.js +58 -57
- package/dist/tools/session-start.d.ts +5 -5
- package/dist/tools/session-start.js +63 -61
- package/dist/types/index.d.ts +17 -13
- package/hooks/.claude-plugin/plugin.json +1 -1
- package/hooks/scripts/post-tool-use.sh +1 -1
- package/hooks/scripts/recall-check.sh +1 -1
- package/hooks/scripts/session-close-check.sh +1 -1
- package/hooks/scripts/session-start.sh +1 -1
- package/package.json +6 -3
- package/schema/starter-scars.json +3 -153
- package/dist/commands/check.d.ts.map +0 -1
- package/dist/commands/check.js.map +0 -1
- package/dist/constants/closing-questions.d.ts.map +0 -1
- package/dist/constants/closing-questions.js.map +0 -1
- package/dist/diagnostics/anonymizer.d.ts.map +0 -1
- package/dist/diagnostics/anonymizer.js.map +0 -1
- package/dist/diagnostics/channels.d.ts.map +0 -1
- package/dist/diagnostics/channels.js.map +0 -1
- package/dist/diagnostics/collector.d.ts.map +0 -1
- package/dist/diagnostics/collector.js.map +0 -1
- package/dist/diagnostics/index.d.ts.map +0 -1
- package/dist/diagnostics/index.js.map +0 -1
- package/dist/hooks/format-utils.d.ts.map +0 -1
- package/dist/hooks/format-utils.js.map +0 -1
- package/dist/hooks/quick-retrieve.d.ts.map +0 -1
- package/dist/hooks/quick-retrieve.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/schemas/absorb-observations.d.ts.map +0 -1
- package/dist/schemas/absorb-observations.js.map +0 -1
- package/dist/schemas/active-sessions.d.ts.map +0 -1
- package/dist/schemas/active-sessions.js.map +0 -1
- package/dist/schemas/analyze.d.ts.map +0 -1
- package/dist/schemas/analyze.js.map +0 -1
- package/dist/schemas/common.d.ts.map +0 -1
- package/dist/schemas/common.js.map +0 -1
- package/dist/schemas/create-decision.d.ts.map +0 -1
- package/dist/schemas/create-decision.js.map +0 -1
- package/dist/schemas/create-learning.d.ts.map +0 -1
- package/dist/schemas/create-learning.js.map +0 -1
- package/dist/schemas/get-transcript.d.ts.map +0 -1
- package/dist/schemas/get-transcript.js.map +0 -1
- package/dist/schemas/index.d.ts.map +0 -1
- package/dist/schemas/index.js.map +0 -1
- package/dist/schemas/log.d.ts.map +0 -1
- package/dist/schemas/log.js.map +0 -1
- package/dist/schemas/prepare-context.d.ts.map +0 -1
- package/dist/schemas/prepare-context.js.map +0 -1
- package/dist/schemas/recall.d.ts.map +0 -1
- package/dist/schemas/recall.js.map +0 -1
- package/dist/schemas/record-scar-usage-batch.d.ts.map +0 -1
- package/dist/schemas/record-scar-usage-batch.js.map +0 -1
- package/dist/schemas/record-scar-usage.d.ts.map +0 -1
- package/dist/schemas/record-scar-usage.js.map +0 -1
- package/dist/schemas/registry.d.ts.map +0 -1
- package/dist/schemas/registry.js.map +0 -1
- package/dist/schemas/save-transcript.d.ts.map +0 -1
- package/dist/schemas/save-transcript.js.map +0 -1
- package/dist/schemas/search-transcripts.d.ts.map +0 -1
- package/dist/schemas/search-transcripts.js.map +0 -1
- package/dist/schemas/search.d.ts.map +0 -1
- package/dist/schemas/search.js.map +0 -1
- package/dist/schemas/session-close.d.ts.map +0 -1
- package/dist/schemas/session-close.js.map +0 -1
- package/dist/schemas/session-start.d.ts.map +0 -1
- package/dist/schemas/session-start.js.map +0 -1
- package/dist/schemas/thread.d.ts.map +0 -1
- package/dist/schemas/thread.js.map +0 -1
- package/dist/server.d.ts.map +0 -1
- package/dist/server.js.map +0 -1
- package/dist/services/active-sessions.d.ts.map +0 -1
- package/dist/services/active-sessions.js.map +0 -1
- package/dist/services/agent-detection.d.ts.map +0 -1
- package/dist/services/agent-detection.js.map +0 -1
- package/dist/services/analytics.d.ts.map +0 -1
- package/dist/services/analytics.js.map +0 -1
- package/dist/services/behavioral-decay.d.ts.map +0 -1
- package/dist/services/behavioral-decay.js.map +0 -1
- package/dist/services/bm25.d.ts.map +0 -1
- package/dist/services/bm25.js.map +0 -1
- package/dist/services/cache.d.ts.map +0 -1
- package/dist/services/cache.js.map +0 -1
- package/dist/services/cache.test.d.ts +0 -8
- package/dist/services/cache.test.d.ts.map +0 -1
- package/dist/services/cache.test.js +0 -267
- package/dist/services/cache.test.js.map +0 -1
- package/dist/services/compliance-validator.d.ts.map +0 -1
- package/dist/services/compliance-validator.js.map +0 -1
- package/dist/services/config.d.ts.map +0 -1
- package/dist/services/config.js.map +0 -1
- package/dist/services/display-protocol.d.ts.map +0 -1
- package/dist/services/display-protocol.js.map +0 -1
- package/dist/services/effect-tracker.d.ts.map +0 -1
- package/dist/services/effect-tracker.js.map +0 -1
- package/dist/services/embedding.d.ts.map +0 -1
- package/dist/services/embedding.js.map +0 -1
- package/dist/services/file-lock.d.ts.map +0 -1
- package/dist/services/file-lock.js.map +0 -1
- package/dist/services/gitmem-dir.d.ts.map +0 -1
- package/dist/services/gitmem-dir.js.map +0 -1
- package/dist/services/local-file-storage.d.ts.map +0 -1
- package/dist/services/local-file-storage.js.map +0 -1
- package/dist/services/local-vector-search.d.ts.map +0 -1
- package/dist/services/local-vector-search.js.map +0 -1
- package/dist/services/metrics.d.ts.map +0 -1
- package/dist/services/metrics.js.map +0 -1
- package/dist/services/session-state.d.ts.map +0 -1
- package/dist/services/session-state.js.map +0 -1
- package/dist/services/startup.d.ts.map +0 -1
- package/dist/services/startup.js.map +0 -1
- package/dist/services/storage.d.ts.map +0 -1
- package/dist/services/storage.js.map +0 -1
- package/dist/services/supabase-client.d.ts.map +0 -1
- package/dist/services/supabase-client.js.map +0 -1
- package/dist/services/thread-dedup.d.ts.map +0 -1
- package/dist/services/thread-dedup.js.map +0 -1
- package/dist/services/thread-manager.d.ts.map +0 -1
- package/dist/services/thread-manager.js.map +0 -1
- package/dist/services/thread-suggestions.d.ts.map +0 -1
- package/dist/services/thread-suggestions.js.map +0 -1
- package/dist/services/thread-supabase.d.ts.map +0 -1
- package/dist/services/thread-supabase.js.map +0 -1
- package/dist/services/thread-vitality.d.ts.map +0 -1
- package/dist/services/thread-vitality.js.map +0 -1
- package/dist/services/tier.d.ts.map +0 -1
- package/dist/services/tier.js.map +0 -1
- package/dist/services/timezone.d.ts.map +0 -1
- package/dist/services/timezone.js.map +0 -1
- package/dist/services/transcript-chunker.d.ts.map +0 -1
- package/dist/services/transcript-chunker.js.map +0 -1
- package/dist/services/triple-writer.d.ts.map +0 -1
- package/dist/services/triple-writer.js.map +0 -1
- package/dist/services/variant-assignment.d.ts.map +0 -1
- package/dist/services/variant-assignment.js.map +0 -1
- package/dist/services/variant-generation.d.ts.map +0 -1
- package/dist/services/variant-generation.js.map +0 -1
- package/dist/tools/absorb-observations.d.ts.map +0 -1
- package/dist/tools/absorb-observations.js.map +0 -1
- package/dist/tools/analyze.d.ts.map +0 -1
- package/dist/tools/analyze.js.map +0 -1
- package/dist/tools/archive-learning.d.ts.map +0 -1
- package/dist/tools/archive-learning.js.map +0 -1
- package/dist/tools/cleanup-threads.d.ts.map +0 -1
- package/dist/tools/cleanup-threads.js.map +0 -1
- package/dist/tools/confirm-scars.d.ts.map +0 -1
- package/dist/tools/confirm-scars.js.map +0 -1
- package/dist/tools/create-decision.d.ts.map +0 -1
- package/dist/tools/create-decision.js.map +0 -1
- package/dist/tools/create-learning.d.ts.map +0 -1
- package/dist/tools/create-learning.js.map +0 -1
- package/dist/tools/create-thread.d.ts.map +0 -1
- package/dist/tools/create-thread.js.map +0 -1
- package/dist/tools/definitions.d.ts.map +0 -1
- package/dist/tools/definitions.js.map +0 -1
- package/dist/tools/dismiss-suggestion.d.ts.map +0 -1
- package/dist/tools/dismiss-suggestion.js.map +0 -1
- package/dist/tools/get-transcript.d.ts.map +0 -1
- package/dist/tools/get-transcript.js.map +0 -1
- package/dist/tools/graph-traverse.d.ts.map +0 -1
- package/dist/tools/graph-traverse.js.map +0 -1
- package/dist/tools/list-threads.d.ts.map +0 -1
- package/dist/tools/list-threads.js.map +0 -1
- package/dist/tools/log.d.ts.map +0 -1
- package/dist/tools/log.js.map +0 -1
- package/dist/tools/prepare-context.d.ts.map +0 -1
- package/dist/tools/prepare-context.js.map +0 -1
- package/dist/tools/promote-suggestion.d.ts.map +0 -1
- package/dist/tools/promote-suggestion.js.map +0 -1
- package/dist/tools/recall.d.ts.map +0 -1
- package/dist/tools/recall.js.map +0 -1
- package/dist/tools/recall.test.d.ts +0 -5
- package/dist/tools/recall.test.d.ts.map +0 -1
- package/dist/tools/recall.test.js +0 -155
- package/dist/tools/recall.test.js.map +0 -1
- package/dist/tools/record-scar-usage-batch.d.ts.map +0 -1
- package/dist/tools/record-scar-usage-batch.js.map +0 -1
- package/dist/tools/record-scar-usage.d.ts.map +0 -1
- package/dist/tools/record-scar-usage.js.map +0 -1
- package/dist/tools/resolve-thread.d.ts.map +0 -1
- package/dist/tools/resolve-thread.js.map +0 -1
- package/dist/tools/save-transcript.d.ts.map +0 -1
- package/dist/tools/save-transcript.js.map +0 -1
- package/dist/tools/search-transcripts.d.ts.map +0 -1
- package/dist/tools/search-transcripts.js.map +0 -1
- package/dist/tools/search.d.ts.map +0 -1
- package/dist/tools/search.js.map +0 -1
- package/dist/tools/session-close.d.ts.map +0 -1
- package/dist/tools/session-close.js.map +0 -1
- package/dist/tools/session-start.d.ts.map +0 -1
- package/dist/tools/session-start.js.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/index.js.map +0 -1
- package/hooks/tests/test-hooks.sh +0 -577
|
@@ -4,14 +4,14 @@
|
|
|
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
|
*/
|
|
11
11
|
export const TOOLS = [
|
|
12
12
|
{
|
|
13
13
|
name: "recall",
|
|
14
|
-
description: "Check institutional memory for relevant scars before taking action. Returns matching scars and their lessons.
|
|
14
|
+
description: "Check institutional memory for relevant scars before taking action. Returns matching scars and their lessons. Integrates variant assignment when issue_id provided.",
|
|
15
15
|
inputSchema: {
|
|
16
16
|
type: "object",
|
|
17
17
|
properties: {
|
|
@@ -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",
|
|
@@ -29,7 +29,11 @@ export const TOOLS = [
|
|
|
29
29
|
},
|
|
30
30
|
issue_id: {
|
|
31
31
|
type: "string",
|
|
32
|
-
description: "Linear issue identifier for variant assignment (e.g., '
|
|
32
|
+
description: "Linear issue identifier for variant assignment (e.g., 'PROJ-123'). When provided, scars with variants will be randomly assigned and formatted accordingly.",
|
|
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).",
|
|
33
37
|
},
|
|
34
38
|
},
|
|
35
39
|
required: ["plan"],
|
|
@@ -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
|
},
|
|
@@ -76,12 +85,12 @@ export const TOOLS = [
|
|
|
76
85
|
properties: {
|
|
77
86
|
agent_identity: {
|
|
78
87
|
type: "string",
|
|
79
|
-
enum: ["
|
|
88
|
+
enum: ["cli", "desktop", "autonomous", "local", "cloud"],
|
|
80
89
|
description: "Override agent identity (auto-detects if not provided)",
|
|
81
90
|
},
|
|
82
91
|
linear_issue: {
|
|
83
92
|
type: "string",
|
|
84
|
-
description: "Current Linear issue identifier (e.g.,
|
|
93
|
+
description: "Current Linear issue identifier (e.g., PROJ-123)",
|
|
85
94
|
},
|
|
86
95
|
issue_title: {
|
|
87
96
|
type: "string",
|
|
@@ -98,11 +107,11 @@ 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",
|
|
105
|
-
description: "Force create new session even if one already exists
|
|
114
|
+
description: "Force create new session even if one already exists",
|
|
106
115
|
},
|
|
107
116
|
},
|
|
108
117
|
},
|
|
@@ -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",
|
|
@@ -281,7 +290,7 @@ export const TOOLS = [
|
|
|
281
290
|
},
|
|
282
291
|
issue_identifier: {
|
|
283
292
|
type: "string",
|
|
284
|
-
description: "Linear issue identifier (e.g.,
|
|
293
|
+
description: "Linear issue identifier (e.g., PROJ-123)",
|
|
285
294
|
},
|
|
286
295
|
surfaced_at: {
|
|
287
296
|
type: "string",
|
|
@@ -310,7 +319,7 @@ export const TOOLS = [
|
|
|
310
319
|
},
|
|
311
320
|
agent: {
|
|
312
321
|
type: "string",
|
|
313
|
-
description: "Agent identity (
|
|
322
|
+
description: "Agent identity (e.g., cli, desktop, autonomous)",
|
|
314
323
|
},
|
|
315
324
|
variant_id: {
|
|
316
325
|
type: "string",
|
|
@@ -341,7 +350,7 @@ export const TOOLS = [
|
|
|
341
350
|
},
|
|
342
351
|
issue_identifier: {
|
|
343
352
|
type: "string",
|
|
344
|
-
description: "Linear issue identifier (e.g.,
|
|
353
|
+
description: "Linear issue identifier (e.g., PROJ-123)",
|
|
345
354
|
},
|
|
346
355
|
surfaced_at: {
|
|
347
356
|
type: "string",
|
|
@@ -370,7 +379,7 @@ export const TOOLS = [
|
|
|
370
379
|
},
|
|
371
380
|
agent: {
|
|
372
381
|
type: "string",
|
|
373
|
-
description: "Agent identity (
|
|
382
|
+
description: "Agent identity (e.g., cli, desktop, autonomous)",
|
|
374
383
|
},
|
|
375
384
|
},
|
|
376
385
|
required: ["scar_identifier", "surfaced_at", "reference_type", "reference_context"],
|
|
@@ -387,7 +396,7 @@ export const TOOLS = [
|
|
|
387
396
|
},
|
|
388
397
|
{
|
|
389
398
|
name: "save_transcript",
|
|
390
|
-
description: "Save full session transcript to storage for training data and post-mortems
|
|
399
|
+
description: "Save full session transcript to storage for training data and post-mortems",
|
|
391
400
|
inputSchema: {
|
|
392
401
|
type: "object",
|
|
393
402
|
properties: {
|
|
@@ -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"],
|
|
@@ -414,7 +423,7 @@ export const TOOLS = [
|
|
|
414
423
|
},
|
|
415
424
|
{
|
|
416
425
|
name: "get_transcript",
|
|
417
|
-
description: "Retrieve a session transcript from storage
|
|
426
|
+
description: "Retrieve a session transcript from storage",
|
|
418
427
|
inputSchema: {
|
|
419
428
|
type: "object",
|
|
420
429
|
properties: {
|
|
@@ -446,14 +455,14 @@ 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"],
|
|
453
462
|
},
|
|
454
463
|
},
|
|
455
464
|
// ============================================================================
|
|
456
|
-
// SEARCH & LOG TOOLS
|
|
465
|
+
// SEARCH & LOG TOOLS
|
|
457
466
|
// ============================================================================
|
|
458
467
|
{
|
|
459
468
|
name: "search",
|
|
@@ -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",
|
|
@@ -519,7 +528,7 @@ export const TOOLS = [
|
|
|
519
528
|
},
|
|
520
529
|
},
|
|
521
530
|
// ============================================================================
|
|
522
|
-
// PREPARE CONTEXT
|
|
531
|
+
// PREPARE CONTEXT
|
|
523
532
|
// ============================================================================
|
|
524
533
|
{
|
|
525
534
|
name: "prepare_context",
|
|
@@ -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"],
|
|
@@ -583,7 +592,7 @@ export const TOOLS = [
|
|
|
583
592
|
required: ["observations"],
|
|
584
593
|
},
|
|
585
594
|
},
|
|
586
|
-
// --- Thread Lifecycle Tools (
|
|
595
|
+
// --- Thread Lifecycle Tools () ---
|
|
587
596
|
{
|
|
588
597
|
name: "list_threads",
|
|
589
598
|
description: "List open threads across recent sessions. Shows unresolved work items that carry over between sessions, with IDs for resolution. Use resolve_thread to mark threads as done.",
|
|
@@ -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
|
},
|
|
@@ -639,7 +648,7 @@ export const TOOLS = [
|
|
|
639
648
|
},
|
|
640
649
|
linear_issue: {
|
|
641
650
|
type: "string",
|
|
642
|
-
description: "Associated Linear issue (e.g.,
|
|
651
|
+
description: "Associated Linear issue (e.g., PROJ-123)",
|
|
643
652
|
},
|
|
644
653
|
},
|
|
645
654
|
required: ["text"],
|
|
@@ -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",
|
|
@@ -767,12 +776,12 @@ export const TOOLS = [
|
|
|
767
776
|
properties: {
|
|
768
777
|
agent_identity: {
|
|
769
778
|
type: "string",
|
|
770
|
-
enum: ["
|
|
779
|
+
enum: ["cli", "desktop", "autonomous", "local", "cloud"],
|
|
771
780
|
description: "Override agent identity (auto-detects if not provided)",
|
|
772
781
|
},
|
|
773
782
|
linear_issue: {
|
|
774
783
|
type: "string",
|
|
775
|
-
description: "Current Linear issue identifier (e.g.,
|
|
784
|
+
description: "Current Linear issue identifier (e.g., PROJ-123)",
|
|
776
785
|
},
|
|
777
786
|
issue_title: {
|
|
778
787
|
type: "string",
|
|
@@ -789,11 +798,11 @@ 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",
|
|
796
|
-
description: "Force create new session even if one already exists
|
|
805
|
+
description: "Force create new session even if one already exists",
|
|
797
806
|
},
|
|
798
807
|
},
|
|
799
808
|
},
|
|
@@ -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",
|
|
@@ -972,7 +981,7 @@ export const TOOLS = [
|
|
|
972
981
|
},
|
|
973
982
|
issue_identifier: {
|
|
974
983
|
type: "string",
|
|
975
|
-
description: "Linear issue identifier (e.g.,
|
|
984
|
+
description: "Linear issue identifier (e.g., PROJ-123)",
|
|
976
985
|
},
|
|
977
986
|
surfaced_at: {
|
|
978
987
|
type: "string",
|
|
@@ -1001,7 +1010,7 @@ export const TOOLS = [
|
|
|
1001
1010
|
},
|
|
1002
1011
|
agent: {
|
|
1003
1012
|
type: "string",
|
|
1004
|
-
description: "Agent identity (
|
|
1013
|
+
description: "Agent identity (e.g., cli, desktop, autonomous)",
|
|
1005
1014
|
},
|
|
1006
1015
|
variant_id: {
|
|
1007
1016
|
type: "string",
|
|
@@ -1032,7 +1041,7 @@ export const TOOLS = [
|
|
|
1032
1041
|
},
|
|
1033
1042
|
issue_identifier: {
|
|
1034
1043
|
type: "string",
|
|
1035
|
-
description: "Linear issue identifier (e.g.,
|
|
1044
|
+
description: "Linear issue identifier (e.g., PROJ-123)",
|
|
1036
1045
|
},
|
|
1037
1046
|
surfaced_at: {
|
|
1038
1047
|
type: "string",
|
|
@@ -1061,7 +1070,7 @@ export const TOOLS = [
|
|
|
1061
1070
|
},
|
|
1062
1071
|
agent: {
|
|
1063
1072
|
type: "string",
|
|
1064
|
-
description: "Agent identity (
|
|
1073
|
+
description: "Agent identity (e.g., cli, desktop, autonomous)",
|
|
1065
1074
|
},
|
|
1066
1075
|
},
|
|
1067
1076
|
required: ["scar_identifier", "surfaced_at", "reference_type", "reference_context"],
|
|
@@ -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"],
|
|
@@ -1170,7 +1179,7 @@ export const TOOLS = [
|
|
|
1170
1179
|
required: ["query"],
|
|
1171
1180
|
},
|
|
1172
1181
|
},
|
|
1173
|
-
// gitmem-search
|
|
1182
|
+
// gitmem-search
|
|
1174
1183
|
{
|
|
1175
1184
|
name: "gitmem-search",
|
|
1176
1185
|
description: "gitmem-search (search) - Search institutional memory by query (exploration, no side effects)",
|
|
@@ -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",
|
|
@@ -1203,7 +1212,7 @@ export const TOOLS = [
|
|
|
1203
1212
|
required: ["query"],
|
|
1204
1213
|
},
|
|
1205
1214
|
},
|
|
1206
|
-
// gitmem-log
|
|
1215
|
+
// gitmem-log
|
|
1207
1216
|
{
|
|
1208
1217
|
name: "gitmem-log",
|
|
1209
1218
|
description: "gitmem-log (log) - List recent learnings chronologically",
|
|
@@ -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",
|
|
@@ -1235,7 +1244,7 @@ export const TOOLS = [
|
|
|
1235
1244
|
},
|
|
1236
1245
|
},
|
|
1237
1246
|
},
|
|
1238
|
-
// gitmem-pc (prepare_context)
|
|
1247
|
+
// gitmem-pc (prepare_context)
|
|
1239
1248
|
{
|
|
1240
1249
|
name: "gitmem-pc",
|
|
1241
1250
|
description: "gitmem-pc (prepare_context) - Generate portable memory payload for sub-agent injection",
|
|
@@ -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"],
|
|
@@ -1293,7 +1302,7 @@ export const TOOLS = [
|
|
|
1293
1302
|
required: ["observations"],
|
|
1294
1303
|
},
|
|
1295
1304
|
},
|
|
1296
|
-
// gitmem-lt (list_threads) —
|
|
1305
|
+
// gitmem-lt (list_threads) —
|
|
1297
1306
|
{
|
|
1298
1307
|
name: "gitmem-lt",
|
|
1299
1308
|
description: "gitmem-lt (list_threads) - List open threads across sessions",
|
|
@@ -1306,7 +1315,7 @@ export const TOOLS = [
|
|
|
1306
1315
|
},
|
|
1307
1316
|
},
|
|
1308
1317
|
},
|
|
1309
|
-
// gitmem-rt (resolve_thread) —
|
|
1318
|
+
// gitmem-rt (resolve_thread) —
|
|
1310
1319
|
{
|
|
1311
1320
|
name: "gitmem-rt",
|
|
1312
1321
|
description: "gitmem-rt (resolve_thread) - Mark a thread as resolved",
|
|
@@ -1391,12 +1400,12 @@ export const TOOLS = [
|
|
|
1391
1400
|
properties: {
|
|
1392
1401
|
agent_identity: {
|
|
1393
1402
|
type: "string",
|
|
1394
|
-
enum: ["
|
|
1403
|
+
enum: ["cli", "desktop", "autonomous", "local", "cloud"],
|
|
1395
1404
|
description: "Override agent identity (auto-detects if not provided)",
|
|
1396
1405
|
},
|
|
1397
1406
|
linear_issue: {
|
|
1398
1407
|
type: "string",
|
|
1399
|
-
description: "Current Linear issue identifier (e.g.,
|
|
1408
|
+
description: "Current Linear issue identifier (e.g., PROJ-123)",
|
|
1400
1409
|
},
|
|
1401
1410
|
issue_title: {
|
|
1402
1411
|
type: "string",
|
|
@@ -1413,11 +1422,11 @@ 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",
|
|
1420
|
-
description: "Force create new session even if one already exists
|
|
1429
|
+
description: "Force create new session even if one already exists",
|
|
1421
1430
|
},
|
|
1422
1431
|
},
|
|
1423
1432
|
},
|
|
@@ -1548,13 +1557,13 @@ 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"],
|
|
1555
1564
|
},
|
|
1556
1565
|
},
|
|
1557
|
-
// gm-search
|
|
1566
|
+
// gm-search
|
|
1558
1567
|
{
|
|
1559
1568
|
name: "gm-search",
|
|
1560
1569
|
description: "gm-search (search) - Search institutional memory by query",
|
|
@@ -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",
|
|
@@ -1587,7 +1596,7 @@ export const TOOLS = [
|
|
|
1587
1596
|
required: ["query"],
|
|
1588
1597
|
},
|
|
1589
1598
|
},
|
|
1590
|
-
// gm-log
|
|
1599
|
+
// gm-log
|
|
1591
1600
|
{
|
|
1592
1601
|
name: "gm-log",
|
|
1593
1602
|
description: "gm-log (log) - List recent learnings chronologically",
|
|
@@ -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",
|
|
@@ -1619,7 +1628,7 @@ export const TOOLS = [
|
|
|
1619
1628
|
},
|
|
1620
1629
|
},
|
|
1621
1630
|
},
|
|
1622
|
-
// gm-pc (prepare_context)
|
|
1631
|
+
// gm-pc (prepare_context)
|
|
1623
1632
|
{
|
|
1624
1633
|
name: "gm-pc",
|
|
1625
1634
|
description: "gm-pc (prepare_context) - Generate portable memory payload for sub-agents",
|
|
@@ -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"],
|
|
@@ -1677,7 +1686,7 @@ export const TOOLS = [
|
|
|
1677
1686
|
required: ["observations"],
|
|
1678
1687
|
},
|
|
1679
1688
|
},
|
|
1680
|
-
// gm-threads (list_threads) —
|
|
1689
|
+
// gm-threads (list_threads) —
|
|
1681
1690
|
{
|
|
1682
1691
|
name: "gm-threads",
|
|
1683
1692
|
description: "gm-threads (list_threads) - List open threads",
|
|
@@ -1690,7 +1699,7 @@ export const TOOLS = [
|
|
|
1690
1699
|
},
|
|
1691
1700
|
},
|
|
1692
1701
|
},
|
|
1693
|
-
// gm-resolve (resolve_thread) —
|
|
1702
|
+
// gm-resolve (resolve_thread) —
|
|
1694
1703
|
{
|
|
1695
1704
|
name: "gm-resolve",
|
|
1696
1705
|
description: "gm-resolve (resolve_thread) - Resolve a thread",
|
|
@@ -1765,7 +1774,7 @@ export const TOOLS = [
|
|
|
1765
1774
|
},
|
|
1766
1775
|
},
|
|
1767
1776
|
// ============================================================================
|
|
1768
|
-
// ANALYTICS TOOLS
|
|
1777
|
+
// ANALYTICS TOOLS
|
|
1769
1778
|
// ============================================================================
|
|
1770
1779
|
{
|
|
1771
1780
|
name: "analyze",
|
|
@@ -1784,11 +1793,11 @@ 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",
|
|
1791
|
-
description: "Filter by agent identity (e.g.,
|
|
1800
|
+
description: "Filter by agent identity (e.g., cli, desktop, autonomous)",
|
|
1792
1801
|
},
|
|
1793
1802
|
format: {
|
|
1794
1803
|
type: "string",
|
|
@@ -1798,7 +1807,7 @@ export const TOOLS = [
|
|
|
1798
1807
|
},
|
|
1799
1808
|
},
|
|
1800
1809
|
},
|
|
1801
|
-
// gitmem-analyze alias
|
|
1810
|
+
// gitmem-analyze alias
|
|
1802
1811
|
{
|
|
1803
1812
|
name: "gitmem-analyze",
|
|
1804
1813
|
description: "gitmem-analyze (analyze) - Session analytics. Returns formatted markdown by default.",
|
|
@@ -1816,11 +1825,11 @@ 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",
|
|
1823
|
-
description: "Filter by agent identity (e.g.,
|
|
1832
|
+
description: "Filter by agent identity (e.g., cli, desktop, autonomous)",
|
|
1824
1833
|
},
|
|
1825
1834
|
format: {
|
|
1826
1835
|
type: "string",
|
|
@@ -1830,7 +1839,7 @@ export const TOOLS = [
|
|
|
1830
1839
|
},
|
|
1831
1840
|
},
|
|
1832
1841
|
},
|
|
1833
|
-
// gm-analyze ultra-short alias
|
|
1842
|
+
// gm-analyze ultra-short alias
|
|
1834
1843
|
{
|
|
1835
1844
|
name: "gm-analyze",
|
|
1836
1845
|
description: "gm-analyze (analyze) - Session analytics. Returns formatted markdown by default.",
|
|
@@ -1848,11 +1857,11 @@ 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",
|
|
1855
|
-
description: "Filter by agent identity (e.g.,
|
|
1864
|
+
description: "Filter by agent identity (e.g., cli, desktop, autonomous)",
|
|
1856
1865
|
},
|
|
1857
1866
|
format: {
|
|
1858
1867
|
type: "string",
|
|
@@ -1871,7 +1880,7 @@ export const TOOLS = [
|
|
|
1871
1880
|
},
|
|
1872
1881
|
},
|
|
1873
1882
|
// ============================================================================
|
|
1874
|
-
// CACHE MANAGEMENT TOOLS
|
|
1883
|
+
// CACHE MANAGEMENT TOOLS
|
|
1875
1884
|
// ============================================================================
|
|
1876
1885
|
{
|
|
1877
1886
|
name: "gitmem-cache-status",
|
|
@@ -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
|
},
|
|
@@ -1964,7 +1973,7 @@ export const TOOLS = [
|
|
|
1964
1973
|
},
|
|
1965
1974
|
reason: {
|
|
1966
1975
|
type: "string",
|
|
1967
|
-
description: "Optional reason for archiving (e.g., 'superseded by
|
|
1976
|
+
description: "Optional reason for archiving (e.g., 'superseded by PROJ-123', 'no longer relevant')",
|
|
1968
1977
|
},
|
|
1969
1978
|
},
|
|
1970
1979
|
required: ["id"],
|
|
@@ -2009,7 +2018,7 @@ export const TOOLS = [
|
|
|
2009
2018
|
// --- Knowledge Graph Traversal (Phase 3) ---
|
|
2010
2019
|
{
|
|
2011
2020
|
name: "graph_traverse",
|
|
2012
|
-
description: "Traverse the knowledge graph over institutional memory triples. Answers: 'show me everything connected to
|
|
2021
|
+
description: "Traverse the knowledge graph over institutional memory triples. Answers: 'show me everything connected to this issue', 'what did this agent produce', 'trace this decision back', 'which issues produced the most learnings'. Four lenses: connected_to, produced_by, provenance, stats.",
|
|
2013
2022
|
inputSchema: {
|
|
2014
2023
|
type: "object",
|
|
2015
2024
|
properties: {
|
|
@@ -2020,7 +2029,7 @@ export const TOOLS = [
|
|
|
2020
2029
|
},
|
|
2021
2030
|
node: {
|
|
2022
2031
|
type: "string",
|
|
2023
|
-
description: "Starting node. Examples: '
|
|
2032
|
+
description: "Starting node. Examples: 'PROJ-123', '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., '
|
|
2068
|
+
description: "Starting node (e.g., 'PROJ-123', '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
|
|
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
|
}
|
|
@@ -2152,7 +2190,9 @@ export function getRegisteredTools() {
|
|
|
2152
2190
|
if (GRAPH_TOOL_NAMES.has(tool.name)) {
|
|
2153
2191
|
return hasSupabase();
|
|
2154
2192
|
}
|
|
2155
|
-
|
|
2193
|
+
// archive_learning works on both free (local JSON) and pro (Supabase) tiers
|
|
2194
|
+
// Only gate the aliases
|
|
2195
|
+
if (ARCHIVE_TOOL_NAMES.has(tool.name) && tool.name !== "archive_learning") {
|
|
2156
2196
|
return hasSupabase();
|
|
2157
2197
|
}
|
|
2158
2198
|
return true;
|