@vheins/local-memory-mcp 0.5.7 → 0.5.9

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 (40) hide show
  1. package/dist/dashboard/public/assets/{index-KxrQ6fPK.css → index-4EORLHEB.css} +1 -1
  2. package/dist/dashboard/public/assets/{index-Lu37nzOi.js → index-CMo96uwE.js} +3 -3
  3. package/dist/dashboard/public/index.html +2 -2
  4. package/dist/dashboard/server.js +14 -0
  5. package/dist/dashboard/server.js.map +1 -1
  6. package/dist/mcp/completion.d.ts +2 -2
  7. package/dist/mcp/completion.d.ts.map +1 -1
  8. package/dist/mcp/completion.js +2 -2
  9. package/dist/mcp/completion.js.map +1 -1
  10. package/dist/mcp/prompts/definitions/architecture-design.md +23 -0
  11. package/dist/mcp/prompts/definitions/create-task.md +118 -0
  12. package/dist/mcp/prompts/definitions/documentation-sync.md +13 -0
  13. package/dist/mcp/prompts/definitions/fix-suggestion.md +27 -0
  14. package/dist/mcp/prompts/definitions/import-github-issues.md +23 -0
  15. package/dist/mcp/prompts/definitions/learning-retrospective.md +17 -0
  16. package/dist/mcp/prompts/definitions/memory-agent-core.md +39 -0
  17. package/dist/mcp/prompts/definitions/memory-guided-review.md +15 -0
  18. package/dist/mcp/prompts/definitions/memory-index-policy.md +17 -0
  19. package/dist/mcp/prompts/definitions/project-briefing.md +13 -0
  20. package/dist/mcp/prompts/definitions/review-and-audit.md +119 -0
  21. package/dist/mcp/prompts/definitions/root-cause-analysis.md +27 -0
  22. package/dist/mcp/prompts/definitions/security-triage.md +27 -0
  23. package/dist/mcp/prompts/definitions/senior-code-review.md +33 -0
  24. package/dist/mcp/prompts/definitions/session-planner.md +18 -0
  25. package/dist/mcp/prompts/definitions/task-management-guidelines.md +24 -0
  26. package/dist/mcp/prompts/definitions/task-memory-executor.md +54 -0
  27. package/dist/mcp/prompts/definitions/tech-affinity-scout.md +15 -0
  28. package/dist/mcp/prompts/definitions/technical-planning.md +20 -0
  29. package/dist/mcp/prompts/definitions/tool-usage-guidelines.md +22 -0
  30. package/dist/mcp/prompts/loader.d.ts +10 -0
  31. package/dist/mcp/prompts/loader.d.ts.map +1 -0
  32. package/dist/mcp/prompts/loader.js +31 -0
  33. package/dist/mcp/prompts/loader.js.map +1 -0
  34. package/dist/mcp/prompts/registry.d.ts +28 -331
  35. package/dist/mcp/prompts/registry.d.ts.map +1 -1
  36. package/dist/mcp/prompts/registry.js +63 -1051
  37. package/dist/mcp/prompts/registry.js.map +1 -1
  38. package/dist/mcp/tests/router.test.js +34 -22
  39. package/dist/mcp/tests/router.test.js.map +1 -1
  40. package/package.json +5 -3
@@ -0,0 +1,27 @@
1
+ ---
2
+ name: root-cause-analysis
3
+ description: Apply structured 5-Why analysis to trace bugs to their origin
4
+ arguments:
5
+ - name: tech_stack
6
+ description: Target technology stack
7
+ required: true
8
+ - name: bug_description
9
+ description: Observable symptom or bug behavior
10
+ required: true
11
+ - name: symptoms
12
+ description: Additional errors, logs, metrics
13
+ required: false
14
+ agent: Diagnostic Lead
15
+ ---
16
+ You are a senior software engineer conducting a root cause analysis for a bug in the current repository.
17
+
18
+ Tech stack: {{tech_stack}}
19
+ Bug description: {{bug_description}}
20
+ Symptoms: {{symptoms}}
21
+
22
+ Apply a full **5-Why analysis**:
23
+ 1. **Symptom Statement**: Technically restate the problem.
24
+ 2. **5-Why Causal Chain**: Trace from symptom to the core process/design/environmental failure.
25
+ 3. **Root Cause Statement**: "The root cause is [X] because [Y], which allowed [Z] to occur."
26
+ 4. **Fix Recommendation**: Address the root cause, not just the symptom.
27
+ 5. **Recurrence Prevention**: Suggest a monitoring or testing measure.
@@ -0,0 +1,27 @@
1
+ ---
2
+ name: security-triage
3
+ description: Assess security vulnerability reports for exploitability and prioritize remediation
4
+ arguments:
5
+ - name: tech_stack
6
+ description: Application stack
7
+ required: true
8
+ - name: vulnerability_report
9
+ description: Report details (CVE, SAST, etc.)
10
+ required: true
11
+ - name: codebase_context
12
+ description: Component usage context
13
+ required: false
14
+ agent: Security Engineer
15
+ ---
16
+ Act as a senior application security engineer triaging a vulnerability for the current repository.
17
+
18
+ Stack: {{tech_stack}}
19
+ Report: {{vulnerability_report}}
20
+ Codebase context: {{codebase_context}}
21
+
22
+ Please provide:
23
+ 1. **Vulnerability Classification**: Type, CVE, CVSS, and attack vector.
24
+ 2. **Exploitability Assessment**: Contextual reachability and realistic scenarios.
25
+ 3. **Impact Assessment**: Impact on Confidentiality, Integrity, and Availability.
26
+ 4. **Remediation Priority & Fix**: Concrete priority (P0-P3) and fix steps.
27
+ 5. **Verification**: How to test and verify the fix.
@@ -0,0 +1,33 @@
1
+ ---
2
+ name: senior-code-review
3
+ description: Performs a comprehensive production-readiness evaluation for the current repository context
4
+ arguments:
5
+ - name: tech_stack
6
+ description: Target tech stack (e.g., 'Node.js + Express')
7
+ required: true
8
+ - name: context
9
+ description: Production context (traffic, data sensitivity, SLA, conventions)
10
+ required: false
11
+ agent: Principal Reviewer
12
+ ---
13
+ Act as a principal software engineer performing a production-readiness review for the current repository.
14
+
15
+ Stack: {{tech_stack}}
16
+ Context: {{context}}
17
+
18
+ Please review the current code/changes against these 6 dimensions:
19
+ 1. **Error Handling Completeness**
20
+ 2. **Security** (Injection, Input validation, PII/Secrets)
21
+ 3. **Performance** (Time/Memory complexity, DB queries)
22
+ 4. **Observability** (Logging, Metrics, Tracing)
23
+ 5. **Test Coverage**
24
+ 6. **Documentation**
25
+
26
+ For each finding, provide:
27
+ - **Severity**: P0-P3
28
+ - **Dimension**: One of the above
29
+ - **Location**: Specific function/line
30
+ - **Problem**: What is wrong and why it matters
31
+ - **Fix**: Actionable recommendation
32
+
33
+ Produce a **Production Readiness Verdict**: READY | READY WITH MINOR FIXES | NOT READY
@@ -0,0 +1,18 @@
1
+ ---
2
+ name: session-planner
3
+ description: Break down a complex objective into atomic tasks for the current repository
4
+ arguments:
5
+ - name: objective
6
+ description: The high-level goal for this session
7
+ required: true
8
+ agent: Strategy Lead
9
+ ---
10
+ Our objective for today in the current repository is: '{{objective}}'.
11
+
12
+ Please act as a project manager and plan the execution:
13
+ 1. **Analyze**: Break this objective down into 3-7 small, atomic, and verifiable tasks.
14
+ 2. **Execute**: Use 'task-manage' with action='create' to add these to the local tracker for the current repo.
15
+ 3. **Hierarchy**: Use 'parent_id' or 'depends_on' if there is a clear order of operations.
16
+ 4. **Phases**: Group tasks into phases like 'research', 'implementation', and 'validation'.
17
+
18
+ Display the created plan to the user when done.
@@ -0,0 +1,24 @@
1
+ ---
2
+ name: task-management-guidelines
3
+ description: Best practices for task tracking and progress management
4
+ arguments: []
5
+ agent: Project Manager
6
+ ---
7
+ Guidelines for Task Management:
8
+
9
+ 1. task-manage:
10
+ - Use 'create' to break down complex user requests into actionable steps at the start of a session.
11
+ - Use 'phase' to group tasks (e.g., 'research', 'implementation', 'testing').
12
+ - Use 'priority' (1-5) to highlight critical path items.
13
+ - Use 'update' to mark progress (in_progress, completed, blocked).
14
+ - Use 'metadata' to store technical debt notes or implementation details.
15
+
16
+ 2. Resource & Tool Usage:
17
+ - MANDATORY: Always call '@vheins/local-memory-mcp tools task-list' at the very start of a new session to understand current progress and avoid duplicating work.
18
+ - Resource: You can also read 'tasks://current' for a filtered view of active tasks for the current repository.
19
+ - Coordinate: If a task is already 'in_progress', do not attempt to work on it unless specifically asked to collaborate.
20
+
21
+ 3. Workflow Integration:
22
+ - Plan first: Create tasks for the entire lifecycle (Research -> Strategy -> Execution -> Validation).
23
+ - Atomic Updates: Update the task status to 'in_progress' EXACTLY ONCE when you begin working on a task. Do NOT repeatedly update it to 'in_progress' before every tool call.
24
+ - Finalize: Only mark a task as 'completed' after successful validation (tests passed). If validation fails, do NOT immediately mark it as 'blocked' or 'pending'. You MUST iterate and fix the issues while keeping the task 'in_progress'. Only mark as 'blocked' if there is a hard dependency issue that completely prevents further progress.
@@ -0,0 +1,54 @@
1
+ ---
2
+ name: task-memory-executor
3
+ description: Execute all pending tasks for the current repository, updating status and storing handoffs in the task backlog.
4
+ arguments: []
5
+ agent: Task Executor
6
+ ---
7
+ # Skill: task-memory-executor
8
+
9
+ ## Purpose
10
+
11
+ You are tasked with executing all available tasks for the current repository.
12
+
13
+ ## Instructions
14
+
15
+ ---
16
+ description: Execute all pending tasks for the current repository
17
+ ---
18
+
19
+ Please follow this strict execution flow:
20
+
21
+ 1. **Identify Repository**: Determine the current repository name (e.g., from git config or workspace context).
22
+ 2. **Fetch Tasks**: Call '@vheins/local-memory-mcp tools task-list' for the identified repository for statuses 'pending' and 'in_progress'.
23
+ 3. **Filter Stale**: Identify 'in_progress' tasks that are **stale** (stale is defined as > 30 Minutes without update, often because an agent stopped or crashed).
24
+ 4. **Single-Task Execution Loop (STRICT)**: You MUST process tasks EXACTLY ONE AT A TIME. DO NOT update multiple tasks to 'in_progress' simultaneously. For the SINGLE task you select:
25
+ - **Start**: Call '@vheins/local-memory-mcp tools task-update' to set status='in_progress' for this task ONLY. Provide current agent/role information in the metadata.
26
+ - **Execute**: Perform the work described in the task title and description.
27
+ - **Inspect Codebase Logic & Documentation First (MANDATORY)**: Before marking anything done, inspect the relevant code paths, call sites, configs, tests, and affected modules in the repository. Also read the relevant documentation, as it might need to be updated or fixed. Do not infer correctness from file presence alone.
28
+ - **Validate Behavior (MANDATORY)**: Ensure the implementation logic satisfies the task intent and follows project standards. Validation must focus on behavior, control flow, data flow, and integration points, not just whether a file/class/function exists.
29
+ - **Complete Only With Evidence**: Call '@vheins/local-memory-mcp tools task-update' to set status='completed' only after recording concrete evidence in the 'comment' field. The comment must include: files inspected, logic verified, checks/tests run (or why they could not run), and the exact reason the task is considered complete.
30
+ - **Compact Context**: Summarize key learnings, decisions, and patterns discovered during task execution. Store critical insights as memory entries (type: 'code_fact' or 'pattern') using '@vheins/local-memory-mcp tools memory-store'.
31
+ - **Commit**: Perform an atomic git commit and push for the changes made in the task.
32
+ - **Handoff**: Use '@vheins/local-memory-mcp tools task-update' to document **detailed fix steps**, milestones, project-specific knowledge gained during execution, and validation evidence. If complex, decompose into smaller tasks using '@vheins/local-memory-mcp tools task-create'.
33
+ - **Next**: Repeat this loop for the next 'pending' or 'stale' task.
34
+ 5. **Backlog Migration**: Once all 'pending' and 'in_progress' tasks are completed or blocked, fetch tasks with status='backlog'. If any exist, select up to 20 tasks (prioritizing by priority field) and update their status to 'pending' using '@vheins/local-memory-mcp tools task-update' to ensure the next agent has work ready.
35
+ 6. **Report**: After processing all tasks, provide a summary of your progress.
36
+
37
+ ## Mandatory Validation Rules
38
+
39
+ Before a task can be marked `completed`, the agent **must** satisfy all applicable rules below:
40
+
41
+ 1. **Read the implementation, not just the filesystem**
42
+ - Inspect the actual source files related to the task.
43
+ - Trace the relevant logic path end-to-end using code search and file reads.
44
+ - Verify how the changed code is invoked, not just that it exists.
45
+
46
+ 2. **Confirm behavior against task intent**
47
+ - Compare the implementation against the task title, description, acceptance criteria, or bug report.
48
+ - Check that the business logic is actually implemented and wired correctly.
49
+ - If the task affects existing behavior, inspect adjacent modules and integration points for regressions.
50
+
51
+ 3. **Use concrete verification**
52
+ - Run targeted tests, linters, type checks, or validation scripts if available.
53
+ - If automated tests cannot be run, perform a manual logic audit of all affected paths.
54
+ - Document the specific verification method used in the task completion comment.
@@ -0,0 +1,15 @@
1
+ ---
2
+ name: tech-affinity-scout
3
+ description: Find relevant best practices from other projects with similar tech for the current repository
4
+ arguments:
5
+ - name: tags
6
+ description: Comma-separated tech tags (e.g., 'react, tailwind')
7
+ required: true
8
+ agent: Tech Scout
9
+ ---
10
+ I am working on the current repository using [{{tags}}].
11
+
12
+ Please scout for relevant knowledge from other projects:
13
+ 1. **Search**: Use '@vheins/local-memory-mcp tools memory-search' with current_tags=[{{tags}}] and include_archived=false.
14
+ 2. **Filter**: Look for 'patterns' or 'decisions' from other repositories that might apply here.
15
+ 3. **Translate**: Explain how these external best practices can be adapted to our current project context.
@@ -0,0 +1,20 @@
1
+ ---
2
+ name: technical-planning
3
+ description: Define the technical blueprint for a new feature or product
4
+ arguments:
5
+ - name: objective
6
+ description: The high-level goal for the plan
7
+ required: true
8
+ agent: Technical Architect
9
+ ---
10
+ You are tasked with creating a technical blueprint for the following objective in the current repository: '{{objective}}'.
11
+
12
+ Please cover:
13
+ 1. **Tech Stack**: Confirm or select the stack.
14
+ 2. **Architecture**: Component layout and data flow.
15
+ 3. **Domain Model**: Entities, value objects, and events.
16
+ 4. **Database Schema**: Normalized tables and relationships.
17
+ 5. **API Contracts**: Endpoint definitions (request/response/errors).
18
+ 6. **Roadmap & Sprints**: Phased delivery plan.
19
+
20
+ Present a cohesive technical design and obtain feedback before proceeding to implementation.
@@ -0,0 +1,22 @@
1
+ ---
2
+ name: tool-usage-guidelines
3
+ description: Prevent tool abuse and ensure data integrity
4
+ arguments: []
5
+ agent: System Architect
6
+ ---
7
+ Guidelines for specific tools:
8
+
9
+ 1. memory-store:
10
+ - Always include 'tags' for tech-stack identification.
11
+ - Use 'is_global: true' only for universal preferences (e.g., "Always use tabs").
12
+ - Use 'supersedes' when overriding a previous decision.
13
+
14
+ 2. memory-search:
15
+ - Always provide 'current_file_path' for folder-based ranking boost.
16
+ - Provide 'current_tags' to pull relevant best-practices from other projects.
17
+
18
+ 3. memory-acknowledge:
19
+ - Mandatory feedback loop. Report 'used' if the memory helped, or 'contradictory' if you found an issue.
20
+
21
+ 4. memory-update:
22
+ - Use this to keep facts current. Do not create duplicates.
@@ -0,0 +1,10 @@
1
+ export interface LoadedPrompt {
2
+ name: string;
3
+ description: string;
4
+ arguments: any[];
5
+ content: string;
6
+ agent?: string;
7
+ }
8
+ export declare function listPromptFiles(): string[];
9
+ export declare function loadPromptFromMarkdown(name: string): LoadedPrompt;
10
+ //# sourceMappingURL=loader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../../src/mcp/prompts/loader.ts"],"names":[],"mappings":"AASA,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,GAAG,EAAE,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,eAAe,IAAI,MAAM,EAAE,CAM1C;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY,CAejE"}
@@ -0,0 +1,31 @@
1
+ import fs from "fs";
2
+ import path from "path";
3
+ import { fileURLToPath } from "url";
4
+ import matter from "gray-matter";
5
+ const __filename = fileURLToPath(import.meta.url);
6
+ const __dirname = path.dirname(__filename);
7
+ const PROMPT_DIR = path.join(__dirname, "definitions");
8
+ export function listPromptFiles() {
9
+ if (!fs.existsSync(PROMPT_DIR))
10
+ return [];
11
+ return fs.readdirSync(PROMPT_DIR)
12
+ .filter(file => file.endsWith(".md"))
13
+ .map(file => file.replace(/\.md$/, ""))
14
+ .sort();
15
+ }
16
+ export function loadPromptFromMarkdown(name) {
17
+ const filePath = path.join(PROMPT_DIR, `${name}.md`);
18
+ if (!fs.existsSync(filePath)) {
19
+ throw new Error(`Prompt file not found: ${filePath}`);
20
+ }
21
+ const fileContent = fs.readFileSync(filePath, "utf-8");
22
+ const { data, content } = matter(fileContent);
23
+ return {
24
+ name: data.name || name,
25
+ description: data.description || "",
26
+ arguments: data.arguments || [],
27
+ agent: data.agent,
28
+ content: content.trim()
29
+ };
30
+ }
31
+ //# sourceMappingURL=loader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loader.js","sourceRoot":"","sources":["../../../src/mcp/prompts/loader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,MAAM,MAAM,aAAa,CAAC;AAEjC,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAClD,MAAM,SAAS,GAAG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sqlite.js";
2
2
  import { SessionContext } from "../session.js";
3
- export declare const PROMPTS: {
4
- "memory-agent-core": {
5
- name: string;
6
- description: string;
7
- arguments: never[];
8
- messages: {
9
- role: string;
10
- content: {
11
- type: string;
12
- text: string;
13
- };
14
- }[];
15
- };
16
- "memory-index-policy": {
17
- name: string;
18
- description: string;
19
- arguments: never[];
20
- messages: {
21
- role: string;
22
- content: {
23
- type: string;
24
- text: string;
25
- };
26
- }[];
27
- };
28
- "tool-usage-guidelines": {
29
- name: string;
30
- description: string;
31
- arguments: never[];
32
- messages: {
33
- role: string;
34
- content: {
35
- type: string;
36
- text: string;
37
- };
38
- }[];
39
- };
40
- "task-management-guidelines": {
41
- name: string;
42
- description: string;
43
- arguments: never[];
44
- messages: {
45
- role: string;
46
- content: {
47
- type: string;
48
- text: string;
49
- };
50
- }[];
51
- };
52
- "import-github-issues": {
53
- name: string;
54
- description: string;
55
- arguments: never[];
56
- messages: {
57
- role: string;
58
- content: {
59
- type: string;
60
- text: string;
61
- };
62
- }[];
63
- };
64
- "project-briefing": {
65
- name: string;
66
- description: string;
67
- arguments: never[];
68
- messages: {
69
- role: string;
70
- content: {
71
- type: string;
72
- text: string;
73
- };
74
- }[];
75
- };
76
- "learning-retrospective": {
77
- name: string;
78
- description: string;
79
- arguments: {
80
- name: string;
81
- description: string;
82
- required: boolean;
83
- }[];
84
- messages: {
85
- role: string;
86
- content: {
87
- type: string;
88
- text: string;
89
- };
90
- }[];
91
- };
92
- "memory-guided-review": {
93
- name: string;
94
- description: string;
95
- arguments: {
96
- name: string;
97
- description: string;
98
- required: boolean;
99
- }[];
100
- messages: {
101
- role: string;
102
- content: {
103
- type: string;
104
- text: string;
105
- };
106
- }[];
107
- };
108
- "session-planner": {
109
- name: string;
110
- description: string;
111
- arguments: {
112
- name: string;
113
- description: string;
114
- required: boolean;
115
- }[];
116
- messages: {
117
- role: string;
118
- content: {
119
- type: string;
120
- text: string;
121
- };
122
- }[];
123
- };
124
- "tech-affinity-scout": {
125
- name: string;
126
- description: string;
127
- arguments: {
128
- name: string;
129
- description: string;
130
- required: boolean;
131
- }[];
132
- messages: {
133
- role: string;
134
- content: {
135
- type: string;
136
- text: string;
137
- };
138
- }[];
139
- };
140
- "documentation-sync": {
141
- name: string;
142
- description: string;
143
- arguments: never[];
144
- messages: {
145
- role: string;
146
- content: {
147
- type: string;
148
- text: string;
149
- };
150
- }[];
151
- };
152
- "task-memory-executor": {
153
- name: string;
154
- description: string;
155
- arguments: never[];
156
- messages: {
157
- role: string;
158
- content: {
159
- type: string;
160
- text: string;
161
- };
162
- }[];
163
- };
164
- "senior-code-review": {
165
- name: string;
166
- description: string;
167
- arguments: {
168
- name: string;
169
- description: string;
170
- required: boolean;
171
- }[];
172
- messages: {
173
- role: string;
174
- content: {
175
- type: string;
176
- text: string;
177
- };
178
- }[];
179
- };
180
- "fix-suggestion": {
181
- name: string;
182
- description: string;
183
- arguments: {
184
- name: string;
185
- description: string;
186
- required: boolean;
187
- }[];
188
- messages: {
189
- role: string;
190
- content: {
191
- type: string;
192
- text: string;
193
- };
194
- }[];
195
- };
196
- "root-cause-analysis": {
197
- name: string;
198
- description: string;
199
- arguments: {
200
- name: string;
201
- description: string;
202
- required: boolean;
203
- }[];
204
- messages: {
205
- role: string;
206
- content: {
207
- type: string;
208
- text: string;
209
- };
210
- }[];
211
- };
212
- "technical-planning": {
213
- name: string;
214
- description: string;
215
- arguments: {
216
- name: string;
217
- description: string;
218
- required: boolean;
219
- }[];
220
- messages: {
221
- role: string;
222
- content: {
223
- type: string;
224
- text: string;
225
- };
226
- }[];
227
- };
228
- "security-triage": {
229
- name: string;
230
- description: string;
231
- arguments: {
232
- name: string;
233
- description: string;
234
- required: boolean;
235
- }[];
236
- messages: {
237
- role: string;
238
- content: {
239
- type: string;
240
- text: string;
241
- };
242
- }[];
243
- };
244
- "architecture-design": {
245
- name: string;
246
- description: string;
247
- arguments: {
248
- name: string;
249
- description: string;
250
- required: boolean;
251
- }[];
252
- messages: {
253
- role: string;
254
- content: {
255
- type: string;
256
- text: string;
257
- };
258
- }[];
259
- };
260
- "create-task": {
261
- name: string;
262
- description: string;
263
- arguments: {
264
- name: string;
265
- description: string;
266
- required: boolean;
267
- }[];
268
- messages: {
269
- role: string;
270
- content: {
271
- type: string;
272
- text: string;
273
- };
274
- }[];
275
- };
276
- "review-audit": {
277
- name: string;
278
- description: string;
279
- arguments: {
280
- name: string;
281
- description: string;
282
- required: boolean;
283
- }[];
284
- messages: {
285
- role: string;
286
- content: {
287
- type: string;
288
- text: string;
289
- };
290
- }[];
291
- };
292
- };
293
- export type PromptArgument = {
294
- name: string;
295
- title?: string;
296
- description?: string;
297
- required?: boolean;
298
- };
299
- export type PromptMessage = {
300
- role: string;
301
- content: any;
302
- };
303
- export type PromptDefinition = {
304
- name: string;
305
- title?: string;
306
- description: string;
307
- arguments: PromptArgument[];
308
- messages: PromptMessage[];
309
- icons?: Array<{
310
- src: string;
311
- mimeType?: string;
312
- }>;
313
- };
314
- type PromptCatalogEntry = Omit<PromptDefinition, "messages">;
315
- export declare function listPrompts(db: SQLiteStore, session?: SessionContext, params?: {
316
- cursor?: string;
317
- limit?: number;
318
- }): {
319
- prompts: PromptCatalogEntry[];
320
- nextCursor: string | undefined;
321
- };
322
- export declare function getPrompt(name: string, args: Record<string, unknown> | undefined, db: SQLiteStore, session?: SessionContext): PromptDefinition;
323
- export declare function completePromptArgument(promptName: string, argumentName: string, argumentValue: string, contextArguments: Record<string, unknown>, dataSources: {
324
- repos: string[];
325
- tags: string[];
326
- filePaths: string[];
327
- tasks: Array<{
328
- id: string;
329
- task_code: string;
330
- title: string;
331
- }>;
332
- }): string[];
333
- export {};
3
+ export declare const PROMPTS: Record<string, any>;
4
+ /**
5
+ * Handles MCP 'prompts/list'
6
+ */
7
+ export declare function listPrompts(db: SQLiteStore, session?: SessionContext, params?: any): Promise<{
8
+ prompts: {
9
+ name: any;
10
+ description: any;
11
+ arguments: any;
12
+ metadata: {
13
+ agent: any;
14
+ } | undefined;
15
+ }[];
16
+ }>;
17
+ /**
18
+ * Handles MCP 'prompts/get'
19
+ */
20
+ export declare function getPrompt(name: string, args: Record<string, string> | undefined, db: SQLiteStore, session?: SessionContext): Promise<{
21
+ description: any;
22
+ messages: any;
23
+ metadata: {
24
+ agent: any;
25
+ } | undefined;
26
+ }>;
27
+ /**
28
+ * Handles completion for MCP 'prompts/get' arguments
29
+ */
30
+ export declare function completePromptArgument(name: string, argName: string, value: string, contextArguments: Record<string, unknown>, dataSources: any): Promise<string[]>;
334
31
  //# sourceMappingURL=registry.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../src/mcp/prompts/registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAwB,MAAM,eAAe,CAAC;AAIrE,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuxBnB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,GAAG,CAAC;CACd,CAAC;AAEF,MAAM,MAA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