yoi/crates/protocol
Hare 22f5d02385 update: SessionId / SessionStart / SessionOrigin 等を Segment 系名称へ
- Type/Function/Variantを Segment* 系へ統一
  - SessionId/SessionStart/SessionOrigin/SessionStartState/SessionState/SessionLogSink/SessionLockInfo
  - new_session_id / session_id / create_session* / list_sessions / lookup_session / update_session / find_by_session
  - protocol Event::SessionRotated → SegmentRotated、CompactDone.new_session_id → new_segment_id
- Module: session_log → segment_log / session → segment (file mv 含む)
  pod 側の session_log_sink → segment_log_sink も同様
- crate 名 (session-store)、CLI flag (--session)、ResumeWithSession (CLI tied) は据え置き
- session-tests/session_metrics_test 等の Store impl も追従
2026-05-20 05:06:04 +09:00
..
src update: SessionId / SessionStart / SessionOrigin 等を Segment 系名称へ 2026-05-20 05:06:04 +09:00
Cargo.toml chore: 依存パッケージの集約 2026-05-01 23:35:46 +09:00
README.md Add README to all crates 2026-04-11 03:07:56 +09:00

protocol

クライアントとPod間の通信プロトコルを定義するクレート。Unix ソケット上で JSON Lines として送受信されるメッセージ型を提供する。

公開型

  • Method — クライアント→Pod のコマンド(Run, Resume, Cancel
  • Event — Pod→クライアント のイベント(TurnStart, TextDelta, ToolCallStart, Usage, Error など)
  • TurnResult — ターン完了状態(Finished, Paused
  • ErrorCode — エラー分類(AlreadyRunning, ProviderError, ToolError など)