This repository was archived by the owner on Sep 7, 2026. It is now read-only.
新增 MiniMax Code Trajectory 插件 - #13
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
解决的问题
MiniMax Code 的本地任务轨迹保存在 local-runtime v2 session ledger 中,但目前缺少一个可由 Agent 直接调用、默认保护隐私的轨迹查看插件。本 PR 新增
hetaoBackend/minimax-code-trajectory,将 ledger 转换成有上限的结构化摘要,用于回顾任务时间线、失败状态、工具活动、compaction 和 token 使用情况。实现参考了
icesixgod/codex-trajectory的产品思路,但针对 MiniMax Code v2 ledger contract 从零实现,没有复制其源码或 UI。能力
list_minimax_sessions:列出最近可读取的本地 session,不返回标题、正文或路径。get_minimax_trajectory:返回指定或最近 session 的结构化轨迹。summary不返回消息正文、thinking、工具参数/结果、绝对路径或原始 ledger。full仅返回最长 500 字符的脱敏文本预览和工具名;仍不返回 thinking、工具参数/结果。可复制示例
预期结果:Agent 调用两个 MCP tools,返回 session 时间范围、事件序列、状态、消息/工具计数、compaction 和 token 汇总,不暴露会话正文。
依赖与平台
网络与数据
<dataDir>/v2/sessions/**/manifest.json和ledger.jsonl。config.yaml、认证文件、SQLite、assets、.env或任意用户指定路径,也不写入 dataDir。验证
npm run check:22/22 tests PASS,4 个 hosted Plugins 与全部 examples 校验通过。