@prmichaelsen/remember-mcp 2.3.0 → 2.3.4
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/AGENT.md +114 -3
- package/CHANGELOG.md +27 -0
- package/agent/commands/acp.commit.md +511 -0
- package/agent/commands/acp.package-install.md +347 -0
- package/agent/commands/acp.report.md +392 -0
- package/agent/commands/acp.sync.md +323 -0
- package/agent/commands/acp.update.md +301 -0
- package/agent/commands/acp.validate.md +385 -0
- package/agent/design/comment-memory-type.md +556 -0
- package/agent/design/unified-public-collection.md +545 -0
- package/agent/progress.yaml +26 -0
- package/agent/scripts/install.sh +25 -1
- package/agent/scripts/update.sh +37 -0
- package/agent/tasks/task-44-implement-remember-retract.md +263 -0
- package/agent/tasks/task-45-fix-publish-false-success-bug.md +230 -0
- package/dist/server-factory.js +93 -7
- package/dist/server.js +93 -7
- package/package.json +1 -1
- package/src/services/confirmation-token.service.ts +33 -0
- package/src/tools/confirm.ts +49 -4
- package/src/tools/create-memory.ts +7 -0
- package/src/tools/publish.ts +26 -3
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
# Command: package-install
|
|
2
|
+
|
|
3
|
+
> **🤖 Agent Directive**: If you are reading this file, the command `@acp.package-install` has been invoked. Follow the steps below to execute this command.
|
|
4
|
+
|
|
5
|
+
**Namespace**: acp
|
|
6
|
+
**Version**: 1.0.0
|
|
7
|
+
**Created**: 2026-02-16
|
|
8
|
+
**Last Updated**: 2026-02-16
|
|
9
|
+
**Status**: Active
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
**Purpose**: Install third-party command packages from git repositories using the package-install script
|
|
14
|
+
**Category**: Maintenance
|
|
15
|
+
**Frequency**: As Needed
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## What This Command Does
|
|
20
|
+
|
|
21
|
+
This command installs third-party ACP packages from git repositories by running the `agent/scripts/package-install.sh` script. The script clones the repository and installs files from the `agent/` directory, including commands, patterns, and design documents.
|
|
22
|
+
|
|
23
|
+
Use this command when you want to add community-created commands and patterns, install organization-specific ACP content, or share reusable components across multiple projects. It enables extending ACP with custom functionality, patterns, and documentation.
|
|
24
|
+
|
|
25
|
+
⚠️ **SECURITY WARNING**: Third-party packages can instruct agents to modify files and execute scripts. Always review package contents before installation. You assume all risk when installing third-party packages.
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## Prerequisites
|
|
30
|
+
|
|
31
|
+
- [ ] ACP installed in project
|
|
32
|
+
- [ ] Git installed and available
|
|
33
|
+
- [ ] Internet connection available
|
|
34
|
+
- [ ] `agent/scripts/package-install.sh` exists
|
|
35
|
+
- [ ] You trust the source of the commands
|
|
36
|
+
- [ ] You have reviewed the command repository
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## Steps
|
|
41
|
+
|
|
42
|
+
### 1. Run Package Install Script
|
|
43
|
+
|
|
44
|
+
Execute the package installation script with the repository URL.
|
|
45
|
+
|
|
46
|
+
**Actions**:
|
|
47
|
+
- Verify `./agent/scripts/package-install.sh` exists
|
|
48
|
+
- Run the script with repository URL as argument:
|
|
49
|
+
```bash
|
|
50
|
+
# Interactive mode (asks for confirmation)
|
|
51
|
+
./agent/scripts/package-install.sh <repository-url>
|
|
52
|
+
|
|
53
|
+
# Auto-confirm mode (skips prompts)
|
|
54
|
+
./agent/scripts/package-install.sh -y <repository-url>
|
|
55
|
+
```
|
|
56
|
+
- The script will:
|
|
57
|
+
- Validate the repository URL
|
|
58
|
+
- Clone the repository to a temporary location
|
|
59
|
+
- Scan agent/ directory for installable files (commands, patterns, design)
|
|
60
|
+
- Validate command files (agent directive, namespace check)
|
|
61
|
+
- Check for naming conflicts
|
|
62
|
+
- Ask for confirmation (unless -y flag used)
|
|
63
|
+
- Copy files to respective agent/ directories
|
|
64
|
+
- Clean up temporary files
|
|
65
|
+
- Report what was installed
|
|
66
|
+
|
|
67
|
+
**Expected Outcome**: Script completes successfully and files are installed
|
|
68
|
+
|
|
69
|
+
### 2. Review Installed Files
|
|
70
|
+
|
|
71
|
+
Verify the files were installed correctly.
|
|
72
|
+
|
|
73
|
+
**Actions**:
|
|
74
|
+
- List files in `agent/commands/` to see new commands
|
|
75
|
+
- List files in `agent/patterns/` to see new patterns
|
|
76
|
+
- List files in `agent/design/` to see new designs
|
|
77
|
+
- Read the installed files
|
|
78
|
+
- Verify commands have agent directives
|
|
79
|
+
- Check namespace is not `acp` (reserved for commands)
|
|
80
|
+
- Ensure no malicious content
|
|
81
|
+
|
|
82
|
+
**Expected Outcome**: Files verified safe and functional
|
|
83
|
+
|
|
84
|
+
### 3. Test Installed Commands
|
|
85
|
+
|
|
86
|
+
Try invoking one of the installed commands (if any).
|
|
87
|
+
|
|
88
|
+
**Actions**:
|
|
89
|
+
- Choose a simple command to test
|
|
90
|
+
- Invoke it using `@{namespace}.{action}` syntax
|
|
91
|
+
- Verify it works as expected
|
|
92
|
+
- Check for any errors
|
|
93
|
+
|
|
94
|
+
**Expected Outcome**: Commands work correctly
|
|
95
|
+
|
|
96
|
+
### 4. Document Installation
|
|
97
|
+
|
|
98
|
+
Update progress tracking with installation notes.
|
|
99
|
+
|
|
100
|
+
**Actions**:
|
|
101
|
+
- Add note to `agent/progress.yaml` about installed package
|
|
102
|
+
- Document which package was installed
|
|
103
|
+
- Note installation date
|
|
104
|
+
- List installed files (commands, patterns, designs)
|
|
105
|
+
|
|
106
|
+
**Expected Outcome**: Installation tracked in progress
|
|
107
|
+
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
## Verification
|
|
111
|
+
|
|
112
|
+
- [ ] package-install.sh script exists
|
|
113
|
+
- [ ] Script executed successfully
|
|
114
|
+
- [ ] Files installed to appropriate agent/ directories
|
|
115
|
+
- [ ] Installed commands reviewed for safety (if any)
|
|
116
|
+
- [ ] Installed patterns reviewed (if any)
|
|
117
|
+
- [ ] Installed designs reviewed (if any)
|
|
118
|
+
- [ ] Commands tested and working (if any)
|
|
119
|
+
- [ ] Installation documented in progress.yaml
|
|
120
|
+
- [ ] No errors during installation
|
|
121
|
+
|
|
122
|
+
---
|
|
123
|
+
|
|
124
|
+
## Expected Output
|
|
125
|
+
|
|
126
|
+
### Files Modified
|
|
127
|
+
- `agent/commands/*.md` - Installed command files (if any)
|
|
128
|
+
- `agent/patterns/*.md` - Installed pattern files (if any)
|
|
129
|
+
- `agent/design/*.md` - Installed design files (if any)
|
|
130
|
+
|
|
131
|
+
### Console Output
|
|
132
|
+
```
|
|
133
|
+
📦 ACP Package Installer
|
|
134
|
+
========================================
|
|
135
|
+
|
|
136
|
+
Repository: https://github.com/example/fullstack-package.git
|
|
137
|
+
|
|
138
|
+
Cloning repository...
|
|
139
|
+
✓ Repository cloned
|
|
140
|
+
|
|
141
|
+
Scanning for installable files...
|
|
142
|
+
|
|
143
|
+
📁 commands/ (3 file(s))
|
|
144
|
+
✓ deploy.production.md
|
|
145
|
+
✓ deploy.staging.md
|
|
146
|
+
⚠ deploy.rollback.md (will overwrite existing)
|
|
147
|
+
|
|
148
|
+
📁 patterns/ (2 file(s))
|
|
149
|
+
✓ api-service.md
|
|
150
|
+
✓ error-handling.md
|
|
151
|
+
|
|
152
|
+
📁 design/ (1 file(s))
|
|
153
|
+
✓ deployment-strategy.md
|
|
154
|
+
|
|
155
|
+
Ready to install 6 file(s)
|
|
156
|
+
|
|
157
|
+
Proceed with installation? (y/N) y
|
|
158
|
+
|
|
159
|
+
Installing files...
|
|
160
|
+
✓ Installed commands/deploy.production.md
|
|
161
|
+
✓ Installed commands/deploy.staging.md
|
|
162
|
+
✓ Installed commands/deploy.rollback.md
|
|
163
|
+
✓ Installed patterns/api-service.md
|
|
164
|
+
✓ Installed patterns/error-handling.md
|
|
165
|
+
✓ Installed design/deployment-strategy.md
|
|
166
|
+
|
|
167
|
+
✅ Installation complete!
|
|
168
|
+
|
|
169
|
+
Installed 6 file(s) from:
|
|
170
|
+
https://github.com/example/fullstack-package.git
|
|
171
|
+
|
|
172
|
+
Installed commands:
|
|
173
|
+
- @deploy.production
|
|
174
|
+
- @deploy.staging
|
|
175
|
+
- @deploy.rollback
|
|
176
|
+
|
|
177
|
+
⚠️ Security Reminder:
|
|
178
|
+
Review installed files before using them.
|
|
179
|
+
Third-party files can instruct agents to modify files and execute scripts.
|
|
180
|
+
|
|
181
|
+
Next steps:
|
|
182
|
+
1. Review installed files in agent/ directories
|
|
183
|
+
2. Test installed commands
|
|
184
|
+
3. Update progress.yaml with installation notes
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
### Status Update
|
|
188
|
+
- Commands installed
|
|
189
|
+
- Installation documented
|
|
190
|
+
- Commands ready to use
|
|
191
|
+
|
|
192
|
+
---
|
|
193
|
+
|
|
194
|
+
## Examples
|
|
195
|
+
|
|
196
|
+
### Example 1: Installing Deployment Commands
|
|
197
|
+
|
|
198
|
+
**Context**: Want to add deployment commands from community
|
|
199
|
+
|
|
200
|
+
**Invocation**: `@acp.package-install https://github.com/example/acp-deploy-package.git`
|
|
201
|
+
|
|
202
|
+
**Result**: Script clones repo, installs 3 commands to agent/commands/, now can use @deploy.production
|
|
203
|
+
|
|
204
|
+
### Example 2: Installing Patterns Package
|
|
205
|
+
|
|
206
|
+
**Context**: Want to add TypeScript patterns from organization
|
|
207
|
+
|
|
208
|
+
**Invocation**: `@acp.package-install https://github.com/myorg/typescript-patterns.git`
|
|
209
|
+
|
|
210
|
+
**Result**: Script installs 5 pattern files to agent/patterns/, now have reusable TypeScript patterns
|
|
211
|
+
|
|
212
|
+
### Example 3: Installing Complete Package
|
|
213
|
+
|
|
214
|
+
**Context**: Installing package with commands, patterns, and designs
|
|
215
|
+
|
|
216
|
+
**Invocation**: `@acp.package-install https://github.com/example/fullstack-package.git`
|
|
217
|
+
|
|
218
|
+
**Result**: Script installs 3 commands, 4 patterns, 2 design docs across agent/ directories
|
|
219
|
+
|
|
220
|
+
### Example 4: Installing with Conflicts
|
|
221
|
+
|
|
222
|
+
**Context**: Installing package that conflicts with existing files
|
|
223
|
+
|
|
224
|
+
**Invocation**: `@acp.package-install https://github.com/example/package.git`
|
|
225
|
+
|
|
226
|
+
**Result**: Script detects conflicts, asks for confirmation, overwrites if approved
|
|
227
|
+
|
|
228
|
+
---
|
|
229
|
+
|
|
230
|
+
## Related Commands
|
|
231
|
+
|
|
232
|
+
- [`@acp.validate`](acp.validate.md) - Validate installed commands
|
|
233
|
+
- [`@acp.version-update`](acp.version-update.md) - Update core ACP commands
|
|
234
|
+
- [`@acp.status`](acp.status.md) - View project status
|
|
235
|
+
|
|
236
|
+
---
|
|
237
|
+
|
|
238
|
+
## Troubleshooting
|
|
239
|
+
|
|
240
|
+
### Issue 1: Git clone fails
|
|
241
|
+
|
|
242
|
+
**Symptom**: Cannot clone repository
|
|
243
|
+
|
|
244
|
+
**Cause**: Invalid URL, no internet, or private repository
|
|
245
|
+
|
|
246
|
+
**Solution**: Verify URL is correct, check internet connection, ensure repository is public or you have access
|
|
247
|
+
|
|
248
|
+
### Issue 2: No commands found
|
|
249
|
+
|
|
250
|
+
**Symptom**: Repository cloned but no commands found
|
|
251
|
+
|
|
252
|
+
**Cause**: Commands not in expected location or wrong structure
|
|
253
|
+
|
|
254
|
+
**Solution**: Check repository structure, look for commands/ directory, verify files are .md format
|
|
255
|
+
|
|
256
|
+
### Issue 3: Validation fails
|
|
257
|
+
|
|
258
|
+
**Symptom**: Commands fail validation
|
|
259
|
+
|
|
260
|
+
**Cause**: Commands don't follow ACP structure
|
|
261
|
+
|
|
262
|
+
**Solution**: Review command files, ensure they have agent directive and required sections, contact command author
|
|
263
|
+
|
|
264
|
+
### Issue 4: Namespace conflict
|
|
265
|
+
|
|
266
|
+
**Symptom**: Command uses reserved namespace
|
|
267
|
+
|
|
268
|
+
**Cause**: Command tries to use 'acp' namespace
|
|
269
|
+
|
|
270
|
+
**Solution**: Cannot install - 'acp' namespace is reserved for core commands, contact command author to change namespace
|
|
271
|
+
|
|
272
|
+
---
|
|
273
|
+
|
|
274
|
+
## Security Considerations
|
|
275
|
+
|
|
276
|
+
### ⚠️ CRITICAL SECURITY WARNING
|
|
277
|
+
|
|
278
|
+
**Third-party packages can contain:**
|
|
279
|
+
- **Commands** that instruct agents to modify files and execute scripts
|
|
280
|
+
- **Patterns** that guide code implementation decisions
|
|
281
|
+
- **Designs** that influence architecture and technical decisions
|
|
282
|
+
|
|
283
|
+
**Third-party commands can:**
|
|
284
|
+
- Modify any files in your project
|
|
285
|
+
- Execute shell commands
|
|
286
|
+
- Make network requests
|
|
287
|
+
- Access environment variables
|
|
288
|
+
- Read sensitive data
|
|
289
|
+
|
|
290
|
+
**YOU ASSUME ALL RISK when installing third-party packages.**
|
|
291
|
+
|
|
292
|
+
### Security Best Practices
|
|
293
|
+
|
|
294
|
+
**Before Installing**:
|
|
295
|
+
1. Review the repository and command files
|
|
296
|
+
2. Check the author's reputation
|
|
297
|
+
3. Read what each command does
|
|
298
|
+
4. Verify no malicious content
|
|
299
|
+
5. Test in a non-production environment first
|
|
300
|
+
|
|
301
|
+
**After Installing**:
|
|
302
|
+
1. Review installed command files
|
|
303
|
+
2. Test commands in safe environment
|
|
304
|
+
3. Monitor command behavior
|
|
305
|
+
4. Remove if suspicious activity
|
|
306
|
+
5. Keep installation records
|
|
307
|
+
|
|
308
|
+
### File Access
|
|
309
|
+
- **Reads**: Repository files, existing files in agent/ directories
|
|
310
|
+
- **Writes**: `agent/commands/*.md`, `agent/patterns/*.md`, `agent/design/*.md`
|
|
311
|
+
- **Executes**: `git clone` command, `./agent/scripts/package-install.sh`
|
|
312
|
+
|
|
313
|
+
### Network Access
|
|
314
|
+
- **APIs**: None directly
|
|
315
|
+
- **Repositories**: Clones from specified git repository
|
|
316
|
+
|
|
317
|
+
### Sensitive Data
|
|
318
|
+
- **Secrets**: Does not access secrets
|
|
319
|
+
- **Credentials**: May use git credentials for private repos
|
|
320
|
+
|
|
321
|
+
---
|
|
322
|
+
|
|
323
|
+
## Notes
|
|
324
|
+
|
|
325
|
+
- Installs from all agent/ directories: commands, patterns, design
|
|
326
|
+
- Only install packages from trusted sources
|
|
327
|
+
- Review all files before installation (commands, patterns, designs)
|
|
328
|
+
- Test in safe environment first
|
|
329
|
+
- Keep record of installed packages
|
|
330
|
+
- Update installed packages periodically
|
|
331
|
+
- Remove unused files
|
|
332
|
+
- Report security issues to package authors
|
|
333
|
+
- Consider forking repositories for stability
|
|
334
|
+
- Pin to specific versions/commits for reproducibility
|
|
335
|
+
- Use `-y` flag for automated/scripted installations
|
|
336
|
+
- Patterns and designs influence agent behavior just like commands
|
|
337
|
+
|
|
338
|
+
---
|
|
339
|
+
|
|
340
|
+
**Namespace**: acp
|
|
341
|
+
**Command**: package-install
|
|
342
|
+
**Version**: 1.0.0
|
|
343
|
+
**Created**: 2026-02-16
|
|
344
|
+
**Last Updated**: 2026-02-16
|
|
345
|
+
**Status**: Active
|
|
346
|
+
**Compatibility**: ACP 1.1.0+
|
|
347
|
+
**Author**: ACP Project
|