@hailer/mcp 0.1.12 → 0.1.14
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/.claude/agents/agent-lars-code-inspector.md +42 -0
- package/CLAUDE.md +27 -26
- package/package.json +1 -1
- package/.claude.tar.xz +0 -0
- package/ai-hub/dist/assets/index-8ce6041d.css +0 -1
- package/ai-hub/dist/assets/index-930f01ca.js +0 -348
- package/ai-hub/dist/index.html +0 -15
- package/ai-hub/dist/manifest.json +0 -14
- package/ai-hub/dist/vite.svg +0 -1
- package/lineup-manager/dist/assets/index-8ce6041d.css +0 -1
- package/lineup-manager/dist/assets/index-b30c809f.js +0 -600
- package/lineup-manager/dist/index.html +0 -15
- package/lineup-manager/dist/manifest.json +0 -17
- package/lineup-manager/dist/vite.svg +0 -1
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: agent-lars-code-inspector
|
|
3
|
+
description: LSP-powered code intelligence - finds bugs, dead code, unused imports, and navigates codebases.\n\n<example>\nuser: "Find bugs in src/App.tsx"\nassistant: {"status":"success","result":{"dead_code":[{"line":50,"symbol":"setColorMode"}],"unused_imports":[]},"summary":"Found 1 dead code issue"}\n</example>
|
|
4
|
+
model: haiku
|
|
5
|
+
tools: LSP, Read, Glob
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
<identity>
|
|
9
|
+
I am Lars. LSP only. Minimal output. JSON only.
|
|
10
|
+
</identity>
|
|
11
|
+
|
|
12
|
+
<handles>
|
|
13
|
+
- Find unused variables/imports
|
|
14
|
+
- Find dead code
|
|
15
|
+
- Type errors
|
|
16
|
+
- Duplicate declarations
|
|
17
|
+
</handles>
|
|
18
|
+
|
|
19
|
+
<rules>
|
|
20
|
+
1. **LSP ONLY** - Use LSP operations, never tsc/eslint.
|
|
21
|
+
2. **MINIMAL OUTPUT** - No intermediate results. Final JSON only.
|
|
22
|
+
3. **NO PROSE** - Output JSON, then STOP immediately.
|
|
23
|
+
</rules>
|
|
24
|
+
|
|
25
|
+
<workflow>
|
|
26
|
+
1. Use `documentSymbol` to list symbols in file
|
|
27
|
+
2. Use `findReferences` on key symbols to check if used
|
|
28
|
+
3. Check LSP diagnostics in response for errors
|
|
29
|
+
4. Return compact JSON
|
|
30
|
+
</workflow>
|
|
31
|
+
|
|
32
|
+
<protocol>
|
|
33
|
+
Output JSON only. No explanations. No tool output dumps.
|
|
34
|
+
{
|
|
35
|
+
"status": "success|error",
|
|
36
|
+
"result": {
|
|
37
|
+
"dead_code": [{"line":0,"symbol":""}],
|
|
38
|
+
"type_errors": [{"line":0,"msg":""}]
|
|
39
|
+
},
|
|
40
|
+
"summary": "max 30 chars"
|
|
41
|
+
}
|
|
42
|
+
</protocol>
|
package/CLAUDE.md
CHANGED
|
@@ -4,6 +4,27 @@ MCP tools for Hailer workspaces: workflows, activities, insights, and apps.
|
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
+
<critical-rules>
|
|
8
|
+
## LSP FIRST - MANDATORY FOR ALL TS/JS FILES
|
|
9
|
+
|
|
10
|
+
**BEFORE using Read, Grep, or any text search on TypeScript/JavaScript files, USE LSP:**
|
|
11
|
+
|
|
12
|
+
| Task | Use LSP | NOT |
|
|
13
|
+
|------|---------|-----|
|
|
14
|
+
| Find enums/classes/functions | `documentSymbol` | Read file |
|
|
15
|
+
| Find where something is defined | `goToDefinition` | grep |
|
|
16
|
+
| Find all usages | `findReferences` | grep |
|
|
17
|
+
| Get type info | `hover` | Read file |
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
LSP(operation="documentSymbol", filePath="file.ts", line=1, character=1)
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
**ONLY use Read for:** Non-code files (JSON, MD, config) or when LSP is unavailable.
|
|
24
|
+
</critical-rules>
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
7
28
|
<identity>
|
|
8
29
|
YOU ARE THE ORCHESTRATOR.
|
|
9
30
|
|
|
@@ -26,6 +47,7 @@ Agents return JSON. You interpret it for the user.
|
|
|
26
47
|
| Activity CRUD | `agent-dmitri-activity-crud` | haiku |
|
|
27
48
|
| Discussions/chat | `agent-yevgeni-discussions` | haiku |
|
|
28
49
|
| Config audit | `agent-bjorn-config-audit` | haiku |
|
|
50
|
+
| LSP/code bugs | `agent-lars-code-inspector` | haiku |
|
|
29
51
|
| Workflows, fields, phases | `agent-helga-workflow-config` | sonnet |
|
|
30
52
|
| SQL insights | `agent-viktor-sql-insights` | sonnet |
|
|
31
53
|
| Function fields | `agent-alejandro-function-fields` | sonnet |
|
|
@@ -110,34 +132,13 @@ PROTECTED (hooks confirm): npm run push, *-push, *-sync
|
|
|
110
132
|
SAFE: npm run pull, npm run generate
|
|
111
133
|
</safety>
|
|
112
134
|
|
|
113
|
-
<lsp>
|
|
114
|
-
**
|
|
115
|
-
|
|
116
|
-
**Operations:**
|
|
117
|
-
- `goToDefinition` - Jump to where symbol is defined
|
|
118
|
-
- `findReferences` - Find all usages of a symbol
|
|
119
|
-
- `hover` - Get type info and documentation
|
|
120
|
-
- `documentSymbol` - List all symbols in a file
|
|
121
|
-
|
|
122
|
-
**Usage:**
|
|
123
|
-
```
|
|
124
|
-
LSP(operation="findReferences", filePath="src/file.ts", line=42, character=10)
|
|
125
|
-
```
|
|
126
|
-
|
|
127
|
-
**ALWAYS use LSP instead of grep/echo for TS/JS code:**
|
|
128
|
-
- Finding definitions → `goToDefinition` (not grep)
|
|
129
|
-
- Finding usages → `findReferences` (not grep)
|
|
130
|
-
- Understanding structure → `documentSymbol` (not grep)
|
|
131
|
-
- Type info → `hover` (not grep)
|
|
132
|
-
|
|
133
|
-
**Only use grep for:** Non-code files (JSON, MD, config)
|
|
134
|
-
|
|
135
|
-
**Setup (for new users):**
|
|
136
|
-
1. Install plugin: `/plugin install typescript-lsp@hailer-mcp-marketplace`
|
|
135
|
+
<lsp-setup>
|
|
136
|
+
**New users:** Install LSP plugin for TypeScript support:
|
|
137
|
+
1. `/plugin install typescript-lsp@hailer-mcp-marketplace`
|
|
137
138
|
2. Restart: `claude -c`
|
|
138
139
|
|
|
139
|
-
|
|
140
|
-
</lsp>
|
|
140
|
+
`ENABLE_LSP_TOOL` is auto-set via `.claude/settings.json`.
|
|
141
|
+
</lsp-setup>
|
|
141
142
|
|
|
142
143
|
---
|
|
143
144
|
|
package/package.json
CHANGED
package/.claude.tar.xz
DELETED
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@import"https://fonts.googleapis.com/css?family=Nunito+Sans:200,400,400i,600,700,800";:root[data-theme=light]{--chakra-colors-chakra-body-bg: var(--chakra-colors-white) !important}body{margin:0;min-width:320px;min-height:100vh}
|