Skip to content

[anolisa] feat(cli): implement anolisa adapter install 子命令 #813

@kongche-jbw

Description

@kongche-jbw

背景

#794 拆分。实现 adapter install 子命令。

依赖

  • #811 — detect 探测框架 + 占位符展开

实现内容

  • 从 manifest catalog 中查找组件的 [[adapters]] 声明(匹配 framework)
  • 执行 adapter 安装:将 source 路径的文件/目录复制到 dest(展开 {datadir} 等占位符)
  • 写入 installed.toml 状态(ObjectKind::Adapter
  • 如果 adapter 有 detect 字段,先检测目标框架是否可用(不可用则 warn 或 error)
  • 支持 --dry-run 输出安装计划
  • 记录 central audit log
  • 幂等性:重复 install 应 skip 或 update

相关文件

  • crates/anolisa-cli/src/commands/adapter.rs
  • crates/anolisa-core/src/manifest.rsAdapterSpec
  • crates/anolisa-core/src/state.rs
  • manifests/runtime/tokenless.toml — adapter 声明示例

验收标准

  • anolisa adapter install tokenless openclaw 可正确安装
  • --dry-run 只输出计划不执行
  • 重复安装幂等
  • 目标框架不可用时给出明确提示

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions