Skip to content

[docs] Update documentation for features from 2026-05-02#1107

Open
danielmeppiel wants to merge 1 commit intomainfrom
docs/update-local-bundle-install-2026-05-02-1c53d40db4793236
Open

[docs] Update documentation for features from 2026-05-02#1107
danielmeppiel wants to merge 1 commit intomainfrom
docs/update-local-bundle-install-2026-05-02-1c53d40db4793236

Conversation

@danielmeppiel
Copy link
Copy Markdown
Collaborator

Documentation Updates - 2026-05-02

This PR updates the documentation based on features merged in the last 24 hours.

Features Documented

Changes Made

  • Updated docs/src/content/docs/guides/pack-distribute.md:
    • Pipeline diagram updated: apm unpack -> apm install <bundle>
    • Corrected plugin-format table row: apm.lock.yaml is now embedded in plugin bundles with pack.bundle_files sha256 manifest
    • Corrected the lockfile enrichment section prose (previously incorrectly stated plugin format has no apm.lock.yaml)
    • Added new apm install <bundle> (restore) section documenting the unified restore primitive, integrity verification, air-gapped behavior, and --as ALIAS flag
    • Added deprecation notice to apm unpack section
  • Updated docs/src/content/docs/reference/cli-commands.md:
    • Added apm install <local-bundle> behavior entry to the Behavior list, linking to the pack-distribute guide

Merged PRs Referenced

Notes

PR #1090 (docs: show maintainer affiliations) and PRs #1093/#1102 (refactor: apm-review-panel) are internal changes that do not require user-facing documentation updates.

Note

🔒 Integrity filter blocked 2 items

The following items were blocked because they don't meet the GitHub integrity level.

  • #1097 search_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
  • #1084 search_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".

To allow these resources, lower min-integrity in your GitHub frontmatter:

tools:
  github:
    min-integrity: approved  # merged | approved | unapproved | none

Generated by Daily Documentation Updater · ● 1.1M ·

To install this agentic workflow, run

gh aw add githubnext/agentics/workflows/daily-doc-updater.md@b87234850bf9664d198f28a02df0f937d0447295
  • expires on May 4, 2026, 12:56 PM UTC

- Update pipeline diagram: apm unpack -> apm install <bundle>
- Correct plugin-format lockfile row: now embeds apm.lock.yaml with
  pack.bundle_files sha256 manifest (SBOM) since v0.12
- Add apm install <bundle> restore section documenting the unified
  restore primitive, integrity verification, and air-gapped behavior
- Mark apm unpack as deprecated (v0.12), removal scheduled for v0.13
- Add apm install <local-bundle> behavior entry in cli-commands.md

Triggered by: #1099 (feat: apm install <local-bundle> + lockfile-embedded
plugin packs)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 2, 2026 12:56
@danielmeppiel danielmeppiel added the automation Deprecated: use type/automation. Kept for issue history; will be removed in milestone 0.10.0. label May 2, 2026
@danielmeppiel danielmeppiel added the documentation Deprecated: use type/docs. Kept for issue history; will be removed in milestone 0.10.0. label May 2, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the user-facing docs for the recent local-bundle install workflow, lockfile-embedded plugin bundles, and the deprecation of apm unpack. It fits into the docs set by aligning the Starlight guides/reference pages with the new bundle restore path introduced in the install/pack pipeline.

Changes:

  • Add apm install <local-bundle> to the CLI reference behavior list.
  • Update the pack/distribute guide to describe plugin bundles embedding apm.lock.yaml with pack.bundle_files.
  • Document the new bundle-restore workflow and add an apm unpack deprecation note.
Show a summary per file
File Description
docs/src/content/docs/reference/cli-commands.md Adds CLI reference text for local-bundle installs.
docs/src/content/docs/guides/pack-distribute.md Updates workflow, bundle-format details, restore docs, and unpack deprecation guidance.

Copilot's findings

Comments suppressed due to low confidence (2)

docs/src/content/docs/guides/pack-distribute.md:309

  • The deprecation timeline here doesn't match the CLI. apm unpack currently warns that it will be removed in v0.14, not v0.13, and legacy --format apm bundles still require apm unpack rather than apm install <bundle>.
Extracts an APM bundle (produced with `--format apm`) into a project directory. Accepts both `.tar.gz` archives and unpacked bundle directories. Plugin-format output should be restored with `apm install <bundle>`, not `apm unpack`.

> **Deprecated**: `apm unpack` is deprecated as of v0.12. Use `apm install <bundle>` instead — it is the unified restore primitive for both plugin-format and APM-format bundles. `apm unpack` will be removed in v0.13.

docs/src/content/docs/reference/cli-commands.md:133

  • This says the deployment is always recorded in the project lockfile, but apm install <bundle> --global writes to the user-scope lockfile under Path.home(). The current wording is only correct for project-scope installs.
- `apm install <local-bundle>`: Restores a packed plugin bundle (directory or `.tar.gz`) produced by `apm pack`. Verifies the sha256 manifest embedded in the bundle's `apm.lock.yaml`, then deploys files to the target directory. Does not mutate `apm.yml`. Records deployed paths under `local_deployed_files` in the project lockfile. Rejected flags: `--resolver`, `--registry`, `--mcp`, `--policy`/`--no-policy`, `--skill`, `--dev`, `--update`, `--trust-transitive-mcp`, `--allow-insecure`. See [Pack & Distribute](../../guides/pack-distribute/#apm-install-bundle-restore) for the full workflow.
  • Files reviewed: 2/2 changed files
  • Comments generated: 3

**Behavior:**
- `apm install` (no args): Installs **all** packages from `apm.yml` and deploys the project's own `.apm/` content
- `apm install <package>`: Installs **only** the specified package (adds to `apm.yml` if not present)
- `apm install <local-bundle>`: Restores a packed plugin bundle (directory or `.tar.gz`) produced by `apm pack`. Verifies the sha256 manifest embedded in the bundle's `apm.lock.yaml`, then deploys files to the target directory. Does not mutate `apm.yml`. Records deployed paths under `local_deployed_files` in the project lockfile. Rejected flags: `--resolver`, `--registry`, `--mcp`, `--policy`/`--no-policy`, `--skill`, `--dev`, `--update`, `--trust-transitive-mcp`, `--allow-insecure`. See [Pack & Distribute](../../guides/pack-distribute/#apm-install-bundle-restore) for the full workflow.
## `apm install <bundle>` (restore)

Extracts an APM bundle (produced with `--format apm`) into a project directory. Accepts both `.tar.gz` archives and unpacked bundle directories. Plugin-format output is consumed directly by Claude Code and other plugin hosts and does not need `apm unpack`.
Restores a packed plugin bundle (directory or `.tar.gz`) produced by `apm pack`. This is the single restore primitive — matching the `pip install ./wheel` / `cargo install --path` mental model.
apm install ./build/my-plugin-1.0.0.tar.gz --dry-run
```

`apm install <bundle>` verifies the sha256 manifest embedded in the bundle's `apm.lock.yaml` before writing any files. Path-traversal entries are rejected at the install boundary. Installed paths are recorded in the project lockfile under `local_deployed_files` — `apm.yml` is never mutated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automation Deprecated: use type/automation. Kept for issue history; will be removed in milestone 0.10.0. documentation Deprecated: use type/docs. Kept for issue history; will be removed in milestone 0.10.0.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants