libra package
Command reference for `libra package`
Historical design for installing, listing, and diffing capability packages — auditable, checksum-verified bundles of skills, slash-commands, Source Pool sources, and sub-agent definitions (CEX-S2-17, Step 2.7). This is a Libra-only AI-ecosystem extension, not a Git command.
Status: unpublished.
libra packageis not registered in the public CLI in the current release. Running it returns the standard unknown-command error (LBR-CLI-001). The interface below describes preserved design material, not a user-visible command contract.
Synopsis
libra package list
libra package diff <path>
libra package install <path> [--yes] [--enable]
libra package uninstall <package-id>Description
A capability package is a local directory containing a manifest.json plus the
bundled content files. The manifest declares the package id, version, publisher,
a SHA-256 checksum over the bundled content, the bundled capabilities
(skills / commands / sources / sub-agents), requested_permissions, and
install_warnings.
The unpublished design uses libra package as the trust gate for those bundles:
listprints every installed package with its version and enabled state, read from the per-repo store at.libra/capability_packages.json.diff <path>loads a local package and previews the capabilities it would grant (new skills / commands / sources / sub-agents / permissions) without installing it. A package bundling a new mutating capability (a source or sub-agent) is flagged as requiring confirmation.install <path>validates the manifest, recomputes and verifies the content checksum (a tampered or truncated package is rejected and nothing is recorded), computes the capability diff, and records the package. Installs are default-deny: a package is recorded disabled unless--enableis passed, and a package that grants a new mutating capability — or an update whose content checksum changed — requires--yesto accept.
Recording a package only persists it to the store; the bundled capabilities are activated into a live session at session startup from that store, never implicitly at install time.
Options
--yes— accept the capability diff without an interactive confirmation (required for a package that grants a new mutating capability, or a changed-checksum update).--enable— enable the package immediately instead of leaving it installed-but-disabled (default-deny).
Examples
# List what is installed.
libra package list
# Preview what a package would grant before trusting it.
libra package diff ./my-package
# Vet and record a package (prints the capability diff; default-deny disabled).
libra package install ./my-package
# Accept a package that bundles a mutating source/sub-agent, and enable it.
libra package install ./my-package --yes --enable
# Uninstall a recorded package by id.
libra package uninstall acme.toolkitThe - **uninstall** form drops a package from the per-repo store; its bundled
capabilities (overlap-safe) disappear at the next session start.
See also
COMPATIBILITY.md—packageis a Libra-only extension (no Git equivalent).docs/development/tracing/agent.mdStep 2.7 (CEX-S2-17) — the capability-package / plugin-trust design.