Skip to content

add kimi cli adapter#12

Open
berk-developer wants to merge 5 commits intof:masterfrom
berk-developer:master
Open

add kimi cli adapter#12
berk-developer wants to merge 5 commits intof:masterfrom
berk-developer:master

Conversation

@berk-developer
Copy link

Adds Kimi CLI support to Agentlytics.

This introduces a new kimi-cli adapter that reads local Kimi session data from ~/.kimi (or KIMI_SHARE_DIR), ingests chats/messages into the existing analytics pipeline, and exposes Kimi across the CLI/UI surfaces.

What changed

  • added a new editors/kimi.js adapter
  • registered Kimi CLI in the editor registry and CLI display list
  • added Kimi labels/colors in relay and share/UI constants
  • documented Kimi CLI support in README.md and adapter behavior in CONTRIBUTING.md
  • added a test script in package.json

Adapter behavior

  • discovers sessions from sessions/*/*
  • resolves project folders by hashing kimi.json work dirs
  • merges archived and live context*.jsonl files in transcript order
  • skips _checkpoint and _usage records
  • converts assistant tool calls into visible transcript lines and _toolCalls analytics
  • extracts tool output text and associates it with the originating tool when possible
  • attaches token usage from wire.jsonl StatusUpdate events only when assistant-turn counts match
  • falls back to config.toml default_model when a session does not store a model directly

@f
Copy link
Owner

f commented Mar 9, 2026

Can you fix editor file now has labels export.

Move duplicated label and color definitions from share-image.js and
relay-client.js into editors/index.js as the single source of truth.
This resolves the merge conflict in PR f#12 and addresses the owner's
request to export labels from the editor file.

https://claude.ai/code/session_01UyQSBoGQwx5ih6sL6zEF5t
berk-developer and others added 3 commits March 9, 2026 12:26
…3M3s

refactor: centralize EDITOR_LABELS and EDITOR_COLORS in editors/index.js
…R_COLORS

Merge master into kimi cli adapter branch to incorporate the refactoring
that moved EDITOR_LABELS and EDITOR_COLORS from relay-client.js and
share-image.js into editors/index.js as the single source of truth.

https://claude.ai/code/session_01KmNL9s9b5deyyqgZs8mtoo
…s-Ck3lm

fix: resolve conflict by adopting centralized EDITOR_LABELS and EDITOR_COLORS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants