@@ -270,16 +270,20 @@ apm uninstall microsoft/apm-sample-package --dry-run
270270| ------| ----------|
271271| Package entry | ` apm.yml ` dependencies section |
272272| Package folder | ` apm_modules/owner/repo/ ` |
273+ | Transitive deps | ` apm_modules/ ` (orphaned transitive dependencies) |
273274| Integrated prompts | ` .github/prompts/*-apm.prompt.md ` |
274275| Integrated agents | ` .github/agents/*-apm.agent.md ` |
275276| Integrated chatmodes | ` .github/agents/*-apm.chatmode.md ` |
276277| Claude commands | ` .claude/commands/*-apm.md ` |
277278| Skill folders | ` .github/skills/{folder-name}/ ` |
279+ | Lockfile entries | ` apm.lock ` (removed packages + orphaned transitives) |
278280
279281** Behavior:**
280282- Removes package from ` apm.yml ` dependencies
281283- Deletes package folder from ` apm_modules/ `
284+ - Removes orphaned transitive dependencies (npm-style pruning via ` apm.lock ` )
282285- Removes all integrated files with ` -apm ` suffix that originated from the package
286+ - Updates ` apm.lock ` (or deletes it if no dependencies remain)
283287- Cleans up empty parent directories
284288- Safe operation: only removes APM-managed files (identified by ` -apm ` suffix)
285289
@@ -336,7 +340,7 @@ apm deps COMMAND [OPTIONS]
336340
337341#### ` apm deps list ` - 📋 List installed APM dependencies
338342
339- Show all installed APM dependencies in a Rich table format with context files and agent workflows .
343+ Show all installed APM dependencies in a Rich table format with per-primitive counts .
340344
341345``` bash
342346apm deps list
@@ -350,24 +354,22 @@ apm deps list
350354
351355** Sample Output:**
352356```
353- ┌─────────────────────┬─────────┬──────────────┬─────────────┬─────────────┐
354- │ Package │ Version │ Source │ Context │ Workflows │
355- ├─────────────────────┼─────────┼──────────────┼─────────────┼─────────────┤
356- │ compliance-rules │ 1.0.0 │ main │ 2 files │ 3 wf │
357- │ design-guidelines │ 1.0.0 │ main │ 1 files │ 3 wf │
358- └─────────────────────┴─────────┴──────────────┴─────────────┴─────────────┘
357+ ┌─────────────────────┬─────────┬──────────┬ ───────── ┬────────────── ┬────────┬ ────────┐
358+ │ Package │ Version │ Source │ Prompts │ Instructions │ Agents │ Skills │
359+ ├─────────────────────┼─────────┼──────────┼ ───────── ┼────────────── ┼────────┼ ────────┤
360+ │ compliance-rules │ 1.0.0 │ github │ 2 │ 1 │ - │ 1 │
361+ │ design-guidelines │ 1.0.0 │ github │ - │ 1 │ 1 │ - │
362+ └─────────────────────┴─────────┴──────────┴ ───────── ┴────────────── ┴────────┴ ────────┘
359363```
360364
361365** Output includes:**
362366- Package name and version
363- - Source repository/branch information
364- - Number of context files (instructions, chatmodes, contexts)
365- - Number of agent workflows (prompts)
366- - Installation path and status
367+ - Source information
368+ - Per-primitive counts (prompts, instructions, agents, skills)
367369
368370#### ` apm deps tree ` - 🌳 Show dependency tree structure
369371
370- Display dependencies in hierarchical tree format showing context and agent workflows .
372+ Display dependencies in hierarchical tree format with primitive counts .
371373
372374``` bash
373375apm deps tree
0 commit comments