Skip to content

refactor(path-cli): migrate cmd_track jsonl I/O to Graph API#68

Merged
eliothedeman merged 1 commit into
mainfrom
eliot/gallant-bhabha-c1c2d5
Apr 29, 2026
Merged

refactor(path-cli): migrate cmd_track jsonl I/O to Graph API#68
eliothedeman merged 1 commit into
mainfrom
eliot/gallant-bhabha-c1c2d5

Conversation

@eliothedeman
Copy link
Copy Markdown
Collaborator

Summary

  • cmd_track was the last consumer in path-cli still calling v1::Path::{from,to}_jsonl_*. After 4c1ee8c the JSONL format is anchored at Graph (a single-path graph at the file boundary); migrate load_session / save_session and the three test sites that re-parse .path.jsonl to read/write through Graph::{from,to}_jsonl_* (with into_single_path / from_path at the boundaries).
  • Refresh the stale doc-comment on toolpath::v1::jsonl that still pointed at the Path-level methods.

No behavior change: .path.jsonl session files are byte-identical, and the "tail-f-like" incremental-build flow (path track init / step / note / etc.) still writes the same single-path graph stream — it just goes through the Graph API now.

Test plan

  • cargo build --workspace
  • cargo test --workspace (all suites green, including the 61 cmd_track unit tests)
  • cargo clippy --workspace -- -D warnings

After 4c1ee8c the JSONL format moved from `Path::{from,to}_jsonl_*` to
`Graph::{from,to}_jsonl_*` (single-path graph at the file boundary).
`cmd_track` was the last consumer in path-cli still using the Path-level
API. Migrate `load_session` / `save_session` and the three test sites
that re-parse `.path.jsonl` session files to read through `Graph`, and
refresh the now-stale doc-comment in `toolpath::v1::jsonl` that still
pointed at the Path methods.

No behavior change — `.path.jsonl` is still a single-path graph at the
file boundary. cargo test --workspace and cargo clippy --workspace -- -D
warnings both green.
@github-actions
Copy link
Copy Markdown

🔍 Preview deployed: https://88e040c7.toolpath.pages.dev

@eliothedeman eliothedeman merged commit 54248cc into main Apr 29, 2026
2 checks passed
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.

1 participant