eminiar 0.10.1 → 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/.claude-plugin/plugin.json +1 -1
- package/.cursor-plugin/mcp.json +11 -0
- package/.cursor-plugin/plugin.json +23 -0
- package/README.md +12 -8
- package/dist/cli.js +595 -401
- package/dist/hook.js +687 -463
- package/hooks/cursor.json +36 -0
- package/package.json +7 -4
- package/rules/eminiar.mdc +15 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"hooks": {
|
|
4
|
+
"sessionStart": [
|
|
5
|
+
{ "command": "\"${CURSOR_PLUGIN_ROOT}/bin/em-hook\" --client cursor", "timeout": 10 }
|
|
6
|
+
],
|
|
7
|
+
"beforeSubmitPrompt": [
|
|
8
|
+
{ "command": "\"${CURSOR_PLUGIN_ROOT}/bin/em-hook\" --client cursor", "timeout": 5 }
|
|
9
|
+
],
|
|
10
|
+
"preToolUse": [
|
|
11
|
+
{
|
|
12
|
+
"command": "\"${CURSOR_PLUGIN_ROOT}/bin/em-hook\" --client cursor",
|
|
13
|
+
"timeout": 5,
|
|
14
|
+
"matcher": "Shell|Read|Write|Edit|Grep|Glob|WebFetch|WebSearch|Task"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"postToolUse": [
|
|
18
|
+
{ "command": "\"${CURSOR_PLUGIN_ROOT}/bin/em-hook\" --client cursor", "timeout": 10 }
|
|
19
|
+
],
|
|
20
|
+
"postToolUseFailure": [
|
|
21
|
+
{ "command": "\"${CURSOR_PLUGIN_ROOT}/bin/em-hook\" --client cursor", "timeout": 5 }
|
|
22
|
+
],
|
|
23
|
+
"subagentStop": [
|
|
24
|
+
{ "command": "\"${CURSOR_PLUGIN_ROOT}/bin/em-hook\" --client cursor", "timeout": 5 }
|
|
25
|
+
],
|
|
26
|
+
"preCompact": [
|
|
27
|
+
{ "command": "\"${CURSOR_PLUGIN_ROOT}/bin/em-hook\" --client cursor", "timeout": 15 }
|
|
28
|
+
],
|
|
29
|
+
"afterAgentResponse": [
|
|
30
|
+
{ "command": "\"${CURSOR_PLUGIN_ROOT}/bin/em-hook\" --client cursor", "timeout": 5 }
|
|
31
|
+
],
|
|
32
|
+
"sessionEnd": [
|
|
33
|
+
{ "command": "\"${CURSOR_PLUGIN_ROOT}/bin/em-hook\" --client cursor", "timeout": 5 }
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eminiar",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Local-first context, memory and knowledge-graph plugin for Claude Code. Sandboxed execution, FTS5 + vector search, session continuity, and a code graph — nothing leaves your machine.",
|
|
3
|
+
"version": "0.11.0",
|
|
4
|
+
"description": "Local-first context, memory and knowledge-graph plugin for Claude Code and Cursor. Sandboxed execution, FTS5 + vector search, session continuity, and a code graph — nothing leaves your machine.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "Ryan Dick",
|
|
@@ -22,7 +22,8 @@
|
|
|
22
22
|
"sqlite-vec",
|
|
23
23
|
"knowledge-graph",
|
|
24
24
|
"tree-sitter",
|
|
25
|
-
"sandbox"
|
|
25
|
+
"sandbox",
|
|
26
|
+
"cursor"
|
|
26
27
|
],
|
|
27
28
|
"engines": {
|
|
28
29
|
"node": ">=22.12"
|
|
@@ -40,6 +41,8 @@
|
|
|
40
41
|
"hooks",
|
|
41
42
|
"skills",
|
|
42
43
|
".claude-plugin",
|
|
44
|
+
".cursor-plugin",
|
|
45
|
+
"rules",
|
|
43
46
|
"vendor",
|
|
44
47
|
"eminiar.config.schema.json",
|
|
45
48
|
"README.md",
|
|
@@ -56,7 +59,7 @@
|
|
|
56
59
|
"lint:fix": "biome check --write .",
|
|
57
60
|
"validate": "claude plugin validate .",
|
|
58
61
|
"prepack": "npm run build",
|
|
59
|
-
"version": "node scripts/sync-plugin-version.mjs && git add .claude-plugin/plugin.json",
|
|
62
|
+
"version": "node scripts/sync-plugin-version.mjs && git add .claude-plugin/plugin.json .cursor-plugin/plugin.json",
|
|
60
63
|
"build:ui": "tsup --config tsup.web.config.ts",
|
|
61
64
|
"dev:ui": "tsup --config tsup.web.config.ts --watch",
|
|
62
65
|
"screenshots": "node scripts/capture-screenshots.mjs"
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: eminiar is installed. Use its em_* tools to keep raw output out of context and to check project memory before deciding.
|
|
3
|
+
alwaysApply: true
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
eminiar is active. Keep raw tool output out of the context window and check project knowledge before deciding:
|
|
7
|
+
|
|
8
|
+
- Before starting a task or changing a design: `em_recall {query}` for past decisions, constraints and fixed errors; `em_remember {content, kind}` when you settle something durable.
|
|
9
|
+
- For any library, service or API the project uses: `em_docs {action:"lookup", query}` before web search.
|
|
10
|
+
- Commands that print a lot (tests, logs, git log/diff, dependency trees): `em_execute {language, code, intent}` or `em_batch_execute`; only the sections matching `intent` come back.
|
|
11
|
+
- Large files: `em_execute_file {path, code}`; web pages and docs: `em_fetch_and_index {url, queries}`.
|
|
12
|
+
- Code questions: `em_architecture`, `em_symbols {name_path}`, `em_graph_impact {node}`, `em_search {queries, source:"code"}` instead of grepping.
|
|
13
|
+
- Git history: `em_history {action: overview | file | risk | commit | branch}` instead of git log/blame/show.
|
|
14
|
+
|
|
15
|
+
Plain Shell/Read/Grep remain right for short fixed output and files you are about to edit.
|