mindlink 1.1.5 → 2.0.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/README.md +37 -7
- package/commands/diff.md +115 -0
- package/commands/index.md +12 -0
- package/commands/init.md +26 -1
- package/commands/mcp.md +126 -0
- package/commands/profile.md +104 -0
- package/commands/prune.md +117 -0
- package/commands/update.md +23 -5
- package/commands/verify.md +122 -0
- package/dist/chunk-2H7UOFLK.js +11 -0
- package/dist/chunk-2H7UOFLK.js.map +1 -0
- package/dist/cli.js +1566 -118
- package/dist/cli.js.map +1 -1
- package/dist/templates/agents/.clinerules +13 -2
- package/dist/templates/agents/.rules +84 -0
- package/dist/templates/agents/.windsurfrules +17 -6
- package/dist/templates/agents/AGENTS.md +13 -2
- package/dist/templates/agents/CLAUDE.md +18 -7
- package/dist/templates/agents/CONVENTIONS.md +13 -2
- package/dist/templates/agents/CURSOR.md +17 -6
- package/dist/templates/agents/GEMINI.md +13 -2
- package/dist/templates/agents/continue-rules.md +89 -0
- package/dist/templates/agents/copilot-instructions.md +17 -6
- package/dist/templates/agents/kiro-steering.md +88 -0
- package/dist/templates/agents/trae-rules.md +89 -0
- package/dist/templates/hooks/claude-settings.json +6 -0
- package/dist/zod-FDOV7Y2P.js +14016 -0
- package/dist/zod-FDOV7Y2P.js.map +1 -0
- package/package.json +2 -1
package/commands/update.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# mindlink update
|
|
2
2
|
|
|
3
|
-
Update mindlink to the latest version.
|
|
3
|
+
Update mindlink to the latest version and refresh all project files.
|
|
4
4
|
|
|
5
5
|
**Run in your terminal only** — this downloads and installs software. Always prompts before doing anything.
|
|
6
6
|
|
|
@@ -16,9 +16,18 @@ mindlink update
|
|
|
16
16
|
|
|
17
17
|
## Description
|
|
18
18
|
|
|
19
|
-
Checks the latest version on
|
|
19
|
+
Checks the latest version on npm and prompts before installing. Never updates silently — you are always shown what version you're moving to and can cancel.
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
After installing (or if you're already up to date), `mindlink update` automatically refreshes every initialized project on your machine:
|
|
22
|
+
|
|
23
|
+
- **Agent instruction files** (`CLAUDE.md`, `.cursorrules`, etc.) are overwritten with the latest templates in all registered projects. These files are owned by MindLink — any manual edits will be replaced.
|
|
24
|
+
- **Claude Code hooks** (`.claude/settings.json`) are refreshed to the latest hook commands.
|
|
25
|
+
- **MEMORY.md migrations** are applied non-destructively — new sections introduced in this version are injected into existing MEMORY.md files if they are absent. Your existing content is never touched.
|
|
26
|
+
- **Missing brain files** are created if a new version introduced a new `.brain/` file that didn't exist in older projects.
|
|
27
|
+
|
|
28
|
+
This means running `mindlink update` is always safe — your memory is preserved and your projects are brought to current spec automatically.
|
|
29
|
+
|
|
30
|
+
Release notes for every version:
|
|
22
31
|
```
|
|
23
32
|
https://github.com/404-not-found/mindlink/releases
|
|
24
33
|
```
|
|
@@ -44,10 +53,18 @@ Latest version : x.y.z+1
|
|
|
44
53
|
Skip this version
|
|
45
54
|
Cancel
|
|
46
55
|
|
|
47
|
-
[████████████████████] 100%
|
|
48
|
-
|
|
49
56
|
✓ Updated to x.y.z+1
|
|
50
57
|
See what's new: github.com/404-not-found/mindlink/releases/tag/vx.y.z+1
|
|
58
|
+
|
|
59
|
+
Refreshing agent files in 3 projects...
|
|
60
|
+
|
|
61
|
+
/Users/you/projects/my-app
|
|
62
|
+
✓ CLAUDE.md
|
|
63
|
+
✓ CURSOR.md
|
|
64
|
+
✓ .claude/settings.json
|
|
65
|
+
✓ .brain/MEMORY.md
|
|
66
|
+
|
|
67
|
+
All agent files are up to date.
|
|
51
68
|
```
|
|
52
69
|
|
|
53
70
|
**Already up to date:**
|
|
@@ -59,4 +76,5 @@ Latest version : x.y.z+1
|
|
|
59
76
|
|
|
60
77
|
## Related Commands
|
|
61
78
|
|
|
79
|
+
- [`mindlink init`](init.md) — set up a new project
|
|
62
80
|
- [`mindlink help`](index.md) — see all commands
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
# mindlink verify
|
|
2
|
+
|
|
3
|
+
Check that `.brain/` memory is healthy and up to date.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Synopsis
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
mindlink verify [--json] [--fix]
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## Description
|
|
16
|
+
|
|
17
|
+
Runs a health check on the current project's `.brain/` directory. Answers: "is my AI's memory in good shape right now?"
|
|
18
|
+
|
|
19
|
+
Unlike `mindlink doctor` (which checks setup correctness), `mindlink verify` checks **content quality** — whether memory files are actually filled in, whether the AI is actively writing session state, and whether MEMORY.md is getting too large to be useful.
|
|
20
|
+
|
|
21
|
+
**Your AI can run this.** Ask it to run `mindlink verify` to check its own work before closing a session.
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## Checks
|
|
26
|
+
|
|
27
|
+
| Check | Pass | Warn | Fail |
|
|
28
|
+
|---|---|---|---|
|
|
29
|
+
| **Core section** | Has real content | — | Empty or placeholder only |
|
|
30
|
+
| **User Profile** | Has real content | — | Empty or placeholder only |
|
|
31
|
+
| **SESSION.md freshness** | Updated < 3 days ago | 3–7 days | > 7 days |
|
|
32
|
+
| **LOG.md present** | Exists | — | Missing |
|
|
33
|
+
| **MEMORY.md size** | < 100 real lines | 100–200 lines | > 200 lines |
|
|
34
|
+
| **Agent files** | All present | Some missing | None present |
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## Output
|
|
39
|
+
|
|
40
|
+
```
|
|
41
|
+
◉ MindLink Verify
|
|
42
|
+
/Users/you/my-project
|
|
43
|
+
|
|
44
|
+
✓ Core section — filled
|
|
45
|
+
✓ User Profile — filled
|
|
46
|
+
⚠ SESSION.md — last updated 5 days ago
|
|
47
|
+
SESSION.md is getting stale...
|
|
48
|
+
✓ LOG.md — 14 sessions logged
|
|
49
|
+
✗ MEMORY.md — 217 lines (target: under 200)
|
|
50
|
+
Run mindlink prune to consolidate stale entries.
|
|
51
|
+
✓ Agent files — all 2 present
|
|
52
|
+
|
|
53
|
+
1 error, 1 warning.
|
|
54
|
+
Run mindlink verify --fix to auto-repair 0 issues.
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
## Options
|
|
60
|
+
|
|
61
|
+
| Flag | Description |
|
|
62
|
+
|---|---|
|
|
63
|
+
| `--json` | Output results as JSON — useful for scripting or AI consumption |
|
|
64
|
+
| `--fix` | Auto-fix recoverable issues (regenerate missing agent files) |
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
## `--fix` Behavior
|
|
69
|
+
|
|
70
|
+
Auto-fix only applies to recoverable issues. It **never touches user-written memory content**.
|
|
71
|
+
|
|
72
|
+
| Check | `--fix` action |
|
|
73
|
+
|---|---|
|
|
74
|
+
| `agent_files` missing | Re-generate from current templates |
|
|
75
|
+
| `core` / `user_profile` empty | Print actionable message — no auto-fill |
|
|
76
|
+
| `memory_size` too large | Print actionable message — run `mindlink prune` |
|
|
77
|
+
| `session_fresh` stale | No auto-fix — AI must update SESSION.md |
|
|
78
|
+
|
|
79
|
+
---
|
|
80
|
+
|
|
81
|
+
## Examples
|
|
82
|
+
|
|
83
|
+
**Check memory health:**
|
|
84
|
+
```bash
|
|
85
|
+
mindlink verify
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
**Machine-readable output:**
|
|
89
|
+
```bash
|
|
90
|
+
mindlink verify --json
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
**Auto-fix missing agent files:**
|
|
94
|
+
```bash
|
|
95
|
+
mindlink verify --fix
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
---
|
|
99
|
+
|
|
100
|
+
## JSON Output
|
|
101
|
+
|
|
102
|
+
```json
|
|
103
|
+
{
|
|
104
|
+
"ok": false,
|
|
105
|
+
"checks": [
|
|
106
|
+
{ "id": "core", "label": "Core section — filled", "status": "pass", "message": "", "fixable": false },
|
|
107
|
+
{ "id": "user_profile", "label": "User Profile — filled", "status": "pass", "message": "", "fixable": false },
|
|
108
|
+
{ "id": "session_fresh","label": "SESSION.md — last updated 5 days ago", "status": "warn", "message": "...", "fixable": false },
|
|
109
|
+
{ "id": "log_present", "label": "LOG.md — 14 sessions logged", "status": "pass", "message": "", "fixable": false },
|
|
110
|
+
{ "id": "memory_size", "label": "MEMORY.md — 217 lines (target: under 200)", "status": "fail", "message": "Run mindlink prune...", "fixable": false },
|
|
111
|
+
{ "id": "agent_files", "label": "Agent files — all 2 present", "status": "pass", "message": "", "fixable": false }
|
|
112
|
+
]
|
|
113
|
+
}
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
---
|
|
117
|
+
|
|
118
|
+
## Related Commands
|
|
119
|
+
|
|
120
|
+
- [`mindlink prune`](prune.md) — retire stale MEMORY.md entries interactively
|
|
121
|
+
- [`mindlink doctor`](doctor.md) — check setup correctness (files, hooks, config)
|
|
122
|
+
- [`mindlink diff`](diff.md) — see what the AI wrote this session
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __export = (target, all) => {
|
|
4
|
+
for (var name in all)
|
|
5
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export {
|
|
9
|
+
__export
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=chunk-2H7UOFLK.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|