kimi-code/apps/vis
Haozhe 026e807cf8
refactor(vis): migrate vis from agent-core v1 to agent-core-v2 (#3438)
* refactor(vis): migrate vis from agent-core v1 to agent-core-v2

- swap vis-server engine deps to @moonshot-ai/agent-core-v2, drop kosong
- rebuild the wire record union from v2 durable payload types
- fold token_counting records into the context-window fill
- read cron state from wire records alongside legacy cron files
- read agent parent/swarm metadata from state.json labels
- align context projection and web rendering with the v2 wire vocabulary
- bundle agent-core-v2 into the vis-server build

* fix(vis): replay legacy compactions per engine rules, tolerate bad cron payloads

- treat every record without keptUserMessageCount (or with an explicit
  legacyTail flag) as a verbatim-tail compaction, matching the engine's
  readContextCompactionShapeInput instead of gating on compactedCount
- derive tokensAfter from the reconstructed shape when the record omits
  it, instead of keeping the stale pre-compaction fill
- skip malformed cron.delete / cron.cursor payloads instead of throwing
2026-09-02 00:00:29 +08:00
..
scripts refactor(vis): rewrite for new agent-core protocol (#34) 2026-05-26 17:57:49 +08:00
server refactor(vis): migrate vis from agent-core v1 to agent-core-v2 (#3438) 2026-09-02 00:00:29 +08:00
web refactor(vis): migrate vis from agent-core v1 to agent-core-v2 (#3438) 2026-09-02 00:00:29 +08:00
package.json refactor(vis): migrate vis from agent-core v1 to agent-core-v2 (#3438) 2026-09-02 00:00:29 +08:00