Skip to content

feat(anolisa): implement adapter list#875

Open
kongche-jbw wants to merge 1 commit into
alibaba:mainfrom
kongche-jbw:feat/anolisa/adapter-list
Open

feat(anolisa): implement adapter list#875
kongche-jbw wants to merge 1 commit into
alibaba:mainfrom
kongche-jbw:feat/anolisa/adapter-list

Conversation

@kongche-jbw

@kongche-jbw kongche-jbw commented Jun 12, 2026

Copy link
Copy Markdown
Collaborator

Description

Implement anolisa adapter list so users can inspect adapter entries already recorded in local install state.

The command reads ObjectKind::Adapter objects from installed.toml, renders a human-readable inventory table, and supports JSON output through the standard CLI response envelope.

Ship Note

What changed:

  • Added anolisa adapter list.
  • Lists installed adapter objects from installed.toml.
  • Human output includes adapter, component, framework, status, and install path.
  • JSON output includes adapters with adapter metadata and recorded file paths.
  • JSON output intentionally omits kind because this subcommand only returns adapter rows.
  • Empty state now returns a friendly no adapters installed message instead of NOT_IMPLEMENTED.

Known limitations:

  • This is read-only state inventory.
  • It only lists adapter objects already recorded in installed.toml.
  • It does not discover adapter payload directories under ~/.local/share/anolisa/adapters/<component>/<agent>/ yet.
  • It does not verify whether recorded files still exist on disk.
  • It does not run sha256 integrity checks.
  • It does not run framework detection or registration checks.
  • Malformed adapter names are displayed defensively instead of failing the command.

Scenarios not covered:

Related Issue

closes #812

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactoring (no functional change)
  • Performance improvement
  • CI/CD or build changes

Scope

  • cosh (copilot-shell)
  • sec-core (agent-sec-core)
  • skill (os-skills)
  • sight (agentsight)
  • tokenless (tokenless)
  • ckpt (ws-ckpt)
  • memory (agent-memory)
  • anolisa (anolisa-cli)
  • Multiple / Project-wide

Checklist

  • I have read the Contributing Guide
  • My code follows the project's code style
  • I have added tests that prove my fix is effective or that my feature works
  • I have updated the documentation accordingly
  • For anolisa: cargo clippy --all-targets --locked -- -D warnings, cargo fmt --all --check, and cargo test --locked pass
  • Lock files are up to date (package-lock.json / Cargo.lock)

Testing

Latest local checks under src/anolisa:

cargo fmt --all -- --check
cargo test -p anolisa-cli --locked adapter
cargo clippy --workspace --all-targets -- -D warnings

Results:

  • anolisa-cli adapter tests: 30 passed
  • clippy: clean

Earlier full workspace check after rebasing on up/main:

  • workspace tests: 567 passed

- Read installed adapter objects from installed.toml
- Render adapter inventory in human and JSON modes
- Keep list read-only without integrity or detect checks

Signed-off-by: 空澈 <kongche.jbw@alibaba-inc.com>
@kongche-jbw kongche-jbw force-pushed the feat/anolisa/adapter-list branch from 6102af1 to f1b2abb Compare June 12, 2026 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[anolisa] feat(cli): implement anolisa adapter list 子命令

1 participant