feat(plugins): install local artifacts through the plugin manager
Summary
Install a local plugin archive through the existing manager for #4591 and #4597.
agent-device plugins add-artifact ./provider-plugin.tgz --json
agent-device plugins list --json
import { addPluginArtifact } from 'agent-device/plugins';
await addPluginArtifact('./provider-plugin.tgz', { env: process.env, cwd: process.cwd() });
The manager verifies staged archive integrity before selection and records its installation ID, exact version and SHA-512 digest. Installation skips lifecycle scripts and factory loading; listing checks compatibility. The add receipt marks compatibility unchecked. Existing selections cannot be silently replaced or updated from the registry. Restart the daemon after changing selections. CLI operations use the supplied host environment and working directory.
Scope: 12 files; CLI, public manager API, tests, docs and changeset. No new package or publication change.
Validation
Tested head: 4d0b0108c3a7fc66f404031474582bf8f1224712.
- Exact affected: 42 passed, 25 skipped; full check: 41 passed, 25 skipped.
- Both receipts report
exactCommit=trueandcheckoutChanged=false. - Packed SDK/CLI consumer exercises a real replay archive; local fixture tests cover rollback, isolation and concurrent mutation.
- Coverage at
47b4d14exposed an unhandled aborted fixture upload. A real interrupted-upload regression reproduced the error before the fixture fix and passed afterward; the owning test file passed 41 tests. - Independent review at
b719e5dfound one test assertion issue, corrected subsequently. The small fixture follow-up was cold-read; no fresh independent review at this head.
Hosted checks, T3/e2e adoption and live provider acceptance remain separate.
![Autofix with [code]smith](https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark-3x.png)
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.