Skip to content

Releases: majiayu000/agent-sessions

v0.3.0 — 原生编程 agent 会话格式扩展

Choose a tag to compare

@majiayu000 majiayu000 released this 08 Oct 07:03

本版将编程 agent 原生会话读取扩展到 26 个来源,新增 JSON/JSONL 快照、补写日志回放、只读 SQLite 和 protobuf 格式适配,并保留事件的原始来源。

  • Codex 按原生历史模式选择内容,避免重复提取;保留结构化工具结果及可确认的用量。
  • 提供 Codex、Grok Build、OpenCode 的自动真实客户端 E2E,以及会话检查示例和 Antigravity 本地导出工具。
  • Rust 最低版本保持 1.88;公共选项/事件结构新增字段,从 0.2 升级时请检查结构体字面量。

本轮三条真实客户端 E2E 全部通过,126 个回归测试通过。具体格式、真实记录验收、多模态和分支恢复等边界见支持清单。本版不宣称所有 agent、版本和功能均已支持或验证。

跨平台 CI 已全部通过:Linux Rust 1.88/stable、macOS、Windows、lint 和 fuzz。

发布包:crates.io 0.3.0。

agent-sessions = "0.3.0"

agent-sessions 0.2.2

Choose a tag to compare

@majiayu000 majiayu000 released this 27 Sep 02:09
133eafa
  • Align the Codex statistics fast path with the canonical parser, including error
    kinds, ignored-record validation, and cumulative usage recovery.
  • Preserve model context from valid observations even when duplicate usage is
    suppressed.
  • Apply max_file_bytes to the captured stop_at_byte prefix consistently for
    file and stream readers, allowing a larger unread suffix.
  • Bound title-index reads to captured file lengths. Existing title APIs remain
    strict and retain their signatures, but now default to a 200 MiB per-index
    limit and an 8 MiB Codex JSONL line limit. Oversized inputs now return an error.
  • Add load_session_titles_with_options and TitleReadOptions to customize or
    disable those limits. Opt-in TitleErrorMode::Collect returns valid titles
    together with source/line errors; a nonempty error list means partial results.

The MSRV remains Rust 1.88. No existing public API was removed or renamed.

Published crate: https://crates.io/crates/agent-sessions/0.2.2

Source commit: 133eafaa78539b4dafbd67a53ab91dd1d98e7181

agent-sessions v0.2.1

Choose a tag to compare

@majiayu000 majiayu000 released this 26 Sep 15:13
108ee83

Clarifies Claude Code and Codex session parsing in the README and crates.io package metadata.

agent-sessions 0.2.0

Choose a tag to compare

@majiayu000 majiayu000 released this 25 Sep 15:54
3ae0828

First public release of agent-sessions.

  • Stream Claude Code and Codex records with native IDs, physical offsets, explicit token accounting and format diagnostics.
  • Discover host roots including configuration overrides, project typed messages/tools, read exact raw records, native history and title indices.
  • Preserve strict errors by default, with explicit compatibility projections for existing archival and statistics consumers.
  • Synthetic fixtures, projection differential tests, bounded stream tests and ASan fuzz coverage.

Rust 1.88+. Consumer integration branches are verified separately; this release does not claim those applications have already shipped their migrations.