@vheins/local-memory-mcp 0.10.12 → 0.11.0
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/dashboard/server.js
CHANGED
package/dist/mcp/server.js
CHANGED
|
@@ -67,6 +67,33 @@ agent: Task Executor
|
|
|
67
67
|
This ensures full traceability between code changes and project context.
|
|
68
68
|
- **GitHub Issue Traceability**: If task metadata contains a GitHub Issue reference, the commit message MUST also include the issue hashtag in `#123` format.
|
|
69
69
|
- **Issue Number Extraction**: Read the issue number from task metadata when available. If metadata only contains a GitHub Issue URL, extract the trailing issue number from that URL before committing.
|
|
70
|
+
|
|
71
|
+
10A. **BLOCKER HANDLING (AUTOMATIC TASK CREATION)**:
|
|
72
|
+
- **Trigger**: When task status is updated to `blocked` with a comment explaining the blocker reason.
|
|
73
|
+
- **Blocker Classification**: Analyze the blocker comment to determine if it is **internal solvable** or **external**:
|
|
74
|
+
- **Internal Solvable** (auto-create task): Missing dependency, missing module/function, configuration/env setup, implementation gap, failing test, build error.
|
|
75
|
+
- **External** (skip auto-create): Awaiting user input/approval, API/service unavailability, manual external setup required.
|
|
76
|
+
- **Pattern Matching**: Use regex patterns to detect internal blockers in the comment:
|
|
77
|
+
- Missing patterns: `/(module|package|library|dependency|import)\s+(not\s+found|missing|undefined|not\s+installed)/i`
|
|
78
|
+
- Not implemented: `/(function|interface|class|method|endpoint)\s+not\s+(found|implemented|exists)/i`
|
|
79
|
+
- Configuration: `/(config|configuration|setup|env|environment)\s+(missing|not\s+set|invalid)/i`
|
|
80
|
+
- Test/build failure: `/(test|build|compile|type\s+check)\s+(failed|error)/i`
|
|
81
|
+
- **Auto-Create Task** (if internal solvable):
|
|
82
|
+
- Task Code: `${parent_task_code}-FIX-${unix_timestamp}`
|
|
83
|
+
- Title: `FIX: [${parent_task_title}] - Resolve: ${blocker_reason_extracted}`
|
|
84
|
+
- Description: Follow standard format (1. Context & Analysis, 2. Step & Implementation, 3. Acceptance & Verification)
|
|
85
|
+
- Context: Reference parent task code and explain the blocking factor
|
|
86
|
+
- Steps: Identify root cause and implement fix
|
|
87
|
+
- Verification: Confirm parent task can proceed
|
|
88
|
+
- Parent ID: Set to current blocked task ID
|
|
89
|
+
- Priority: `4` (HIGH)
|
|
90
|
+
- Phase: `blocker-resolution`
|
|
91
|
+
- Tags: `["blocker-fix", "auto-generated"]`
|
|
92
|
+
- Metadata: Include `triggered_by_task`, `blocker_reason`, `creation_timestamp`, and `agent_identity`
|
|
93
|
+
- **Update Parent Task**: Add comment linking to the new blocker-fix task: `"Blocker resolution task created: ${new_task_code}"`
|
|
94
|
+
- **Link Dependencies**: Set parent task's `depends_on` to the new blocker-fix task (parent waits for fix before retry)
|
|
95
|
+
- **Skip Creation** (if external): Log that blocker is external, keep task status as `blocked`, no automatic task created.
|
|
96
|
+
|
|
70
97
|
11. **Repeat**: Claim next task from `task-list`.
|
|
71
98
|
|
|
72
99
|
## 3. BACKLOG MAINTENANCE
|
|
@@ -75,5 +102,94 @@ If active queue is empty:
|
|
|
75
102
|
2. Move up to 20 highest-priority tasks to `pending` via `task-update`.
|
|
76
103
|
3. Interpret priority using MCP ordering: `5=Critical`, `4=High`, `3=Medium`, `2=Normal`, `1=Low`.
|
|
77
104
|
|
|
78
|
-
## 4.
|
|
105
|
+
## 4. BLOCKER REFERENCE (Patterns & Detection)
|
|
106
|
+
|
|
107
|
+
### Internal Solvable Blocker Patterns (Trigger Auto Task Creation)
|
|
108
|
+
|
|
109
|
+
**Missing Dependencies/Modules**:
|
|
110
|
+
- `module not found`, `missing dependency`, `import not installed`, `undefined function`, `no such file`
|
|
111
|
+
- Example: "ImportError: Function 'validateToken' not found"
|
|
112
|
+
|
|
113
|
+
**Not Implemented**:
|
|
114
|
+
- `function/method not implemented`, `interface not exists`, `component undefined`
|
|
115
|
+
- Example: "Function 'processPayment' not implemented - exists in type definitions but no implementation"
|
|
116
|
+
|
|
117
|
+
**Configuration/Setup Issues**:
|
|
118
|
+
- `.env missing`, `configuration not set`, `setup invalid`, `environment variable not found`
|
|
119
|
+
- Example: "DATABASE_URL environment variable not set"
|
|
120
|
+
|
|
121
|
+
**Test/Build Failures** (solvable):
|
|
122
|
+
- `test failed`, `assertion failed`, `type error`, `build error`, `compilation failed`
|
|
123
|
+
- Example: "Type error: Property 'user' does not exist on type 'Request'"
|
|
124
|
+
|
|
125
|
+
**Implementation Gaps**:
|
|
126
|
+
- `endpoint not implemented`, `API route missing`, `middleware not registered`
|
|
127
|
+
- Example: "GET /api/users endpoint returns 404 - not implemented"
|
|
128
|
+
|
|
129
|
+
### External Blocker Patterns (Skip Auto Task Creation)
|
|
130
|
+
|
|
131
|
+
**Awaiting User/External Action**:
|
|
132
|
+
- `awaiting user`, `requires manual`, `user must`, `external dependency`, `manual setup`
|
|
133
|
+
- Example: "Awaiting user approval for database migration", "Requires manual infrastructure setup"
|
|
134
|
+
|
|
135
|
+
**External Service Issues**:
|
|
136
|
+
- `API not responding`, `service unavailable`, `server not ready`
|
|
137
|
+
- Example: "Payment gateway API not responding - external service unavailable"
|
|
138
|
+
|
|
139
|
+
**Manual Prerequisites**:
|
|
140
|
+
- `install locally`, `run script manually`, `requires external tool`
|
|
141
|
+
- Example: "Requires manual Docker setup - not part of this task"
|
|
142
|
+
|
|
143
|
+
### Auto Task Creation Example Flow
|
|
144
|
+
|
|
145
|
+
**Parent Task Blocked:**
|
|
146
|
+
```
|
|
147
|
+
Task Code: FEATURE-42
|
|
148
|
+
Title: Add payment processing middleware
|
|
149
|
+
Status: blocked
|
|
150
|
+
Comment: "Function 'chargeCard' in services/payment.ts not implemented - exists in interface but implementation missing"
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
**Detection & Classification:**
|
|
154
|
+
```
|
|
155
|
+
Pattern detected: "Function .* not implemented" → INTERNAL SOLVABLE ✅
|
|
156
|
+
Action: Create blocker-fix task
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
**Auto-Generated Task:**
|
|
160
|
+
```
|
|
161
|
+
Task Code: FEATURE-42-FIX-1714737908
|
|
162
|
+
Title: FIX: [Add payment processing middleware] - Resolve: Function 'chargeCard' not implemented
|
|
163
|
+
Parent ID: FEATURE-42
|
|
164
|
+
Priority: 4 (HIGH)
|
|
165
|
+
Phase: blocker-resolution
|
|
166
|
+
Tags: ["blocker-fix", "auto-generated"]
|
|
167
|
+
|
|
168
|
+
Description:
|
|
169
|
+
1. Context & Analysis:
|
|
170
|
+
Parent task FEATURE-42 blocked due to: Function 'chargeCard' in services/payment.ts not implemented
|
|
171
|
+
The function exists in the interface but has no implementation body
|
|
172
|
+
Blocking factor: services/payment.ts - chargeCard function stub
|
|
173
|
+
|
|
174
|
+
2. Step & Implementation:
|
|
175
|
+
- Review services/payment.ts chargeCard function signature
|
|
176
|
+
- Implement full payment processing logic (charges, refunds, error handling)
|
|
177
|
+
- Add proper error handling and validation
|
|
178
|
+
- Write unit tests for charge scenarios
|
|
179
|
+
|
|
180
|
+
3. Acceptance & Verification:
|
|
181
|
+
- chargeCard function fully implemented
|
|
182
|
+
- Unit tests passing
|
|
183
|
+
- Function can be called from FEATURE-42 middleware
|
|
184
|
+
- FEATURE-42 parent task can proceed without blockers
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
**Execution Workflow:**
|
|
188
|
+
1. Agent picks blocker-fix task first (independent, no dependencies)
|
|
189
|
+
2. Implements `chargeCard` function
|
|
190
|
+
3. Completes blocker-fix task
|
|
191
|
+
4. Parent task FEATURE-42 becomes ready (fix completed)
|
|
192
|
+
5. Agent proceeds with FEATURE-42 execution
|
|
193
|
+
|
|
194
|
+
## 5. REPORT
|
|
79
195
|
Provide progress summary.
|