diff --git a/README.md b/README.md index 99e0ca4..6b15234 100644 --- a/README.md +++ b/README.md @@ -111,7 +111,38 @@ An agent may run all four steps, but it runs step 4 only after the maintainer ex ## For external consumers -Consume the packages through apm, the way this repo does — declare them as `dependencies.apm` git+path entries against the holocron remote and run `apm install`. apm is the only supported install path. +Consume the packages through apm, the way this repo does. apm is the only supported install path. + +### Pinning a plugin to a release + +Each plugin is released as a git tag `-v`, for example `git-v1.3.9` +([ADR-0033](docs/adr/0033-plugin-releases-are-tagged-plugin-v-version.md)). Pin one with apm's +object form, keys in this order (the planned Renovate rule matches only this order): + +```yaml +dependencies: + apm: + - git: https://git.rkdr.net/Mortis/Holocron.git + path: plugins/git + ref: git-v1.3.9 +``` + +Then run `apm install`. Without `ref:`, the entry tracks the default branch. To list a plugin's +releases, run `git ls-remote --tags https://git.rkdr.net/Mortis/Holocron.git '-v*'`; +`apm outdated` also reports newer `-v` tags. + +### Do not use the shorthand form + +The shorthand `git.rkdr.net/Mortis/Holocron/plugins/#-v` does not work on this +host. apm reads `plugins/` as part of the repository path, so a real install tries to clone +`.../Holocron/plugins/.git` and fails with "Not found". `apm install --dry-run` does not catch +this. Use the object form. + +### Automated updates + +Renovate's `apm` manager cannot update these pins: it reads only the shorthand form and drops +object-form entries. A Renovate regex manager on the `ref:` line is planned but untested, so bump +`ref:` by hand until a verified rule is published here. See ADR-0033 consequence 3. ## Where to go next diff --git a/plugins/bin/README.md b/plugins/bin/README.md index b3cf1b7..2049b05 100644 --- a/plugins/bin/README.md +++ b/plugins/bin/README.md @@ -19,7 +19,7 @@ Then: apm install ``` -The entry above is unpinned and tracks the remote's default branch — add `ref: ` to pin a release. Registering the catalogue instead (`apm marketplace add https://git.rkdr.net/Mortis/Holocron.git --name holocron`) gets you the `bin@holocron` short name, but writes to `~/.apm/marketplaces.json` at user scope; the git+path object needs nothing beyond the manifest. +The entry above is unpinned and tracks the remote's default branch. To pin a release, add `ref: bin-v` after `path:`; see [Pinning a plugin to a release](../../README.md#pinning-a-plugin-to-a-release). Registering the catalogue instead (`apm marketplace add https://git.rkdr.net/Mortis/Holocron.git --name holocron`) gets you the `bin@holocron` short name, but writes to `~/.apm/marketplaces.json` at user scope; the git+path object needs nothing beyond the manifest. **Native plugin installs do not work.** This package ships no per-plugin manifest and no flat content directories, so a host that installs it natively gets zero skills — and Claude Code raises no error while doing it (ADR-0024). diff --git a/plugins/core/README.md b/plugins/core/README.md index 9f89cdc..5ee6932 100644 --- a/plugins/core/README.md +++ b/plugins/core/README.md @@ -19,7 +19,7 @@ Then: apm install ``` -The entry above is unpinned and tracks the remote's default branch — add `ref: ` to pin a release. Registering the catalogue instead (`apm marketplace add https://git.rkdr.net/Mortis/Holocron.git --name holocron`) gets you the `core@holocron` short name, but writes to `~/.apm/marketplaces.json` at user scope; the git+path object needs nothing beyond the manifest. +The entry above is unpinned and tracks the remote's default branch. To pin a release, add `ref: core-v` after `path:`; see [Pinning a plugin to a release](../../README.md#pinning-a-plugin-to-a-release). Registering the catalogue instead (`apm marketplace add https://git.rkdr.net/Mortis/Holocron.git --name holocron`) gets you the `core@holocron` short name, but writes to `~/.apm/marketplaces.json` at user scope; the git+path object needs nothing beyond the manifest. **Native plugin installs do not work.** This package ships no per-plugin manifest and no flat content directories, so a host that installs it natively gets zero skills — and Claude Code raises no error while doing it (ADR-0024). diff --git a/plugins/git/README.md b/plugins/git/README.md index 9077cb4..07efef4 100644 --- a/plugins/git/README.md +++ b/plugins/git/README.md @@ -19,7 +19,7 @@ Then: apm install ``` -The entry above is unpinned and tracks the remote's default branch — add `ref: ` to pin a release. Registering the catalogue instead (`apm marketplace add https://git.rkdr.net/Mortis/Holocron.git --name holocron`) gets you the `git@holocron` short name, but writes to `~/.apm/marketplaces.json` at user scope; the git+path object needs nothing beyond the manifest. +The entry above is unpinned and tracks the remote's default branch. To pin a release, add `ref: git-v` after `path:`; see [Pinning a plugin to a release](../../README.md#pinning-a-plugin-to-a-release). Registering the catalogue instead (`apm marketplace add https://git.rkdr.net/Mortis/Holocron.git --name holocron`) gets you the `git@holocron` short name, but writes to `~/.apm/marketplaces.json` at user scope; the git+path object needs nothing beyond the manifest. **Native plugin installs do not work.** This package ships no per-plugin manifest and no flat content directories, so a host that installs it natively gets zero skills and zero agents — and Claude Code raises no error while doing it (ADR-0024). diff --git a/plugins/kyberforge/README.md b/plugins/kyberforge/README.md index cb3966a..5572ba7 100644 --- a/plugins/kyberforge/README.md +++ b/plugins/kyberforge/README.md @@ -19,7 +19,7 @@ Then: apm install ``` -The entry above is unpinned and tracks the remote's default branch — add `ref: ` to pin a release. Registering the catalogue instead (`apm marketplace add https://git.rkdr.net/Mortis/Holocron.git --name holocron`) gets you the `kyberforge@holocron` short name, but writes to `~/.apm/marketplaces.json` at user scope; the git+path object needs nothing beyond the manifest. +The entry above is unpinned and tracks the remote's default branch. To pin a release, add `ref: kyberforge-v` after `path:`; see [Pinning a plugin to a release](../../README.md#pinning-a-plugin-to-a-release). Registering the catalogue instead (`apm marketplace add https://git.rkdr.net/Mortis/Holocron.git --name holocron`) gets you the `kyberforge@holocron` short name, but writes to `~/.apm/marketplaces.json` at user scope; the git+path object needs nothing beyond the manifest. **Native plugin installs do not work.** This package ships no per-plugin manifest and no flat content directories, so a host that installs it natively gets zero skills, agents and hooks — and Claude Code raises no error while doing it (ADR-0024).