@prmichaelsen/acp-visualizer 0.1.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 +68 -0
- package/agent/commands/acp.clarification-address.md +417 -0
- package/agent/commands/acp.clarification-capture.md +386 -0
- package/agent/commands/acp.clarification-create.md +437 -0
- package/agent/commands/acp.clarifications-research.md +326 -0
- package/agent/commands/acp.command-create.md +432 -0
- package/agent/commands/acp.design-create.md +286 -0
- package/agent/commands/acp.design-reference.md +355 -0
- package/agent/commands/acp.handoff.md +270 -0
- package/agent/commands/acp.index.md +423 -0
- package/agent/commands/acp.init.md +546 -0
- 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 +539 -0
- 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 +386 -0
- package/agent/commands/acp.plan.md +587 -0
- package/agent/commands/acp.proceed.md +882 -0
- package/agent/commands/acp.project-create.md +675 -0
- package/agent/commands/acp.project-info.md +312 -0
- package/agent/commands/acp.project-list.md +226 -0
- package/agent/commands/acp.project-remove.md +379 -0
- package/agent/commands/acp.project-set.md +227 -0
- package/agent/commands/acp.project-update.md +307 -0
- package/agent/commands/acp.projects-restore.md +228 -0
- package/agent/commands/acp.projects-sync.md +347 -0
- package/agent/commands/acp.report.md +407 -0
- package/agent/commands/acp.resume.md +239 -0
- package/agent/commands/acp.sessions.md +301 -0
- package/agent/commands/acp.status.md +293 -0
- package/agent/commands/acp.sync.md +364 -0
- package/agent/commands/acp.task-create.md +500 -0
- package/agent/commands/acp.update.md +302 -0
- package/agent/commands/acp.validate.md +466 -0
- package/agent/commands/acp.version-check-for-updates.md +276 -0
- package/agent/commands/acp.version-check.md +191 -0
- package/agent/commands/acp.version-update.md +289 -0
- package/agent/commands/command.template.md +339 -0
- package/agent/commands/git.commit.md +526 -0
- package/agent/commands/git.init.md +514 -0
- package/agent/commands/tanstack-cloudflare.deploy.md +272 -0
- package/agent/commands/tanstack-cloudflare.tail.md +275 -0
- package/agent/design/.gitkeep +0 -0
- package/agent/design/design.template.md +154 -0
- package/agent/design/local.dashboard-layout-routing.md +288 -0
- package/agent/design/local.data-model-yaml-parsing.md +310 -0
- package/agent/design/local.search-filtering.md +331 -0
- package/agent/design/local.server-api-auto-refresh.md +235 -0
- package/agent/design/local.table-tree-views.md +299 -0
- package/agent/design/local.visualizer-requirements.md +349 -0
- package/agent/design/requirements.template.md +387 -0
- package/agent/index/.gitkeep +0 -0
- package/agent/index/acp.core.yaml +137 -0
- package/agent/index/local.main.template.yaml +37 -0
- package/agent/manifest.template.yaml +13 -0
- package/agent/manifest.yaml +302 -0
- package/agent/milestones/.gitkeep +0 -0
- package/agent/milestones/milestone-1-project-scaffold-data-pipeline.md +67 -0
- package/agent/milestones/milestone-1-{title}.template.md +206 -0
- package/agent/milestones/milestone-2-dashboard-views-interaction.md +79 -0
- package/agent/package.template.yaml +86 -0
- package/agent/patterns/.gitkeep +0 -0
- package/agent/patterns/bootstrap.template.md +1237 -0
- package/agent/patterns/pattern.template.md +382 -0
- package/agent/patterns/tanstack-cloudflare.acl-permissions.md +332 -0
- package/agent/patterns/tanstack-cloudflare.action-bar-item.md +416 -0
- package/agent/patterns/tanstack-cloudflare.api-route-handlers.md +401 -0
- package/agent/patterns/tanstack-cloudflare.auth-session-management.md +387 -0
- package/agent/patterns/tanstack-cloudflare.card-and-list.md +271 -0
- package/agent/patterns/tanstack-cloudflare.chat-engine.md +353 -0
- package/agent/patterns/tanstack-cloudflare.confirmation-tokens.md +346 -0
- package/agent/patterns/tanstack-cloudflare.durable-objects-websocket.md +516 -0
- package/agent/patterns/tanstack-cloudflare.email-service.md +431 -0
- package/agent/patterns/tanstack-cloudflare.expander.md +98 -0
- package/agent/patterns/tanstack-cloudflare.fcm-push.md +115 -0
- package/agent/patterns/tanstack-cloudflare.firebase-anonymous-sessions.md +441 -0
- package/agent/patterns/tanstack-cloudflare.firebase-auth.md +348 -0
- package/agent/patterns/tanstack-cloudflare.firebase-firestore.md +550 -0
- package/agent/patterns/tanstack-cloudflare.firebase-storage.md +369 -0
- package/agent/patterns/tanstack-cloudflare.form-controls.md +145 -0
- package/agent/patterns/tanstack-cloudflare.global-search-context.md +93 -0
- package/agent/patterns/tanstack-cloudflare.image-carousel.md +126 -0
- package/agent/patterns/tanstack-cloudflare.library-services.md +553 -0
- package/agent/patterns/tanstack-cloudflare.lightbox.md +169 -0
- package/agent/patterns/tanstack-cloudflare.markdown-content.md +115 -0
- package/agent/patterns/tanstack-cloudflare.mention-suggestions.md +98 -0
- package/agent/patterns/tanstack-cloudflare.modal.md +156 -0
- package/agent/patterns/tanstack-cloudflare.nextjs-to-tanstack-routing.md +461 -0
- package/agent/patterns/tanstack-cloudflare.notifications-engine.md +151 -0
- package/agent/patterns/tanstack-cloudflare.oauth-token-refresh.md +90 -0
- package/agent/patterns/tanstack-cloudflare.og-metadata.md +296 -0
- package/agent/patterns/tanstack-cloudflare.pagination.md +442 -0
- package/agent/patterns/tanstack-cloudflare.pill-input.md +220 -0
- package/agent/patterns/tanstack-cloudflare.provider-adapter.md +401 -0
- package/agent/patterns/tanstack-cloudflare.rate-limiting.md +323 -0
- package/agent/patterns/tanstack-cloudflare.scheduled-tasks.md +338 -0
- package/agent/patterns/tanstack-cloudflare.searchable-settings.md +375 -0
- package/agent/patterns/tanstack-cloudflare.slide-over.md +129 -0
- package/agent/patterns/tanstack-cloudflare.ssr-preload.md +571 -0
- package/agent/patterns/tanstack-cloudflare.third-party-api-integration.md +508 -0
- package/agent/patterns/tanstack-cloudflare.toast-system.md +142 -0
- package/agent/patterns/tanstack-cloudflare.unified-header.md +280 -0
- package/agent/patterns/tanstack-cloudflare.user-scoped-collections.md +628 -0
- package/agent/patterns/tanstack-cloudflare.websocket-manager.md +237 -0
- package/agent/patterns/tanstack-cloudflare.wrangler-configuration.md +358 -0
- package/agent/patterns/tanstack-cloudflare.zod-schema-validation.md +336 -0
- package/agent/progress.template.yaml +161 -0
- package/agent/progress.yaml +145 -0
- package/agent/schemas/package.schema.yaml +276 -0
- package/agent/scripts/acp.common.sh +1781 -0
- package/agent/scripts/acp.install.sh +333 -0
- package/agent/scripts/acp.package-create.sh +924 -0
- package/agent/scripts/acp.package-info.sh +288 -0
- package/agent/scripts/acp.package-install.sh +893 -0
- package/agent/scripts/acp.package-list.sh +311 -0
- package/agent/scripts/acp.package-publish.sh +420 -0
- package/agent/scripts/acp.package-remove.sh +348 -0
- package/agent/scripts/acp.package-search.sh +156 -0
- package/agent/scripts/acp.package-update.sh +517 -0
- package/agent/scripts/acp.package-validate.sh +1018 -0
- package/agent/scripts/acp.uninstall.sh +85 -0
- package/agent/scripts/acp.version-check-for-updates.sh +98 -0
- package/agent/scripts/acp.version-check.sh +47 -0
- package/agent/scripts/acp.version-update.sh +176 -0
- package/agent/scripts/acp.yaml-parser.sh +985 -0
- package/agent/scripts/acp.yaml-validate.sh +205 -0
- package/agent/tasks/.gitkeep +0 -0
- package/agent/tasks/milestone-1-project-scaffold-data-pipeline/task-1-initialize-tanstack-start-project.md +210 -0
- package/agent/tasks/milestone-1-project-scaffold-data-pipeline/task-2-implement-data-model-yaml-parser.md +294 -0
- package/agent/tasks/milestone-1-project-scaffold-data-pipeline/task-3-build-server-api-data-loading.md +193 -0
- package/agent/tasks/milestone-1-project-scaffold-data-pipeline/task-4-add-auto-refresh-sse.md +262 -0
- package/agent/tasks/milestone-2-dashboard-views-interaction/task-10-polish-integration-testing.md +156 -0
- package/agent/tasks/milestone-2-dashboard-views-interaction/task-5-build-dashboard-layout-routing.md +178 -0
- package/agent/tasks/milestone-2-dashboard-views-interaction/task-6-build-overview-page.md +141 -0
- package/agent/tasks/milestone-2-dashboard-views-interaction/task-7-implement-milestone-table-view.md +153 -0
- package/agent/tasks/milestone-2-dashboard-views-interaction/task-8-implement-milestone-tree-view.md +174 -0
- package/agent/tasks/milestone-2-dashboard-views-interaction/task-9-implement-search-filtering.md +233 -0
- package/agent/tasks/task-1-{title}.template.md +244 -0
- package/bin/visualize.mjs +84 -0
- package/package.json +48 -0
- package/src/components/ExtraFieldsBadge.tsx +15 -0
- package/src/components/FilterBar.tsx +33 -0
- package/src/components/Header.tsx +23 -0
- package/src/components/MilestoneTable.tsx +167 -0
- package/src/components/MilestoneTree.tsx +84 -0
- package/src/components/ProgressBar.tsx +20 -0
- package/src/components/SearchInput.tsx +22 -0
- package/src/components/Sidebar.tsx +54 -0
- package/src/components/StatusBadge.tsx +23 -0
- package/src/components/StatusDot.tsx +12 -0
- package/src/components/TaskList.tsx +36 -0
- package/src/components/ViewToggle.tsx +31 -0
- package/src/lib/config.ts +8 -0
- package/src/lib/file-watcher.ts +43 -0
- package/src/lib/search.ts +48 -0
- package/src/lib/types.ts +73 -0
- package/src/lib/useAutoRefresh.ts +31 -0
- package/src/lib/useCollapse.ts +31 -0
- package/src/lib/useFilteredData.ts +55 -0
- package/src/lib/yaml-loader-real.spec.ts +47 -0
- package/src/lib/yaml-loader.spec.ts +201 -0
- package/src/lib/yaml-loader.ts +265 -0
- package/src/routeTree.gen.ts +140 -0
- package/src/router.tsx +10 -0
- package/src/routes/__root.tsx +75 -0
- package/src/routes/api/watch.ts +29 -0
- package/src/routes/index.tsx +115 -0
- package/src/routes/milestones.tsx +50 -0
- package/src/routes/search.tsx +84 -0
- package/src/routes/tasks.tsx +63 -0
- package/src/services/progress-database.service.ts +46 -0
- package/src/styles.css +25 -0
- package/tsconfig.json +24 -0
- package/vite.config.ts +16 -0
- package/vitest.config.ts +27 -0
|
@@ -0,0 +1,361 @@
|
|
|
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
|
+
**Scripts**: acp.package-update.sh, acp.common.sh, acp.yaml-parser.sh
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
**Purpose**: Update installed ACP packages to their latest versions with smart conflict detection
|
|
15
|
+
**Category**: Maintenance
|
|
16
|
+
**Frequency**: As Needed
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## What This Command Does
|
|
21
|
+
|
|
22
|
+
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.
|
|
23
|
+
|
|
24
|
+
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.
|
|
25
|
+
|
|
26
|
+
Unlike `@acp.version-update` which updates ACP itself, this command updates third-party packages installed via `@acp.package-install`.
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## Prerequisites
|
|
31
|
+
|
|
32
|
+
- [ ] ACP installed in project
|
|
33
|
+
- [ ] `agent/manifest.yaml` exists with installed packages
|
|
34
|
+
- [ ] Git installed and available
|
|
35
|
+
- [ ] Internet connection available
|
|
36
|
+
- [ ] `agent/scripts/acp.package-update.sh` exists
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## Steps
|
|
41
|
+
|
|
42
|
+
### 1. Choose Update Mode
|
|
43
|
+
|
|
44
|
+
Decide what to update.
|
|
45
|
+
|
|
46
|
+
**Update Modes**:
|
|
47
|
+
|
|
48
|
+
**A. Check for Updates** (preview only):
|
|
49
|
+
```bash
|
|
50
|
+
./agent/scripts/acp.package-update.sh --check
|
|
51
|
+
```
|
|
52
|
+
Shows available updates without installing them.
|
|
53
|
+
|
|
54
|
+
**B. Update All Packages**:
|
|
55
|
+
```bash
|
|
56
|
+
./agent/scripts/acp.package-update.sh
|
|
57
|
+
```
|
|
58
|
+
Updates all installed packages to latest versions.
|
|
59
|
+
|
|
60
|
+
**C. Update Specific Package**:
|
|
61
|
+
```bash
|
|
62
|
+
./agent/scripts/acp.package-update.sh <package-name>
|
|
63
|
+
```
|
|
64
|
+
Updates only the specified package.
|
|
65
|
+
|
|
66
|
+
**D. Update with Options**:
|
|
67
|
+
```bash
|
|
68
|
+
# Skip modified files automatically
|
|
69
|
+
./agent/scripts/acp.package-update.sh --skip-modified
|
|
70
|
+
|
|
71
|
+
# Force overwrite modified files
|
|
72
|
+
./agent/scripts/acp.package-update.sh --force
|
|
73
|
+
|
|
74
|
+
# Auto-confirm (no prompts)
|
|
75
|
+
./agent/scripts/acp.package-update.sh -y
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
**E. Global Package Updates**:
|
|
79
|
+
```bash
|
|
80
|
+
# Update global packages
|
|
81
|
+
./agent/scripts/acp.package-update.sh --global
|
|
82
|
+
|
|
83
|
+
# Update specific global package
|
|
84
|
+
./agent/scripts/acp.package-update.sh --global <package-name>
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
## Experimental Features Behavior
|
|
90
|
+
|
|
91
|
+
The update command handles experimental features intelligently:
|
|
92
|
+
|
|
93
|
+
**Already-installed experimental features**: Updated normally (no flag required)
|
|
94
|
+
**New experimental features**: Skipped (use --experimental with install to add)
|
|
95
|
+
**Graduated features** (experimental → stable): Updated and marked as stable
|
|
96
|
+
|
|
97
|
+
**Example**:
|
|
98
|
+
```bash
|
|
99
|
+
@acp.package-update firebase
|
|
100
|
+
|
|
101
|
+
Output:
|
|
102
|
+
↻ Updating: stable-command.md
|
|
103
|
+
✓ Updated to version 1.2.0
|
|
104
|
+
|
|
105
|
+
↻ Updating experimental: experimental-command.md # Already installed
|
|
106
|
+
✓ Updated to version 0.3.0
|
|
107
|
+
|
|
108
|
+
⊘ Skipping new experimental: new-feature.md # Not installed
|
|
109
|
+
|
|
110
|
+
🎓 Graduated to stable: formerly-experimental.md # Now stable
|
|
111
|
+
↻ Updating: formerly-experimental.md
|
|
112
|
+
✓ Updated to version 1.0.0
|
|
113
|
+
|
|
114
|
+
✓ Update complete!
|
|
115
|
+
Updated:
|
|
116
|
+
• 3 commands
|
|
117
|
+
• 1 experimental features
|
|
118
|
+
• 1 graduated to stable
|
|
119
|
+
|
|
120
|
+
Note: 1 new experimental features were skipped
|
|
121
|
+
Use --experimental with install to add them
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
**Rationale**: Users who opted into experimental features continue receiving updates. Users who haven't opted in are protected from new experimental features.
|
|
125
|
+
|
|
126
|
+
---
|
|
127
|
+
|
|
128
|
+
### 2. Run Package Update Script
|
|
129
|
+
|
|
130
|
+
Execute the update script with chosen options.
|
|
131
|
+
|
|
132
|
+
**Actions**:
|
|
133
|
+
- Run `./agent/scripts/acp.package-update.sh` with desired flags
|
|
134
|
+
- The script will:
|
|
135
|
+
- Read installed packages from `agent/manifest.yaml`
|
|
136
|
+
- Clone each package repository to check for updates
|
|
137
|
+
- Compare current version with remote version
|
|
138
|
+
- Detect locally modified files via checksum comparison
|
|
139
|
+
- Prompt for conflict resolution (unless --skip-modified or --force)
|
|
140
|
+
- Update unmodified files to latest versions
|
|
141
|
+
- Update manifest with new versions and checksums
|
|
142
|
+
- Report what was updated and what was skipped
|
|
143
|
+
|
|
144
|
+
**Expected Outcome**: Packages updated to latest versions
|
|
145
|
+
|
|
146
|
+
### 3. Review Update Results
|
|
147
|
+
|
|
148
|
+
Verify the updates were applied correctly.
|
|
149
|
+
|
|
150
|
+
**Actions**:
|
|
151
|
+
- Check which files were updated
|
|
152
|
+
- Review any skipped files (locally modified)
|
|
153
|
+
- Verify `agent/manifest.yaml` has new versions
|
|
154
|
+
- Test updated commands/patterns if critical
|
|
155
|
+
- Review changes in updated files
|
|
156
|
+
|
|
157
|
+
**Expected Outcome**: Updates verified and working
|
|
158
|
+
|
|
159
|
+
### 4. Document Update
|
|
160
|
+
|
|
161
|
+
Update progress tracking with update notes.
|
|
162
|
+
|
|
163
|
+
**Actions**:
|
|
164
|
+
- Add note to `agent/progress.yaml` about package updates
|
|
165
|
+
- Document which packages were updated
|
|
166
|
+
- Note any conflicts or skipped files
|
|
167
|
+
- Record update date
|
|
168
|
+
|
|
169
|
+
**Expected Outcome**: Update tracked in progress
|
|
170
|
+
|
|
171
|
+
---
|
|
172
|
+
|
|
173
|
+
## Verification
|
|
174
|
+
|
|
175
|
+
- [ ] Script executed successfully
|
|
176
|
+
- [ ] Version comparison detected updates correctly
|
|
177
|
+
- [ ] Locally modified files detected via checksum
|
|
178
|
+
- [ ] User prompted for conflict resolution (if applicable)
|
|
179
|
+
- [ ] Unmodified files updated to latest versions
|
|
180
|
+
- [ ] Modified files handled according to flags (skip/force)
|
|
181
|
+
- [ ] Manifest updated with new versions and checksums
|
|
182
|
+
- [ ] Update summary shows what changed
|
|
183
|
+
- [ ] No errors during update
|
|
184
|
+
|
|
185
|
+
---
|
|
186
|
+
|
|
187
|
+
## Expected Output
|
|
188
|
+
|
|
189
|
+
### Files Modified
|
|
190
|
+
- `agent/manifest.yaml` - Updated with new versions, checksums, and timestamps
|
|
191
|
+
- `agent/patterns/*.md` - Updated pattern files (unmodified ones)
|
|
192
|
+
- `agent/commands/*.md` - Updated command files (unmodified ones)
|
|
193
|
+
- `agent/design/*.md` - Updated design files (unmodified ones)
|
|
194
|
+
|
|
195
|
+
### Console Output
|
|
196
|
+
```
|
|
197
|
+
📦 ACP Package Updater
|
|
198
|
+
========================================
|
|
199
|
+
|
|
200
|
+
Checking all packages for updates...
|
|
201
|
+
|
|
202
|
+
ℹ Checking firebase (1.2.0)...
|
|
203
|
+
✓ Update available: 1.2.0 → 1.3.0
|
|
204
|
+
|
|
205
|
+
ℹ Checking mcp-integration (2.0.1)...
|
|
206
|
+
✓ Up to date: 2.0.1
|
|
207
|
+
|
|
208
|
+
Update all packages? (y/N) y
|
|
209
|
+
|
|
210
|
+
Updating firebase...
|
|
211
|
+
|
|
212
|
+
⚠️ Modified files detected:
|
|
213
|
+
- patterns/firebase-security-rules.md
|
|
214
|
+
|
|
215
|
+
Overwrite modified files? (y/N) n
|
|
216
|
+
Skipping modified files
|
|
217
|
+
|
|
218
|
+
✓ Updated patterns/user-scoped-collections.md (v1.2.0)
|
|
219
|
+
✓ Updated patterns/firestore-queries.md (v1.0.1)
|
|
220
|
+
⊘ Skipped patterns/firebase-security-rules.md (modified locally)
|
|
221
|
+
✓ Updated commands/firebase.init.md (v1.0.1)
|
|
222
|
+
|
|
223
|
+
✓ Updated firebase: 3 file(s)
|
|
224
|
+
Skipped: 1 file(s)
|
|
225
|
+
|
|
226
|
+
✅ Update complete!
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
### Status Update
|
|
230
|
+
- Package versions updated in manifest
|
|
231
|
+
- File versions and checksums updated
|
|
232
|
+
- Modified files preserved or overwritten based on user choice
|
|
233
|
+
|
|
234
|
+
---
|
|
235
|
+
|
|
236
|
+
## Examples
|
|
237
|
+
|
|
238
|
+
### Example 1: Check for Updates
|
|
239
|
+
|
|
240
|
+
**Context**: Want to see if updates are available without installing
|
|
241
|
+
|
|
242
|
+
**Invocation**: `@acp.package-update --check`
|
|
243
|
+
|
|
244
|
+
**Result**: Shows firebase has update (1.2.0 → 1.3.0), mcp-integration is up to date, provides update commands
|
|
245
|
+
|
|
246
|
+
### Example 2: Update All Packages
|
|
247
|
+
|
|
248
|
+
**Context**: Want to update all installed packages
|
|
249
|
+
|
|
250
|
+
**Invocation**: `@acp.package-update`
|
|
251
|
+
|
|
252
|
+
**Result**: Checks all packages, finds 2 with updates, prompts for confirmation, updates both packages, skips 1 modified file
|
|
253
|
+
|
|
254
|
+
### Example 3: Update Specific Package
|
|
255
|
+
|
|
256
|
+
**Context**: Only want to update firebase package
|
|
257
|
+
|
|
258
|
+
**Invocation**: `@acp.package-update firebase`
|
|
259
|
+
|
|
260
|
+
**Result**: Checks only firebase, finds update, prompts for modified files, updates 3 files, skips 1 modified file
|
|
261
|
+
|
|
262
|
+
### Example 4: Update with Skip Modified
|
|
263
|
+
|
|
264
|
+
**Context**: Want to update but preserve all local changes
|
|
265
|
+
|
|
266
|
+
**Invocation**: `@acp.package-update --skip-modified`
|
|
267
|
+
|
|
268
|
+
**Result**: Updates all packages, automatically skips any locally modified files without prompting
|
|
269
|
+
|
|
270
|
+
### Example 5: Force Update
|
|
271
|
+
|
|
272
|
+
**Context**: Want to overwrite all local changes
|
|
273
|
+
|
|
274
|
+
**Invocation**: `@acp.package-update --force`
|
|
275
|
+
|
|
276
|
+
**Result**: Updates all files including locally modified ones, no prompts, all changes overwritten
|
|
277
|
+
|
|
278
|
+
---
|
|
279
|
+
|
|
280
|
+
## Related Commands
|
|
281
|
+
|
|
282
|
+
- [`@acp.package-install`](acp.package-install.md) - Install packages
|
|
283
|
+
- [`@acp.package-list`](acp.package-list.md) - List installed packages
|
|
284
|
+
- [`@acp.package-info`](acp.package-info.md) - Show package details
|
|
285
|
+
- [`@acp.version-update`](acp.version-update.md) - Update ACP itself (not packages)
|
|
286
|
+
|
|
287
|
+
---
|
|
288
|
+
|
|
289
|
+
## Troubleshooting
|
|
290
|
+
|
|
291
|
+
### Issue 1: No updates available
|
|
292
|
+
|
|
293
|
+
**Symptom**: All packages report "up to date"
|
|
294
|
+
|
|
295
|
+
**Cause**: Packages are already at latest versions
|
|
296
|
+
|
|
297
|
+
**Solution**: This is normal, no action needed
|
|
298
|
+
|
|
299
|
+
### Issue 2: Failed to clone repository
|
|
300
|
+
|
|
301
|
+
**Symptom**: Error cloning package repository
|
|
302
|
+
|
|
303
|
+
**Cause**: Network issue, repository moved, or deleted
|
|
304
|
+
|
|
305
|
+
**Solution**: Check internet connection, verify repository still exists, update source URL in manifest if moved
|
|
306
|
+
|
|
307
|
+
### Issue 3: Checksum mismatch on unmodified file
|
|
308
|
+
|
|
309
|
+
**Symptom**: File flagged as modified but you didn't change it
|
|
310
|
+
|
|
311
|
+
**Cause**: Line ending differences (CRLF vs LF) or encoding changes
|
|
312
|
+
|
|
313
|
+
**Solution**: Use --force to overwrite, or manually verify file content
|
|
314
|
+
|
|
315
|
+
### Issue 4: Update breaks functionality
|
|
316
|
+
|
|
317
|
+
**Symptom**: After update, commands or patterns don't work
|
|
318
|
+
|
|
319
|
+
**Cause**: Breaking changes in package update
|
|
320
|
+
|
|
321
|
+
**Solution**: Check package CHANGELOG, revert using git, or reinstall previous version
|
|
322
|
+
|
|
323
|
+
---
|
|
324
|
+
|
|
325
|
+
## Security Considerations
|
|
326
|
+
|
|
327
|
+
### File Access
|
|
328
|
+
- **Reads**: `agent/manifest.yaml`, installed package files
|
|
329
|
+
- **Writes**: Updated package files, `agent/manifest.yaml`
|
|
330
|
+
- **Executes**: None (only file operations)
|
|
331
|
+
|
|
332
|
+
### Network Access
|
|
333
|
+
- **Repositories**: Clones package repositories from GitHub
|
|
334
|
+
- **APIs**: None
|
|
335
|
+
|
|
336
|
+
### Conflict Resolution
|
|
337
|
+
- **Modified files**: Detected via checksum comparison
|
|
338
|
+
- **User control**: Prompts before overwriting (unless --force)
|
|
339
|
+
- **Preservation**: --skip-modified preserves all local changes
|
|
340
|
+
|
|
341
|
+
---
|
|
342
|
+
|
|
343
|
+
## Notes
|
|
344
|
+
|
|
345
|
+
- Updates only affect installed files (partial installations stay partial)
|
|
346
|
+
- Checksums recalculated after each update
|
|
347
|
+
- Package metadata (version, commit, timestamp) updated in manifest
|
|
348
|
+
- Modified files can be overwritten with --force flag
|
|
349
|
+
- Use --check to preview updates before applying
|
|
350
|
+
- Safe to run multiple times (idempotent)
|
|
351
|
+
|
|
352
|
+
---
|
|
353
|
+
|
|
354
|
+
**Namespace**: acp
|
|
355
|
+
**Command**: package-update
|
|
356
|
+
**Version**: 1.0.0
|
|
357
|
+
**Created**: 2026-02-18
|
|
358
|
+
**Last Updated**: 2026-02-18
|
|
359
|
+
**Status**: Active
|
|
360
|
+
**Compatibility**: ACP 2.0.0+
|
|
361
|
+
**Author**: ACP Project
|