@prmichaelsen/acp-visualizer 0.1.0 → 0.1.2

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 (159) hide show
  1. package/package.json +8 -10
  2. package/src/components/ExtraFieldsBadge.tsx +1 -1
  3. package/src/components/FilterBar.tsx +1 -1
  4. package/src/components/Header.tsx +1 -1
  5. package/src/components/MilestoneTable.tsx +1 -1
  6. package/src/components/MilestoneTree.tsx +2 -2
  7. package/src/components/StatusBadge.tsx +1 -1
  8. package/src/components/StatusDot.tsx +1 -1
  9. package/src/components/TaskList.tsx +1 -1
  10. package/src/routes/__root.tsx +5 -5
  11. package/src/routes/api/watch.ts +1 -1
  12. package/src/routes/index.tsx +2 -2
  13. package/src/routes/milestones.tsx +7 -7
  14. package/src/routes/search.tsx +4 -4
  15. package/src/routes/tasks.tsx +3 -3
  16. package/src/services/progress-database.service.ts +3 -3
  17. package/agent/commands/acp.clarification-address.md +0 -417
  18. package/agent/commands/acp.clarification-capture.md +0 -386
  19. package/agent/commands/acp.clarification-create.md +0 -437
  20. package/agent/commands/acp.clarifications-research.md +0 -326
  21. package/agent/commands/acp.command-create.md +0 -432
  22. package/agent/commands/acp.design-create.md +0 -286
  23. package/agent/commands/acp.design-reference.md +0 -355
  24. package/agent/commands/acp.handoff.md +0 -270
  25. package/agent/commands/acp.index.md +0 -423
  26. package/agent/commands/acp.init.md +0 -546
  27. package/agent/commands/acp.package-create.md +0 -895
  28. package/agent/commands/acp.package-info.md +0 -212
  29. package/agent/commands/acp.package-install.md +0 -539
  30. package/agent/commands/acp.package-list.md +0 -280
  31. package/agent/commands/acp.package-publish.md +0 -541
  32. package/agent/commands/acp.package-remove.md +0 -293
  33. package/agent/commands/acp.package-search.md +0 -307
  34. package/agent/commands/acp.package-update.md +0 -361
  35. package/agent/commands/acp.package-validate.md +0 -540
  36. package/agent/commands/acp.pattern-create.md +0 -386
  37. package/agent/commands/acp.plan.md +0 -587
  38. package/agent/commands/acp.proceed.md +0 -882
  39. package/agent/commands/acp.project-create.md +0 -675
  40. package/agent/commands/acp.project-info.md +0 -312
  41. package/agent/commands/acp.project-list.md +0 -226
  42. package/agent/commands/acp.project-remove.md +0 -379
  43. package/agent/commands/acp.project-set.md +0 -227
  44. package/agent/commands/acp.project-update.md +0 -307
  45. package/agent/commands/acp.projects-restore.md +0 -228
  46. package/agent/commands/acp.projects-sync.md +0 -347
  47. package/agent/commands/acp.report.md +0 -407
  48. package/agent/commands/acp.resume.md +0 -239
  49. package/agent/commands/acp.sessions.md +0 -301
  50. package/agent/commands/acp.status.md +0 -293
  51. package/agent/commands/acp.sync.md +0 -364
  52. package/agent/commands/acp.task-create.md +0 -500
  53. package/agent/commands/acp.update.md +0 -302
  54. package/agent/commands/acp.validate.md +0 -466
  55. package/agent/commands/acp.version-check-for-updates.md +0 -276
  56. package/agent/commands/acp.version-check.md +0 -191
  57. package/agent/commands/acp.version-update.md +0 -289
  58. package/agent/commands/command.template.md +0 -339
  59. package/agent/commands/git.commit.md +0 -526
  60. package/agent/commands/git.init.md +0 -514
  61. package/agent/commands/tanstack-cloudflare.deploy.md +0 -272
  62. package/agent/commands/tanstack-cloudflare.tail.md +0 -275
  63. package/agent/design/.gitkeep +0 -0
  64. package/agent/design/design.template.md +0 -154
  65. package/agent/design/local.dashboard-layout-routing.md +0 -288
  66. package/agent/design/local.data-model-yaml-parsing.md +0 -310
  67. package/agent/design/local.search-filtering.md +0 -331
  68. package/agent/design/local.server-api-auto-refresh.md +0 -235
  69. package/agent/design/local.table-tree-views.md +0 -299
  70. package/agent/design/local.visualizer-requirements.md +0 -349
  71. package/agent/design/requirements.template.md +0 -387
  72. package/agent/index/.gitkeep +0 -0
  73. package/agent/index/acp.core.yaml +0 -137
  74. package/agent/index/local.main.template.yaml +0 -37
  75. package/agent/manifest.template.yaml +0 -13
  76. package/agent/manifest.yaml +0 -302
  77. package/agent/milestones/.gitkeep +0 -0
  78. package/agent/milestones/milestone-1-project-scaffold-data-pipeline.md +0 -67
  79. package/agent/milestones/milestone-1-{title}.template.md +0 -206
  80. package/agent/milestones/milestone-2-dashboard-views-interaction.md +0 -79
  81. package/agent/package.template.yaml +0 -86
  82. package/agent/patterns/.gitkeep +0 -0
  83. package/agent/patterns/bootstrap.template.md +0 -1237
  84. package/agent/patterns/pattern.template.md +0 -382
  85. package/agent/patterns/tanstack-cloudflare.acl-permissions.md +0 -332
  86. package/agent/patterns/tanstack-cloudflare.action-bar-item.md +0 -416
  87. package/agent/patterns/tanstack-cloudflare.api-route-handlers.md +0 -401
  88. package/agent/patterns/tanstack-cloudflare.auth-session-management.md +0 -387
  89. package/agent/patterns/tanstack-cloudflare.card-and-list.md +0 -271
  90. package/agent/patterns/tanstack-cloudflare.chat-engine.md +0 -353
  91. package/agent/patterns/tanstack-cloudflare.confirmation-tokens.md +0 -346
  92. package/agent/patterns/tanstack-cloudflare.durable-objects-websocket.md +0 -516
  93. package/agent/patterns/tanstack-cloudflare.email-service.md +0 -431
  94. package/agent/patterns/tanstack-cloudflare.expander.md +0 -98
  95. package/agent/patterns/tanstack-cloudflare.fcm-push.md +0 -115
  96. package/agent/patterns/tanstack-cloudflare.firebase-anonymous-sessions.md +0 -441
  97. package/agent/patterns/tanstack-cloudflare.firebase-auth.md +0 -348
  98. package/agent/patterns/tanstack-cloudflare.firebase-firestore.md +0 -550
  99. package/agent/patterns/tanstack-cloudflare.firebase-storage.md +0 -369
  100. package/agent/patterns/tanstack-cloudflare.form-controls.md +0 -145
  101. package/agent/patterns/tanstack-cloudflare.global-search-context.md +0 -93
  102. package/agent/patterns/tanstack-cloudflare.image-carousel.md +0 -126
  103. package/agent/patterns/tanstack-cloudflare.library-services.md +0 -553
  104. package/agent/patterns/tanstack-cloudflare.lightbox.md +0 -169
  105. package/agent/patterns/tanstack-cloudflare.markdown-content.md +0 -115
  106. package/agent/patterns/tanstack-cloudflare.mention-suggestions.md +0 -98
  107. package/agent/patterns/tanstack-cloudflare.modal.md +0 -156
  108. package/agent/patterns/tanstack-cloudflare.nextjs-to-tanstack-routing.md +0 -461
  109. package/agent/patterns/tanstack-cloudflare.notifications-engine.md +0 -151
  110. package/agent/patterns/tanstack-cloudflare.oauth-token-refresh.md +0 -90
  111. package/agent/patterns/tanstack-cloudflare.og-metadata.md +0 -296
  112. package/agent/patterns/tanstack-cloudflare.pagination.md +0 -442
  113. package/agent/patterns/tanstack-cloudflare.pill-input.md +0 -220
  114. package/agent/patterns/tanstack-cloudflare.provider-adapter.md +0 -401
  115. package/agent/patterns/tanstack-cloudflare.rate-limiting.md +0 -323
  116. package/agent/patterns/tanstack-cloudflare.scheduled-tasks.md +0 -338
  117. package/agent/patterns/tanstack-cloudflare.searchable-settings.md +0 -375
  118. package/agent/patterns/tanstack-cloudflare.slide-over.md +0 -129
  119. package/agent/patterns/tanstack-cloudflare.ssr-preload.md +0 -571
  120. package/agent/patterns/tanstack-cloudflare.third-party-api-integration.md +0 -508
  121. package/agent/patterns/tanstack-cloudflare.toast-system.md +0 -142
  122. package/agent/patterns/tanstack-cloudflare.unified-header.md +0 -280
  123. package/agent/patterns/tanstack-cloudflare.user-scoped-collections.md +0 -628
  124. package/agent/patterns/tanstack-cloudflare.websocket-manager.md +0 -237
  125. package/agent/patterns/tanstack-cloudflare.wrangler-configuration.md +0 -358
  126. package/agent/patterns/tanstack-cloudflare.zod-schema-validation.md +0 -336
  127. package/agent/progress.template.yaml +0 -161
  128. package/agent/progress.yaml +0 -145
  129. package/agent/schemas/package.schema.yaml +0 -276
  130. package/agent/scripts/acp.common.sh +0 -1781
  131. package/agent/scripts/acp.install.sh +0 -333
  132. package/agent/scripts/acp.package-create.sh +0 -924
  133. package/agent/scripts/acp.package-info.sh +0 -288
  134. package/agent/scripts/acp.package-install.sh +0 -893
  135. package/agent/scripts/acp.package-list.sh +0 -311
  136. package/agent/scripts/acp.package-publish.sh +0 -420
  137. package/agent/scripts/acp.package-remove.sh +0 -348
  138. package/agent/scripts/acp.package-search.sh +0 -156
  139. package/agent/scripts/acp.package-update.sh +0 -517
  140. package/agent/scripts/acp.package-validate.sh +0 -1018
  141. package/agent/scripts/acp.uninstall.sh +0 -85
  142. package/agent/scripts/acp.version-check-for-updates.sh +0 -98
  143. package/agent/scripts/acp.version-check.sh +0 -47
  144. package/agent/scripts/acp.version-update.sh +0 -176
  145. package/agent/scripts/acp.yaml-parser.sh +0 -985
  146. package/agent/scripts/acp.yaml-validate.sh +0 -205
  147. package/agent/tasks/.gitkeep +0 -0
  148. package/agent/tasks/milestone-1-project-scaffold-data-pipeline/task-1-initialize-tanstack-start-project.md +0 -210
  149. package/agent/tasks/milestone-1-project-scaffold-data-pipeline/task-2-implement-data-model-yaml-parser.md +0 -294
  150. package/agent/tasks/milestone-1-project-scaffold-data-pipeline/task-3-build-server-api-data-loading.md +0 -193
  151. package/agent/tasks/milestone-1-project-scaffold-data-pipeline/task-4-add-auto-refresh-sse.md +0 -262
  152. package/agent/tasks/milestone-2-dashboard-views-interaction/task-10-polish-integration-testing.md +0 -156
  153. package/agent/tasks/milestone-2-dashboard-views-interaction/task-5-build-dashboard-layout-routing.md +0 -178
  154. package/agent/tasks/milestone-2-dashboard-views-interaction/task-6-build-overview-page.md +0 -141
  155. package/agent/tasks/milestone-2-dashboard-views-interaction/task-7-implement-milestone-table-view.md +0 -153
  156. package/agent/tasks/milestone-2-dashboard-views-interaction/task-8-implement-milestone-tree-view.md +0 -174
  157. package/agent/tasks/milestone-2-dashboard-views-interaction/task-9-implement-search-filtering.md +0 -233
  158. package/agent/tasks/task-1-{title}.template.md +0 -244
  159. package/vitest.config.ts +0 -27
@@ -1,423 +0,0 @@
1
- # Command: index
2
-
3
- > **🤖 Agent Directive**: If you are reading this file, the command `@acp-index` has been invoked. Follow the steps below to execute this command.
4
- > Pretend this command was entered with this additional context: "Execute directive `@acp-index` 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."
6
-
7
- **Namespace**: acp
8
- **Version**: 1.0.0
9
- **Created**: 2026-03-02
10
- **Last Updated**: 2026-03-02
11
- **Status**: Active
12
- **Scripts**: None
13
-
14
- ---
15
-
16
- **Purpose**: Manage the key file index — list, add, remove, explore, and show indexed key files
17
- **Category**: Maintenance
18
- **Frequency**: As Needed
19
-
20
- ---
21
-
22
- ## Arguments
23
-
24
- This command supports both CLI-style subcommands and natural language arguments.
25
-
26
- ### Subcommands
27
-
28
- | Subcommand | Description |
29
- |------------|-------------|
30
- | (none) / `list` | List all indexed key files (default) |
31
- | `add <path>` | Add a file to `agent/index/local.main.yaml` |
32
- | `remove <path>` | Remove a file from `agent/index/local.main.yaml` |
33
- | `explore` | Scan codebase and suggest key files to add |
34
- | `show` | Show full metadata for all entries |
35
-
36
- ### Natural Language (Fuzzy Matching)
37
-
38
- | Example | Detected Subcommand |
39
- |---------|---------------------|
40
- | `@acp.index` | list |
41
- | `@acp.index show all files` | show |
42
- | `@acp.index add the testing pattern` | add (infer path from "testing pattern") |
43
- | `@acp.index remove requirements.md` | remove |
44
- | `@acp.index what should I add?` | explore |
45
- | `@acp.index suggest key files` | explore |
46
-
47
- **Matching rules**:
48
- - Look for keywords: `add`, `remove`, `delete`, `explore`, `suggest`, `scan`, `show`, `detail`, `list`
49
- - If a path is provided after `add`/`remove`, use it directly
50
- - If a description is given instead of path (e.g., "the testing pattern"), search the codebase for matching files
51
- - Default to `list` if no subcommand detected
52
-
53
- ---
54
-
55
- ## What This Command Does
56
-
57
- This command manages the ACP Key File Index system. The key file index is a weighted list of critical project files stored in `agent/index/` that agents must read before taking action. This command provides a convenient interface for viewing, adding, removing, and discovering index entries without manually editing YAML.
58
-
59
- Use this when you want to see what files are indexed, add newly created files, remove stale entries, or discover files that should be indexed based on codebase analysis.
60
-
61
- See also: `agent/design/local.key-file-index-system.md`
62
-
63
- ---
64
-
65
- ## Prerequisites
66
-
67
- - [ ] ACP installed in project
68
- - [ ] `agent/index/` directory exists (created by `acp.install.sh` or Task 99)
69
-
70
- ---
71
-
72
- ## Steps
73
-
74
- ### 1. Check Index Directory
75
-
76
- **Actions**:
77
- - Check if `agent/index/` directory exists
78
- - If not: warn user and suggest running `mkdir -p agent/index`
79
- - List all `*.yaml` files (excluding `*.template.yaml`)
80
-
81
- **Expected Outcome**: Index directory confirmed, files discovered
82
-
83
- ### 2. Parse Arguments
84
-
85
- **Actions**:
86
- - Detect subcommand from flags or natural language (see Arguments section)
87
- - If ambiguous, default to `list`
88
- - If `add`/`remove` with natural language path description, search codebase to resolve to actual path
89
-
90
- **Expected Outcome**: Subcommand and arguments determined
91
-
92
- ### 3. Execute Subcommand
93
-
94
- Branch to the appropriate subcommand handler below.
95
-
96
- ---
97
-
98
- ### Subcommand: `list` (Default)
99
-
100
- List all indexed key files across all namespaces in a compact table.
101
-
102
- **Actions**:
103
- - Parse all index YAML files in `agent/index/`
104
- - Group entries by namespace
105
- - Sort within each namespace by weight descending
106
-
107
- **Display format**:
108
- ```
109
- 📑 Key File Index (7 entries across 2 namespaces)
110
-
111
- local (4 entries):
112
- 1.0 requirements agent/design/requirements.md
113
- 0.8 pattern agent/patterns/local.e2e-testing.md
114
- 0.7 design agent/design/local.architecture.md
115
- 0.6 design src/core/state-machine.ts
116
-
117
- core-sdk (3 entries):
118
- 0.5 pattern agent/patterns/core-sdk.service-base.md
119
- 0.4 pattern agent/patterns/core-sdk.testing-unit.md
120
- 0.3 design agent/design/core-sdk.architecture.md
121
- ```
122
-
123
- **If no index files found**:
124
- ```
125
- 📑 Key File Index: Empty
126
-
127
- No index files found in agent/index/.
128
- Run @acp.index explore to discover key files, or @acp.index add <path> to add one.
129
- ```
130
-
131
- ---
132
-
133
- ### Subcommand: `add <path>`
134
-
135
- Add a file to `agent/index/local.main.yaml`.
136
-
137
- **Actions**:
138
- 1. Validate the file exists at the given path
139
- 2. Check if it's already in any index file (warn if duplicate)
140
- 3. Prompt for required metadata:
141
- - **weight** (suggest based on kind: 0.9 for requirements, 0.8 for patterns, 0.7 for designs)
142
- - **kind** (pattern, command, design, requirements)
143
- - **description** (what the file contains)
144
- - **rationale** (why it should be in the index)
145
- - **applies** (comma-separated fully qualified command names)
146
- 4. Append entry to `agent/index/local.main.yaml`
147
- - If file doesn't exist, create it from `local.main.template.yaml`
148
- 5. Check recommended limits:
149
- - Warn if local namespace exceeds 10 entries
150
- - Warn if total across namespaces exceeds 20 entries
151
-
152
- **Display on success**:
153
- ```
154
- ✅ Added to key file index:
155
-
156
- path: agent/patterns/local.my-pattern.md
157
- weight: 0.8
158
- kind: pattern
159
- applies: acp.proceed, acp.task-create
160
-
161
- Local namespace: 5 entries (within limits)
162
- ```
163
-
164
- ---
165
-
166
- ### Subcommand: `remove <path>`
167
-
168
- Remove a file from `agent/index/local.main.yaml`.
169
-
170
- **Actions**:
171
- 1. Find entry by path in `agent/index/local.main.yaml`
172
- 2. If not found: report error, suggest checking `@acp.index list`
173
- 3. If found: show the entry and confirm removal
174
- 4. Remove entry from YAML file
175
-
176
- **Note**: Only entries in `local.*.yaml` can be removed via this command. Package index entries should be managed via package updates.
177
-
178
- **Display on success**:
179
- ```
180
- ✅ Removed from key file index:
181
-
182
- path: agent/patterns/local.old-pattern.md
183
- was: weight 0.8, pattern
184
-
185
- Local namespace: 3 entries remaining
186
- ```
187
-
188
- ---
189
-
190
- ### Subcommand: `explore`
191
-
192
- Scan the codebase and suggest files that should be indexed.
193
-
194
- **Actions**:
195
- 1. List all files in `agent/design/` (excluding templates)
196
- 2. List all files in `agent/patterns/` (excluding templates)
197
- 3. Check for `requirements.md`, `architecture` design docs
198
- 4. Cross-reference with all existing index entries
199
- 5. Present un-indexed files as suggestions with recommended metadata
200
-
201
- **Display format**:
202
- ```
203
- 🔍 Exploring codebase for key files...
204
-
205
- Found 4 un-indexed files:
206
-
207
- 1. agent/design/requirements.md
208
- Suggested: weight 1.0, kind: requirements
209
- Applies: acp.init, acp.design-create, acp.task-create, acp.plan, acp.proceed
210
-
211
- 2. agent/patterns/local.library-services.md
212
- Suggested: weight 0.7, kind: pattern
213
- Applies: acp.proceed, acp.task-create
214
-
215
- 3. agent/design/yaml-parser-design.md
216
- Suggested: weight 0.6, kind: design
217
- Applies: acp.proceed
218
-
219
- 4. agent/design/acp-package-development-system.md
220
- Suggested: weight 0.6, kind: design
221
- Applies: acp.design-create, acp.plan
222
-
223
- Would you like to add any of these? (enter numbers, "all", or "none")
224
- ```
225
-
226
- If user selects entries:
227
- - Prompt for confirmation/adjustment of suggested metadata
228
- - Add selected entries to `agent/index/local.main.yaml`
229
-
230
- ---
231
-
232
- ### Subcommand: `show`
233
-
234
- Show full metadata for all index entries across all namespaces.
235
-
236
- **Actions**:
237
- - Parse all index YAML files
238
- - Display every field for every entry
239
- - Group by namespace and qualifier
240
-
241
- **Display format**:
242
- ```
243
- 📑 Key File Index — Full Details
244
-
245
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
246
- local.main.yaml (4 entries)
247
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
248
-
249
- path: agent/design/acp-commands-design.md
250
- weight: 0.9
251
- kind: design
252
- description: Core design document for the ACP command system.
253
- rationale: Essential context for creating or modifying any ACP command.
254
- applies: acp.command-create, acp.design-create, acp.plan
255
-
256
- ─────────────────────────────────────────
257
-
258
- path: agent/patterns/local.e2e-testing.md
259
- weight: 0.8
260
- kind: pattern
261
- description: E2E testing pattern used across all test suites.
262
- rationale: Prevents agents from writing tests that don't follow conventions.
263
- applies: acp.task-create, acp.proceed
264
-
265
- [... more entries ...]
266
-
267
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
268
- core-sdk.main.yaml (3 entries)
269
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
270
-
271
- [... entries ...]
272
- ```
273
-
274
- ---
275
-
276
- ## Verification
277
-
278
- - [ ] `agent/index/` directory checked
279
- - [ ] Subcommand detected from arguments or NLP
280
- - [ ] `list`: All entries displayed grouped by namespace
281
- - [ ] `add`: File validated, metadata collected, entry appended, limits checked
282
- - [ ] `remove`: Entry found, confirmed, removed from YAML
283
- - [ ] `explore`: Un-indexed files discovered and presented with suggestions
284
- - [ ] `show`: Full metadata displayed for all entries
285
-
286
- ---
287
-
288
- ## Expected Output
289
-
290
- ### Files Modified
291
- - `agent/index/local.main.yaml` — Modified by `add` and `remove` subcommands
292
-
293
- ### Console Output
294
- See display formats for each subcommand above.
295
-
296
- ---
297
-
298
- ## Examples
299
-
300
- ### Example 1: Listing Indexed Files
301
-
302
- **Context**: Want to see what's currently indexed
303
-
304
- **Invocation**: `@acp.index`
305
-
306
- **Result**: Displays compact table of all indexed files grouped by namespace
307
-
308
- ### Example 2: Adding a New Pattern
309
-
310
- **Context**: Just created a new pattern and want to index it
311
-
312
- **Invocation**: `@acp.index add agent/patterns/local.api-conventions.md`
313
-
314
- **Result**: Prompts for weight/kind/description/rationale/applies, adds to local.main.yaml
315
-
316
- ### Example 3: Exploring for Missing Files
317
-
318
- **Context**: Want to discover what files should be indexed
319
-
320
- **Invocation**: `@acp.index explore`
321
-
322
- **Result**: Scans agent/design/ and agent/patterns/, shows un-indexed files with suggestions
323
-
324
- ### Example 4: Natural Language Add
325
-
326
- **Context**: Want to add a file using description instead of path
327
-
328
- **Invocation**: `@acp.index add the e2e testing pattern`
329
-
330
- **Result**: Agent searches for matching file, finds `agent/patterns/local.e2e-testing.md`, proceeds with add flow
331
-
332
- ### Example 5: Removing a Stale Entry
333
-
334
- **Context**: A file was deleted but still in the index
335
-
336
- **Invocation**: `@acp.index remove agent/design/old-feature.md`
337
-
338
- **Result**: Finds entry, confirms removal, updates local.main.yaml
339
-
340
- ---
341
-
342
- ## Related Commands
343
-
344
- - [`@acp.init`](acp.init.md) - Reads key files during initialization (step 2.8)
345
- - [`@acp.proceed`](acp.proceed.md) - Reads contextual key files before task execution
346
- - [`@acp.validate`](acp.validate.md) - Validates index file paths and schema
347
- - [`@acp.design-create`](acp.design-create.md) - Prompts to add new designs to index
348
- - [`@acp.pattern-create`](acp.pattern-create.md) - Prompts to add new patterns to index
349
-
350
- ---
351
-
352
- ## Troubleshooting
353
-
354
- ### Issue 1: No agent/index/ directory
355
-
356
- **Symptom**: Warning "agent/index/ directory not found"
357
-
358
- **Cause**: ACP installed before key file index system was available
359
-
360
- **Solution**: Run `mkdir -p agent/index` to create the directory
361
-
362
- ### Issue 2: File not found when adding
363
-
364
- **Symptom**: Error "File does not exist: <path>"
365
-
366
- **Cause**: Path is incorrect or file was deleted
367
-
368
- **Solution**: Verify the file path. Use `@acp.index explore` to discover files automatically.
369
-
370
- ### Issue 3: Cannot remove package index entry
371
-
372
- **Symptom**: Error "Entry is in package index, not local"
373
-
374
- **Cause**: Trying to remove an entry from a package-shipped index file
375
-
376
- **Solution**: Package index entries are managed by the package. Use `@acp.package-update` or `@acp.package-remove` to modify package indices.
377
-
378
- ### Issue 4: Exceeding recommended limits
379
-
380
- **Symptom**: Warning about too many entries
381
-
382
- **Cause**: Index has more than 10 entries per namespace or 20 total
383
-
384
- **Solution**: Review entries and remove lower-priority ones. The index should focus on truly critical files.
385
-
386
- ---
387
-
388
- ## Security Considerations
389
-
390
- ### File Access
391
- - **Reads**: `agent/index/*.yaml`, `agent/design/*`, `agent/patterns/*`
392
- - **Writes**: `agent/index/local.main.yaml` (add/remove operations)
393
- - **Executes**: None
394
-
395
- ### Network Access
396
- - **APIs**: None
397
- - **Repositories**: None
398
-
399
- ### Sensitive Data
400
- - **Secrets**: Never includes secrets in index entries
401
- - **Credentials**: Does not access credentials
402
-
403
- ---
404
-
405
- ## Notes
406
-
407
- - This is an LLM-based command — no shell scripts, the agent interprets and executes directly
408
- - Only `local.*.yaml` files can be modified by this command; package indices are read-only
409
- - The `explore` subcommand uses heuristics to suggest files, not exhaustive analysis
410
- - Entries are YAML — the agent must maintain valid YAML when adding/removing
411
- - Recommended limits are advisory, not enforced: 5-10 per namespace, 15-20 total
412
- - The `applies` field should use fully qualified command names (e.g., `acp.init`, `core-sdk.bootstrap`)
413
-
414
- ---
415
-
416
- **Namespace**: acp
417
- **Command**: index
418
- **Version**: 1.0.0
419
- **Created**: 2026-03-02
420
- **Last Updated**: 2026-03-02
421
- **Status**: Active
422
- **Compatibility**: ACP 5.10.0+
423
- **Author**: ACP Project