[FEAT] aimdb record list: show each record key

未关闭 适合新手
#455 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
85/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
技术栈
rust
领域
cli

调研方向

表格在 tools/aimdb-cli/src/output/table.rs 第101行附近构建。从那里开始,检查记录列表如何获取 RecordMetadata.record_key,然后查看 MCP 如何返回 list_records。将键添加为第一列,同时保留类型名称;完成标准是 aimdb record list 为每条记录显示这两个值。

由索引模型根据 Issue 内容生成。

描述

enhancement

Is your feature request related to a problem? Please describe.
aimdb record list has a Name column that shows the Rust type name, such as contracts::Policy, and no column for the record key. Commands such as aimdb record get take the key (motion.policy), so the list doesn't tell you what to pass to them. The table is built in table.rs.

The data is already available: RecordMetadata has record_key, and MCP list_records returns it.

Describe the solution you'd like
Add a Key column as the first column of the table, and keep the type name beside it.

Describe alternatives you've considered
Replacing Name with the key would keep the table narrower, but it would drop the type name. The Type ID column is the better one to drop if width is a problem.

Additional context
Seen on main at d9c7be0 against an instance whose keys differ from their type names.

主要语言
Rust
星标
101
派生
20
平均合并
2 小时 33 分钟
30 天内合并 PR
90

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

aimdb-dev/aimdb 的其他 Issue

查看 aimdb-dev/aimdb 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。