Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed

- Refactor `cli.py` and `apm_package.py` into focused modules — `cli.py` is now a thin 80-line wiring layer; all command logic lives in `apm_cli.commands.*` modules (#224)

## [0.7.7] - 2026-03-10

### Added
Expand Down
17 changes: 9 additions & 8 deletions docs/cli-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ apm pack [OPTIONS]

**Options:**
- `-o, --output TEXT` - Output directory (default: `./build/`)
- `-t, --target [vscode|claude|all]` - Filter files by target. Auto-detects from `apm.yml` if not specified
- `-t, --target [copilot|vscode|claude|all]` - Filter files by target. `vscode` is an alias for `copilot`. Auto-detects from `apm.yml` if not specified
- `--archive` - Produce a `.tar.gz` archive instead of a directory
- `--dry-run` - List files that would be packed without writing anything
- `--format [apm|plugin]` - Bundle format (default: `apm`)
Expand All @@ -358,8 +358,8 @@ apm pack
# Pack as a .tar.gz archive
apm pack --archive

# Pack only VS Code / Copilot files
apm pack --target vscode
# Pack only GitHub Copilot / VS Code files
apm pack --target copilot

# Preview what would be packed
apm pack --dry-run
Expand All @@ -375,11 +375,12 @@ apm pack -o dist/

**Target filtering:**

| Target | Includes paths starting with |
|--------|------------------------------|
| `vscode` | `.github/` |
| `claude` | `.claude/` |
| `all` | both |
| Target | Includes paths starting with | Notes |
|--------|------------------------------|-------|
| `copilot` | `.github/` | Primary name for GitHub Copilot / Cursor / Codex / Gemini |
| `vscode` | `.github/` | Alias for `copilot` |
| `claude` | `.claude/` | |
| `all` | both | |

**Enriched lockfile example:**
```yaml
Expand Down
2 changes: 1 addition & 1 deletion docs/runtime-integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ APM's runtime system consists of three main components:
1. **Create Runtime Adapter** - Extend `RuntimeAdapter` in `src/apm_cli/runtime/your_runtime.py`
2. **Create Setup Script** - Add installation script in `scripts/runtime/setup-your-runtime.sh`
3. **Register Runtime** - Add entry to `supported_runtimes` in `RuntimeManager`
4. **Update CLI** - Add runtime to command choices in `cli.py`
4. **Update CLI** - Add runtime to command choices in `src/apm_cli/commands/runtime.py`
5. **Update Factory** - Add runtime to `RuntimeFactory`

### Best Practices
Expand Down