Expand description
Frontend-neutral session management API and shared session models.
Host applications implement SessionBackend to connect the stable
programmatic API to their persistence, agent, Git, and forge workflows.
Callers such as future orchestrator sessions use SessionService without
depending on terminal UI state.
Structs§
- Answer
Questions Request - Structured input for resuming one session from clarification questions.
- Coordinator
Message Request - Durable coordinator-owned turn submitted to one controller session.
- Create
Session Request - Explicit input for creating one session.
- Orchestration
Plan Task - Protocol-independent snapshot of one task proposed by an orchestration controller.
- Orchestration
Policy - Pure orchestration policy over typed task observations.
- Orchestration
Schedule Decision - Pure scheduling decision derived from one orchestration task snapshot.
- Personality
- One enabled personality loaded from a workspace agent definition.
- Personality
Summary - Lightweight personality metadata stored in prompt-composer state.
- Project
- Persisted project metadata used for multi-project management.
- Project
List Item - Aggregated project snapshot for list and switcher views.
- Question
Answer - One structured response to a persisted clarification question.
- Question
Item - One extracted question with predefined answer choices.
- Review
Request - Persisted forge linkage for one session.
- Review
Request Summary - Normalized remote summary for one linked review request.
- Session
- Complete persisted session aggregate returned by the programmatic API.
- Session
Id - Shared stable identifier for one session.
- Session
Message - One persisted transcript message for a session.
- Session
Message Kind Parse Error - Error returned when a stored session message kind is unknown.
- Session
Service - Stable programmatic facade for session lifecycle operations.
- Session
Settings - Complete session-scoped execution settings returned by the API.
- Session
Transcript - Ordered transcript view assembled from persisted session messages.
Enums§
- Coordinator
Message Visibility - Transcript treatment for one coordinator-owned prompt.
- Create
Session Mode - Creation strategy for a new session.
- Focused
Review Status - Durable state of one focused-review generation attempt.
- Forge
Kind - Shared forge family enum reused by persistence and forge adapters.
- Integration
Approach - User-selected destination for verified orchestration task branches.
- Orchestration
Status - Lifecycle state for one controller-owned orchestration.
- Orchestration
Task Kind - Execution behavior for one persisted orchestration task.
- Orchestration
Task Status - Lifecycle state for one orchestration task and its child session.
- Personality
Parse Error - Error returned when one agent definition cannot be parsed safely.
- Review
Request State - Normalized remote lifecycle state for one linked review request.
- Session
Error - Stable error returned by
crate::SessionServiceoperations. - Session
Message Kind - Durable category for one saved session transcript message.
- Session
Role - Role one session plays in a multi-session workflow.
- Session
Status - High-level lifecycle state for one session.
- Setting
Name - Stable keys used in the
settingandproject_settingtables. - Speed
Mode - Response-speed preference applied to one agent session.
- Transcript
Notice - Canonical labels for bracketed workflow notices appended to a session transcript.
Constants§
- DEFAULT_
AUTO_ APPROVE_ ORCHESTRATION_ RESEARCH - Whether temporary read-only research waves start without plan approval.
- DEFAULT_
ORCHESTRATION_ PARALLELISM - Default number of orchestration children allowed to run concurrently.
- MAX_
AUTOMATED_ REVIEW_ ITERATIONS - Maximum number of automatic focused-review remediation turns per managed worker settlement wave.
- MAX_
ORCHESTRATION_ PARALLELISM - Maximum orchestration concurrency exposed by the settings selector.
- PERSONALITY_
PROMPT_ MAX_ BYTES - Maximum UTF-8 byte length retained for one personality prompt.
Traits§
- Session
Backend - Host implementation boundary for session persistence and workflows.
Functions§
- activity_
day_ key_ with_ offset - Converts Unix timestamp seconds to a day key after applying a UTC offset.
- default_
option_ index - Returns the initial highlighted option for a clarification question.
- has_
actionable_ review_ suggestions - Returns whether focused-review markdown contains suggestions that
/applycan act on. - mru_
project_ order - Returns indices into
project_itemsordered most-recently-opened first. - normalized_
message_ content - Returns raw persisted message content with only outer whitespace removed.
- ordered_
project_ items - Returns the project rows named by
project_order, skipping stale indices. - parse_
agent_ definition - Parses one
.agentsagent definition. - parse_
agent_ summary - Parses lightweight picker metadata from one
.agentsagent definition. - project_
name_ from_ path - Derives a readable project name from its filesystem path.
- review_
suggestions - Extracts actionable suggestion content from focused-review markdown.
- stored_
message_ content - Returns the durable message content for one kind.
- validate_
subtasks - Validates one proposed subtask set before application code persists it.