git.iko.soy/opencode-android
on 5d56632 help sign in
32 lines 957 B history raw
1package soy.iko.opencode.data.model
3import androidx.compose.runtime.Immutable
4import kotlinx.serialization.Serializable
6/**
7 * A project known to the server, from `GET /project`. A project corresponds to a git
8 * worktree root; [worktree] is the absolute path the agent can run in. Used to populate
9 * the directory picker when creating a session in a specific directory.
10 */
11@Immutable
12@Serializable
13data class Project(
14 val id: String = "",
15 val worktree: String = "",
16 val vcs: String? = null,
17 val time: TimeInfo? = null,
20/**
21 * The server's current path info, from `GET /path`. [directory] is the working directory
22 * a request with no `directory` override resolves to (the server's launch cwd), shown in
23 * the picker as the "server default" option.
24 */
25@Immutable
26@Serializable
27data class PathInfo(
28 val directory: String? = null,
29 val worktree: String? = null,
30 val state: String? = null,
31 val config: String? = null,