@vheins/local-memory-mcp 0.10.0 → 0.10.1
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/dist/{chunk-VWOKV6W2.js → chunk-Z6FENX4V.js} +5 -4
- package/dist/dashboard/server.js +1 -1
- package/dist/mcp/server.js +1 -1
- package/dist/prompts/create-task.md +1 -1
- package/dist/prompts/memory-agent-core.md +1 -1
- package/dist/prompts/project-briefing.md +1 -1
- package/dist/prompts/review-and-audit.md +1 -1
- package/dist/prompts/session-planner.md +1 -1
- package/dist/prompts/task-management-guidelines.md +1 -1
- package/dist/prompts/task-memory-executor.md +1 -1
- package/dist/prompts/tool-usage-guidelines.md +1 -1
- package/package.json +1 -1
|
@@ -3,8 +3,8 @@ import { fileURLToPath } from "url";
|
|
|
3
3
|
import path from "path";
|
|
4
4
|
var __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
5
5
|
var pkgVersion = "0.1.0";
|
|
6
|
-
if ("0.10.
|
|
7
|
-
pkgVersion = "0.10.
|
|
6
|
+
if ("0.10.1") {
|
|
7
|
+
pkgVersion = "0.10.1";
|
|
8
8
|
} else {
|
|
9
9
|
let searchDir = __dirname;
|
|
10
10
|
for (let i = 0; i < 5; i++) {
|
|
@@ -31,7 +31,7 @@ Use at the START of every session and before any implementation work:
|
|
|
31
31
|
1. Call \`task-list\` to sync active/pending tasks for the current repository.
|
|
32
32
|
2. Call \`handoff-list\` to check pending context transfers. Close stale handoffs with \`handoff-update\`.
|
|
33
33
|
3. Call \`memory-search\` and \`memory-synthesize\` to hydrate architectural context before coding.
|
|
34
|
-
4. Call \`standard-search\`
|
|
34
|
+
4. Call \`standard-search\` before any code edit, test edit, refactor, migration, or implementation decision. This is mandatory even for small tasks; use the task intent, affected files, inferred language, stack, and repo as filters. If no relevant standards are returned, continue and state that no applicable standards were found.
|
|
35
35
|
|
|
36
36
|
## Core Workflows
|
|
37
37
|
|
|
@@ -46,6 +46,7 @@ Use at the START of every session and before any implementation work:
|
|
|
46
46
|
- Completing a task auto-releases claims and expires linked handoffs.
|
|
47
47
|
|
|
48
48
|
**Standards**: \`standard-search\` \u2192 \`standard-store\`
|
|
49
|
+
- \`standard-search\` is the pre-implementation gate for code, tests, refactors, migrations, and implementation decisions.
|
|
49
50
|
- One rule per entry. Treat as normative implementation contracts, not docs summaries.
|
|
50
51
|
|
|
51
52
|
**Handoffs/Claims**: \`handoff-list\` \u2192 \`handoff-create\` / \`handoff-update\` | \`task-claim\` / \`claim-release\`
|
|
@@ -4707,7 +4708,7 @@ var TOOL_DEFINITIONS = [
|
|
|
4707
4708
|
{
|
|
4708
4709
|
name: "standard-search",
|
|
4709
4710
|
title: "Standard Search",
|
|
4710
|
-
description: "
|
|
4711
|
+
description: "MANDATORY PRE-IMPLEMENTATION CHECK: Call before any code edit, test edit, refactor, migration, or implementation decision to find applicable coding standards. Returns a compact pointer table; use `standard-detail` for relevant results. If no relevant standards are returned, continue and state that no applicable standards were found.",
|
|
4711
4712
|
annotations: {
|
|
4712
4713
|
readOnlyHint: true,
|
|
4713
4714
|
idempotentHint: true,
|
package/dist/dashboard/server.js
CHANGED
package/dist/mcp/server.js
CHANGED
|
@@ -18,7 +18,7 @@ ONLY call MCP tools. No prose, no code, no plans outside MCP.
|
|
|
18
18
|
|
|
19
19
|
## 1. PRE-ANALYSIS
|
|
20
20
|
1. **Search Memory**: Call `memory-search` (architecture/history).
|
|
21
|
-
2. **Search Standards**: Call `standard-search`
|
|
21
|
+
2. **Search Standards**: Call `standard-search` for tasks that may lead to code edits, test edits, refactors, migrations, or implementation decisions. If no relevant standards are returned, note that no applicable standards were found.
|
|
22
22
|
3. **Check Handoffs**: Call `handoff-list` for pending context that may already describe unfinished work. Ignore or close stale handoffs that only describe completed work.
|
|
23
23
|
4. **Research Codebase**: Read relevant source files to verify current implementation and paths.
|
|
24
24
|
5. **De-duplicate**: Call `task-list`. DO NOT duplicate existing tasks. Link related tasks via `parent_id`/`depends_on`.
|
|
@@ -20,7 +20,7 @@ You are a memory-aware agent. Memory is project truth, not a suggestion.
|
|
|
20
20
|
1. **Orient**: Call `task-list` for active work and `handoff-list` for pending transfers when starting a repository session. Close stale pending handoffs with `handoff-update` when they no longer describe unfinished work.
|
|
21
21
|
2. **Claim**: Use `task-claim` before taking ownership of a concrete task. Use `claim-list` when ownership is unclear and `claim-release` to clear stale claims during reassignment.
|
|
22
22
|
3. **Search**: Call `memory-search` with `current_file_path` and `current_tags` before coding.
|
|
23
|
-
4. **Standards**: Call `standard-search`
|
|
23
|
+
4. **Standards**: Call `standard-search` before any code edit, test edit, refactor, migration, or implementation decision. Use the task intent, affected files, inferred language, stack, and repo as filters. If no relevant standards are returned, continue and state that no applicable standards were found.
|
|
24
24
|
5. **Retrieve**: Use `memory-detail` for full content if search pointer rows are insufficient.
|
|
25
25
|
6. **Select**: Use ONLY highly relevant memories and standards.
|
|
26
26
|
|
|
@@ -11,7 +11,7 @@ Briefing Steps:
|
|
|
11
11
|
2. **Tasks**: Call `task-list` for `in_progress,pending` tasks.
|
|
12
12
|
3. **Handoffs**: Call `handoff-list` with `status=pending` to surface transfer context. Treat only handoffs with unfinished work, blockers, next owner, or linked task as active.
|
|
13
13
|
4. **Memory**: Call `memory-search` or `memory-recap` for recent decisions, patterns, and mistakes; hydrate important entries with `memory-detail`.
|
|
14
|
-
5. **Standards**: Call `standard-search` with current repo/stack
|
|
14
|
+
5. **Standards**: Call `standard-search` with current repo/stack as the mandatory pre-implementation standards check. If no relevant standards are returned, say no applicable standards were found.
|
|
15
15
|
6. **Core Context**: Summarize active task, pending handoffs, applicable standards, and top architectural decisions.
|
|
16
16
|
7. **Priority Reminder**: Treat task priority with MCP semantics: `1=Low`, `2=Normal`, `3=Medium`, `4=High`, `5=Critical`.
|
|
17
17
|
8. **Action**: Propose next steps based on the active queue.
|
|
@@ -24,7 +24,7 @@ ONLY call MCP tools. No prose, code, or external plans.
|
|
|
24
24
|
|
|
25
25
|
## 2. PRE-TASK ANALYSIS
|
|
26
26
|
1. **Search**: Call `memory-search` (Hybrid Search). 0.55 similarity threshold.
|
|
27
|
-
2. **Standards**: Call `standard-search`
|
|
27
|
+
2. **Standards**: Call `standard-search` before creating implementation tasks so task scope reflects applicable coding standards. If no relevant standards are returned, note that no applicable standards were found.
|
|
28
28
|
3. **Handoffs**: Call `handoff-list` for pending transfer context related to the target. Treat handoffs as active only when they contain unfinished work, blockers, a next owner, or a linked task.
|
|
29
29
|
4. **De-duplicate**: Call `task-list`. Skip existing/redundant tasks. Link via `parent_id`/`depends_on`.
|
|
30
30
|
|
|
@@ -11,7 +11,7 @@ Plan execution for: '{{objective}}'.
|
|
|
11
11
|
|
|
12
12
|
Steps:
|
|
13
13
|
1. **Orient**: Call `task-list` to avoid duplicate active/backlog work.
|
|
14
|
-
2. **Standards**: Call `standard-search`
|
|
14
|
+
2. **Standards**: Call `standard-search` for objectives that may lead to code edits, test edits, refactors, migrations, or implementation decisions. If no relevant standards are returned, state that no applicable standards were found.
|
|
15
15
|
3. **Handoffs**: Call `handoff-list` for pending context that may affect sequencing. Stale pending handoffs that only summarize completed work should be closed with `handoff-update`, not planned as queue work.
|
|
16
16
|
4. **Analyze**: Break into 3-7 atomic, verifiable tasks.
|
|
17
17
|
5. **Phase**: Group into `research`, `implementation`, and `validation`.
|
|
@@ -16,7 +16,7 @@ agent: Project Manager
|
|
|
16
16
|
## 2. DETAIL TOOLS
|
|
17
17
|
- **Tasks**: Call `task-detail` for history/comments (ID or `task_code`).
|
|
18
18
|
- **Memory**: Call `memory-detail` for full entry content.
|
|
19
|
-
- **Standards**: Call `standard-search` before implementation
|
|
19
|
+
- **Standards**: Call `standard-search` before any code edit, test edit, refactor, migration, or implementation decision. If no relevant standards are returned, continue and state that no applicable standards were found.
|
|
20
20
|
- **Handoffs**: Call `handoff-list` to discover pending context transfers before starting a task. Close stale handoffs with `handoff-update` when no concrete next owner, unfinished task, or blocker remains.
|
|
21
21
|
|
|
22
22
|
## 3. WORKFLOW
|
|
@@ -27,7 +27,7 @@ agent: Task Executor
|
|
|
27
27
|
3. **Claim**: Use `task-claim` with `task_code` or `task_id` before implementation.
|
|
28
28
|
4. **Start**: `task-update` status to `in_progress` (MUST transition: `pending` → `in_progress`). Add agent/role metadata.
|
|
29
29
|
5. **Research**: Call `memory-search` (Hybrid Search) and hydrate relevant results with `memory-detail`.
|
|
30
|
-
6. **Standards (MANDATORY PER TASK)**: Call `standard-search` for every task inside the execution loop before implementation, using the task intent
|
|
30
|
+
6. **Standards (MANDATORY PER TASK)**: Call `standard-search` for every task inside the execution loop before any code edit, test edit, refactor, migration, or implementation decision, using the task intent, affected files, inferred language, stack, and repo as filters. This is required even for small tasks, decomposed tasks, and sub-agent assignments. Apply only relevant standards, hydrate details when needed, and if no relevant standards are returned, continue and state that no applicable standards were found.
|
|
31
31
|
7. **Execute**:
|
|
32
32
|
- **Trace**: Inspect logic, call sites, and docs. DO NOT infer from file presence.
|
|
33
33
|
- **Logic**: Implement per description/intent.
|
|
@@ -24,7 +24,7 @@ Use the tools in the same flow exposed by the dashboard: navigate with compact l
|
|
|
24
24
|
- **Automatic cleanup**: Moving a task to `completed` or `canceled` automatically releases active claims and expires pending handoffs linked to that task.
|
|
25
25
|
|
|
26
26
|
## 3. Standards Flow
|
|
27
|
-
- **Search first**:
|
|
27
|
+
- **Search first**: `standard-search` is mandatory before any code edit, test edit, refactor, migration, or implementation decision. Search by `query`, `language`, `stack`, `repo`, and `is_global`; if no relevant standards are returned, continue and state that no applicable standards were found.
|
|
28
28
|
- **Apply precisely**: Treat standards as implementation rules, not generic documentation summaries.
|
|
29
29
|
- **Store atomically**: Use `standard-store` for one rule per entry with `name`, `content`, `context`, `version`, `language`, `stack`, `tags`, and correct repo/global scope.
|
|
30
30
|
- **Scope**: Prefer repo-specific standards for local conventions; use global standards only for cross-repo rules.
|