Skip to content

Rust parity · slice 4/11 — input parsing (serde-typed Session) #82

Description

@ropdias

Part of #27 · parity v1, slice 4/11 · implemented in #47 (base rust-parity-v1).

Scope

  • input.rs: JSON to a typed Session with every field bash reads in its single jq pass (model, context window, transcript path, session id, rate limits, current usage).
  • Derivations: tokens_used, subagent transcript to parent .jsonl, Antigravity client detection and /antigravity/ to /antigravity-cli/ path correction, is_gemini.

Bash oracle

parse_and_prepare_paths in tokenline.sh.

Done when

  • cargo fmt --check, cargo clippy --all-targets -- -D warnings and cargo test are green
  • Each derivation matches bash for the same payload, and missing fields default like // "" / // 0
  • feat: input parsing — serde-typed Session (parity v1 · slice 4/11) #47 is merged into rust-parity-v1 with a merge commit, not squash or rebase, so the stacked slices above stay valid

Notes

#47 targets rust-parity-v1, not the default branch, so closing keywords do not fire. Close this issue by hand when #47 merges, and tick the slice in the #27 checklist.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:statuslinetokenline.sh render path (model/context/cache, economics, rate limits)effort:SOne file + check (~1h)refactor

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions