@prmichaelsen/remember-mcp 2.7.11 → 3.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.
Files changed (101) hide show
  1. package/.env.example +6 -0
  2. package/AGENT.md +224 -21
  3. package/CHANGELOG.md +155 -915
  4. package/README.md +130 -1
  5. package/agent/commands/acp.command-create.md +372 -0
  6. package/agent/commands/acp.design-create.md +224 -0
  7. package/agent/commands/acp.init.md +39 -5
  8. package/agent/commands/acp.package-create.md +894 -0
  9. package/agent/commands/acp.package-info.md +211 -0
  10. package/agent/commands/acp.package-install.md +206 -33
  11. package/agent/commands/acp.package-list.md +279 -0
  12. package/agent/commands/acp.package-publish.md +540 -0
  13. package/agent/commands/acp.package-remove.md +292 -0
  14. package/agent/commands/acp.package-search.md +306 -0
  15. package/agent/commands/acp.package-update.md +360 -0
  16. package/agent/commands/acp.package-validate.md +539 -0
  17. package/agent/commands/acp.pattern-create.md +326 -0
  18. package/agent/commands/acp.plan.md +552 -0
  19. package/agent/commands/acp.proceed.md +111 -86
  20. package/agent/commands/acp.project-create.md +672 -0
  21. package/agent/commands/acp.project-list.md +224 -0
  22. package/agent/commands/acp.project-set.md +226 -0
  23. package/agent/commands/acp.report.md +2 -0
  24. package/agent/commands/acp.resume.md +237 -0
  25. package/agent/commands/acp.sync.md +55 -15
  26. package/agent/commands/acp.task-create.md +390 -0
  27. package/agent/commands/acp.validate.md +61 -10
  28. package/agent/commands/acp.version-check-for-updates.md +5 -5
  29. package/agent/commands/acp.version-check.md +6 -6
  30. package/agent/commands/acp.version-update.md +6 -6
  31. package/agent/commands/command.template.md +43 -0
  32. package/agent/commands/git.commit.md +5 -3
  33. package/agent/design/soft-delete-system.md +291 -0
  34. package/agent/manifest.template.yaml +13 -0
  35. package/agent/milestones/milestone-13-soft-delete-system.md +306 -0
  36. package/agent/package.template.yaml +36 -0
  37. package/agent/progress.template.yaml +3 -0
  38. package/agent/progress.yaml +238 -6
  39. package/agent/scripts/acp.common.sh +1536 -0
  40. package/agent/scripts/{install.sh → acp.install.sh} +82 -26
  41. package/agent/scripts/acp.package-create.sh +925 -0
  42. package/agent/scripts/acp.package-info.sh +270 -0
  43. package/agent/scripts/acp.package-install.sh +596 -0
  44. package/agent/scripts/acp.package-list.sh +263 -0
  45. package/agent/scripts/acp.package-publish.sh +420 -0
  46. package/agent/scripts/acp.package-remove.sh +272 -0
  47. package/agent/scripts/acp.package-search.sh +156 -0
  48. package/agent/scripts/acp.package-update.sh +438 -0
  49. package/agent/scripts/acp.package-validate.sh +855 -0
  50. package/agent/scripts/acp.project-list.sh +121 -0
  51. package/agent/scripts/acp.project-set.sh +138 -0
  52. package/agent/scripts/{uninstall.sh → acp.uninstall.sh} +25 -15
  53. package/agent/scripts/{check-for-updates.sh → acp.version-check-for-updates.sh} +24 -14
  54. package/agent/scripts/{version.sh → acp.version-check.sh} +20 -8
  55. package/agent/scripts/{update.sh → acp.version-update.sh} +44 -25
  56. package/agent/scripts/acp.yaml-parser.sh +853 -0
  57. package/agent/scripts/acp.yaml-validate.sh +205 -0
  58. package/agent/tasks/task-68-fix-missing-space-properties.md +192 -0
  59. package/agent/tasks/task-69-add-comprehensive-tool-debugging.md +454 -0
  60. package/agent/tasks/task-70-add-soft-delete-schema-fields.md +165 -0
  61. package/agent/tasks/task-71-implement-delete-confirmation-flow.md +257 -0
  62. package/agent/tasks/task-72-add-deleted-filter-to-search-tools.md +18 -0
  63. package/agent/tasks/task-73-update-relationship-handling.md +18 -0
  64. package/agent/tasks/task-74-add-unit-tests-soft-delete.md +18 -0
  65. package/agent/tasks/task-75-update-documentation-changelog.md +26 -0
  66. package/dist/config.d.ts +18 -0
  67. package/dist/server-factory.js +788 -355
  68. package/dist/server.js +788 -355
  69. package/dist/tools/delete-memory.d.ts +5 -30
  70. package/dist/tools/find-similar.d.ts +8 -1
  71. package/dist/tools/query-memory.d.ts +8 -1
  72. package/dist/tools/search-memory.d.ts +6 -0
  73. package/dist/tools/search-relationship.d.ts +8 -1
  74. package/dist/types/memory.d.ts +8 -0
  75. package/dist/types/space-memory.d.ts +3 -0
  76. package/dist/utils/debug.d.ts +52 -0
  77. package/dist/utils/debug.spec.d.ts +5 -0
  78. package/dist/utils/weaviate-filters.d.ts +19 -0
  79. package/dist/weaviate/client.d.ts +1 -1
  80. package/package.json +1 -1
  81. package/src/config.ts +33 -0
  82. package/src/tools/confirm.ts +113 -8
  83. package/src/tools/create-relationship.ts +14 -1
  84. package/src/tools/delete-memory.ts +91 -63
  85. package/src/tools/find-similar.ts +30 -5
  86. package/src/tools/publish.ts +19 -1
  87. package/src/tools/query-memory.ts +18 -5
  88. package/src/tools/query-space.ts +36 -3
  89. package/src/tools/search-memory.ts +18 -5
  90. package/src/tools/search-relationship.ts +19 -5
  91. package/src/tools/search-space.ts +36 -3
  92. package/src/tools/update-memory.ts +8 -0
  93. package/src/types/memory.ts +11 -0
  94. package/src/types/space-memory.ts +5 -0
  95. package/src/utils/debug.spec.ts +257 -0
  96. package/src/utils/debug.ts +138 -0
  97. package/src/utils/weaviate-filters.ts +28 -1
  98. package/src/weaviate/client.ts +47 -3
  99. package/src/weaviate/schema.ts +17 -0
  100. package/src/weaviate/space-schema.spec.ts +5 -2
  101. package/src/weaviate/space-schema.ts +17 -5
@@ -0,0 +1,360 @@
1
+ # Command: package-update
2
+
3
+ > **🤖 Agent Directive**: If you are reading this file, the command `@acp.package-update` has been invoked. Follow the steps below to execute this command.
4
+
5
+ **Namespace**: acp
6
+ **Version**: 2.0.0
7
+ **Created**: 2026-02-18
8
+ **Last Updated**: 2026-02-22
9
+ **Status**: Active
10
+
11
+ ---
12
+
13
+ **Purpose**: Update installed ACP packages to their latest versions with smart conflict detection
14
+ **Category**: Maintenance
15
+ **Frequency**: As Needed
16
+
17
+ ---
18
+
19
+ ## What This Command Does
20
+
21
+ This command updates installed ACP packages to their latest versions by comparing the current version in `agent/manifest.yaml` with the latest version in the package repository. It intelligently detects locally modified files via checksum comparison and provides conflict resolution options.
22
+
23
+ Use this command when you want to get the latest bug fixes, features, and improvements from installed packages. The command can update all packages at once or specific packages individually, and it respects local modifications to prevent accidental overwrites.
24
+
25
+ Unlike `@acp.version-update` which updates ACP itself, this command updates third-party packages installed via `@acp.package-install`.
26
+
27
+ ---
28
+
29
+ ## Prerequisites
30
+
31
+ - [ ] ACP installed in project
32
+ - [ ] `agent/manifest.yaml` exists with installed packages
33
+ - [ ] Git installed and available
34
+ - [ ] Internet connection available
35
+ - [ ] `agent/scripts/acp.package-update.sh` exists
36
+
37
+ ---
38
+
39
+ ## Steps
40
+
41
+ ### 1. Choose Update Mode
42
+
43
+ Decide what to update.
44
+
45
+ **Update Modes**:
46
+
47
+ **A. Check for Updates** (preview only):
48
+ ```bash
49
+ ./agent/scripts/acp.package-update.sh --check
50
+ ```
51
+ Shows available updates without installing them.
52
+
53
+ **B. Update All Packages**:
54
+ ```bash
55
+ ./agent/scripts/acp.package-update.sh
56
+ ```
57
+ Updates all installed packages to latest versions.
58
+
59
+ **C. Update Specific Package**:
60
+ ```bash
61
+ ./agent/scripts/acp.package-update.sh <package-name>
62
+ ```
63
+ Updates only the specified package.
64
+
65
+ **D. Update with Options**:
66
+ ```bash
67
+ # Skip modified files automatically
68
+ ./agent/scripts/acp.package-update.sh --skip-modified
69
+
70
+ # Force overwrite modified files
71
+ ./agent/scripts/acp.package-update.sh --force
72
+
73
+ # Auto-confirm (no prompts)
74
+ ./agent/scripts/acp.package-update.sh -y
75
+ ```
76
+
77
+ **E. Global Package Updates**:
78
+ ```bash
79
+ # Update global packages
80
+ ./agent/scripts/acp.package-update.sh --global
81
+
82
+ # Update specific global package
83
+ ./agent/scripts/acp.package-update.sh --global <package-name>
84
+ ```
85
+
86
+ ---
87
+
88
+ ## Experimental Features Behavior
89
+
90
+ The update command handles experimental features intelligently:
91
+
92
+ **Already-installed experimental features**: Updated normally (no flag required)
93
+ **New experimental features**: Skipped (use --experimental with install to add)
94
+ **Graduated features** (experimental → stable): Updated and marked as stable
95
+
96
+ **Example**:
97
+ ```bash
98
+ @acp.package-update firebase
99
+
100
+ Output:
101
+ ↻ Updating: stable-command.md
102
+ ✓ Updated to version 1.2.0
103
+
104
+ ↻ Updating experimental: experimental-command.md # Already installed
105
+ ✓ Updated to version 0.3.0
106
+
107
+ ⊘ Skipping new experimental: new-feature.md # Not installed
108
+
109
+ 🎓 Graduated to stable: formerly-experimental.md # Now stable
110
+ ↻ Updating: formerly-experimental.md
111
+ ✓ Updated to version 1.0.0
112
+
113
+ ✓ Update complete!
114
+ Updated:
115
+ • 3 commands
116
+ • 1 experimental features
117
+ • 1 graduated to stable
118
+
119
+ Note: 1 new experimental features were skipped
120
+ Use --experimental with install to add them
121
+ ```
122
+
123
+ **Rationale**: Users who opted into experimental features continue receiving updates. Users who haven't opted in are protected from new experimental features.
124
+
125
+ ---
126
+
127
+ ### 2. Run Package Update Script
128
+
129
+ Execute the update script with chosen options.
130
+
131
+ **Actions**:
132
+ - Run `./agent/scripts/acp.package-update.sh` with desired flags
133
+ - The script will:
134
+ - Read installed packages from `agent/manifest.yaml`
135
+ - Clone each package repository to check for updates
136
+ - Compare current version with remote version
137
+ - Detect locally modified files via checksum comparison
138
+ - Prompt for conflict resolution (unless --skip-modified or --force)
139
+ - Update unmodified files to latest versions
140
+ - Update manifest with new versions and checksums
141
+ - Report what was updated and what was skipped
142
+
143
+ **Expected Outcome**: Packages updated to latest versions
144
+
145
+ ### 3. Review Update Results
146
+
147
+ Verify the updates were applied correctly.
148
+
149
+ **Actions**:
150
+ - Check which files were updated
151
+ - Review any skipped files (locally modified)
152
+ - Verify `agent/manifest.yaml` has new versions
153
+ - Test updated commands/patterns if critical
154
+ - Review changes in updated files
155
+
156
+ **Expected Outcome**: Updates verified and working
157
+
158
+ ### 4. Document Update
159
+
160
+ Update progress tracking with update notes.
161
+
162
+ **Actions**:
163
+ - Add note to `agent/progress.yaml` about package updates
164
+ - Document which packages were updated
165
+ - Note any conflicts or skipped files
166
+ - Record update date
167
+
168
+ **Expected Outcome**: Update tracked in progress
169
+
170
+ ---
171
+
172
+ ## Verification
173
+
174
+ - [ ] Script executed successfully
175
+ - [ ] Version comparison detected updates correctly
176
+ - [ ] Locally modified files detected via checksum
177
+ - [ ] User prompted for conflict resolution (if applicable)
178
+ - [ ] Unmodified files updated to latest versions
179
+ - [ ] Modified files handled according to flags (skip/force)
180
+ - [ ] Manifest updated with new versions and checksums
181
+ - [ ] Update summary shows what changed
182
+ - [ ] No errors during update
183
+
184
+ ---
185
+
186
+ ## Expected Output
187
+
188
+ ### Files Modified
189
+ - `agent/manifest.yaml` - Updated with new versions, checksums, and timestamps
190
+ - `agent/patterns/*.md` - Updated pattern files (unmodified ones)
191
+ - `agent/commands/*.md` - Updated command files (unmodified ones)
192
+ - `agent/design/*.md` - Updated design files (unmodified ones)
193
+
194
+ ### Console Output
195
+ ```
196
+ 📦 ACP Package Updater
197
+ ========================================
198
+
199
+ Checking all packages for updates...
200
+
201
+ ℹ Checking firebase (1.2.0)...
202
+ ✓ Update available: 1.2.0 → 1.3.0
203
+
204
+ ℹ Checking mcp-integration (2.0.1)...
205
+ ✓ Up to date: 2.0.1
206
+
207
+ Update all packages? (y/N) y
208
+
209
+ Updating firebase...
210
+
211
+ ⚠️ Modified files detected:
212
+ - patterns/firebase-security-rules.md
213
+
214
+ Overwrite modified files? (y/N) n
215
+ Skipping modified files
216
+
217
+ ✓ Updated patterns/user-scoped-collections.md (v1.2.0)
218
+ ✓ Updated patterns/firestore-queries.md (v1.0.1)
219
+ ⊘ Skipped patterns/firebase-security-rules.md (modified locally)
220
+ ✓ Updated commands/firebase.init.md (v1.0.1)
221
+
222
+ ✓ Updated firebase: 3 file(s)
223
+ Skipped: 1 file(s)
224
+
225
+ ✅ Update complete!
226
+ ```
227
+
228
+ ### Status Update
229
+ - Package versions updated in manifest
230
+ - File versions and checksums updated
231
+ - Modified files preserved or overwritten based on user choice
232
+
233
+ ---
234
+
235
+ ## Examples
236
+
237
+ ### Example 1: Check for Updates
238
+
239
+ **Context**: Want to see if updates are available without installing
240
+
241
+ **Invocation**: `@acp.package-update --check`
242
+
243
+ **Result**: Shows firebase has update (1.2.0 → 1.3.0), mcp-integration is up to date, provides update commands
244
+
245
+ ### Example 2: Update All Packages
246
+
247
+ **Context**: Want to update all installed packages
248
+
249
+ **Invocation**: `@acp.package-update`
250
+
251
+ **Result**: Checks all packages, finds 2 with updates, prompts for confirmation, updates both packages, skips 1 modified file
252
+
253
+ ### Example 3: Update Specific Package
254
+
255
+ **Context**: Only want to update firebase package
256
+
257
+ **Invocation**: `@acp.package-update firebase`
258
+
259
+ **Result**: Checks only firebase, finds update, prompts for modified files, updates 3 files, skips 1 modified file
260
+
261
+ ### Example 4: Update with Skip Modified
262
+
263
+ **Context**: Want to update but preserve all local changes
264
+
265
+ **Invocation**: `@acp.package-update --skip-modified`
266
+
267
+ **Result**: Updates all packages, automatically skips any locally modified files without prompting
268
+
269
+ ### Example 5: Force Update
270
+
271
+ **Context**: Want to overwrite all local changes
272
+
273
+ **Invocation**: `@acp.package-update --force`
274
+
275
+ **Result**: Updates all files including locally modified ones, no prompts, all changes overwritten
276
+
277
+ ---
278
+
279
+ ## Related Commands
280
+
281
+ - [`@acp.package-install`](acp.package-install.md) - Install packages
282
+ - [`@acp.package-list`](acp.package-list.md) - List installed packages
283
+ - [`@acp.package-info`](acp.package-info.md) - Show package details
284
+ - [`@acp.version-update`](acp.version-update.md) - Update ACP itself (not packages)
285
+
286
+ ---
287
+
288
+ ## Troubleshooting
289
+
290
+ ### Issue 1: No updates available
291
+
292
+ **Symptom**: All packages report "up to date"
293
+
294
+ **Cause**: Packages are already at latest versions
295
+
296
+ **Solution**: This is normal, no action needed
297
+
298
+ ### Issue 2: Failed to clone repository
299
+
300
+ **Symptom**: Error cloning package repository
301
+
302
+ **Cause**: Network issue, repository moved, or deleted
303
+
304
+ **Solution**: Check internet connection, verify repository still exists, update source URL in manifest if moved
305
+
306
+ ### Issue 3: Checksum mismatch on unmodified file
307
+
308
+ **Symptom**: File flagged as modified but you didn't change it
309
+
310
+ **Cause**: Line ending differences (CRLF vs LF) or encoding changes
311
+
312
+ **Solution**: Use --force to overwrite, or manually verify file content
313
+
314
+ ### Issue 4: Update breaks functionality
315
+
316
+ **Symptom**: After update, commands or patterns don't work
317
+
318
+ **Cause**: Breaking changes in package update
319
+
320
+ **Solution**: Check package CHANGELOG, revert using git, or reinstall previous version
321
+
322
+ ---
323
+
324
+ ## Security Considerations
325
+
326
+ ### File Access
327
+ - **Reads**: `agent/manifest.yaml`, installed package files
328
+ - **Writes**: Updated package files, `agent/manifest.yaml`
329
+ - **Executes**: None (only file operations)
330
+
331
+ ### Network Access
332
+ - **Repositories**: Clones package repositories from GitHub
333
+ - **APIs**: None
334
+
335
+ ### Conflict Resolution
336
+ - **Modified files**: Detected via checksum comparison
337
+ - **User control**: Prompts before overwriting (unless --force)
338
+ - **Preservation**: --skip-modified preserves all local changes
339
+
340
+ ---
341
+
342
+ ## Notes
343
+
344
+ - Updates only affect installed files (partial installations stay partial)
345
+ - Checksums recalculated after each update
346
+ - Package metadata (version, commit, timestamp) updated in manifest
347
+ - Modified files can be overwritten with --force flag
348
+ - Use --check to preview updates before applying
349
+ - Safe to run multiple times (idempotent)
350
+
351
+ ---
352
+
353
+ **Namespace**: acp
354
+ **Command**: package-update
355
+ **Version**: 1.0.0
356
+ **Created**: 2026-02-18
357
+ **Last Updated**: 2026-02-18
358
+ **Status**: Active
359
+ **Compatibility**: ACP 2.0.0+
360
+ **Author**: ACP Project