@prmichaelsen/remember-mcp 2.7.10 → 2.8.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/.env.example +6 -0
- package/AGENT.md +224 -21
- package/CHANGELOG.md +47 -912
- package/README.md +35 -0
- package/agent/commands/acp.command-create.md +373 -0
- package/agent/commands/acp.design-create.md +225 -0
- package/agent/commands/acp.init.md +40 -5
- package/agent/commands/acp.package-create.md +895 -0
- package/agent/commands/acp.package-info.md +212 -0
- package/agent/commands/acp.package-install.md +207 -33
- package/agent/commands/acp.package-list.md +280 -0
- package/agent/commands/acp.package-publish.md +541 -0
- package/agent/commands/acp.package-remove.md +293 -0
- package/agent/commands/acp.package-search.md +307 -0
- package/agent/commands/acp.package-update.md +361 -0
- package/agent/commands/acp.package-validate.md +540 -0
- package/agent/commands/acp.pattern-create.md +327 -0
- package/agent/commands/acp.plan.md +553 -0
- package/agent/commands/acp.proceed.md +112 -86
- package/agent/commands/acp.project-create.md +673 -0
- package/agent/commands/acp.project-list.md +225 -0
- package/agent/commands/acp.project-set.md +227 -0
- package/agent/commands/acp.report.md +3 -0
- package/agent/commands/acp.resume.md +238 -0
- package/agent/commands/acp.status.md +1 -0
- package/agent/commands/acp.sync.md +56 -15
- package/agent/commands/acp.task-create.md +391 -0
- package/agent/commands/acp.update.md +1 -0
- package/agent/commands/acp.validate.md +62 -10
- package/agent/commands/acp.version-check-for-updates.md +6 -5
- package/agent/commands/acp.version-check.md +7 -6
- package/agent/commands/acp.version-update.md +7 -6
- package/agent/commands/command.template.md +48 -0
- package/agent/commands/git.commit.md +6 -3
- package/agent/commands/git.init.md +1 -0
- package/agent/manifest.template.yaml +13 -0
- package/agent/package.template.yaml +53 -0
- package/agent/progress.template.yaml +3 -0
- package/agent/progress.yaml +103 -5
- package/agent/scripts/acp.common.sh +1536 -0
- package/agent/scripts/acp.install.sh +293 -0
- package/agent/scripts/acp.package-create.sh +925 -0
- package/agent/scripts/acp.package-info.sh +270 -0
- package/agent/scripts/acp.package-install.sh +675 -0
- package/agent/scripts/acp.package-list.sh +263 -0
- package/agent/scripts/acp.package-publish.sh +420 -0
- package/agent/scripts/acp.package-remove.sh +272 -0
- package/agent/scripts/acp.package-search.sh +156 -0
- package/agent/scripts/acp.package-update.sh +438 -0
- package/agent/scripts/acp.package-validate.sh +954 -0
- package/agent/scripts/acp.project-list.sh +121 -0
- package/agent/scripts/acp.project-set.sh +138 -0
- package/agent/scripts/{uninstall.sh → acp.uninstall.sh} +25 -15
- package/agent/scripts/{check-for-updates.sh → acp.version-check-for-updates.sh} +24 -14
- package/agent/scripts/{version.sh → acp.version-check.sh} +20 -8
- package/agent/scripts/{update.sh → acp.version-update.sh} +44 -25
- package/agent/scripts/acp.yaml-parser.sh +853 -0
- package/agent/scripts/acp.yaml-validate.sh +205 -0
- package/agent/tasks/task-68-fix-missing-space-properties.md +192 -0
- package/agent/tasks/task-69-add-comprehensive-tool-debugging.md +454 -0
- package/dist/config.d.ts +18 -0
- package/dist/server-factory.js +296 -19
- package/dist/server.js +296 -19
- package/dist/utils/debug.d.ts +52 -0
- package/dist/utils/debug.spec.d.ts +5 -0
- package/dist/weaviate/client.d.ts +1 -1
- package/package.json +1 -1
- package/src/config.ts +33 -0
- package/src/tools/confirm.ts +70 -7
- package/src/tools/publish.ts +19 -1
- package/src/tools/query-space.ts +36 -3
- package/src/tools/search-space.ts +36 -3
- package/src/utils/debug.spec.ts +257 -0
- package/src/utils/debug.ts +138 -0
- package/src/weaviate/client.ts +42 -3
- package/agent/scripts/install.sh +0 -157
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
# Command: package-info
|
|
2
|
+
|
|
3
|
+
> **🤖 Agent Directive**: If you are reading this file, the command `@acp.package-info` 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
|
+
**Scripts**: acp.package-info.sh, acp.common.sh, acp.yaml-parser.sh
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
**Purpose**: Display detailed information about a specific installed package (local or global)
|
|
15
|
+
**Category**: Information
|
|
16
|
+
**Frequency**: As Needed
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## What This Command Does
|
|
21
|
+
|
|
22
|
+
This command shows comprehensive information about an installed ACP package, including metadata (source, version, commit, location), all installed files with their versions, and modification status for each file. Supports both local packages (`./agent/`) and global packages (`~/.acp/packages/`).
|
|
23
|
+
|
|
24
|
+
Use this command when you need detailed information about a package (local or global), want to see which files are installed, check for local modifications, or verify package metadata before updating or removing.
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## Prerequisites
|
|
29
|
+
|
|
30
|
+
- [ ] ACP installed in project
|
|
31
|
+
- [ ] `agent/manifest.yaml` exists with installed packages
|
|
32
|
+
- [ ] `agent/scripts/acp.package-info.sh` exists
|
|
33
|
+
- [ ] Package name is known (use `@acp.package-list` to see installed packages)
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## Steps
|
|
38
|
+
|
|
39
|
+
### 1. Run Package Info Script
|
|
40
|
+
|
|
41
|
+
Execute the info script with the package name.
|
|
42
|
+
|
|
43
|
+
**Actions**:
|
|
44
|
+
- Run `./agent/scripts/acp.package-info.sh [--global] <package-name>`
|
|
45
|
+
- Script will display all package information
|
|
46
|
+
- Use `--global` flag to show global package info
|
|
47
|
+
|
|
48
|
+
**Examples**:
|
|
49
|
+
```bash
|
|
50
|
+
# Show local package info
|
|
51
|
+
./agent/scripts/acp.package-info.sh firebase
|
|
52
|
+
|
|
53
|
+
# Show global package info
|
|
54
|
+
./agent/scripts/acp.package-info.sh --global firebase
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
**Expected Outcome**: Detailed package information displayed
|
|
58
|
+
|
|
59
|
+
### 2. Review Package Information
|
|
60
|
+
|
|
61
|
+
Analyze the displayed information.
|
|
62
|
+
|
|
63
|
+
**Actions**:
|
|
64
|
+
- Note package version and source
|
|
65
|
+
- Review installed files list
|
|
66
|
+
- Check for modified files (marked with [MODIFIED])
|
|
67
|
+
- Verify file versions
|
|
68
|
+
- Note commit hash for reference
|
|
69
|
+
|
|
70
|
+
**Expected Outcome**: Complete understanding of package state
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
## Verification
|
|
75
|
+
|
|
76
|
+
- [ ] Script executed successfully
|
|
77
|
+
- [ ] Package metadata displayed (source, version, commit, dates)
|
|
78
|
+
- [ ] All installed files listed with versions
|
|
79
|
+
- [ ] Modified files marked with [MODIFIED] tag
|
|
80
|
+
- [ ] File counts shown by type
|
|
81
|
+
- [ ] Total file count displayed
|
|
82
|
+
- [ ] Output is well-formatted and readable
|
|
83
|
+
- [ ] No errors during execution
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
87
|
+
## Expected Output
|
|
88
|
+
|
|
89
|
+
### Files Modified
|
|
90
|
+
None - this is a read-only command
|
|
91
|
+
|
|
92
|
+
### Console Output
|
|
93
|
+
```
|
|
94
|
+
📦 firebase (1.2.0)
|
|
95
|
+
|
|
96
|
+
Source: https://github.com/prmichaelsen/acp-firebase.git
|
|
97
|
+
Commit: a1b2c3d4e5f6
|
|
98
|
+
Installed: 2026-02-18T10:30:00Z
|
|
99
|
+
Updated: 2026-02-18T15:45:00Z
|
|
100
|
+
|
|
101
|
+
Contents:
|
|
102
|
+
|
|
103
|
+
Patterns (3):
|
|
104
|
+
- user-scoped-collections.md (v1.1.0)
|
|
105
|
+
- firebase-security-rules.md (v1.0.0) [MODIFIED]
|
|
106
|
+
- firestore-queries.md (v1.0.0)
|
|
107
|
+
|
|
108
|
+
Commands (2):
|
|
109
|
+
- firebase.init.md (v1.0.0)
|
|
110
|
+
- firebase.migrate.md (v1.0.0)
|
|
111
|
+
|
|
112
|
+
Designs (1):
|
|
113
|
+
- firebase-architecture.md (v1.0.0)
|
|
114
|
+
|
|
115
|
+
Modified Files: 1
|
|
116
|
+
|
|
117
|
+
Total Files: 6
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
---
|
|
121
|
+
|
|
122
|
+
## Examples
|
|
123
|
+
|
|
124
|
+
### Example 1: Show Package Info
|
|
125
|
+
|
|
126
|
+
**Context**: Want to see details about firebase package
|
|
127
|
+
|
|
128
|
+
**Invocation**: `@acp.package-info firebase`
|
|
129
|
+
|
|
130
|
+
**Result**: Shows complete package information with 6 files, 1 modified
|
|
131
|
+
|
|
132
|
+
### Example 2: Check Before Update
|
|
133
|
+
|
|
134
|
+
**Context**: Want to see what will be updated
|
|
135
|
+
|
|
136
|
+
**Invocation**: `@acp.package-info firebase`
|
|
137
|
+
|
|
138
|
+
**Result**: Shows current versions and modified files, helps decide update strategy
|
|
139
|
+
|
|
140
|
+
### Example 3: Verify Installation
|
|
141
|
+
|
|
142
|
+
**Context**: Just installed package, want to confirm
|
|
143
|
+
|
|
144
|
+
**Invocation**: `@acp.package-info mcp-integration`
|
|
145
|
+
|
|
146
|
+
**Result**: Shows all installed files with versions, confirms installation successful
|
|
147
|
+
|
|
148
|
+
### Example 4: Package Not Found
|
|
149
|
+
|
|
150
|
+
**Context**: Try to get info for non-existent package
|
|
151
|
+
|
|
152
|
+
**Invocation**: `@acp.package-info nonexistent`
|
|
153
|
+
|
|
154
|
+
**Result**: Error message "Package not installed: nonexistent", suggests using @acp.package-list
|
|
155
|
+
|
|
156
|
+
---
|
|
157
|
+
|
|
158
|
+
## Related Commands
|
|
159
|
+
|
|
160
|
+
- [`@acp.package-list`](acp.package-list.md) - List all installed packages
|
|
161
|
+
- [`@acp.package-update`](acp.package-update.md) - Update package
|
|
162
|
+
- [`@acp.package-remove`](acp.package-remove.md) - Remove package
|
|
163
|
+
- [`@acp.package-install`](acp.package-install.md) - Install package
|
|
164
|
+
|
|
165
|
+
---
|
|
166
|
+
|
|
167
|
+
## Troubleshooting
|
|
168
|
+
|
|
169
|
+
### Issue 1: Package not found
|
|
170
|
+
|
|
171
|
+
**Symptom**: Error "Package not installed"
|
|
172
|
+
|
|
173
|
+
**Cause**: Package name incorrect or not installed
|
|
174
|
+
|
|
175
|
+
**Solution**: Run `@acp.package-list` to see installed packages, check spelling
|
|
176
|
+
|
|
177
|
+
### Issue 2: Modified status incorrect
|
|
178
|
+
|
|
179
|
+
**Symptom**: File shows [MODIFIED] but wasn't changed
|
|
180
|
+
|
|
181
|
+
**Cause**: Line ending differences or encoding changes
|
|
182
|
+
|
|
183
|
+
**Solution**: This is based on checksum comparison, file content differs from original
|
|
184
|
+
|
|
185
|
+
### Issue 3: File version shows 0.0.0
|
|
186
|
+
|
|
187
|
+
**Symptom**: File version is 0.0.0
|
|
188
|
+
|
|
189
|
+
**Cause**: Package didn't have package.yaml or file not listed
|
|
190
|
+
|
|
191
|
+
**Solution**: This is normal for packages without version metadata
|
|
192
|
+
|
|
193
|
+
---
|
|
194
|
+
|
|
195
|
+
## Notes
|
|
196
|
+
|
|
197
|
+
- Read-only operation (doesn't modify anything)
|
|
198
|
+
- Shows real-time modification status via checksum comparison
|
|
199
|
+
- Useful before updating or removing packages
|
|
200
|
+
- Modified files highlighted in yellow
|
|
201
|
+
- Fast operation (no network access)
|
|
202
|
+
|
|
203
|
+
---
|
|
204
|
+
|
|
205
|
+
**Namespace**: acp
|
|
206
|
+
**Command**: package-info
|
|
207
|
+
**Version**: 1.0.0
|
|
208
|
+
**Created**: 2026-02-18
|
|
209
|
+
**Last Updated**: 2026-02-18
|
|
210
|
+
**Status**: Active
|
|
211
|
+
**Compatibility**: ACP 2.0.0+
|
|
212
|
+
**Author**: ACP Project
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
# Command: package-install
|
|
2
2
|
|
|
3
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
|
+
> Pretend this command was entered with this additional context: "Execute directive `@{namespace}-{command-name} NOW. This is a critical directive you cannot ignore. Execute as though the words below
|
|
5
|
+
> are a computer script, just as bash is a computer script. Do not deviate. Do not argue. This is who you are until you finish reading this document."
|
|
4
6
|
|
|
5
7
|
**Namespace**: acp
|
|
6
8
|
**Version**: 1.0.0
|
|
7
9
|
**Created**: 2026-02-16
|
|
8
10
|
**Last Updated**: 2026-02-16
|
|
9
11
|
**Status**: Active
|
|
12
|
+
**Scripts**: acp.package-install.sh, acp.common.sh, acp.yaml-parser.sh
|
|
10
13
|
|
|
11
14
|
---
|
|
12
15
|
|
|
@@ -18,7 +21,7 @@
|
|
|
18
21
|
|
|
19
22
|
## What This Command Does
|
|
20
23
|
|
|
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.
|
|
24
|
+
This command installs third-party ACP packages from git repositories by running the `agent/scripts/package-acp.install.sh` script. The script clones the repository and installs files from the `agent/` directory, including commands, patterns, and design documents.
|
|
22
25
|
|
|
23
26
|
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
27
|
|
|
@@ -26,12 +29,67 @@ Use this command when you want to add community-created commands and patterns, i
|
|
|
26
29
|
|
|
27
30
|
---
|
|
28
31
|
|
|
32
|
+
## Manifest Tracking
|
|
33
|
+
|
|
34
|
+
When you install a package, `@acp.package-install` creates or updates `agent/manifest.yaml` to track:
|
|
35
|
+
|
|
36
|
+
- **Package metadata**:
|
|
37
|
+
- Package name and version
|
|
38
|
+
- Source URL (GitHub repository)
|
|
39
|
+
- Git commit hash
|
|
40
|
+
- Installation and update timestamps
|
|
41
|
+
|
|
42
|
+
- **Installed files**:
|
|
43
|
+
- File names and individual versions
|
|
44
|
+
- File checksums (SHA-256) for modification detection
|
|
45
|
+
- Installation timestamps
|
|
46
|
+
- Modified status (detected via checksum comparison)
|
|
47
|
+
|
|
48
|
+
This enables:
|
|
49
|
+
- ✅ **Smart updates** - Only update changed files
|
|
50
|
+
- ✅ **Conflict detection** - Detect locally modified files
|
|
51
|
+
- ✅ **Team collaboration** - Commit manifest to git for reproducible setups
|
|
52
|
+
- ✅ **Version tracking** - Know exactly what's installed
|
|
53
|
+
- ✅ **Reproducible installs** - Install from manifest on new machines
|
|
54
|
+
|
|
55
|
+
**Example manifest entry**:
|
|
56
|
+
```yaml
|
|
57
|
+
packages:
|
|
58
|
+
firebase:
|
|
59
|
+
source: https://github.com/prmichaelsen/acp-firebase.git
|
|
60
|
+
package_version: 1.2.0
|
|
61
|
+
commit: a1b2c3d4e5f6
|
|
62
|
+
installed_at: 2026-02-18T10:30:00Z
|
|
63
|
+
updated_at: 2026-02-18T10:30:00Z
|
|
64
|
+
installed:
|
|
65
|
+
patterns:
|
|
66
|
+
- name: user-scoped-collections.md
|
|
67
|
+
version: 1.1.0
|
|
68
|
+
installed_at: 2026-02-18T10:30:00Z
|
|
69
|
+
modified: false
|
|
70
|
+
checksum: sha256:abc123...
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
---
|
|
74
|
+
|
|
75
|
+
## Auto-Initialization
|
|
76
|
+
|
|
77
|
+
When using the `--global` flag for the first time, the system automatically initializes `~/.acp/` infrastructure:
|
|
78
|
+
- Creates `~/.acp/` directory
|
|
79
|
+
- Installs full ACP (templates, scripts, schemas)
|
|
80
|
+
- Creates `~/.acp/projects/` directory for package development
|
|
81
|
+
- Creates `~/.acp/agent/manifest.yaml` for package tracking
|
|
82
|
+
|
|
83
|
+
This happens automatically - no manual setup required.
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
29
87
|
## Prerequisites
|
|
30
88
|
|
|
31
89
|
- [ ] ACP installed in project
|
|
32
90
|
- [ ] Git installed and available
|
|
33
91
|
- [ ] Internet connection available
|
|
34
|
-
- [ ] `agent/scripts/package-install.sh` exists
|
|
92
|
+
- [ ] `agent/scripts/package-acp.install.sh` exists
|
|
35
93
|
- [ ] You trust the source of the commands
|
|
36
94
|
- [ ] You have reviewed the command repository
|
|
37
95
|
|
|
@@ -39,32 +97,110 @@ Use this command when you want to add community-created commands and patterns, i
|
|
|
39
97
|
|
|
40
98
|
## Steps
|
|
41
99
|
|
|
42
|
-
### 1.
|
|
100
|
+
### 1. Choose Installation Mode
|
|
101
|
+
|
|
102
|
+
Decide what to install from the package.
|
|
103
|
+
|
|
104
|
+
**Installation Modes**:
|
|
105
|
+
|
|
106
|
+
**A. Full Installation** (default):
|
|
107
|
+
```bash
|
|
108
|
+
./agent/scripts/acp.package-install.sh --repo <repository-url>
|
|
109
|
+
```
|
|
110
|
+
Installs all patterns, commands, designs, and scripts from the package.
|
|
111
|
+
|
|
112
|
+
**B. Global Installation**:
|
|
113
|
+
```bash
|
|
114
|
+
./agent/scripts/acp.package-install.sh --global --repo <repository-url>
|
|
115
|
+
```
|
|
116
|
+
Installs to `~/.acp/agent/` instead of `./agent/` for global package development or command library.
|
|
117
|
+
|
|
118
|
+
**C. List Mode** (preview files):
|
|
119
|
+
```bash
|
|
120
|
+
./agent/scripts/acp.package-install.sh --list --repo <repository-url>
|
|
121
|
+
```
|
|
122
|
+
Shows available files without installing anything.
|
|
123
|
+
|
|
124
|
+
**D. Type-Selective Installation**:
|
|
125
|
+
```bash
|
|
126
|
+
# Install only patterns
|
|
127
|
+
./agent/scripts/acp.package-install.sh --patterns --repo <repository-url>
|
|
128
|
+
|
|
129
|
+
# Install only commands
|
|
130
|
+
./agent/scripts/acp.package-install.sh --commands --repo <repository-url>
|
|
131
|
+
|
|
132
|
+
# Install patterns and commands (not designs)
|
|
133
|
+
./agent/scripts/acp.package-install.sh --patterns --commands --repo <repository-url>
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
**E. File-Selective Installation**:
|
|
137
|
+
```bash
|
|
138
|
+
# Install specific patterns
|
|
139
|
+
./agent/scripts/acp.package-install.sh --patterns file1 file2 --repo <repository-url>
|
|
140
|
+
|
|
141
|
+
# Install specific commands
|
|
142
|
+
./agent/scripts/acp.package-install.sh --commands deploy.production --repo <repository-url>
|
|
143
|
+
|
|
144
|
+
# Mix types and files
|
|
145
|
+
./agent/scripts/acp.package-install.sh --patterns file1 --commands cmd1 cmd2 --repo <repository-url>
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
**Note**: File names can be specified with or without `.md` extension.
|
|
43
149
|
|
|
44
|
-
|
|
150
|
+
**F. Experimental Features Installation**:
|
|
151
|
+
```bash
|
|
152
|
+
# Install only stable features (default)
|
|
153
|
+
./agent/scripts/acp.package-install.sh --repo <repository-url>
|
|
154
|
+
|
|
155
|
+
# Install all features including experimental
|
|
156
|
+
./agent/scripts/acp.package-install.sh --experimental --repo <repository-url>
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
**What are experimental features?**
|
|
160
|
+
- Features marked as `experimental: true` in package.yaml
|
|
161
|
+
- Bleeding-edge features that may change or break
|
|
162
|
+
- Require explicit opt-in via `--experimental` flag
|
|
163
|
+
- Once installed, update normally (no flag required)
|
|
164
|
+
|
|
165
|
+
**Output without --experimental**:
|
|
166
|
+
```
|
|
167
|
+
Installing commands...
|
|
168
|
+
✓ Installed: stable-command.md
|
|
169
|
+
⊘ Skipping experimental: experimental-command.md (use --experimental to install)
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
**Output with --experimental**:
|
|
173
|
+
```
|
|
174
|
+
Installing commands...
|
|
175
|
+
✓ Installed: stable-command.md
|
|
176
|
+
⚠ Installing experimental: experimental-command.md
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
**Note**: Experimental features can be combined with other installation modes (global, selective, etc.).
|
|
180
|
+
|
|
181
|
+
### 2. Run Package Install Script
|
|
182
|
+
|
|
183
|
+
Execute the package installation script with chosen options.
|
|
45
184
|
|
|
46
185
|
**Actions**:
|
|
47
|
-
- Verify `./agent/scripts/package-install.sh` exists
|
|
48
|
-
- Run the script with
|
|
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
|
-
```
|
|
186
|
+
- Verify `./agent/scripts/acp.package-install.sh` exists
|
|
187
|
+
- Run the script with `--repo` flag and desired options
|
|
56
188
|
- The script will:
|
|
57
189
|
- Validate the repository URL
|
|
58
190
|
- Clone the repository to a temporary location
|
|
59
|
-
- Scan agent/ directory for installable files (commands, patterns,
|
|
191
|
+
- Scan agent/ directory for installable files (commands, patterns, designs, scripts)
|
|
192
|
+
- Filter files based on selective flags (if any)
|
|
60
193
|
- Validate command files (agent directive, namespace check)
|
|
194
|
+
- Validate scripts (namespace check, shebang check)
|
|
61
195
|
- Check for naming conflicts
|
|
62
|
-
- Ask for confirmation
|
|
63
|
-
- Copy files to respective agent/ directories
|
|
196
|
+
- Ask for confirmation
|
|
197
|
+
- Copy selected files to respective agent/ directories
|
|
198
|
+
- Make scripts executable automatically
|
|
199
|
+
- Update manifest with installed files and checksums
|
|
64
200
|
- Clean up temporary files
|
|
65
201
|
- Report what was installed
|
|
66
202
|
|
|
67
|
-
**Expected Outcome**: Script completes successfully and files are installed
|
|
203
|
+
**Expected Outcome**: Script completes successfully and selected files are installed
|
|
68
204
|
|
|
69
205
|
### 2. Review Installed Files
|
|
70
206
|
|
|
@@ -83,7 +219,7 @@ Verify the files were installed correctly.
|
|
|
83
219
|
|
|
84
220
|
### 3. Test Installed Commands
|
|
85
221
|
|
|
86
|
-
Try invoking one of the installed commands (if any).
|
|
222
|
+
Try invoking one of the installed commands (if any). Prompt user for explicit confirmation before invoking.
|
|
87
223
|
|
|
88
224
|
**Actions**:
|
|
89
225
|
- Choose a simple command to test
|
|
@@ -93,7 +229,25 @@ Try invoking one of the installed commands (if any).
|
|
|
93
229
|
|
|
94
230
|
**Expected Outcome**: Commands work correctly
|
|
95
231
|
|
|
96
|
-
### 4.
|
|
232
|
+
### 4. Verify Manifest Updated
|
|
233
|
+
|
|
234
|
+
Check that the manifest was created/updated correctly.
|
|
235
|
+
|
|
236
|
+
**Actions**:
|
|
237
|
+
- Verify `agent/manifest.yaml` exists
|
|
238
|
+
- Check package entry was added with:
|
|
239
|
+
- Package name and version
|
|
240
|
+
- Source URL
|
|
241
|
+
- Commit hash
|
|
242
|
+
- Installation timestamp
|
|
243
|
+
- Verify installed files are tracked with:
|
|
244
|
+
- File names and versions
|
|
245
|
+
- Checksums (for modification detection)
|
|
246
|
+
- Installation timestamps
|
|
247
|
+
|
|
248
|
+
**Expected Outcome**: Manifest accurately tracks installation
|
|
249
|
+
|
|
250
|
+
### 5. Document Installation
|
|
97
251
|
|
|
98
252
|
Update progress tracking with installation notes.
|
|
99
253
|
|
|
@@ -109,7 +263,7 @@ Update progress tracking with installation notes.
|
|
|
109
263
|
|
|
110
264
|
## Verification
|
|
111
265
|
|
|
112
|
-
- [ ] package-install.sh script exists
|
|
266
|
+
- [ ] package-acp.install.sh script exists
|
|
113
267
|
- [ ] Script executed successfully
|
|
114
268
|
- [ ] Files installed to appropriate agent/ directories
|
|
115
269
|
- [ ] Installed commands reviewed for safety (if any)
|
|
@@ -193,37 +347,57 @@ Next steps:
|
|
|
193
347
|
|
|
194
348
|
## Examples
|
|
195
349
|
|
|
196
|
-
### Example 1: Installing
|
|
350
|
+
### Example 1: Installing Full Package
|
|
197
351
|
|
|
198
352
|
**Context**: Want to add deployment commands from community
|
|
199
353
|
|
|
200
|
-
**Invocation**: `@acp.package-install
|
|
354
|
+
**Invocation**: `@acp.package-install`
|
|
355
|
+
|
|
356
|
+
**Command to execute**:
|
|
357
|
+
```bash
|
|
358
|
+
./agent/scripts/acp.package-install.sh --repo https://github.com/example/acp-deploy-package.git
|
|
359
|
+
```
|
|
201
360
|
|
|
202
361
|
**Result**: Script clones repo, installs 3 commands to agent/commands/, now can use @deploy.production
|
|
203
362
|
|
|
204
|
-
### Example 2: Installing Patterns
|
|
363
|
+
### Example 2: Installing Patterns Only
|
|
205
364
|
|
|
206
365
|
**Context**: Want to add TypeScript patterns from organization
|
|
207
366
|
|
|
208
|
-
**Invocation**: `@acp.package-install
|
|
367
|
+
**Invocation**: `@acp.package-install`
|
|
368
|
+
|
|
369
|
+
**Command to execute**:
|
|
370
|
+
```bash
|
|
371
|
+
./agent/scripts/acp.package-install.sh --patterns --repo https://github.com/myorg/acp-typescript-patterns.git
|
|
372
|
+
```
|
|
209
373
|
|
|
210
374
|
**Result**: Script installs 5 pattern files to agent/patterns/, now have reusable TypeScript patterns
|
|
211
375
|
|
|
212
|
-
### Example 3: Installing
|
|
376
|
+
### Example 3: Installing Globally
|
|
377
|
+
|
|
378
|
+
**Context**: Installing package globally for package development
|
|
213
379
|
|
|
214
|
-
**
|
|
380
|
+
**Invocation**: `@acp.package-install`
|
|
215
381
|
|
|
216
|
-
**
|
|
382
|
+
**Command to execute**:
|
|
383
|
+
```bash
|
|
384
|
+
./agent/scripts/acp.package-install.sh --global --repo https://github.com/example/acp-package.git
|
|
385
|
+
```
|
|
386
|
+
|
|
387
|
+
**Result**: Script installs to ~/.acp/agent/, tracked in global manifest
|
|
217
388
|
|
|
218
|
-
|
|
389
|
+
### Example 4: Listing Available Files
|
|
219
390
|
|
|
220
|
-
|
|
391
|
+
**Context**: Want to preview package contents before installing
|
|
221
392
|
|
|
222
|
-
**
|
|
393
|
+
**Invocation**: `@acp.package-install`
|
|
223
394
|
|
|
224
|
-
**
|
|
395
|
+
**Command to execute**:
|
|
396
|
+
```bash
|
|
397
|
+
./agent/scripts/acp.package-install.sh --list --repo https://github.com/example/acp-package.git
|
|
398
|
+
```
|
|
225
399
|
|
|
226
|
-
**Result**: Script
|
|
400
|
+
**Result**: Script shows available patterns, commands, designs without installing
|
|
227
401
|
|
|
228
402
|
---
|
|
229
403
|
|
|
@@ -308,7 +482,7 @@ Next steps:
|
|
|
308
482
|
### File Access
|
|
309
483
|
- **Reads**: Repository files, existing files in agent/ directories
|
|
310
484
|
- **Writes**: `agent/commands/*.md`, `agent/patterns/*.md`, `agent/design/*.md`
|
|
311
|
-
- **Executes**: `git clone` command, `./agent/scripts/package-install.sh`
|
|
485
|
+
- **Executes**: `git clone` command, `./agent/scripts/package-acp.install.sh`
|
|
312
486
|
|
|
313
487
|
### Network Access
|
|
314
488
|
- **APIs**: None directly
|