Compare commits
6
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6828dbd844
|
||
|
|
d3d78d2540
|
||
|
|
90f8980053
|
||
|
|
9257238735
|
||
|
|
0117c3e238
|
||
|
|
0be487bf96
|
No files matched your search
@@ -5,6 +5,39 @@ is in alpha and releases come off `main`.
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [1.0.0-beta.4] — 2026-11-09
|
||||
|
||||
For LLeMbas server 2.0 (2.0.0-beta.7 or later for the Subagents setting and the panel's compaction).
|
||||
|
||||
For LLeMbas server 2.0.0-beta.7 (an older 2.0 server works; the app then guesses whether
|
||||
subagents are offered and works out auto-compact itself).
|
||||
|
||||
### Changed
|
||||
|
||||
- **Subagents, by that name.** Everything the app says about the work a chat hands off now
|
||||
calls it a subagent -- the strip, the activity sheet and the chat's options. The team's size
|
||||
in Options is **Subagents**, Min and Max -- shown when the instance says subagents are
|
||||
offered for the chat (or, for a new chat, for the model chosen), and only up to the most the
|
||||
instance allows. When the chat's model serves one request at a time, the setting says that
|
||||
subagents need another model, on another server, named in the chat. Which model a subagent
|
||||
runs on is not a setting: it is the chat's own, unless you name another in the chat.
|
||||
- **Subagents is one slider with two thumbs, Min and Max**, from 1 to the most the instance
|
||||
allows, in whole agents and with the values beside it ("Min 1 · Max 4"). The numbers count the
|
||||
chat's own agent: **1 is the agent alone, with no subagents**, and Max 4 is the agent and up to
|
||||
3 subagents. The options button says the same ("Subagents: Min 1 · Max 4").
|
||||
- **The activity sheet, laid out as a side panel is on a computer**, and always one tap away:
|
||||
the button at the top of every chat (a new one too) opens it as a sheet. **Context**: how
|
||||
much of the window is used, in per cent and in tokens of the window, a bar split by what
|
||||
fills it, each part with its tokens and share, how far it is to compacting by itself -- and a
|
||||
**Compact** button that does it now. **Background tasks**: what is running -- subagents, a
|
||||
team's members and background commands -- each on a card with how long it has run and a
|
||||
stop button (which asks first); a card opens to what it was asked, its latest step, what it
|
||||
is writing and its whole conversation, and folds those working under it into "N under it".
|
||||
The finished ones are folded away under **Finished**. Then the team's **Room** and the
|
||||
**Plan**.
|
||||
- **The line above the message box** says what runs in the background -- "2 running · 1 queued
|
||||
· 4 finished" -- only while anything does, and opens the sheet.
|
||||
|
||||
## [1.0.0-beta.3] — 2026-11-09
|
||||
|
||||
For LLeMbas server 2.0 (2.0.0-beta.6 or later for scheduled tasks).
|
||||
|
||||
@@ -31,7 +31,7 @@ android {
|
||||
// The one source of the version. versionCode is derived from it, so the two cannot
|
||||
// drift, and a beta sorts below its release: 1.0.0-beta.1 -> 1000001,
|
||||
// 1.0.0-beta.2 -> 1000002, 1.0.0 -> 1000099, 1.2.3 -> 1020399.
|
||||
versionName = "1.0.0-beta.3"
|
||||
versionName = "1.0.0-beta.4"
|
||||
versionCode = versionName!!.split("-beta.").let { parts ->
|
||||
val (a, b, c) = parts[0].split(".").map { it.toInt() }
|
||||
val pre = if (parts.size == 2) parts[1].toInt() else 99
|
||||
|
||||
@@ -44,16 +44,50 @@ object ActivityLogic {
|
||||
}
|
||||
|
||||
/**
|
||||
* What the strip above the composer says, as counts in order: agents working, queued,
|
||||
* waiting. Empty when nothing is going -- then there is no strip.
|
||||
* What the strip above the composer says, as counts in order: running, queued, waiting,
|
||||
* then finished. Empty when nothing is going -- then there is no strip, whatever finished.
|
||||
*/
|
||||
fun stripCounts(summary: ActivitySummary): List<Pair<String, Int>> =
|
||||
listOf("working" to summary.working, "queued" to summary.queued, "waiting" to summary.waiting).filter { it.second > 0 }
|
||||
fun stripCounts(summary: ActivitySummary): List<Pair<String, Int>> {
|
||||
if (summary.working + summary.queued + summary.waiting == 0) return emptyList()
|
||||
return listOf(
|
||||
"working" to summary.working,
|
||||
"queued" to summary.queued,
|
||||
"waiting" to summary.waiting,
|
||||
"finished" to summary.finished,
|
||||
).filter { it.second > 0 }
|
||||
}
|
||||
|
||||
/**
|
||||
* How many tokens are left before the chat compacts itself: the window's [ContextUse.threshold]
|
||||
* per cent, less what is used. Null when it never will -- the threshold is 0 (off) or 100,
|
||||
* or the window is unknown -- since a count against an unknown window is a guess. The
|
||||
* server's [ContextUse.untilCompact] and [ContextUse.autoCompact] win where it says them.
|
||||
*/
|
||||
fun untilAutoCompact(context: ContextUse): Int? {
|
||||
// The server's own count, where it gives one.
|
||||
if (context.autoCompact == false) return null
|
||||
context.untilCompact?.let { return it.coerceAtLeast(0) }
|
||||
if (context.limit <= 0 || context.threshold !in 1..99) return null
|
||||
return (context.limit.toLong() * context.threshold / 100 - context.used).toInt().coerceAtLeast(0)
|
||||
}
|
||||
|
||||
/**
|
||||
* What a task is called in its row: a team's member by its name, a subagent or a command
|
||||
* by what it was asked to do (its role, else its brief), its id only when it has neither.
|
||||
*/
|
||||
fun title(agent: ActivityAgent): String = if (agent.kind == "member") {
|
||||
agent.name
|
||||
} else {
|
||||
agent.role.ifBlank { agent.brief }.ifBlank { agent.name }
|
||||
}
|
||||
|
||||
/** Every task under [agent], however deep. */
|
||||
fun descendants(agent: ActivityAgent): Int = agent.children.sumOf { 1 + descendants(it) }
|
||||
|
||||
/** The top level split as the panel shows it: those still going, then the ended ones. */
|
||||
fun split(agents: List<ActivityAgent>): Pair<List<ActivityAgent>, List<ActivityAgent>> = agents.partition { it.isActive }
|
||||
|
||||
/** Every agent of a forest with its helpers under it, in tree order, for drawing as rows. */
|
||||
/** Every agent of a forest with its subagents under it, in tree order, for drawing as rows. */
|
||||
fun flatten(agents: List<ActivityAgent>): List<ActivityAgent> = agents.flatMap { listOf(it) + flatten(it.children) }
|
||||
|
||||
/**
|
||||
|
||||
@@ -144,7 +144,10 @@ class ApiClient(val base: String, private val token: String, val http: OkHttpCli
|
||||
// --- Account -----------------------------------------------------------------------------
|
||||
suspend fun me(): Me = get("/me")
|
||||
|
||||
suspend fun models(chatId: String? = null): List<ModelInfo> = get<ModelList>(if (chatId != null) "/models?chat=$chatId" else "/models").models
|
||||
suspend fun models(chatId: String? = null): List<ModelInfo> = modelList(chatId).models
|
||||
|
||||
/** The models with the instance's subagent cap; with [chatId], whether each is offered subagents on that chat. */
|
||||
suspend fun modelList(chatId: String? = null): ModelList = get(if (chatId != null) "/models?chat=$chatId" else "/models")
|
||||
|
||||
suspend fun folders(): List<Folder> = get<FolderList>("/folders").folders
|
||||
|
||||
@@ -248,6 +251,13 @@ class ApiClient(val base: String, private val token: String, val http: OkHttpCli
|
||||
suspend fun stopAgent(chatId: String, kind: String, id: String): List<String> =
|
||||
send<Stopped>("POST", "/chats/$chatId/agents/${segment(kind)}/${segment(id)}/stop", null).stopped
|
||||
|
||||
/**
|
||||
* Summarise the earlier turns now and stop sending them (the activity sheet's Compact). The
|
||||
* server refuses in its own words (409) while a reply is being written or with nothing to
|
||||
* summarise; the transcript is read again after, for the divider it leaves.
|
||||
*/
|
||||
suspend fun compact(chatId: String) = empty(authed("$v2/chats/$chatId/compact").post(ByteArray(0).toRequestBody(null)).build())
|
||||
|
||||
suspend fun team(chatId: String, since: Int = 0): TeamView = get<TeamEnvelope>("/chats/$chatId/team?since=$since").team
|
||||
|
||||
suspend fun stopMember(chatId: String, name: String): List<String> = send<Stopped>("POST", "/chats/$chatId/team/${segment(name)}/stop", null).stopped
|
||||
|
||||
@@ -95,6 +95,8 @@ data class ModelInfo(
|
||||
/** The picture's path on the instance (`/api/v2/models/images/…`), read with the token. */
|
||||
val image: String? = null,
|
||||
val default: Boolean = false,
|
||||
/** Whether a new chat on this model is offered subagents (server 2.0.0-beta.7); null from an older one. */
|
||||
val subagents: SubagentsOffer? = null,
|
||||
) {
|
||||
/**
|
||||
* The levels, for a server that says them; an older one said only `efforts`, offered after
|
||||
@@ -118,12 +120,12 @@ data class ModelInfo(
|
||||
val onLevel: String get() = offered.firstOrNull { it != "off" } ?: effort
|
||||
|
||||
/**
|
||||
* Whether a new chat on this model may have a team, as far as the app can tell: the model
|
||||
* serves two requests at once (`parallel` ≥ 2, or no stated limit) and takes tools. The
|
||||
* server also needs subagents on, which only an existing chat's activity says
|
||||
* (`team_offered`); a setting it does not use is kept and does nothing.
|
||||
* Whether a new chat on this model is offered subagents: the server's word
|
||||
* (`subagents.offered`) when it says it. An older server did not, and then the app guesses
|
||||
* from the model alone: it serves two requests at once (`parallel` ≥ 2, or no stated
|
||||
* limit) and takes tools.
|
||||
*/
|
||||
val mayHaveTeam: Boolean get() = tools && (parallel == null || parallel >= 2)
|
||||
val mayHaveTeam: Boolean get() = subagents?.offered ?: (tools && (parallel == null || parallel >= 2))
|
||||
|
||||
companion object {
|
||||
val CONTROLS = setOf("none", "switch", "slider")
|
||||
@@ -131,7 +133,20 @@ data class ModelInfo(
|
||||
}
|
||||
|
||||
@Serializable
|
||||
data class ModelList(val models: List<ModelInfo> = emptyList())
|
||||
data class ModelList(
|
||||
val models: List<ModelInfo> = emptyList(),
|
||||
/** The instance's cap on a chat's subagents (server 2.0.0-beta.7); null from an older one. */
|
||||
@SerialName("subagents_cap") val subagentsCap: Int? = null,
|
||||
)
|
||||
|
||||
/**
|
||||
* Whether subagents are offered (harness spec 3.3.0, `subagents.md` §4): [offered] when
|
||||
* subagents are on and at least one model could serve; [namedOnly] when only a model the person
|
||||
* names in the chat could -- the chat's own serves one request at a time -- and the setting then
|
||||
* says so. [cap] is the instance's most, on a chat (not on a model).
|
||||
*/
|
||||
@Serializable
|
||||
data class SubagentsOffer(val offered: Boolean = false, @SerialName("named_only") val namedOnly: Boolean = false, val cap: Int? = null)
|
||||
|
||||
@Serializable
|
||||
data class Folder(val id: String, val name: String = "", @SerialName("parent_id") val parentId: String? = null, val kind: String = "", val position: Int = 0)
|
||||
@@ -172,6 +187,8 @@ data class Chat(
|
||||
val plan: JsonObject? = null,
|
||||
/** The team's size: how many agents, its own included, the chat may have. */
|
||||
val agents: AgentsSetting? = null,
|
||||
/** Whether this chat is offered subagents, and the cap (server 2.0.0-beta.7); null from an older one. */
|
||||
val subagents: SubagentsOffer? = null,
|
||||
) {
|
||||
val isAgent: Boolean get() = kind == "agent"
|
||||
}
|
||||
@@ -521,7 +538,7 @@ data class AgentStep(val tool: String = "", val label: String = "", val title: S
|
||||
|
||||
/**
|
||||
* One background agent: a team's member (`kind` member, [id] its name) or a job (`kind` job;
|
||||
* [type] `subagent` or `command`), with its own helpers in [children]. [role], [brief] and
|
||||
* [type] `subagent` or `command`), with its own subagents in [children]. [role], [brief] and
|
||||
* [text] are a model's words: shown as text, never as anything richer.
|
||||
*/
|
||||
@Serializable
|
||||
@@ -588,6 +605,14 @@ data class ContextUse(
|
||||
val percent: Double? = null,
|
||||
val measured: Boolean = false,
|
||||
val threshold: Int = 0,
|
||||
/**
|
||||
* The compaction facts (server 2.0.0-beta.7): whether the chat compacts by itself, how many
|
||||
* tokens before it does (null: never, or not known), and whether Compact can run now.
|
||||
* Null from an older server; the app then works the first two out from [threshold].
|
||||
*/
|
||||
@SerialName("auto_compact") val autoCompact: Boolean? = null,
|
||||
@SerialName("until_compact") val untilCompact: Int? = null,
|
||||
val compactable: Boolean? = null,
|
||||
@SerialName("tools_count") val toolsCount: Int = 0,
|
||||
@SerialName("mcp_count") val mcpCount: Int = 0,
|
||||
val categories: List<ContextPart> = emptyList(),
|
||||
@@ -613,6 +638,8 @@ data class Activity(
|
||||
val agents: List<ActivityAgent> = emptyList(),
|
||||
val team: ActivityTeam? = null,
|
||||
@SerialName("team_offered") val teamOffered: Boolean = false,
|
||||
/** The same fact by the word a person reads (server 2.0.0-beta.7). */
|
||||
@SerialName("subagents_offered") val subagentsOffered: Boolean? = null,
|
||||
val context: ContextUse? = null,
|
||||
val outputs: List<Output> = emptyList(),
|
||||
val plan: JsonObject? = null,
|
||||
|
||||
@@ -21,7 +21,6 @@ import androidx.compose.foundation.layout.size
|
||||
import androidx.compose.foundation.layout.width
|
||||
import androidx.compose.foundation.lazy.LazyColumn
|
||||
import androidx.compose.foundation.lazy.items
|
||||
import androidx.compose.foundation.shape.CircleShape
|
||||
import androidx.compose.foundation.shape.RoundedCornerShape
|
||||
import androidx.compose.material.icons.Icons
|
||||
import androidx.compose.material.icons.automirrored.filled.KeyboardArrowRight
|
||||
@@ -32,7 +31,9 @@ import androidx.compose.material.icons.filled.Description
|
||||
import androidx.compose.material.icons.filled.ExpandLess
|
||||
import androidx.compose.material.icons.filled.ExpandMore
|
||||
import androidx.compose.material.icons.filled.Groups
|
||||
import androidx.compose.material.icons.filled.StopCircle
|
||||
import androidx.compose.material.icons.filled.SmartToy
|
||||
import androidx.compose.material.icons.filled.Stop
|
||||
import androidx.compose.material.icons.filled.Terminal
|
||||
import androidx.compose.material.icons.filled.Visibility
|
||||
import androidx.compose.material3.AlertDialog
|
||||
import androidx.compose.material3.CircularProgressIndicator
|
||||
@@ -40,12 +41,14 @@ import androidx.compose.material3.HorizontalDivider
|
||||
import androidx.compose.material3.Icon
|
||||
import androidx.compose.material3.IconButton
|
||||
import androidx.compose.material3.MaterialTheme
|
||||
import androidx.compose.material3.ModalBottomSheet
|
||||
import androidx.compose.material3.OutlinedButton
|
||||
import androidx.compose.material3.Scaffold
|
||||
import androidx.compose.material3.Surface
|
||||
import androidx.compose.material3.Text
|
||||
import androidx.compose.material3.TextButton
|
||||
import androidx.compose.material3.TopAppBar
|
||||
import androidx.compose.material3.rememberModalBottomSheetState
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.runtime.LaunchedEffect
|
||||
import androidx.compose.runtime.getValue
|
||||
@@ -60,6 +63,7 @@ import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.draw.clip
|
||||
import androidx.compose.ui.graphics.Color
|
||||
import androidx.compose.ui.platform.LocalContext
|
||||
import androidx.compose.ui.platform.LocalDensity
|
||||
import androidx.compose.ui.res.stringResource
|
||||
import androidx.compose.ui.text.font.FontFamily
|
||||
import androidx.compose.ui.text.style.TextAlign
|
||||
@@ -72,6 +76,7 @@ import eu.llembas.android.api.Activity
|
||||
import eu.llembas.android.api.ActivityAgent
|
||||
import eu.llembas.android.api.ActivityLogic
|
||||
import eu.llembas.android.api.ActivitySummary
|
||||
import eu.llembas.android.api.ActivityTeam
|
||||
import eu.llembas.android.api.AgentDetail
|
||||
import eu.llembas.android.api.ContextUse
|
||||
import eu.llembas.android.api.Output
|
||||
@@ -84,9 +89,12 @@ import eu.llembas.android.ui.theme.Palette
|
||||
import eu.llembas.android.ui.viewer.TreeFileViewer
|
||||
import kotlinx.coroutines.delay
|
||||
|
||||
// --- The strip above the composer ---------------------------------------------------------
|
||||
// --- The summary chip above the composer --------------------------------------------------
|
||||
|
||||
/** What runs in the background, in one line ("3 agents working · 1 queued"), opening the panel. */
|
||||
/**
|
||||
* What runs in the background, in one line ("2 running · 1 queued · 4 finished"), opening the
|
||||
* activity sheet. Only while anything runs: finished work alone is no reason for a line.
|
||||
*/
|
||||
@Composable
|
||||
fun ActivityStrip(summary: ActivitySummary, onOpen: () -> Unit) {
|
||||
val counts = ActivityLogic.stripCounts(summary)
|
||||
@@ -97,8 +105,9 @@ fun ActivityStrip(summary: ActivitySummary, onOpen: () -> Unit) {
|
||||
onClick = onOpen,
|
||||
color = palette.surfaceRaised,
|
||||
contentColor = palette.ink,
|
||||
shape = RoundedCornerShape(8.dp),
|
||||
modifier = Modifier.fillMaxWidth().padding(horizontal = 12.dp, vertical = 4.dp).heightIn(min = 48.dp),
|
||||
shape = RoundedCornerShape(12.dp),
|
||||
border = androidx.compose.foundation.BorderStroke(1.dp, palette.border),
|
||||
modifier = Modifier.fillMaxWidth().padding(bottom = 8.dp).heightIn(min = 48.dp),
|
||||
) {
|
||||
Row(Modifier.padding(horizontal = 12.dp), verticalAlignment = Alignment.CenterVertically) {
|
||||
Icon(Icons.Filled.Bolt, contentDescription = null, tint = palette.accent, modifier = Modifier.size(18.dp))
|
||||
@@ -116,7 +125,7 @@ fun ActivityStrip(summary: ActivitySummary, onOpen: () -> Unit) {
|
||||
|
||||
@Composable
|
||||
private fun stateCount(state: String, n: Int): String = when (state) {
|
||||
"working" -> if (n == 1) stringResource(R.string.agents_one_working) else stringResource(R.string.agents_n_working, n.toString())
|
||||
"working" -> stringResource(R.string.tasks_n_running, n.toString())
|
||||
"queued" -> stringResource(R.string.agents_n_queued, n.toString())
|
||||
"waiting" -> stringResource(R.string.agents_n_waiting, n.toString())
|
||||
else -> stringResource(R.string.agents_n_finished, n.toString())
|
||||
@@ -132,7 +141,14 @@ private fun stateWord(state: String): String = when (state) {
|
||||
else -> stringResource(R.string.agent_state_error)
|
||||
}
|
||||
|
||||
/** The state's dot, in the web panel's colours: accent working, warning waiting, success done. */
|
||||
@Composable
|
||||
private fun kindWord(agent: ActivityAgent): String = when {
|
||||
agent.kind == "member" -> stringResource(R.string.task_member)
|
||||
agent.type == "command" -> stringResource(R.string.task_command)
|
||||
else -> stringResource(R.string.task_subagent)
|
||||
}
|
||||
|
||||
/** The state's colour, in the web panel's: accent working, warning waiting, success done. */
|
||||
private fun stateColour(palette: Palette, state: String): Color = when (state) {
|
||||
"working" -> palette.accent
|
||||
"queued", "waiting" -> palette.warning
|
||||
@@ -168,32 +184,43 @@ private fun categoryName(key: String): String = when (key) {
|
||||
else -> key
|
||||
}
|
||||
|
||||
// --- The panel ------------------------------------------------------------------------------
|
||||
// --- The sheet ------------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* The chat's activity, full screen: Context, Outputs, Background tasks (with the team's room)
|
||||
* and Plan -- the web's activity panel, from `GET /chats/{chat}/activity`. Kept current by the
|
||||
* events route through the view model; without it, read again every few seconds while open.
|
||||
* Everything an agent wrote is a model's words: names, roles and briefs as plain text, the
|
||||
* room and replies through [MarkdownText]'s untrusted rules.
|
||||
* What the activity sheet asks of the chat. Every action has a do-nothing default, so the
|
||||
* screenshot tests draw the sheet with fake data and nothing behind it.
|
||||
*/
|
||||
interface ActivityActions {
|
||||
fun stop(agent: ActivityAgent) {}
|
||||
fun read(agent: ActivityAgent) {}
|
||||
fun openFile(path: String) {}
|
||||
fun compact() {}
|
||||
}
|
||||
|
||||
/**
|
||||
* The chat's activity as a sheet over it, from the top bar's button or the strip: Context,
|
||||
* Outputs, Background tasks, the team's Room and Plan -- the web's side panel, from
|
||||
* `GET /chats/{chat}/activity`. Kept current by the events route through the view model;
|
||||
* without it, read again every few seconds while open. A chat not made yet has nothing to
|
||||
* show but says so in each section. Stopping anything asks first.
|
||||
*/
|
||||
@Composable
|
||||
fun ActivityPanel(chatId: String, state: ChatState, model: ChatViewModel, canOpenFiles: Boolean, onClose: () -> Unit) {
|
||||
val activity = state.activity
|
||||
fun ActivityPanel(chatId: String?, state: ChatState, model: ChatViewModel, canOpenFiles: Boolean, onClose: () -> Unit) {
|
||||
val live by rememberUpdatedState(state.activityLive)
|
||||
var now by remember { mutableLongStateOf(SystemClock.elapsedRealtime()) }
|
||||
var stopping by remember { mutableStateOf<ActivityAgent?>(null) }
|
||||
var reading by remember { mutableStateOf<ActivityAgent?>(null) }
|
||||
var viewing by remember { mutableStateOf<String?>(null) }
|
||||
|
||||
LaunchedEffect(Unit) {
|
||||
LaunchedEffect(chatId) {
|
||||
if (chatId == null) return@LaunchedEffect
|
||||
model.panel(true)
|
||||
var ticks = 0
|
||||
while (true) {
|
||||
delay(1_000)
|
||||
now = SystemClock.elapsedRealtime()
|
||||
ticks++
|
||||
// Without the events route, the panel reads itself again: cheaply, every 5 s.
|
||||
// Without the events route, the sheet reads itself again: cheaply, every 5 s.
|
||||
if (!live && ticks % 5 == 0) model.loadActivity(context = false)
|
||||
}
|
||||
}
|
||||
@@ -202,54 +229,44 @@ fun ActivityPanel(chatId: String, state: ChatState, model: ChatViewModel, canOpe
|
||||
model.panel(false)
|
||||
onClose()
|
||||
}
|
||||
Dialog(onDismissRequest = close, properties = DialogProperties(usePlatformDefaultWidth = false)) {
|
||||
Scaffold(
|
||||
topBar = {
|
||||
TopAppBar(
|
||||
navigationIcon = {
|
||||
IconButton(onClick = close) { Icon(Icons.Filled.Close, contentDescription = stringResource(R.string.close)) }
|
||||
},
|
||||
title = { Text(stringResource(R.string.activity)) },
|
||||
)
|
||||
},
|
||||
) { padding ->
|
||||
if (activity == null) {
|
||||
Box(Modifier.padding(padding).fillMaxSize(), contentAlignment = Alignment.Center) { CircularProgressIndicator() }
|
||||
return@Scaffold
|
||||
}
|
||||
LazyColumn(
|
||||
Modifier.padding(padding).fillMaxSize(),
|
||||
contentPadding = PaddingValues(16.dp),
|
||||
verticalArrangement = Arrangement.spacedBy(8.dp),
|
||||
) {
|
||||
item { Section(stringResource(R.string.activity_context)) { ContextSection(activity.context) } }
|
||||
item {
|
||||
Section(stringResource(R.string.activity_outputs), count = activity.outputs.size.takeIf { it > 0 }) {
|
||||
OutputsSection(activity.outputs, canOpenFiles) { viewing = it }
|
||||
}
|
||||
}
|
||||
item {
|
||||
Section(stringResource(R.string.activity_tasks)) {
|
||||
TasksSection(activity, state.activityAt, now, onStop = { stopping = it }, onRead = { reading = it })
|
||||
}
|
||||
}
|
||||
ActivityLogic.plan(activity.plan)?.let { plan ->
|
||||
item { Section(stringResource(R.string.mode_plan)) { PlanBody(plan) } }
|
||||
}
|
||||
}
|
||||
val actions = object : ActivityActions {
|
||||
override fun stop(agent: ActivityAgent) {
|
||||
stopping = agent
|
||||
}
|
||||
|
||||
override fun read(agent: ActivityAgent) {
|
||||
reading = agent
|
||||
}
|
||||
|
||||
override fun openFile(path: String) {
|
||||
if (canOpenFiles) viewing = path
|
||||
}
|
||||
|
||||
override fun compact() = model.compact()
|
||||
}
|
||||
ModalBottomSheet(onDismissRequest = close, sheetState = rememberModalBottomSheetState(skipPartiallyExpanded = true)) {
|
||||
ActivityContent(
|
||||
activity = if (chatId == null) Activity() else state.activity,
|
||||
readAt = state.activityAt,
|
||||
now = now,
|
||||
actions = actions,
|
||||
canCompact = chatId != null && !state.running,
|
||||
compacting = state.compacting,
|
||||
canOpenFiles = canOpenFiles,
|
||||
onClose = close,
|
||||
)
|
||||
}
|
||||
|
||||
stopping?.let { agent ->
|
||||
AlertDialog(
|
||||
onDismissRequest = { stopping = null },
|
||||
title = { Text(stringResource(R.string.agent_stop, agent.name)) },
|
||||
title = { Text(stringResource(R.string.agent_stop, ActivityLogic.title(agent))) },
|
||||
text = {
|
||||
Text(
|
||||
if (agent.kind == "member") {
|
||||
stringResource(R.string.agent_stop_member_confirm, agent.name)
|
||||
} else {
|
||||
stringResource(R.string.agent_stop_confirm, agent.name)
|
||||
stringResource(R.string.agent_stop_confirm, ActivityLogic.title(agent))
|
||||
},
|
||||
)
|
||||
},
|
||||
@@ -262,13 +279,70 @@ fun ActivityPanel(chatId: String, state: ChatState, model: ChatViewModel, canOpe
|
||||
dismissButton = { TextButton(onClick = { stopping = null }) { Text(stringResource(R.string.cancel)) } },
|
||||
)
|
||||
}
|
||||
reading?.let { agent -> AgentConversation(chatId, agent, onClose = { reading = null }) }
|
||||
if (chatId != null) reading?.let { agent -> AgentConversation(chatId, agent, onClose = { reading = null }) }
|
||||
viewing?.let { path -> TreeFileViewer(path, onClose = { viewing = null }) }
|
||||
}
|
||||
|
||||
/** A heading that folds its section away, open to begin with. */
|
||||
/**
|
||||
* The sheet as it is drawn, from its facts alone: what the screenshot tests render. [activity]
|
||||
* null is still being read; [now] and [readAt] are the clock that elapsed time counts on;
|
||||
* [unfolded] opens the first task and the finished ones, for the screenshots to see them.
|
||||
*/
|
||||
@Composable
|
||||
private fun Section(title: String, count: Int? = null, content: @Composable () -> Unit) {
|
||||
fun ActivityContent(
|
||||
activity: Activity?,
|
||||
readAt: Long,
|
||||
now: Long,
|
||||
actions: ActivityActions,
|
||||
canCompact: Boolean = true,
|
||||
compacting: Boolean = false,
|
||||
canOpenFiles: Boolean = true,
|
||||
unfolded: Boolean = false,
|
||||
onClose: () -> Unit = {},
|
||||
) {
|
||||
val palette = LocalPalette.current
|
||||
Column(Modifier.fillMaxWidth()) {
|
||||
Row(
|
||||
Modifier.fillMaxWidth().padding(start = 16.dp, end = 4.dp),
|
||||
verticalAlignment = Alignment.CenterVertically,
|
||||
) {
|
||||
Text(stringResource(R.string.activity), style = MaterialTheme.typography.titleLarge, modifier = Modifier.weight(1f))
|
||||
IconButton(onClick = onClose) { Icon(Icons.Filled.Close, contentDescription = stringResource(R.string.close), tint = palette.inkMuted) }
|
||||
}
|
||||
if (activity == null) {
|
||||
Box(Modifier.fillMaxWidth().height(240.dp), contentAlignment = Alignment.Center) { CircularProgressIndicator() }
|
||||
return@Column
|
||||
}
|
||||
LazyColumn(
|
||||
Modifier.fillMaxWidth(),
|
||||
contentPadding = PaddingValues(start = 16.dp, end = 16.dp, bottom = 32.dp),
|
||||
) {
|
||||
item {
|
||||
Section(stringResource(R.string.activity_context)) {
|
||||
ContextSection(activity.context, canCompact, compacting, actions::compact)
|
||||
}
|
||||
}
|
||||
if (activity.outputs.isNotEmpty()) {
|
||||
item {
|
||||
Section(stringResource(R.string.activity_outputs), count = activity.outputs.size) {
|
||||
OutputsSection(activity.outputs, canOpenFiles, actions::openFile)
|
||||
}
|
||||
}
|
||||
}
|
||||
item { Section(stringResource(R.string.activity_tasks)) { TasksSection(activity, readAt, now, actions, unfolded) } }
|
||||
activity.team?.let { team ->
|
||||
item { Section(stringResource(R.string.team_room), count = team.room.size.takeIf { it > 0 }) { RoomSection(team) } }
|
||||
}
|
||||
ActivityLogic.plan(activity.plan)?.let { plan ->
|
||||
item { Section(stringResource(R.string.mode_plan), divider = false) { PlanBody(plan) } }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/** A heading that folds its section away, open to begin with, with an optional count beside it. */
|
||||
@Composable
|
||||
private fun Section(title: String, count: Int? = null, divider: Boolean = true, content: @Composable () -> Unit) {
|
||||
val palette = LocalPalette.current
|
||||
var open by rememberSaveable(title) { mutableStateOf(true) }
|
||||
Column(Modifier.fillMaxWidth()) {
|
||||
@@ -281,85 +355,120 @@ private fun Section(title: String, count: Int? = null, content: @Composable () -
|
||||
Icon(if (open) Icons.Filled.ExpandLess else Icons.Filled.ExpandMore, contentDescription = null, tint = palette.inkFaint)
|
||||
}
|
||||
if (open) content()
|
||||
HorizontalDivider(Modifier.padding(top = 8.dp), color = palette.border)
|
||||
if (divider) HorizontalDivider(Modifier.padding(top = 12.dp), color = palette.border)
|
||||
}
|
||||
}
|
||||
|
||||
@Composable
|
||||
private fun Empty(text: String) {
|
||||
Text(text, style = MaterialTheme.typography.bodySmall, color = LocalPalette.current.inkMuted)
|
||||
Text(text, style = MaterialTheme.typography.bodySmall, color = LocalPalette.current.inkMuted, modifier = Modifier.padding(bottom = 4.dp))
|
||||
}
|
||||
|
||||
// --- Context --------------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* The reference's Context: "N% used" and used / window on one line, the segmented bar, one row
|
||||
* per category (swatch, name, tokens, per cent), then how far auto-compact is and the button
|
||||
* that compacts now.
|
||||
*/
|
||||
@Composable
|
||||
private fun ContextSection(context: ContextUse?) {
|
||||
private fun ContextSection(context: ContextUse?, canCompact: Boolean, compacting: Boolean, onCompact: () -> Unit) {
|
||||
val palette = LocalPalette.current
|
||||
if (context == null) {
|
||||
Empty(stringResource(R.string.activity_not_measured))
|
||||
return
|
||||
}
|
||||
Column(verticalArrangement = Arrangement.spacedBy(6.dp)) {
|
||||
Row(verticalAlignment = Alignment.CenterVertically) {
|
||||
val pct = context.percent
|
||||
Column(verticalArrangement = Arrangement.spacedBy(4.dp)) {
|
||||
if (context == null) {
|
||||
Empty(stringResource(R.string.activity_not_measured))
|
||||
} else {
|
||||
Row(verticalAlignment = Alignment.CenterVertically) {
|
||||
val pct = context.percent
|
||||
Text(
|
||||
if (pct != null) stringResource(R.string.activity_used, ActivityLogic.percent(pct)) else ActivityLogic.compactTokens(context.used),
|
||||
style = MaterialTheme.typography.bodyMedium,
|
||||
modifier = Modifier.weight(1f),
|
||||
)
|
||||
Text(
|
||||
if (context.limit > 0) {
|
||||
"${ActivityLogic.compactTokens(context.used)} / ${ActivityLogic.compactTokens(context.limit)}"
|
||||
} else {
|
||||
stringResource(R.string.activity_window_unknown)
|
||||
},
|
||||
style = MaterialTheme.typography.bodySmall,
|
||||
color = palette.inkMuted,
|
||||
)
|
||||
}
|
||||
val parts = ActivityLogic.barParts(context)
|
||||
if (parts.isNotEmpty()) {
|
||||
// One segment per category, by its tokens; the rest of the window is the bar's own
|
||||
// background. Weights, so the segments always fill exactly the bar's width.
|
||||
Row(Modifier.fillMaxWidth().height(6.dp).clip(RoundedCornerShape(3.dp)).background(palette.surfaceRaised)) {
|
||||
parts.forEach { part -> Box(Modifier.weight(part.tokens.toFloat()).fillMaxHeight().background(categoryColour(palette, part.key))) }
|
||||
val rest = (context.limit - parts.sumOf { it.tokens }).coerceAtLeast(0)
|
||||
if (rest > 0) Spacer(Modifier.weight(rest.toFloat()))
|
||||
}
|
||||
}
|
||||
// Each row a fixed grid: swatch, the name that gives, two number columns of their own
|
||||
// width -- the numbers line up whatever the names say in which language. The columns
|
||||
// are as wide as five of their own figures, so large type widens them with it.
|
||||
val figures = MaterialTheme.typography.bodySmall.fontSize * 4.6f
|
||||
val column = with(LocalDensity.current) { figures.toDp() }
|
||||
context.categories.forEach { part ->
|
||||
Row(Modifier.fillMaxWidth().heightIn(min = 22.dp), verticalAlignment = Alignment.CenterVertically) {
|
||||
Box(Modifier.size(10.dp).clip(RoundedCornerShape(2.dp)).background(categoryColour(palette, part.key)))
|
||||
Text(
|
||||
categoryName(part.key),
|
||||
style = MaterialTheme.typography.bodySmall,
|
||||
maxLines = 1,
|
||||
overflow = TextOverflow.Ellipsis,
|
||||
modifier = Modifier.weight(1f).padding(horizontal = 8.dp),
|
||||
)
|
||||
Text(
|
||||
ActivityLogic.compactTokens(part.tokens),
|
||||
style = MaterialTheme.typography.bodySmall,
|
||||
textAlign = TextAlign.End,
|
||||
maxLines = 1,
|
||||
modifier = Modifier.width(column),
|
||||
)
|
||||
Text(
|
||||
part.percent?.let { "${ActivityLogic.percent(it)}%" } ?: "—",
|
||||
style = MaterialTheme.typography.bodySmall,
|
||||
color = palette.inkMuted,
|
||||
textAlign = TextAlign.End,
|
||||
maxLines = 1,
|
||||
modifier = Modifier.padding(start = 4.dp).width(column),
|
||||
)
|
||||
}
|
||||
}
|
||||
Text(
|
||||
if (pct != null) stringResource(R.string.activity_used, ActivityLogic.percent(pct)) else ActivityLogic.compactTokens(context.used),
|
||||
style = MaterialTheme.typography.bodyMedium,
|
||||
modifier = Modifier.weight(1f),
|
||||
stringResource(if (context.measured) R.string.activity_measured else R.string.activity_estimated) + " " +
|
||||
stringResource(R.string.activity_tools_offered, context.toolsCount.toString()),
|
||||
style = MaterialTheme.typography.labelSmall,
|
||||
color = palette.inkFaint,
|
||||
)
|
||||
}
|
||||
// How far automatic compaction is, and the button. The words give; the button keeps its
|
||||
// own size whatever the sentence says in which language.
|
||||
Row(Modifier.fillMaxWidth().heightIn(min = 48.dp), verticalAlignment = Alignment.CenterVertically) {
|
||||
val until = context?.let { ActivityLogic.untilAutoCompact(it) }
|
||||
Text(
|
||||
if (context.limit > 0) {
|
||||
"${ActivityLogic.compactTokens(context.used)} / ${ActivityLogic.compactTokens(context.limit)}"
|
||||
} else {
|
||||
stringResource(R.string.activity_window_unknown)
|
||||
when {
|
||||
context == null -> ""
|
||||
until != null -> stringResource(R.string.activity_until_compact, ActivityLogic.compactTokens(until))
|
||||
context.autoCompact == false || context.threshold <= 0 -> stringResource(R.string.activity_compact_off)
|
||||
else -> ""
|
||||
},
|
||||
style = MaterialTheme.typography.bodySmall,
|
||||
color = palette.inkMuted,
|
||||
modifier = Modifier.weight(1f).padding(end = 8.dp),
|
||||
)
|
||||
}
|
||||
val parts = ActivityLogic.barParts(context)
|
||||
if (parts.isNotEmpty()) {
|
||||
// One segment per category, by its tokens; the rest of the window is the bar's own
|
||||
// background. Weights, so the segments always fill exactly the bar's width.
|
||||
Row(Modifier.fillMaxWidth().height(8.dp).clip(RoundedCornerShape(4.dp)).background(palette.surfaceRaised)) {
|
||||
parts.forEach { part -> Box(Modifier.weight(part.tokens.toFloat()).fillMaxHeight().background(categoryColour(palette, part.key))) }
|
||||
val rest = (context.limit - parts.sumOf { it.tokens }).coerceAtLeast(0)
|
||||
if (rest > 0) Spacer(Modifier.weight(rest.toFloat()))
|
||||
// The server says when there is nothing to summarise yet (`compactable`); an older
|
||||
// one does not, and then its refusal says it in words.
|
||||
OutlinedButton(onClick = onCompact, enabled = canCompact && !compacting && context != null && context.compactable != false) {
|
||||
if (compacting) {
|
||||
CircularProgressIndicator(Modifier.size(16.dp), strokeWidth = 2.dp)
|
||||
Spacer(Modifier.width(8.dp))
|
||||
}
|
||||
Text(stringResource(R.string.activity_compact))
|
||||
}
|
||||
}
|
||||
// Each row a fixed grid: swatch, the name that gives, two number columns of their own
|
||||
// width -- the numbers line up whatever the names say in which language.
|
||||
context.categories.forEach { part ->
|
||||
Row(Modifier.fillMaxWidth().heightIn(min = 24.dp), verticalAlignment = Alignment.CenterVertically) {
|
||||
Box(Modifier.size(10.dp).clip(RoundedCornerShape(2.dp)).background(categoryColour(palette, part.key)))
|
||||
Text(
|
||||
categoryName(part.key),
|
||||
style = MaterialTheme.typography.bodySmall,
|
||||
maxLines = 1,
|
||||
overflow = TextOverflow.Ellipsis,
|
||||
modifier = Modifier.weight(1f).padding(horizontal = 8.dp),
|
||||
)
|
||||
Text(
|
||||
ActivityLogic.compactTokens(part.tokens),
|
||||
style = MaterialTheme.typography.bodySmall,
|
||||
textAlign = TextAlign.End,
|
||||
modifier = Modifier.width(56.dp),
|
||||
)
|
||||
Text(
|
||||
part.percent?.let { "${ActivityLogic.percent(it)}%" } ?: "—",
|
||||
style = MaterialTheme.typography.bodySmall,
|
||||
color = palette.inkMuted,
|
||||
textAlign = TextAlign.End,
|
||||
modifier = Modifier.width(56.dp),
|
||||
)
|
||||
}
|
||||
}
|
||||
Text(
|
||||
stringResource(if (context.measured) R.string.activity_measured else R.string.activity_estimated) + " " +
|
||||
stringResource(R.string.activity_tools_offered, context.toolsCount.toString()),
|
||||
style = MaterialTheme.typography.labelSmall,
|
||||
color = palette.inkFaint,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -368,10 +477,6 @@ private fun ContextSection(context: ContextUse?) {
|
||||
@Composable
|
||||
private fun OutputsSection(outputs: List<Output>, canOpen: Boolean, onOpen: (String) -> Unit) {
|
||||
val palette = LocalPalette.current
|
||||
if (outputs.isEmpty()) {
|
||||
Empty(stringResource(R.string.outputs_empty))
|
||||
return
|
||||
}
|
||||
Column {
|
||||
outputs.forEach { out ->
|
||||
Row(
|
||||
@@ -406,8 +511,13 @@ private fun OutputsSection(outputs: List<Output>, canOpen: Boolean, onOpen: (Str
|
||||
|
||||
// --- Background tasks -----------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Subagents, a team's members and background commands, as the reference has them: "Running N"
|
||||
* with a card per task (elapsed and a stop each, those under it folded into "N under it"),
|
||||
* then "Finished N" folded away.
|
||||
*/
|
||||
@Composable
|
||||
private fun TasksSection(activity: Activity, readAt: Long, now: Long, onStop: (ActivityAgent) -> Unit, onRead: (ActivityAgent) -> Unit) {
|
||||
private fun TasksSection(activity: Activity, readAt: Long, now: Long, actions: ActivityActions, unfolded: Boolean) {
|
||||
val palette = LocalPalette.current
|
||||
val team = activity.team
|
||||
if (activity.agents.isEmpty() && team == null) {
|
||||
@@ -415,14 +525,8 @@ private fun TasksSection(activity: Activity, readAt: Long, now: Long, onStop: (A
|
||||
return
|
||||
}
|
||||
val (live, ended) = ActivityLogic.split(activity.agents)
|
||||
var showEnded by rememberSaveable { mutableStateOf(false) }
|
||||
Column(verticalArrangement = Arrangement.spacedBy(4.dp)) {
|
||||
val counts = ActivityLogic.stripCounts(activity.summary)
|
||||
Text(
|
||||
if (counts.isEmpty()) stringResource(R.string.tasks_none_running) else counts.map { (s, n) -> stateCount(s, n) }.joinToString(" · "),
|
||||
style = MaterialTheme.typography.bodySmall,
|
||||
color = palette.inkMuted,
|
||||
)
|
||||
var showEnded by rememberSaveable { mutableStateOf(unfolded) }
|
||||
Column(verticalArrangement = Arrangement.spacedBy(8.dp)) {
|
||||
team?.let { t ->
|
||||
Row(verticalAlignment = Alignment.CenterVertically) {
|
||||
Icon(Icons.Filled.Groups, contentDescription = null, tint = palette.inkMuted, modifier = Modifier.size(18.dp))
|
||||
@@ -434,48 +538,118 @@ private fun TasksSection(activity: Activity, readAt: Long, now: Long, onStop: (A
|
||||
}
|
||||
if (t.goal.isNotBlank()) Text(t.goal, style = MaterialTheme.typography.bodySmall, color = palette.inkMuted)
|
||||
}
|
||||
ActivityLogic.flatten(live).forEach { AgentRow(it, readAt, now, onStop, onRead) }
|
||||
Row(verticalAlignment = Alignment.CenterVertically) {
|
||||
Text(stringResource(R.string.tasks_running), style = MaterialTheme.typography.labelLarge, color = palette.inkMuted)
|
||||
Text(live.size.toString(), style = MaterialTheme.typography.labelLarge, color = palette.inkFaint, modifier = Modifier.padding(start = 6.dp))
|
||||
}
|
||||
if (live.isEmpty()) Empty(stringResource(R.string.tasks_none_running))
|
||||
live.forEachIndexed { i, task -> TaskCard(task, readAt, now, actions, unfolded && i == 0) }
|
||||
if (ended.isNotEmpty()) {
|
||||
Row(
|
||||
Modifier.fillMaxWidth().heightIn(min = 48.dp).clickable { showEnded = !showEnded },
|
||||
verticalAlignment = Alignment.CenterVertically,
|
||||
) {
|
||||
Icon(if (showEnded) Icons.Filled.ExpandLess else Icons.Filled.ExpandMore, contentDescription = null, tint = palette.inkFaint)
|
||||
Icon(
|
||||
if (showEnded) Icons.Filled.ExpandMore else Icons.AutoMirrored.Filled.KeyboardArrowRight,
|
||||
contentDescription = null,
|
||||
tint = palette.inkFaint,
|
||||
)
|
||||
Text(
|
||||
stringResource(R.string.agents_n_finished, ended.size.toString()),
|
||||
style = MaterialTheme.typography.bodyMedium,
|
||||
stringResource(R.string.tasks_finished),
|
||||
style = MaterialTheme.typography.labelLarge,
|
||||
color = palette.inkMuted,
|
||||
modifier = Modifier.padding(start = 6.dp),
|
||||
)
|
||||
Text(ended.size.toString(), style = MaterialTheme.typography.labelLarge, color = palette.inkFaint, modifier = Modifier.padding(start = 6.dp))
|
||||
}
|
||||
if (showEnded) ActivityLogic.flatten(ended).forEach { AgentRow(it, readAt, now, onStop, onRead) }
|
||||
if (showEnded) ended.forEach { TaskCard(it, readAt, now, actions, unfolded = false) }
|
||||
}
|
||||
team?.let { t ->
|
||||
Text(stringResource(R.string.team_room), style = MaterialTheme.typography.titleSmall, modifier = Modifier.padding(top = 12.dp))
|
||||
if (t.room.isEmpty()) Empty(stringResource(R.string.room_empty)) else t.room.forEach { RoomEntry(it) }
|
||||
}
|
||||
}
|
||||
|
||||
/** One top-level task as a card of its own, with the tasks under it inside, folded. */
|
||||
@Composable
|
||||
private fun TaskCard(agent: ActivityAgent, readAt: Long, now: Long, actions: ActivityActions, unfolded: Boolean) {
|
||||
val palette = LocalPalette.current
|
||||
var nestedOpen by rememberSaveable(agent.kind, agent.id, "nested") { mutableStateOf(unfolded) }
|
||||
Surface(
|
||||
color = palette.surfaceRaised,
|
||||
contentColor = palette.ink,
|
||||
shape = RoundedCornerShape(12.dp),
|
||||
modifier = Modifier.fillMaxWidth(),
|
||||
) {
|
||||
Column(Modifier.padding(vertical = 2.dp)) {
|
||||
TaskRow(agent, readAt, now, actions, unfolded)
|
||||
val under = ActivityLogic.descendants(agent)
|
||||
if (under > 0) {
|
||||
Row(
|
||||
Modifier.fillMaxWidth().heightIn(min = 40.dp).clickable { nestedOpen = !nestedOpen }.padding(start = 12.dp),
|
||||
verticalAlignment = Alignment.CenterVertically,
|
||||
) {
|
||||
Icon(
|
||||
if (nestedOpen) Icons.Filled.ExpandMore else Icons.AutoMirrored.Filled.KeyboardArrowRight,
|
||||
contentDescription = null,
|
||||
tint = palette.inkFaint,
|
||||
modifier = Modifier.size(18.dp),
|
||||
)
|
||||
Text(
|
||||
stringResource(R.string.tasks_nested, under.toString()),
|
||||
style = MaterialTheme.typography.bodySmall,
|
||||
color = palette.inkMuted,
|
||||
modifier = Modifier.padding(start = 4.dp),
|
||||
)
|
||||
}
|
||||
if (nestedOpen) ActivityLogic.flatten(agent.children).forEach { TaskRow(it, readAt, now, actions, unfolded = false) }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* One agent: a fixed row (state dot, what it is -- the part that gives, cut not wrapped --,
|
||||
* elapsed time in a column of its own width, the stop button at its tap size), indented by
|
||||
* its depth in the tree; tapped, it opens to its brief, model, latest step and what it is
|
||||
* writing, and the way into its conversation.
|
||||
* One task: a fixed row (chevron, kind icon, what it is -- the part that gives, cut not
|
||||
* wrapped --, elapsed time in a column of its own width, the stop square at its tap size),
|
||||
* indented by its depth; tapped, it opens to its brief, model, latest step and live text, and
|
||||
* the way into its conversation.
|
||||
*/
|
||||
@Composable
|
||||
private fun AgentRow(agent: ActivityAgent, readAt: Long, now: Long, onStop: (ActivityAgent) -> Unit, onRead: (ActivityAgent) -> Unit) {
|
||||
private fun TaskRow(agent: ActivityAgent, readAt: Long, now: Long, actions: ActivityActions, unfolded: Boolean) {
|
||||
val palette = LocalPalette.current
|
||||
var open by rememberSaveable(agent.kind, agent.id) { mutableStateOf(false) }
|
||||
var open by rememberSaveable(agent.kind, agent.id) { mutableStateOf(unfolded) }
|
||||
Column(Modifier.fillMaxWidth().padding(start = (16 * agent.depth.coerceIn(0, 4)).dp)) {
|
||||
Row(
|
||||
Modifier.fillMaxWidth().heightIn(min = 48.dp).clickable { open = !open },
|
||||
Modifier.fillMaxWidth().heightIn(min = 48.dp).clickable { open = !open }.padding(start = 8.dp),
|
||||
verticalAlignment = Alignment.CenterVertically,
|
||||
) {
|
||||
Box(Modifier.size(8.dp).clip(CircleShape).background(stateColour(palette, agent.state)))
|
||||
Icon(
|
||||
if (open) Icons.Filled.ExpandMore else Icons.AutoMirrored.Filled.KeyboardArrowRight,
|
||||
contentDescription = null,
|
||||
tint = palette.inkFaint,
|
||||
modifier = Modifier.size(18.dp),
|
||||
)
|
||||
Icon(
|
||||
when {
|
||||
agent.kind == "member" -> Icons.Filled.Groups
|
||||
agent.type == "command" -> Icons.Filled.Terminal
|
||||
else -> Icons.Filled.SmartToy
|
||||
},
|
||||
contentDescription = kindWord(agent),
|
||||
tint = stateColour(palette, agent.state),
|
||||
modifier = Modifier.padding(start = 4.dp).size(18.dp),
|
||||
)
|
||||
Column(Modifier.weight(1f).padding(horizontal = 8.dp)) {
|
||||
Text(agent.name, style = MaterialTheme.typography.bodyMedium, maxLines = 1, overflow = TextOverflow.Ellipsis)
|
||||
if (agent.role.isNotBlank()) {
|
||||
Text(agent.role, style = MaterialTheme.typography.labelSmall, color = palette.inkMuted, maxLines = 1, overflow = TextOverflow.Ellipsis)
|
||||
Text(ActivityLogic.title(agent), style = MaterialTheme.typography.bodyMedium, maxLines = 1, overflow = TextOverflow.Ellipsis)
|
||||
val sub = listOfNotNull(
|
||||
if (agent.kind == "member") agent.role.ifBlank { null } else null,
|
||||
if (agent.isActive) null else stateWord(agent.state),
|
||||
)
|
||||
if (sub.isNotEmpty()) {
|
||||
Text(
|
||||
sub.joinToString(" · "),
|
||||
style = MaterialTheme.typography.labelSmall,
|
||||
color = palette.inkMuted,
|
||||
maxLines = 1,
|
||||
overflow = TextOverflow.Ellipsis,
|
||||
)
|
||||
}
|
||||
}
|
||||
Text(
|
||||
@@ -486,23 +660,40 @@ private fun AgentRow(agent: ActivityAgent, readAt: Long, now: Long, onStop: (Act
|
||||
modifier = Modifier.width(64.dp),
|
||||
)
|
||||
Box(Modifier.size(48.dp), contentAlignment = Alignment.Center) {
|
||||
if (agent.stoppable) {
|
||||
IconButton(onClick = { onStop(agent) }) {
|
||||
Icon(Icons.Filled.StopCircle, contentDescription = stringResource(R.string.agent_stop, agent.name), tint = palette.inkMuted)
|
||||
if (agent.stoppable && agent.isActive) {
|
||||
IconButton(onClick = { actions.stop(agent) }) {
|
||||
Box(
|
||||
Modifier.size(24.dp).clip(RoundedCornerShape(6.dp)).background(palette.surfaceActive),
|
||||
contentAlignment = Alignment.Center,
|
||||
) {
|
||||
Icon(
|
||||
Icons.Filled.Stop,
|
||||
contentDescription = stringResource(R.string.agent_stop, ActivityLogic.title(agent)),
|
||||
tint = palette.ink,
|
||||
modifier = Modifier.size(16.dp),
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (open) {
|
||||
Column(Modifier.padding(start = 16.dp, bottom = 8.dp), verticalArrangement = Arrangement.spacedBy(4.dp)) {
|
||||
Column(Modifier.padding(start = 34.dp, end = 12.dp, bottom = 10.dp), verticalArrangement = Arrangement.spacedBy(4.dp)) {
|
||||
val facts = listOfNotNull(
|
||||
kindWord(agent),
|
||||
stateWord(agent.state),
|
||||
agent.agent.ifBlank { null },
|
||||
agent.model.ifBlank { null },
|
||||
if (agent.steps > 0) stringResource(R.string.agent_steps, agent.steps.toString(), agent.tools.toString()) else null,
|
||||
)
|
||||
Text(facts.joinToString(" · "), style = MaterialTheme.typography.labelSmall, color = palette.inkMuted)
|
||||
if (agent.brief.isNotBlank()) Text(agent.brief, style = MaterialTheme.typography.bodySmall)
|
||||
if (agent.brief.isNotBlank() && agent.brief != ActivityLogic.title(agent)) {
|
||||
Text(
|
||||
agent.brief,
|
||||
style = MaterialTheme.typography.bodySmall,
|
||||
fontFamily = if (agent.type == "command") FontFamily.Monospace else null,
|
||||
)
|
||||
}
|
||||
agent.step?.let { step ->
|
||||
Text(
|
||||
listOf(step.label.ifBlank { step.tool }, step.title).filter { it.isNotBlank() }.joinToString(" "),
|
||||
@@ -517,7 +708,7 @@ private fun AgentRow(agent: ActivityAgent, readAt: Long, now: Long, onStop: (Act
|
||||
Text(agent.text, style = MaterialTheme.typography.bodySmall, color = palette.ink, maxLines = 6, overflow = TextOverflow.Ellipsis)
|
||||
}
|
||||
if (agent.transcript) {
|
||||
OutlinedButton(onClick = { onRead(agent) }) {
|
||||
OutlinedButton(onClick = { actions.read(agent) }) {
|
||||
Icon(Icons.Filled.Visibility, contentDescription = null, modifier = Modifier.size(18.dp))
|
||||
Text(stringResource(R.string.agent_open_conversation), modifier = Modifier.padding(start = 6.dp))
|
||||
}
|
||||
@@ -527,6 +718,13 @@ private fun AgentRow(agent: ActivityAgent, readAt: Long, now: Long, onStop: (Act
|
||||
}
|
||||
}
|
||||
|
||||
// --- The room -------------------------------------------------------------------------------
|
||||
|
||||
@Composable
|
||||
private fun RoomSection(team: ActivityTeam) {
|
||||
if (team.room.isEmpty()) Empty(stringResource(R.string.room_empty)) else Column { team.room.forEach { RoomEntry(it) } }
|
||||
}
|
||||
|
||||
@Composable
|
||||
private fun RoomEntry(entry: RoomMessage) {
|
||||
val palette = LocalPalette.current
|
||||
|
||||
@@ -142,10 +142,8 @@ fun ChatScreen(
|
||||
)
|
||||
|
||||
if (activityOpen) {
|
||||
state.chat?.let { chat ->
|
||||
// A device's files are on the device: the panel lists them, the tree cannot open them.
|
||||
ActivityPanel(chat.id, state, model, canOpenFiles = !chat.isAgent, onClose = { activityOpen = false })
|
||||
}
|
||||
// A device's files are on the device: the sheet lists them, the tree cannot open them.
|
||||
ActivityPanel(state.chat?.id, state, model, canOpenFiles = !isAgent, onClose = { activityOpen = false })
|
||||
}
|
||||
showing?.let { file ->
|
||||
state.chat?.id?.let { id -> FileViewer(id, file, onClose = { showing = null }) }
|
||||
@@ -219,15 +217,13 @@ fun ChatContent(
|
||||
)
|
||||
},
|
||||
actions = {
|
||||
// The activity sheet, always within reach: context, background tasks, plan.
|
||||
IconButton(onClick = onActivity) { Icon(Icons.Filled.Bolt, contentDescription = stringResource(R.string.activity_open)) }
|
||||
if (chat != null) {
|
||||
IconButton(onClick = onNewChat) { Icon(Icons.Filled.EditNote, contentDescription = stringResource(R.string.new_chat)) }
|
||||
Box {
|
||||
IconButton(onClick = { menu = true }) { Icon(Icons.Filled.MoreVert, contentDescription = stringResource(R.string.more)) }
|
||||
DropdownMenu(expanded = menu, onDismissRequest = { menu = false }) {
|
||||
MenuItem(Icons.Filled.Bolt, stringResource(R.string.activity)) {
|
||||
menu = false
|
||||
onActivity()
|
||||
}
|
||||
MenuItem(Icons.Filled.DriveFileRenameOutline, stringResource(R.string.rename_chat)) {
|
||||
menu = false
|
||||
renaming = true
|
||||
|
||||
@@ -61,10 +61,14 @@ data class ChatState(
|
||||
val activityAt: Long = 0,
|
||||
/** The strip's counts, from the events route (or the first read). */
|
||||
val summary: ActivitySummary? = null,
|
||||
/** Whether this chat may have a team: the server's word for a chat that exists. */
|
||||
/** Whether this chat is offered subagents: the activity's word for a chat that exists. */
|
||||
val teamOffered: Boolean = false,
|
||||
/** The instance's cap on a chat's subagents, from the models list; null from an older server. */
|
||||
val modelsCap: Int? = null,
|
||||
/** Whether the events route is followed; without it an open panel polls. */
|
||||
val activityLive: Boolean = false,
|
||||
/** A Compact asked for from the activity sheet and not answered yet. */
|
||||
val compacting: Boolean = false,
|
||||
/** What a chat not made yet will be made with: chosen in the top bar and the tune sheet. */
|
||||
val draft: Draft = Draft(),
|
||||
)
|
||||
@@ -93,8 +97,22 @@ val ChatState.modelInfo: ModelInfo? get() = models.firstOrNull { it.id == modelI
|
||||
val ChatState.level: String?
|
||||
get() = modelInfo?.takeIf { it.levelControl != "none" }?.level(if (chat == null) draft.effort else chat.effort?.ifBlank { null })
|
||||
|
||||
/** Whether a team may be asked for: the server's word for a chat that exists, the model's facts for a new one. */
|
||||
fun ChatState.offersTeam(agent: Boolean): Boolean = if (chat != null) teamOffered else !agent && modelInfo?.mayHaveTeam == true
|
||||
/**
|
||||
* Whether the Subagents setting is shown (plan rule 4): the chat's own word for a chat that
|
||||
* exists (`subagents.offered`, else the activity's), the model's for a new one.
|
||||
*/
|
||||
fun ChatState.offersTeam(agent: Boolean): Boolean = if (chat != null) chat.subagents?.offered ?: teamOffered else !agent && modelInfo?.mayHaveTeam == true
|
||||
|
||||
/**
|
||||
* Whether subagents need a model the person names in the chat: the chat's own serves one
|
||||
* request at a time. The setting then says so; there is no default to fall back on.
|
||||
*/
|
||||
val ChatState.subagentsNamedOnly: Boolean
|
||||
get() = (if (chat != null) chat.subagents?.namedOnly else modelInfo?.subagents?.namedOnly) ?: false
|
||||
|
||||
/** The most subagents a chat may have here: the chat's cap, else the instance's, else the spec's. */
|
||||
val ChatState.subagentsCap: Int
|
||||
get() = (chat?.subagents?.cap ?: modelsCap ?: AgentsSetting.CAP).coerceAtLeast(1)
|
||||
|
||||
/** The team's size in force. */
|
||||
val ChatState.agents: AgentsSetting get() = chat?.agents ?: draft.agents ?: AgentsSetting()
|
||||
@@ -168,7 +186,9 @@ class ChatViewModel(app: Application) :
|
||||
try {
|
||||
val client = api()
|
||||
_state.update { it.copy(loading = chatId != null || agent, error = null) }
|
||||
val models = runCatching { client.models(chatId) }.getOrDefault(emptyList())
|
||||
val list = runCatching { client.modelList(chatId) }.getOrNull()
|
||||
val models = list?.models.orEmpty()
|
||||
_state.update { it.copy(modelsCap = list?.subagentsCap) }
|
||||
if (chatId == null) {
|
||||
val devices = if (agent) client.devices() else emptyList()
|
||||
_state.update { it.copy(models = models, devices = devices, loading = false) }
|
||||
@@ -182,7 +202,7 @@ class ChatViewModel(app: Application) :
|
||||
// Whether a team is offered and what runs in the background: the cheap read,
|
||||
// without the context count. A server without the panel has no answer.
|
||||
runCatching { client.activity(chatId, context = false) }.onSuccess { a ->
|
||||
_state.update { it.copy(teamOffered = a.teamOffered, summary = a.summary) }
|
||||
_state.update { it.copy(teamOffered = a.subagentsOffered ?: a.teamOffered, summary = a.summary) }
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
fail(e)
|
||||
@@ -346,7 +366,9 @@ class ChatViewModel(app: Application) :
|
||||
// Another model may serve one request at a time, or more: whether a team is offered
|
||||
// follows it.
|
||||
if (key == "model") {
|
||||
runCatching { api.activity(chat.id, context = false) }.onSuccess { r -> _state.update { it.copy(teamOffered = r.teamOffered) } }
|
||||
runCatching { api.activity(chat.id, context = false) }.onSuccess { r ->
|
||||
_state.update { it.copy(teamOffered = r.subagentsOffered ?: r.teamOffered) }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -370,7 +392,7 @@ class ChatViewModel(app: Application) :
|
||||
if (_state.value.summary == null) {
|
||||
// A chat its first message just made: whether a team is offered, read once.
|
||||
runCatching { client.activity(chat.id, context = false) }.onSuccess { a ->
|
||||
_state.update { it.copy(teamOffered = a.teamOffered, summary = a.summary) }
|
||||
_state.update { it.copy(teamOffered = a.subagentsOffered ?: a.teamOffered, summary = a.summary) }
|
||||
}
|
||||
}
|
||||
try {
|
||||
@@ -408,7 +430,7 @@ class ChatViewModel(app: Application) :
|
||||
activity = if (context) read else read.copy(context = s.activity?.context),
|
||||
activityAt = SystemClock.elapsedRealtime(),
|
||||
summary = read.summary,
|
||||
teamOffered = read.teamOffered,
|
||||
teamOffered = read.subagentsOffered ?: read.teamOffered,
|
||||
)
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
@@ -423,6 +445,24 @@ class ChatViewModel(app: Application) :
|
||||
loadActivity(context = false)
|
||||
}
|
||||
|
||||
/** Compact the chat now; the transcript and the sheet are read again for what it changed. */
|
||||
fun compact() {
|
||||
val chat = _state.value.chat ?: return
|
||||
if (_state.value.compacting) return
|
||||
viewModelScope.launch {
|
||||
_state.update { it.copy(compacting = true) }
|
||||
try {
|
||||
api().compact(chat.id)
|
||||
refresh()
|
||||
loadActivity()
|
||||
} catch (e: Exception) {
|
||||
fail(e)
|
||||
} finally {
|
||||
_state.update { it.copy(compacting = false) }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
override fun delete(then: () -> Unit) = control { api, chat ->
|
||||
api.deleteChat(chat.id)
|
||||
then()
|
||||
|
||||
@@ -11,6 +11,7 @@ import androidx.compose.foundation.BorderStroke
|
||||
import androidx.compose.foundation.background
|
||||
import androidx.compose.foundation.clickable
|
||||
import androidx.compose.foundation.horizontalScroll
|
||||
import androidx.compose.foundation.interaction.MutableInteractionSource
|
||||
import androidx.compose.foundation.layout.Arrangement
|
||||
import androidx.compose.foundation.layout.Box
|
||||
import androidx.compose.foundation.layout.Column
|
||||
@@ -40,6 +41,7 @@ import androidx.compose.material.icons.filled.Tune
|
||||
import androidx.compose.material.icons.filled.UploadFile
|
||||
import androidx.compose.material3.DropdownMenu
|
||||
import androidx.compose.material3.DropdownMenuItem
|
||||
import androidx.compose.material3.ExperimentalMaterial3Api
|
||||
import androidx.compose.material3.FilterChip
|
||||
import androidx.compose.material3.HorizontalDivider
|
||||
import androidx.compose.material3.Icon
|
||||
@@ -48,7 +50,8 @@ import androidx.compose.material3.IconButtonDefaults
|
||||
import androidx.compose.material3.LinearProgressIndicator
|
||||
import androidx.compose.material3.MaterialTheme
|
||||
import androidx.compose.material3.OutlinedTextField
|
||||
import androidx.compose.material3.Slider
|
||||
import androidx.compose.material3.RangeSlider
|
||||
import androidx.compose.material3.SliderDefaults
|
||||
import androidx.compose.material3.Surface
|
||||
import androidx.compose.material3.Switch
|
||||
import androidx.compose.material3.Text
|
||||
@@ -68,8 +71,9 @@ import androidx.compose.ui.draw.clip
|
||||
import androidx.compose.ui.graphics.Color
|
||||
import androidx.compose.ui.platform.LocalContext
|
||||
import androidx.compose.ui.res.stringResource
|
||||
import androidx.compose.ui.semantics.contentDescription
|
||||
import androidx.compose.ui.semantics.semantics
|
||||
import androidx.compose.ui.text.input.KeyboardCapitalization
|
||||
import androidx.compose.ui.text.style.TextAlign
|
||||
import androidx.compose.ui.text.style.TextOverflow
|
||||
import androidx.compose.ui.unit.dp
|
||||
import androidx.core.content.ContextCompat
|
||||
@@ -429,14 +433,20 @@ fun TuneContent(state: ChatState, actions: ChatActions, agent: Boolean, modifier
|
||||
color = palette.inkMuted,
|
||||
modifier = Modifier.padding(horizontal = 24.dp),
|
||||
)
|
||||
val now = state.agents
|
||||
Column(Modifier.padding(horizontal = 24.dp)) {
|
||||
AgentsSlider(stringResource(R.string.team_fewest), now.min) { v ->
|
||||
setTeam(actions, chat == null, AgentsSetting(v, maxOf(v, now.max)))
|
||||
}
|
||||
AgentsSlider(stringResource(R.string.team_most), now.max) { v ->
|
||||
setTeam(actions, chat == null, AgentsSetting(minOf(now.min, v), v))
|
||||
}
|
||||
if (state.subagentsNamedOnly) {
|
||||
// The chat's model serves one request at a time: no default to fall back on.
|
||||
Text(
|
||||
stringResource(R.string.subagents_named_only),
|
||||
style = MaterialTheme.typography.bodySmall,
|
||||
color = palette.warning,
|
||||
modifier = Modifier.padding(horizontal = 24.dp, vertical = 4.dp),
|
||||
)
|
||||
}
|
||||
val cap = state.subagentsCap
|
||||
val now = state.agents.let { AgentsSetting(it.min.coerceIn(1, cap), it.max.coerceIn(1, cap)) }
|
||||
// An instance that allows only one has nothing to choose between.
|
||||
if (cap > 1) {
|
||||
AgentsRange(now, cap, Modifier.padding(horizontal = 24.dp)) { setTeam(actions, chat == null, it) }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -560,23 +570,42 @@ private fun DeviceChoices(devices: List<LinkedDevice>, current: LinkedDevice?, o
|
||||
}
|
||||
|
||||
/**
|
||||
* One end of the team's size: its label and value on a row of their own, so the two sliders
|
||||
* line up whatever the words, and the slider under them.
|
||||
* The Subagents setting: one slider with two thumbs, Min and Max, from 1 to the instance's
|
||||
* [cap], in whole agents. The numbers count the chat's own agent, as the server does
|
||||
* (`agents {min, max}`, the lead included): 1 is the agent alone. The values sit on a row of
|
||||
* their own above the slider, so nothing beside them moves when a number grows a digit.
|
||||
*/
|
||||
@OptIn(ExperimentalMaterial3Api::class)
|
||||
@Composable
|
||||
fun AgentsSlider(label: String, value: Int, onChange: (Int) -> Unit) {
|
||||
var shown by remember(value) { mutableStateOf(value.toFloat()) }
|
||||
Column(Modifier.padding(top = 8.dp)) {
|
||||
Row(verticalAlignment = Alignment.CenterVertically) {
|
||||
Text(label, style = MaterialTheme.typography.bodyLarge, modifier = Modifier.weight(1f))
|
||||
Text(Math.round(shown).toString(), style = MaterialTheme.typography.titleMedium, modifier = Modifier.width(40.dp), textAlign = TextAlign.End)
|
||||
}
|
||||
Slider(
|
||||
fun AgentsRange(value: AgentsSetting, cap: Int, modifier: Modifier = Modifier, onChange: (AgentsSetting) -> Unit) {
|
||||
var shown by remember(value.min, value.max) { mutableStateOf(value.min.toFloat()..value.max.toFloat()) }
|
||||
val min = Math.round(shown.start).coerceIn(1, cap)
|
||||
val max = Math.round(shown.endInclusive).coerceIn(min, cap)
|
||||
val minLabel = stringResource(R.string.team_min)
|
||||
val maxLabel = stringResource(R.string.team_max)
|
||||
val startSource = remember { MutableInteractionSource() }
|
||||
val endSource = remember { MutableInteractionSource() }
|
||||
Column(modifier.padding(top = 8.dp)) {
|
||||
Text(
|
||||
stringResource(R.string.team_range, min.toString(), max.toString()),
|
||||
style = MaterialTheme.typography.titleMedium,
|
||||
)
|
||||
RangeSlider(
|
||||
value = shown,
|
||||
onValueChange = { shown = it },
|
||||
onValueChangeFinished = { onChange(Math.round(shown).coerceIn(1, AgentsSetting.CAP)) },
|
||||
valueRange = 1f..AgentsSetting.CAP.toFloat(),
|
||||
// Continuous: 31 tick marks would be noise, and the value is rounded anyway.
|
||||
// Whole agents: each thumb lands on a number as it moves, with no tick per value,
|
||||
// which at a cap of 32 would be a row of noise.
|
||||
onValueChange = { r -> shown = Math.round(r.start).toFloat()..Math.round(r.endInclusive).toFloat() },
|
||||
onValueChangeFinished = { onChange(AgentsSetting(min, max)) },
|
||||
valueRange = 1f..cap.toFloat(),
|
||||
startInteractionSource = startSource,
|
||||
endInteractionSource = endSource,
|
||||
startThumb = {
|
||||
SliderDefaults.Thumb(interactionSource = startSource, modifier = Modifier.semantics { contentDescription = minLabel })
|
||||
},
|
||||
endThumb = {
|
||||
SliderDefaults.Thumb(interactionSource = endSource, modifier = Modifier.semantics { contentDescription = maxLabel })
|
||||
},
|
||||
modifier = Modifier.heightIn(min = 48.dp),
|
||||
)
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
// Generated by scripts/fetch-tokens.py from the LLeMbas server's tokens.css at v2.0.0-beta.6. Do not edit.
|
||||
// Generated by scripts/fetch-tokens.py from the LLeMbas server's tokens.css at v2.0.0-beta.7. Do not edit.
|
||||
package eu.llembas.android.ui.theme
|
||||
|
||||
import androidx.compose.ui.graphics.Color
|
||||
|
||||
@@ -76,11 +76,18 @@
|
||||
<string name="ctx_since">Od poslední odpovědi</string>
|
||||
<string name="ctx_buffer">Rezerva na zhuštění</string>
|
||||
<string name="ctx_free">Volné místo</string>
|
||||
<string name="outputs_empty">V tomto chatu se zatím nezapsal žádný soubor.</string>
|
||||
<string name="tasks_empty">Na pozadí nic neběží. Pomocníci, příkazy a členové týmu se tu zobrazí, dokud pracují.</string>
|
||||
<string name="tasks_empty">Na pozadí nic neběží. Podagenti, příkazy a členové týmu se tu ukážou, dokud pracují.</string>
|
||||
<string name="tasks_none_running">Nic neběží.</string>
|
||||
<string name="agents_one_working">1 agent pracuje</string>
|
||||
<string name="agents_n_working">Pracující agenti: %1$s</string>
|
||||
<string name="tasks_running">Běží</string>
|
||||
<string name="tasks_finished">Dokončeno</string>
|
||||
<string name="tasks_n_running">Běží: %1$s</string>
|
||||
<string name="tasks_nested">Pod ním: %1$s</string>
|
||||
<string name="task_subagent">Podagent</string>
|
||||
<string name="task_command">Příkaz</string>
|
||||
<string name="task_member">Člen týmu</string>
|
||||
<string name="activity_until_compact">%1$s do automatického shrnutí</string>
|
||||
<string name="activity_compact_off">Automatické shrnutí je vypnuté.</string>
|
||||
<string name="activity_compact">Shrnout</string>
|
||||
<string name="agents_n_queued">Ve frontě: %1$s</string>
|
||||
<string name="agents_n_waiting">Čeká: %1$s</string>
|
||||
<string name="agents_n_finished">Dokončeno: %1$s</string>
|
||||
@@ -97,15 +104,17 @@
|
||||
<string name="agent_stop_confirm">Zastavit %1$s? Co dosud udělal, zůstane.</string>
|
||||
<string name="agent_nothing_yet">Zatím nic neřekl.</string>
|
||||
<string name="agent_machine">Od systému</string>
|
||||
<string name="team_size">Tým: %1$s z %2$s agentů</string>
|
||||
<string name="team_size">Tým: %1$s z %2$s podagentů</string>
|
||||
<string name="team_room">Místnost</string>
|
||||
<string name="room_empty">V místnosti zatím nikdo nic neřekl.</string>
|
||||
<string name="room_report">hlášení</string>
|
||||
<string name="team_agents">Agenti</string>
|
||||
<string name="team_fewest">Nejméně</string>
|
||||
<string name="team_most">Nejvíce</string>
|
||||
<string name="team_hint">Včetně vlastního agenta. Při více než jednom může přidat členy, kteří dělají práci, zatímco je vede.</string>
|
||||
<string name="team_chip">Agenti %1$s–%2$s</string>
|
||||
<string name="team_agents">Podagenti</string>
|
||||
<string name="team_min">Min</string>
|
||||
<string name="team_max">Max</string>
|
||||
<string name="team_range">Min %1$s · Max %2$s</string>
|
||||
<string name="team_hint">Čísla počítají i vlastního agenta tohoto chatu: 1 je agent sám, bez podagentů, a Max 4 je agent a až 3 podagenti, které vede.</string>
|
||||
<string name="team_chip">Podagenti: Min %1$s · Max %2$s</string>
|
||||
<string name="subagents_named_only">Tento model obslouží jen jeden požadavek najednou: podagenti potřebují jiný model, na jiném serveru, pojmenovaný v chatu.</string>
|
||||
<string name="thinking_switch">Přemýšlet před odpovědí</string>
|
||||
<string name="level_off">vypnuto</string>
|
||||
<string name="level_default">výchozí</string>
|
||||
|
||||
@@ -76,11 +76,18 @@
|
||||
<string name="ctx_since">Seit der letzten Antwort</string>
|
||||
<string name="ctx_buffer">Puffer für die Verdichtung</string>
|
||||
<string name="ctx_free">Freier Platz</string>
|
||||
<string name="outputs_empty">In diesem Chat wurde noch keine Datei geschrieben.</string>
|
||||
<string name="tasks_empty">Im Hintergrund läuft nichts. Helfer, Befehle und die Mitglieder eines Teams erscheinen hier, solange sie arbeiten.</string>
|
||||
<string name="tasks_empty">Im Hintergrund läuft nichts. Subagenten, Befehle und die Mitglieder eines Teams erscheinen hier, solange sie arbeiten.</string>
|
||||
<string name="tasks_none_running">Nichts läuft.</string>
|
||||
<string name="agents_one_working">1 Agent arbeitet</string>
|
||||
<string name="agents_n_working">%1$s Agenten arbeiten</string>
|
||||
<string name="tasks_running">Läuft</string>
|
||||
<string name="tasks_finished">Beendet</string>
|
||||
<string name="tasks_n_running">%1$s laufen</string>
|
||||
<string name="tasks_nested">%1$s darunter</string>
|
||||
<string name="task_subagent">Subagent</string>
|
||||
<string name="task_command">Befehl</string>
|
||||
<string name="task_member">Teammitglied</string>
|
||||
<string name="activity_until_compact">%1$s bis zum automatischen Zusammenfassen</string>
|
||||
<string name="activity_compact_off">Automatisches Zusammenfassen ist aus.</string>
|
||||
<string name="activity_compact">Zusammenfassen</string>
|
||||
<string name="agents_n_queued">%1$s in der Warteschlange</string>
|
||||
<string name="agents_n_waiting">%1$s warten</string>
|
||||
<string name="agents_n_finished">%1$s beendet</string>
|
||||
@@ -97,15 +104,17 @@
|
||||
<string name="agent_stop_confirm">%1$s stoppen? Was bisher getan wurde, bleibt.</string>
|
||||
<string name="agent_nothing_yet">Noch nichts gesagt.</string>
|
||||
<string name="agent_machine">Vom System</string>
|
||||
<string name="team_size">Team: %1$s von %2$s Agenten</string>
|
||||
<string name="team_size">Team: %1$s von %2$s Subagenten</string>
|
||||
<string name="team_room">Raum</string>
|
||||
<string name="room_empty">Im Raum wurde noch nichts gesagt.</string>
|
||||
<string name="room_report">Bericht</string>
|
||||
<string name="team_agents">Agenten</string>
|
||||
<string name="team_fewest">Mindestens</string>
|
||||
<string name="team_most">Höchstens</string>
|
||||
<string name="team_hint">Der eigene Agent eingeschlossen. Bei mehr als einem kann er Mitglieder hinzufügen, die die Arbeit machen, während er sie leitet.</string>
|
||||
<string name="team_chip">Agenten %1$s–%2$s</string>
|
||||
<string name="team_agents">Subagenten</string>
|
||||
<string name="team_min">Min</string>
|
||||
<string name="team_max">Max</string>
|
||||
<string name="team_range">Min %1$s · Max %2$s</string>
|
||||
<string name="team_hint">Die Zahlen zählen den eigenen Agenten dieses Chats mit: 1 ist der Agent allein, ohne Subagenten, und Max 4 ist der Agent mit bis zu 3 Subagenten, die er leitet.</string>
|
||||
<string name="team_chip">Subagenten: Min %1$s · Max %2$s</string>
|
||||
<string name="subagents_named_only">Dieses Modell beantwortet nur eine Anfrage auf einmal: Subagenten brauchen ein anderes Modell auf einem anderen Server, im Chat genannt.</string>
|
||||
<string name="thinking_switch">Vor der Antwort nachdenken</string>
|
||||
<string name="level_off">aus</string>
|
||||
<string name="level_default">Standard</string>
|
||||
|
||||
@@ -76,11 +76,18 @@
|
||||
<string name="ctx_since">Desde la última respuesta</string>
|
||||
<string name="ctx_buffer">Reserva para la compactación</string>
|
||||
<string name="ctx_free">Espacio libre</string>
|
||||
<string name="outputs_empty">Todavía no se ha escrito ningún archivo en este chat.</string>
|
||||
<string name="tasks_empty">No hay nada en segundo plano. Los ayudantes, los comandos y los miembros de un equipo aparecen aquí mientras trabajan.</string>
|
||||
<string name="tasks_empty">No hay nada en segundo plano. Los subagentes, los comandos y los miembros de un equipo aparecen aquí mientras trabajan.</string>
|
||||
<string name="tasks_none_running">Nada en marcha.</string>
|
||||
<string name="agents_one_working">1 agente trabajando</string>
|
||||
<string name="agents_n_working">%1$s agentes trabajando</string>
|
||||
<string name="tasks_running">En ejecución</string>
|
||||
<string name="tasks_finished">Terminadas</string>
|
||||
<string name="tasks_n_running">%1$s en curso</string>
|
||||
<string name="tasks_nested">%1$s debajo</string>
|
||||
<string name="task_subagent">Subagente</string>
|
||||
<string name="task_command">Comando</string>
|
||||
<string name="task_member">Miembro del equipo</string>
|
||||
<string name="activity_until_compact">%1$s hasta la compactación automática</string>
|
||||
<string name="activity_compact_off">La compactación automática está desactivada.</string>
|
||||
<string name="activity_compact">Compactar</string>
|
||||
<string name="agents_n_queued">%1$s en cola</string>
|
||||
<string name="agents_n_waiting">%1$s esperando</string>
|
||||
<string name="agents_n_finished">%1$s terminados</string>
|
||||
@@ -97,15 +104,17 @@
|
||||
<string name="agent_stop_confirm">¿Detener %1$s? Lo que ha hecho hasta ahora se queda.</string>
|
||||
<string name="agent_nothing_yet">Todavía no ha dicho nada.</string>
|
||||
<string name="agent_machine">Del sistema</string>
|
||||
<string name="team_size">Equipo: %1$s de %2$s agentes</string>
|
||||
<string name="team_size">Equipo: %1$s de %2$s subagentes</string>
|
||||
<string name="team_room">Sala</string>
|
||||
<string name="room_empty">Todavía no se ha dicho nada en la sala.</string>
|
||||
<string name="room_report">informe</string>
|
||||
<string name="team_agents">Agentes</string>
|
||||
<string name="team_fewest">Mínimo</string>
|
||||
<string name="team_most">Máximo</string>
|
||||
<string name="team_hint">Su propio agente incluido. Con más de uno, puede añadir miembros que hagan el trabajo mientras los dirige.</string>
|
||||
<string name="team_chip">Agentes %1$s–%2$s</string>
|
||||
<string name="team_agents">Subagentes</string>
|
||||
<string name="team_min">Mín</string>
|
||||
<string name="team_max">Máx</string>
|
||||
<string name="team_range">Mín %1$s · Máx %2$s</string>
|
||||
<string name="team_hint">Los números cuentan el propio agente de este chat: 1 es el agente solo, sin subagentes, y Máx 4 es el agente y hasta 3 subagentes que dirige.</string>
|
||||
<string name="team_chip">Subagentes: Mín %1$s · Máx %2$s</string>
|
||||
<string name="subagents_named_only">Este modelo atiende una sola petición a la vez: los subagentes necesitan otro modelo, en otro servidor, nombrado en el chat.</string>
|
||||
<string name="thinking_switch">Razonar antes de responder</string>
|
||||
<string name="level_off">desactivado</string>
|
||||
<string name="level_default">predeterminado</string>
|
||||
|
||||
@@ -76,11 +76,18 @@
|
||||
<string name="ctx_since">Depuis la dernière réponse</string>
|
||||
<string name="ctx_buffer">Réserve de compactage</string>
|
||||
<string name="ctx_free">Espace libre</string>
|
||||
<string name="outputs_empty">Aucun fichier n’a encore été écrit dans cette conversation.</string>
|
||||
<string name="tasks_empty">Rien ne tourne en arrière-plan. Les assistants, les commandes et les membres d’une équipe s’affichent ici pendant qu’ils travaillent.</string>
|
||||
<string name="tasks_empty">Rien ne tourne en arrière-plan. Les sous-agents, les commandes et les membres d\'une équipe apparaissent ici pendant qu\'ils travaillent.</string>
|
||||
<string name="tasks_none_running">Rien en cours.</string>
|
||||
<string name="agents_one_working">1 agent au travail</string>
|
||||
<string name="agents_n_working">%1$s agents au travail</string>
|
||||
<string name="tasks_running">En cours</string>
|
||||
<string name="tasks_finished">Terminées</string>
|
||||
<string name="tasks_n_running">%1$s en cours</string>
|
||||
<string name="tasks_nested">%1$s en dessous</string>
|
||||
<string name="task_subagent">Sous-agent</string>
|
||||
<string name="task_command">Commande</string>
|
||||
<string name="task_member">Membre de l\'équipe</string>
|
||||
<string name="activity_until_compact">%1$s avant le compactage automatique</string>
|
||||
<string name="activity_compact_off">Le compactage automatique est désactivé.</string>
|
||||
<string name="activity_compact">Compacter</string>
|
||||
<string name="agents_n_queued">%1$s en file d’attente</string>
|
||||
<string name="agents_n_waiting">%1$s en attente</string>
|
||||
<string name="agents_n_finished">%1$s terminés</string>
|
||||
@@ -97,15 +104,17 @@
|
||||
<string name="agent_stop_confirm">Arrêter %1$s ? Ce qu’il a déjà fait reste.</string>
|
||||
<string name="agent_nothing_yet">Rien de dit pour l’instant.</string>
|
||||
<string name="agent_machine">Du système</string>
|
||||
<string name="team_size">Équipe : %1$s agents sur %2$s</string>
|
||||
<string name="team_size">Équipe : %1$s sur %2$s sous-agents</string>
|
||||
<string name="team_room">Salle</string>
|
||||
<string name="room_empty">Rien n’a encore été dit dans la salle.</string>
|
||||
<string name="room_report">rapport</string>
|
||||
<string name="team_agents">Agents</string>
|
||||
<string name="team_fewest">Au moins</string>
|
||||
<string name="team_most">Au plus</string>
|
||||
<string name="team_hint">Son propre agent compris. Au-delà d’un, il peut ajouter des membres qui font le travail pendant qu’il les dirige.</string>
|
||||
<string name="team_chip">Agents %1$s–%2$s</string>
|
||||
<string name="team_agents">Sous-agents</string>
|
||||
<string name="team_min">Min</string>
|
||||
<string name="team_max">Max</string>
|
||||
<string name="team_range">Min %1$s · Max %2$s</string>
|
||||
<string name="team_hint">Les nombres comptent l\'agent de ce chat : 1, c\'est l\'agent seul, sans sous-agents, et Max 4, l\'agent et jusqu\'à 3 sous-agents qu\'il dirige.</string>
|
||||
<string name="team_chip">Sous-agents: Min %1$s · Max %2$s</string>
|
||||
<string name="subagents_named_only">Ce modèle ne traite qu\'une requête à la fois : les sous-agents ont besoin d\'un autre modèle, sur un autre serveur, nommé dans le chat.</string>
|
||||
<string name="thinking_switch">Réfléchir avant de répondre</string>
|
||||
<string name="level_off">désactivé</string>
|
||||
<string name="level_default">par défaut</string>
|
||||
|
||||
@@ -76,11 +76,18 @@
|
||||
<string name="ctx_since">Az utolsó válasz óta</string>
|
||||
<string name="ctx_buffer">Tömörítési tartalék</string>
|
||||
<string name="ctx_free">Szabad hely</string>
|
||||
<string name="outputs_empty">Ebben a csevegésben még nem íródott fájl.</string>
|
||||
<string name="tasks_empty">A háttérben semmi sem fut. A segítők, a parancsok és egy csapat tagjai itt jelennek meg, amíg dolgoznak.</string>
|
||||
<string name="tasks_empty">A háttérben semmi sem fut. Az alügynökök, a parancsok és a csapat tagjai itt látszanak, amíg dolgoznak.</string>
|
||||
<string name="tasks_none_running">Semmi sem fut.</string>
|
||||
<string name="agents_one_working">1 ügynök dolgozik</string>
|
||||
<string name="agents_n_working">%1$s ügynök dolgozik</string>
|
||||
<string name="tasks_running">Fut</string>
|
||||
<string name="tasks_finished">Befejezve</string>
|
||||
<string name="tasks_n_running">%1$s fut</string>
|
||||
<string name="tasks_nested">Alatta: %1$s</string>
|
||||
<string name="task_subagent">Alügynök</string>
|
||||
<string name="task_command">Parancs</string>
|
||||
<string name="task_member">Csapattag</string>
|
||||
<string name="activity_until_compact">%1$s az automatikus tömörítésig</string>
|
||||
<string name="activity_compact_off">Az automatikus tömörítés ki van kapcsolva.</string>
|
||||
<string name="activity_compact">Tömörítés</string>
|
||||
<string name="agents_n_queued">%1$s sorban áll</string>
|
||||
<string name="agents_n_waiting">%1$s várakozik</string>
|
||||
<string name="agents_n_finished">%1$s befejezve</string>
|
||||
@@ -97,15 +104,17 @@
|
||||
<string name="agent_stop_confirm">Leállítja: %1$s? Amit eddig elvégzett, megmarad.</string>
|
||||
<string name="agent_nothing_yet">Még nem mondott semmit.</string>
|
||||
<string name="agent_machine">A rendszertől</string>
|
||||
<string name="team_size">Csapat: %1$s / %2$s ügynök</string>
|
||||
<string name="team_size">Csapat: %1$s / %2$s alügynök</string>
|
||||
<string name="team_room">Szoba</string>
|
||||
<string name="room_empty">A szobában még senki nem mondott semmit.</string>
|
||||
<string name="room_report">jelentés</string>
|
||||
<string name="team_agents">Ügynökök</string>
|
||||
<string name="team_fewest">Legalább</string>
|
||||
<string name="team_most">Legfeljebb</string>
|
||||
<string name="team_hint">A saját ügynökét is beleértve. Egynél több esetén tagokat vehet fel, akik elvégzik a munkát, amíg ő vezeti őket.</string>
|
||||
<string name="team_chip">Ügynökök: %1$s–%2$s</string>
|
||||
<string name="team_agents">Alügynökök</string>
|
||||
<string name="team_min">Min</string>
|
||||
<string name="team_max">Max</string>
|
||||
<string name="team_range">Min %1$s · Max %2$s</string>
|
||||
<string name="team_hint">A számok a csevegés saját ügynökét is beleszámítják: 1 az ügynök egyedül, alügynökök nélkül, a Max 4 pedig az ügynök és legfeljebb 3 alügynök, akiket vezet.</string>
|
||||
<string name="team_chip">Alügynökök: Min %1$s · Max %2$s</string>
|
||||
<string name="subagents_named_only">Ez a modell egyszerre csak egy kérést szolgál ki: az alügynököknek másik modell kell, másik szerveren, a csevegésben megnevezve.</string>
|
||||
<string name="thinking_switch">Gondolkodjon válasz előtt</string>
|
||||
<string name="level_off">ki</string>
|
||||
<string name="level_default">alapértelmezett</string>
|
||||
|
||||
@@ -76,11 +76,18 @@
|
||||
<string name="ctx_since">Dall’ultima risposta</string>
|
||||
<string name="ctx_buffer">Riserva per la compattazione</string>
|
||||
<string name="ctx_free">Spazio libero</string>
|
||||
<string name="outputs_empty">In questa chat non è ancora stato scritto alcun file.</string>
|
||||
<string name="tasks_empty">Nulla è in esecuzione in background. Aiutanti, comandi e membri di una squadra compaiono qui mentre lavorano.</string>
|
||||
<string name="tasks_empty">Niente in background. Sottoagenti, comandi e membri di un team compaiono qui mentre lavorano.</string>
|
||||
<string name="tasks_none_running">Nulla in esecuzione.</string>
|
||||
<string name="agents_one_working">1 agente al lavoro</string>
|
||||
<string name="agents_n_working">%1$s agenti al lavoro</string>
|
||||
<string name="tasks_running">In esecuzione</string>
|
||||
<string name="tasks_finished">Terminate</string>
|
||||
<string name="tasks_n_running">%1$s in corso</string>
|
||||
<string name="tasks_nested">%1$s sotto</string>
|
||||
<string name="task_subagent">Sottoagente</string>
|
||||
<string name="task_command">Comando</string>
|
||||
<string name="task_member">Membro del team</string>
|
||||
<string name="activity_until_compact">%1$s alla compattazione automatica</string>
|
||||
<string name="activity_compact_off">La compattazione automatica è disattivata.</string>
|
||||
<string name="activity_compact">Compatta</string>
|
||||
<string name="agents_n_queued">%1$s in coda</string>
|
||||
<string name="agents_n_waiting">%1$s in attesa</string>
|
||||
<string name="agents_n_finished">%1$s terminati</string>
|
||||
@@ -97,15 +104,17 @@
|
||||
<string name="agent_stop_confirm">Fermare %1$s? Ciò che ha fatto finora resta.</string>
|
||||
<string name="agent_nothing_yet">Non ha ancora detto nulla.</string>
|
||||
<string name="agent_machine">Dal sistema</string>
|
||||
<string name="team_size">Squadra: %1$s di %2$s agenti</string>
|
||||
<string name="team_size">Team: %1$s di %2$s sottoagenti</string>
|
||||
<string name="team_room">Stanza</string>
|
||||
<string name="room_empty">Nella stanza non è ancora stato detto nulla.</string>
|
||||
<string name="room_report">resoconto</string>
|
||||
<string name="team_agents">Agenti</string>
|
||||
<string name="team_fewest">Minimo</string>
|
||||
<string name="team_most">Massimo</string>
|
||||
<string name="team_hint">Il proprio agente compreso. Con più di uno, può aggiungere membri che fanno il lavoro mentre li guida.</string>
|
||||
<string name="team_chip">Agenti %1$s–%2$s</string>
|
||||
<string name="team_agents">Sottoagenti</string>
|
||||
<string name="team_min">Min</string>
|
||||
<string name="team_max">Max</string>
|
||||
<string name="team_range">Min %1$s · Max %2$s</string>
|
||||
<string name="team_hint">I numeri contano l\'agente di questa chat: 1 è l\'agente da solo, senza sottoagenti, e Max 4 è l\'agente più fino a 3 sottoagenti che guida.</string>
|
||||
<string name="team_chip">Sottoagenti: Min %1$s · Max %2$s</string>
|
||||
<string name="subagents_named_only">Questo modello serve una sola richiesta alla volta: i sottoagenti hanno bisogno di un altro modello, su un altro server, nominato nella chat.</string>
|
||||
<string name="thinking_switch">Ragiona prima di rispondere</string>
|
||||
<string name="level_off">disattivato</string>
|
||||
<string name="level_default">predefinito</string>
|
||||
|
||||
@@ -76,11 +76,18 @@
|
||||
<string name="ctx_since">Od ostatniej odpowiedzi</string>
|
||||
<string name="ctx_buffer">Rezerwa na kompakcję</string>
|
||||
<string name="ctx_free">Wolne miejsce</string>
|
||||
<string name="outputs_empty">W tym czacie nie zapisano jeszcze żadnego pliku.</string>
|
||||
<string name="tasks_empty">W tle nic nie działa. Pomocnicy, polecenia i członkowie zespołu pojawiają się tu, gdy pracują.</string>
|
||||
<string name="tasks_empty">W tle nic nie działa. Podagenci, polecenia i członkowie zespołu pojawiają się tu, gdy pracują.</string>
|
||||
<string name="tasks_none_running">Nic nie działa.</string>
|
||||
<string name="agents_one_working">1 agent pracuje</string>
|
||||
<string name="agents_n_working">Pracujący agenci: %1$s</string>
|
||||
<string name="tasks_running">Działa</string>
|
||||
<string name="tasks_finished">Zakończone</string>
|
||||
<string name="tasks_n_running">Działa: %1$s</string>
|
||||
<string name="tasks_nested">Pod nim: %1$s</string>
|
||||
<string name="task_subagent">Podagent</string>
|
||||
<string name="task_command">Polecenie</string>
|
||||
<string name="task_member">Członek zespołu</string>
|
||||
<string name="activity_until_compact">%1$s do automatycznego streszczenia</string>
|
||||
<string name="activity_compact_off">Automatyczne streszczanie jest wyłączone.</string>
|
||||
<string name="activity_compact">Streść</string>
|
||||
<string name="agents_n_queued">W kolejce: %1$s</string>
|
||||
<string name="agents_n_waiting">Czeka: %1$s</string>
|
||||
<string name="agents_n_finished">Zakończone: %1$s</string>
|
||||
@@ -97,15 +104,17 @@
|
||||
<string name="agent_stop_confirm">Zatrzymać %1$s? To, co już zrobił, zostaje.</string>
|
||||
<string name="agent_nothing_yet">Jeszcze nic nie powiedział.</string>
|
||||
<string name="agent_machine">Od systemu</string>
|
||||
<string name="team_size">Zespół: %1$s z %2$s agentów</string>
|
||||
<string name="team_size">Zespół: %1$s z %2$s podagentów</string>
|
||||
<string name="team_room">Pokój</string>
|
||||
<string name="room_empty">W pokoju nikt jeszcze nic nie powiedział.</string>
|
||||
<string name="room_report">raport</string>
|
||||
<string name="team_agents">Agenci</string>
|
||||
<string name="team_fewest">Najmniej</string>
|
||||
<string name="team_most">Najwięcej</string>
|
||||
<string name="team_hint">Wliczając własnego agenta. Przy więcej niż jednym może dodać członków, którzy wykonują pracę, gdy on nimi kieruje.</string>
|
||||
<string name="team_chip">Agenci %1$s–%2$s</string>
|
||||
<string name="team_agents">Podagenci</string>
|
||||
<string name="team_min">Min</string>
|
||||
<string name="team_max">Maks</string>
|
||||
<string name="team_range">Min %1$s · Maks %2$s</string>
|
||||
<string name="team_hint">Liczby obejmują własnego agenta tego czatu: 1 to sam agent, bez podagentów, a Maks 4 to agent i do 3 podagentów, którymi kieruje.</string>
|
||||
<string name="team_chip">Podagenci: Min %1$s · Maks %2$s</string>
|
||||
<string name="subagents_named_only">Ten model obsługuje tylko jedno żądanie naraz: podagenci potrzebują innego modelu, na innym serwerze, nazwanego w czacie.</string>
|
||||
<string name="thinking_switch">Rozumuj przed odpowiedzią</string>
|
||||
<string name="level_off">wył.</string>
|
||||
<string name="level_default">domyślna</string>
|
||||
|
||||
@@ -76,11 +76,18 @@
|
||||
<string name="ctx_since">Od poslednej odpovede</string>
|
||||
<string name="ctx_buffer">Rezerva na zhustenie</string>
|
||||
<string name="ctx_free">Voľné miesto</string>
|
||||
<string name="outputs_empty">V tomto chate sa zatiaľ nezapísal žiadny súbor.</string>
|
||||
<string name="tasks_empty">Na pozadí nič nebeží. Pomocníci, príkazy a členovia tímu sa tu zobrazia, kým pracujú.</string>
|
||||
<string name="tasks_empty">Na pozadí nič nebeží. Podagenti, príkazy a členovia tímu sa tu ukážu, kým pracujú.</string>
|
||||
<string name="tasks_none_running">Nič nebeží.</string>
|
||||
<string name="agents_one_working">1 agent pracuje</string>
|
||||
<string name="agents_n_working">Pracujúci agenti: %1$s</string>
|
||||
<string name="tasks_running">Beží</string>
|
||||
<string name="tasks_finished">Dokončené</string>
|
||||
<string name="tasks_n_running">Beží: %1$s</string>
|
||||
<string name="tasks_nested">Pod ním: %1$s</string>
|
||||
<string name="task_subagent">Podagent</string>
|
||||
<string name="task_command">Príkaz</string>
|
||||
<string name="task_member">Člen tímu</string>
|
||||
<string name="activity_until_compact">%1$s do automatického zhrnutia</string>
|
||||
<string name="activity_compact_off">Automatické zhrnutie je vypnuté.</string>
|
||||
<string name="activity_compact">Zhrnúť</string>
|
||||
<string name="agents_n_queued">V rade: %1$s</string>
|
||||
<string name="agents_n_waiting">Čaká: %1$s</string>
|
||||
<string name="agents_n_finished">Dokončené: %1$s</string>
|
||||
@@ -97,15 +104,17 @@
|
||||
<string name="agent_stop_confirm">Zastaviť %1$s? Čo doteraz urobil, zostane.</string>
|
||||
<string name="agent_nothing_yet">Zatiaľ nič nepovedal.</string>
|
||||
<string name="agent_machine">Od systému</string>
|
||||
<string name="team_size">Tím: %1$s z %2$s agentov</string>
|
||||
<string name="team_size">Tím: %1$s z %2$s podagentov</string>
|
||||
<string name="team_room">Miestnosť</string>
|
||||
<string name="room_empty">V miestnosti zatiaľ nikto nič nepovedal.</string>
|
||||
<string name="room_report">hlásenie</string>
|
||||
<string name="team_agents">Agenti</string>
|
||||
<string name="team_fewest">Najmenej</string>
|
||||
<string name="team_most">Najviac</string>
|
||||
<string name="team_hint">Vrátane vlastného agenta. Pri viac ako jednom môže pridať členov, ktorí robia prácu, kým ich vedie.</string>
|
||||
<string name="team_chip">Agenti %1$s–%2$s</string>
|
||||
<string name="team_agents">Podagenti</string>
|
||||
<string name="team_min">Min</string>
|
||||
<string name="team_max">Max</string>
|
||||
<string name="team_range">Min %1$s · Max %2$s</string>
|
||||
<string name="team_hint">Čísla rátajú aj vlastného agenta tohto chatu: 1 je agent sám, bez podagentov, a Max 4 je agent a až 3 podagenti, ktorých vedie.</string>
|
||||
<string name="team_chip">Podagenti: Min %1$s · Max %2$s</string>
|
||||
<string name="subagents_named_only">Tento model obslúži len jednu požiadavku naraz: podagenti potrebujú iný model, na inom serveri, pomenovaný v chate.</string>
|
||||
<string name="thinking_switch">Premýšľať pred odpoveďou</string>
|
||||
<string name="level_off">vypnuté</string>
|
||||
<string name="level_default">predvolené</string>
|
||||
|
||||
@@ -77,11 +77,18 @@
|
||||
<string name="ctx_since">Since the last reply</string>
|
||||
<string name="ctx_buffer">Compaction buffer</string>
|
||||
<string name="ctx_free">Free space</string>
|
||||
<string name="outputs_empty">No files written in this chat yet.</string>
|
||||
<string name="tasks_empty">Nothing runs in the background. Helpers, commands and a team\'s members show here while they work.</string>
|
||||
<string name="tasks_empty">Nothing runs in the background. Subagents, commands and a team\'s members show here while they work.</string>
|
||||
<string name="tasks_none_running">Nothing running.</string>
|
||||
<string name="agents_one_working">1 agent working</string>
|
||||
<string name="agents_n_working">%1$s agents working</string>
|
||||
<string name="tasks_running">Running</string>
|
||||
<string name="tasks_finished">Finished</string>
|
||||
<string name="tasks_n_running">%1$s running</string>
|
||||
<string name="tasks_nested">%1$s under it</string>
|
||||
<string name="task_subagent">Subagent</string>
|
||||
<string name="task_command">Command</string>
|
||||
<string name="task_member">Team member</string>
|
||||
<string name="activity_until_compact">%1$s until auto-compact</string>
|
||||
<string name="activity_compact_off">Auto-compact is off.</string>
|
||||
<string name="activity_compact">Compact</string>
|
||||
<string name="agents_n_queued">%1$s queued</string>
|
||||
<string name="agents_n_waiting">%1$s waiting</string>
|
||||
<string name="agents_n_finished">%1$s finished</string>
|
||||
@@ -98,15 +105,17 @@
|
||||
<string name="agent_stop_confirm">Stop %1$s? What it has done so far stays.</string>
|
||||
<string name="agent_nothing_yet">Nothing said yet.</string>
|
||||
<string name="agent_machine">From the system</string>
|
||||
<string name="team_size">Team: %1$s of %2$s agents</string>
|
||||
<string name="team_size">Team: %1$s of %2$s subagents</string>
|
||||
<string name="team_room">Room</string>
|
||||
<string name="room_empty">Nothing has been said in the room yet.</string>
|
||||
<string name="room_report">report</string>
|
||||
<string name="team_agents">Agents</string>
|
||||
<string name="team_fewest">Fewest</string>
|
||||
<string name="team_most">Most</string>
|
||||
<string name="team_hint">Its own agent included. Above one, it can add members that do the work while it leads them.</string>
|
||||
<string name="team_chip">Agents %1$s–%2$s</string>
|
||||
<string name="team_agents">Subagents</string>
|
||||
<string name="team_min">Min</string>
|
||||
<string name="team_max">Max</string>
|
||||
<string name="team_range">Min %1$s · Max %2$s</string>
|
||||
<string name="team_hint">The numbers count this chat\'s own agent: 1 is the agent alone, with no subagents, and Max 4 is the agent and up to 3 subagents it leads.</string>
|
||||
<string name="team_chip">Subagents: Min %1$s · Max %2$s</string>
|
||||
<string name="subagents_named_only">This model serves one request at a time: subagents need another model, on another server, named in the chat.</string>
|
||||
<string name="thinking_switch">Think before answering</string>
|
||||
<string name="level_off">off</string>
|
||||
<string name="level_default">default</string>
|
||||
|
||||
@@ -47,7 +47,9 @@ class ActivityTest {
|
||||
assertEquals("low", gptOss.level("low"))
|
||||
// A level the model does not offer (an `off` from before) reads as its start level.
|
||||
assertEquals("high", gptOss.level("off"))
|
||||
assertFalse(gptOss.mayHaveTeam)
|
||||
// One request at a time: offered all the same, for a model the person names (server 3.3.0 rule).
|
||||
assertTrue(gptOss.mayHaveTeam)
|
||||
assertTrue(gptOss.subagents!!.namedOnly)
|
||||
assertNull(gptOss.image)
|
||||
|
||||
assertEquals("none", vision.levelControl)
|
||||
@@ -143,10 +145,30 @@ class ActivityTest {
|
||||
@Test
|
||||
fun theStripCountsWhatIsGoing() {
|
||||
val summary = ActivitySummary(queued = 1, working = 3, waiting = 0, done = 4, finished = 4, active = 4, total = 8)
|
||||
assertEquals(listOf("working" to 3, "queued" to 1), ActivityLogic.stripCounts(summary))
|
||||
assertEquals(listOf("working" to 3, "queued" to 1, "finished" to 4), ActivityLogic.stripCounts(summary))
|
||||
assertTrue(ActivityLogic.stripCounts(ActivitySummary(done = 2, finished = 2)).isEmpty())
|
||||
}
|
||||
|
||||
@Test
|
||||
fun autoCompactIsCountedOnlyAgainstAKnownWindow() {
|
||||
// The app's own count, without the server's: 95 % of 128k is 121.6k; 41k used.
|
||||
val context = read("activity", ActivityEnvelope.serializer()).activity.context!!.copy(autoCompact = null, untilCompact = null)
|
||||
assertEquals(80_600, ActivityLogic.untilAutoCompact(context))
|
||||
assertEquals(0, ActivityLogic.untilAutoCompact(context.copy(used = 127_000)))
|
||||
assertNull(ActivityLogic.untilAutoCompact(context.copy(threshold = 0)))
|
||||
assertNull(ActivityLogic.untilAutoCompact(context.copy(limit = 0)))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun aTaskIsCalledByWhatItWasAskedToDo() {
|
||||
val activity = read("activity", ActivityEnvelope.serializer()).activity
|
||||
val (baker, command) = activity.agents
|
||||
assertEquals("baker", ActivityLogic.title(baker))
|
||||
assertEquals("find mallorn leaves", ActivityLogic.title(baker.children[1]))
|
||||
assertEquals("pytest", ActivityLogic.title(command))
|
||||
assertEquals(2, ActivityLogic.descendants(baker))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun numbersAsTheServerWritesThem() {
|
||||
assertEquals("950", ActivityLogic.compactTokens(950))
|
||||
@@ -167,10 +189,10 @@ class ActivityTest {
|
||||
val activity = read("activity", ActivityEnvelope.serializer()).activity
|
||||
val (baker, _) = activity.agents
|
||||
val wrapper = baker.children[0]
|
||||
val helper = baker.children[1]
|
||||
val subagent = baker.children[1]
|
||||
assertEquals(105L, ActivityLogic.elapsed(baker, readAtMillis = 1_000, nowMillis = 11_000))
|
||||
assertEquals(0L, ActivityLogic.elapsed(wrapper, readAtMillis = 1_000, nowMillis = 11_000))
|
||||
assertEquals(12L, ActivityLogic.elapsed(helper, readAtMillis = 1_000, nowMillis = 11_000))
|
||||
assertEquals(12L, ActivityLogic.elapsed(subagent, readAtMillis = 1_000, nowMillis = 11_000))
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
@@ -47,7 +47,9 @@ class ChatStateTest {
|
||||
fun aTeamIsOfferedByTheServerOrGuessedForANewChat() {
|
||||
assertTrue(ChatState(models = models).offersTeam(agent = false))
|
||||
assertFalse(ChatState(models = models).offersTeam(agent = true))
|
||||
assertFalse(ChatState(models = models, draft = Draft(model = "gpt-oss")).offersTeam(agent = false))
|
||||
// gpt-oss serves one at a time: offered, for a model named in the chat; vision-small not at all.
|
||||
assertTrue(ChatState(models = models, draft = Draft(model = "gpt-oss")).offersTeam(agent = false))
|
||||
assertFalse(ChatState(models = models, draft = Draft(model = "vision-small")).offersTeam(agent = false))
|
||||
assertTrue(ChatState(models = models, chat = Chat(id = "c", model = "gpt-oss"), teamOffered = true).offersTeam(agent = false))
|
||||
assertEquals(AgentsSetting(2, 6), ChatState(draft = Draft(agents = AgentsSetting(2, 6))).agents)
|
||||
}
|
||||
|
||||
@@ -0,0 +1,122 @@
|
||||
package eu.llembas.android
|
||||
|
||||
import eu.llembas.android.api.Activity
|
||||
import eu.llembas.android.api.ActivityEnvelope
|
||||
import eu.llembas.android.api.ActivityLogic
|
||||
import eu.llembas.android.api.AgentsSetting
|
||||
import eu.llembas.android.api.Chat
|
||||
import eu.llembas.android.api.ContextUse
|
||||
import eu.llembas.android.api.LembasJson
|
||||
import eu.llembas.android.api.ModelInfo
|
||||
import eu.llembas.android.api.ModelList
|
||||
import eu.llembas.android.api.SubagentsOffer
|
||||
import eu.llembas.android.ui.chat.ChatState
|
||||
import eu.llembas.android.ui.chat.Draft
|
||||
import eu.llembas.android.ui.chat.offersTeam
|
||||
import eu.llembas.android.ui.chat.subagentsCap
|
||||
import eu.llembas.android.ui.chat.subagentsNamedOnly
|
||||
import kotlinx.serialization.KSerializer
|
||||
import org.junit.Assert.assertEquals
|
||||
import org.junit.Assert.assertFalse
|
||||
import org.junit.Assert.assertNull
|
||||
import org.junit.Assert.assertTrue
|
||||
import org.junit.Test
|
||||
|
||||
/**
|
||||
* The Subagents setting by the server's word (harness spec 3.3.0, `subagents.md` §4): shown
|
||||
* when it says subagents are offered, with its note when only a named model could serve, up to
|
||||
* the instance's cap -- and, from a server that says none of it, the app's old guess.
|
||||
*/
|
||||
class SubagentsTest {
|
||||
private val serving = ModelInfo(id = "qwen", tools = true, parallel = 4)
|
||||
|
||||
private fun <T> read(name: String, serializer: KSerializer<T>): T =
|
||||
LembasJson.decodeFromString(serializer, requireNotNull(javaClass.classLoader!!.getResource("$name.json")).readText())
|
||||
|
||||
@Test
|
||||
fun theContractSaysItAll() {
|
||||
val list = read("models", ModelList.serializer())
|
||||
assertEquals(32, list.subagentsCap)
|
||||
assertEquals(listOf(true, true, false), list.models.map { it.subagents?.offered })
|
||||
assertEquals(listOf(false, true, false), list.models.map { it.subagents?.namedOnly })
|
||||
|
||||
val chat = read("chat", Chat.serializer())
|
||||
assertEquals(SubagentsOffer(offered = true, namedOnly = false, cap = 32), chat.subagents)
|
||||
val agentChat = read("chat_agent", Chat.serializer())
|
||||
assertEquals(SubagentsOffer(offered = false), agentChat.subagents)
|
||||
|
||||
val activity = read("activity", ActivityEnvelope.serializer()).activity
|
||||
assertEquals(true, activity.subagentsOffered)
|
||||
val context = activity.context!!
|
||||
assertEquals(true, context.autoCompact)
|
||||
assertEquals(true, context.compactable)
|
||||
// The server's count and the app's own agree on the same facts.
|
||||
assertEquals(context.untilCompact, ActivityLogic.untilAutoCompact(context.copy(untilCompact = null, autoCompact = null)))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun theServersWordWinsOverTheGuess() {
|
||||
// The guess would offer them (tools, four at once); the server says no.
|
||||
val refused = serving.copy(subagents = SubagentsOffer(offered = false))
|
||||
assertFalse(refused.mayHaveTeam)
|
||||
// The guess would not (one at a time); the server offers them for a named model.
|
||||
val oneAtATime = serving.copy(parallel = 1, subagents = SubagentsOffer(offered = true, namedOnly = true))
|
||||
assertTrue(oneAtATime.mayHaveTeam)
|
||||
// An older server: the guess.
|
||||
assertTrue(serving.mayHaveTeam)
|
||||
assertFalse(serving.copy(parallel = 1).mayHaveTeam)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun aNewChatAsksItsModel() {
|
||||
val state = ChatState(models = listOf(serving.copy(parallel = 1, subagents = SubagentsOffer(offered = true, namedOnly = true))), modelsCap = 8)
|
||||
assertTrue(state.offersTeam(agent = false))
|
||||
assertFalse(state.offersTeam(agent = true))
|
||||
assertTrue(state.subagentsNamedOnly)
|
||||
assertEquals(8, state.subagentsCap)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun anOpenChatAsksItself() {
|
||||
val chat = Chat(id = "c1", model = "qwen", subagents = SubagentsOffer(offered = false, cap = 6))
|
||||
// The activity's older word says yes; the chat's own says no, and wins.
|
||||
val state = ChatState(chat = chat, models = listOf(serving), teamOffered = true, modelsCap = 8)
|
||||
assertFalse(state.offersTeam(agent = false))
|
||||
assertEquals(6, state.subagentsCap)
|
||||
assertFalse(state.subagentsNamedOnly)
|
||||
// A chat from an older server: the activity's word, and the spec's cap.
|
||||
val older = ChatState(chat = chat.copy(subagents = null), teamOffered = true, draft = Draft())
|
||||
assertTrue(older.offersTeam(agent = false))
|
||||
assertEquals(AgentsSetting.CAP, older.subagentsCap)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun theNewFieldsParseAndTheOldOnesStillDo() {
|
||||
val list = LembasJson.decodeFromString(
|
||||
ModelList.serializer(),
|
||||
"""{"models": [{"id": "qwen", "subagents": {"offered": true, "named_only": false}}], "subagents_cap": 12}""",
|
||||
)
|
||||
assertEquals(12, list.subagentsCap)
|
||||
assertEquals(SubagentsOffer(offered = true), list.models.single().subagents)
|
||||
val bare = LembasJson.decodeFromString(ModelList.serializer(), """{"models": [{"id": "qwen"}]}""")
|
||||
assertNull(bare.subagentsCap)
|
||||
assertNull(bare.models.single().subagents)
|
||||
|
||||
val activity = LembasJson.decodeFromString(
|
||||
Activity.serializer(),
|
||||
"""{"team_offered": true, "subagents_offered": false,
|
||||
"context": {"used": 1000, "limit": 10000, "threshold": 95, "auto_compact": true, "until_compact": 8000, "compactable": false}}""",
|
||||
)
|
||||
assertEquals(false, activity.subagentsOffered)
|
||||
assertEquals(8000, ActivityLogic.untilAutoCompact(activity.context!!))
|
||||
assertEquals(false, activity.context!!.compactable)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun autoCompactOffIsOffWhateverTheThreshold() {
|
||||
val context = ContextUse(used = 1000, limit = 10000, threshold = 95, autoCompact = false, untilCompact = 8500)
|
||||
assertNull(ActivityLogic.untilAutoCompact(context))
|
||||
// Without the server's facts: worked out from the threshold.
|
||||
assertEquals(8500, ActivityLogic.untilAutoCompact(ContextUse(used = 1000, limit = 10000, threshold = 95)))
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,13 @@
|
||||
package eu.llembas.android.shots
|
||||
|
||||
import eu.llembas.android.api.ActivityAgent
|
||||
import eu.llembas.android.api.ActivityEnvelope
|
||||
import eu.llembas.android.api.ActivitySummary
|
||||
import eu.llembas.android.api.AgentStep
|
||||
import eu.llembas.android.api.AgentsSetting
|
||||
import eu.llembas.android.api.Attachment
|
||||
import eu.llembas.android.api.Chat
|
||||
import eu.llembas.android.api.ContextPart
|
||||
import eu.llembas.android.api.LembasJson
|
||||
import eu.llembas.android.api.LinkedDevice
|
||||
import eu.llembas.android.api.LiveReply
|
||||
@@ -20,6 +24,7 @@ import eu.llembas.android.api.ScheduleRun
|
||||
import eu.llembas.android.api.SchedulingModel
|
||||
import eu.llembas.android.api.SchedulingModels
|
||||
import eu.llembas.android.api.Step
|
||||
import eu.llembas.android.api.SubagentsOffer
|
||||
import eu.llembas.android.api.Tail
|
||||
import eu.llembas.android.api.ToolBlock
|
||||
import eu.llembas.android.api.ToolCall
|
||||
@@ -111,7 +116,61 @@ object Fakes {
|
||||
messages = listOf(question, answer, packing, packingAnswer),
|
||||
models = models,
|
||||
teamOffered = true,
|
||||
summary = ActivitySummary(working = 2, active = 2, total = 2),
|
||||
summary = ActivitySummary(working = 2, queued = 1, done = 4, finished = 4, active = 3, total = 7),
|
||||
)
|
||||
|
||||
private val fixture = LembasJson.decodeFromString(ActivityEnvelope.serializer(), text("activity")).activity
|
||||
|
||||
private fun job(id: String, type: String, role: String, brief: String, state: String, seconds: Int, stoppable: Boolean = true) = ActivityAgent(
|
||||
kind = "job",
|
||||
id = id,
|
||||
type = type,
|
||||
name = id,
|
||||
role = role,
|
||||
brief = brief,
|
||||
state = state,
|
||||
seconds = seconds,
|
||||
model = if (type == "command") "" else "qwen",
|
||||
agent = if (type == "command") "" else "explore",
|
||||
manager = "lead",
|
||||
stoppable = stoppable,
|
||||
transcript = type != "command",
|
||||
)
|
||||
|
||||
/**
|
||||
* The activity sheet with everything in it, as the reference has it: a context two thirds
|
||||
* free with auto-compact ahead, a team with a member under the lead, subagents and commands
|
||||
* running, four finished, the room and no plan.
|
||||
*/
|
||||
val activity = fixture.copy(
|
||||
summary = ActivitySummary(queued = 1, working = 4, done = 4, finished = 4, active = 5, total = 9),
|
||||
agents = listOf(
|
||||
fixture.agents[0].copy(seconds = 1_135, step = AgentStep(tool = "edit", label = "Edit", title = "recipe.md", running = true)),
|
||||
job("job2", "subagent", "Find where the waybread recipe is used", "Search the notes for every use of the recipe", "working", 97),
|
||||
job("job3", "command", "Run related test files", "pytest -q tests/test_bake.py", "working", 40),
|
||||
fixture.agents[1].copy(role = "Relax status, rerun targeted tests", seconds = 39),
|
||||
) + listOf(
|
||||
job("job4", "subagent", "Read the old packing list", "", "done", 64, stoppable = false),
|
||||
job("job5", "command", "Lint the notes", "ruff check", "done", 12, stoppable = false),
|
||||
job("job6", "subagent", "Check the weather on the pass", "", "error", 8, stoppable = false),
|
||||
job("job7", "command", "Count the provisions", "wc -l list.md", "stopped", 3, stoppable = false),
|
||||
),
|
||||
context = fixture.context!!.copy(
|
||||
used = 41_200,
|
||||
limit = 128_000,
|
||||
percent = 32.2,
|
||||
categories = listOf(
|
||||
ContextPart("messages", 26_300, 20.5),
|
||||
ContextPart("memory", 2_400, 1.9),
|
||||
ContextPart("mcp_tools", 2_300, 1.8),
|
||||
ContextPart("tools", 2_000, 1.6),
|
||||
ContextPart("instructions", 1_300, 1.0),
|
||||
ContextPart("system", 500, 0.4),
|
||||
ContextPart("since", 200, 0.1),
|
||||
ContextPart("buffer", 6_400, 5.0),
|
||||
ContextPart("free", 80_400, 62.8),
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
/** The last reply while it is being written: its tools done, its words coming in. */
|
||||
@@ -126,6 +185,16 @@ object Fakes {
|
||||
chat = chat.copy(model = "gpt-oss", effort = "high", mode = "plan", agents = AgentsSetting(1, 4)),
|
||||
)
|
||||
|
||||
/** A chat whose model serves one request at a time, on an instance that caps subagents at 6. */
|
||||
val tunedOneAtATime = tuned.copy(
|
||||
chat = tuned.chat!!.copy(agents = AgentsSetting(2, 3), subagents = SubagentsOffer(offered = true, namedOnly = true, cap = 6)),
|
||||
)
|
||||
|
||||
/** The agent alone: Min 1 · Max 1, no subagents, on an instance that caps a chat at 8. */
|
||||
val tunedAlone = tuned.copy(
|
||||
chat = tuned.chat!!.copy(agents = AgentsSetting(1, 1), subagents = SubagentsOffer(offered = true, cap = 8)),
|
||||
)
|
||||
|
||||
val chats = ChatsState(
|
||||
chats = listOf(
|
||||
chat,
|
||||
|
||||
@@ -16,6 +16,8 @@ import androidx.compose.runtime.Composable
|
||||
import androidx.compose.ui.Alignment
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.unit.dp
|
||||
import eu.llembas.android.ui.chat.ActivityActions
|
||||
import eu.llembas.android.ui.chat.ActivityContent
|
||||
import eu.llembas.android.ui.chat.ChatActions
|
||||
import eu.llembas.android.ui.chat.ChatContent
|
||||
import eu.llembas.android.ui.chat.ModelPickerContent
|
||||
@@ -42,6 +44,8 @@ private object NoChatActions : ChatActions
|
||||
|
||||
private object NoDrawerActions : DrawerActions
|
||||
|
||||
private object NoActivityActions : ActivityActions
|
||||
|
||||
private object NoSettingsActions : SettingsActions
|
||||
|
||||
/**
|
||||
@@ -99,8 +103,14 @@ class ScreenShots {
|
||||
}
|
||||
|
||||
@Test
|
||||
fun tune() = shoot("07-tune") {
|
||||
SheetOver { TuneContent(Fakes.tuned, NoChatActions, agent = false) }
|
||||
fun tune() {
|
||||
shoot("07-tune") { SheetOver { TuneContent(Fakes.tuned, NoChatActions, agent = false) } }
|
||||
shoot("07-tune-one-at-a-time") { SheetOver { TuneContent(Fakes.tunedOneAtATime, NoChatActions, agent = false) } }
|
||||
// The Subagents range whole, at a cap of 32 and of 6, and the agent alone (Min 1 · Max 1)
|
||||
// at the narrow phone and large type.
|
||||
shoot("07-tune", Phone.Scroll) { SheetOver { TuneContent(Fakes.tuned, NoChatActions, agent = false) } }
|
||||
shoot("07-tune-one-at-a-time", Phone.Scroll, fontScale = 1.5f) { SheetOver { TuneContent(Fakes.tunedOneAtATime, NoChatActions, agent = false) } }
|
||||
shoot("07-tune-alone", Phone.SmallScroll, fontScale = 1.5f) { SheetOver { TuneContent(Fakes.tunedAlone, NoChatActions, agent = false) } }
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -127,6 +137,22 @@ class ScreenShots {
|
||||
shoot("12-schedule-run", Phone.Small) { RunContent(Fakes.run) }
|
||||
}
|
||||
|
||||
@Test
|
||||
fun activity() {
|
||||
val sheet: @Composable () -> Unit = { SheetOver { ActivityContent(Fakes.activity, readAt = 0, now = 0, actions = NoActivityActions) } }
|
||||
val open: @Composable () -> Unit = {
|
||||
SheetOver { ActivityContent(Fakes.activity, readAt = 0, now = 0, actions = NoActivityActions, unfolded = true) }
|
||||
}
|
||||
shoot("14-activity", content = sheet)
|
||||
shoot("14-activity", Phone.Small, content = sheet)
|
||||
shoot("14-activity", Phone.Small, fontScale = 1.5f, content = sheet)
|
||||
shoot("14-activity", Phone.Scroll, content = sheet)
|
||||
shoot("15-activity-open", Phone.Scroll, content = open)
|
||||
shoot("16-activity-new-chat") {
|
||||
SheetOver { ActivityContent(eu.llembas.android.api.Activity(), readAt = 0, now = 0, actions = NoActivityActions, canCompact = false) }
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
fun schedulingModels() = shoot("13-scheduling-models") { SchedulingModelsContent(Fakes.schedulingModels) }
|
||||
}
|
||||
|
||||
@@ -14,10 +14,16 @@ import com.github.takahirom.roborazzi.inspectionMode
|
||||
import com.github.takahirom.roborazzi.size
|
||||
import eu.llembas.android.ui.theme.LembasTheme
|
||||
|
||||
/** The phones the screens are looked at on: a large one, and a small one where things crowd. */
|
||||
/**
|
||||
* The phones the screens are looked at on: a large one, and a small one where things crowd.
|
||||
* [Scroll] is the large one's width, tall enough to see a sheet's whole scroll at once;
|
||||
* [SmallScroll] the same for the small one.
|
||||
*/
|
||||
enum class Phone(val tag: String, val widthDp: Int, val heightDp: Int) {
|
||||
Large("411x891", 411, 891),
|
||||
Small("360x640", 360, 640),
|
||||
Scroll("411x2000", 411, 2000),
|
||||
SmallScroll("360x2000", 360, 2000),
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -143,12 +143,16 @@
|
||||
"cursor": 2
|
||||
},
|
||||
"team_offered": true,
|
||||
"subagents_offered": true,
|
||||
"context": {
|
||||
"used": 41000,
|
||||
"limit": 128000,
|
||||
"percent": 32.0,
|
||||
"measured": true,
|
||||
"threshold": 95,
|
||||
"auto_compact": true,
|
||||
"until_compact": 80600,
|
||||
"compactable": true,
|
||||
"tools_count": 24,
|
||||
"mcp_count": 2,
|
||||
"categories": [
|
||||
|
||||
@@ -18,6 +18,11 @@
|
||||
"min": 1,
|
||||
"max": 4
|
||||
},
|
||||
"subagents": {
|
||||
"offered": true,
|
||||
"named_only": false,
|
||||
"cap": 32
|
||||
},
|
||||
"created_at": "2026-01-02T03:04:05+00:00",
|
||||
"updated_at": "2026-01-02T03:04:05+00:00"
|
||||
}
|
||||
@@ -21,6 +21,11 @@
|
||||
"min": 1,
|
||||
"max": 4
|
||||
},
|
||||
"subagents": {
|
||||
"offered": false,
|
||||
"named_only": false,
|
||||
"cap": null
|
||||
},
|
||||
"created_at": "2026-01-02T03:04:05+00:00",
|
||||
"updated_at": "2026-01-02T03:04:05+00:00"
|
||||
}
|
||||
+3
-3
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"ref": "v2.0.0-beta.6",
|
||||
"commit": "a71e9b4bdb8acb6e9949e978253a72c347cc67f3",
|
||||
"sha256": "26e1454b56e2a4b1cff7c3e14ab4e497d086b5121d119d9aad89150e3aa1537c"
|
||||
"ref": "v2.0.0-beta.7",
|
||||
"commit": "e3bd54f4d210cff6adb4586199caed4f41987f5e",
|
||||
"sha256": "2399f518bbecc30531f840a5b426e782875e6d513fa357684d1cc829fc5273cc"
|
||||
}
|
||||
+17
-4
@@ -18,7 +18,11 @@
|
||||
"parallel": 2,
|
||||
"context": 131072,
|
||||
"image": "/api/v2/models/images/0a1b2c3d4e5f.png",
|
||||
"default": true
|
||||
"default": true,
|
||||
"subagents": {
|
||||
"offered": true,
|
||||
"named_only": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "gpt-oss",
|
||||
@@ -41,7 +45,11 @@
|
||||
"parallel": 1,
|
||||
"context": 0,
|
||||
"image": null,
|
||||
"default": false
|
||||
"default": false,
|
||||
"subagents": {
|
||||
"offered": true,
|
||||
"named_only": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "vision-small",
|
||||
@@ -58,7 +66,12 @@
|
||||
"parallel": null,
|
||||
"context": 8192,
|
||||
"image": null,
|
||||
"default": false
|
||||
"default": false,
|
||||
"subagents": {
|
||||
"offered": false,
|
||||
"named_only": false
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"subagents_cap": 32
|
||||
}
|
||||
@@ -22,6 +22,10 @@
|
||||
"context": 0,
|
||||
"image": null,
|
||||
"default": false,
|
||||
"subagents": {
|
||||
"offered": false,
|
||||
"named_only": false
|
||||
},
|
||||
"free": false,
|
||||
"busy": "it is answering someone",
|
||||
"chosen": true
|
||||
@@ -45,6 +49,10 @@
|
||||
"context": 131072,
|
||||
"image": "/api/v2/models/images/0a1b2c3d4e5f.png",
|
||||
"default": false,
|
||||
"subagents": {
|
||||
"offered": false,
|
||||
"named_only": false
|
||||
},
|
||||
"free": true,
|
||||
"busy": null,
|
||||
"chosen": false
|
||||
|
||||
+19
-12
@@ -90,11 +90,18 @@ STRINGS: dict[str, str] = {
|
||||
"ctx_since": "Since the last reply",
|
||||
"ctx_buffer": "Compaction buffer",
|
||||
"ctx_free": "Free space",
|
||||
"outputs_empty": "No files written in this chat yet.",
|
||||
"tasks_empty": "Nothing runs in the background. Helpers, commands and a team's members show here while they work.",
|
||||
"tasks_empty": "Nothing runs in the background. Subagents, commands and a team's members show here while they work.",
|
||||
"tasks_none_running": "Nothing running.",
|
||||
"agents_one_working": "1 agent working",
|
||||
"agents_n_working": "%1$s agents working",
|
||||
"tasks_running": "Running",
|
||||
"tasks_finished": "Finished",
|
||||
"tasks_n_running": "%1$s running",
|
||||
"tasks_nested": "%1$s under it",
|
||||
"task_subagent": "Subagent",
|
||||
"task_command": "Command",
|
||||
"task_member": "Team member",
|
||||
"activity_until_compact": "%1$s until auto-compact",
|
||||
"activity_compact_off": "Auto-compact is off.",
|
||||
"activity_compact": "Compact",
|
||||
"agents_n_queued": "%1$s queued",
|
||||
"agents_n_waiting": "%1$s waiting",
|
||||
"agents_n_finished": "%1$s finished",
|
||||
@@ -111,15 +118,17 @@ STRINGS: dict[str, str] = {
|
||||
"agent_stop_confirm": "Stop %1$s? What it has done so far stays.",
|
||||
"agent_nothing_yet": "Nothing said yet.",
|
||||
"agent_machine": "From the system",
|
||||
"team_size": "Team: %1$s of %2$s agents",
|
||||
"team_size": "Team: %1$s of %2$s subagents",
|
||||
"team_room": "Room",
|
||||
"room_empty": "Nothing has been said in the room yet.",
|
||||
"room_report": "report",
|
||||
"team_agents": "Agents",
|
||||
"team_fewest": "Fewest",
|
||||
"team_most": "Most",
|
||||
"team_hint": "Its own agent included. Above one, it can add members that do the work while it leads them.",
|
||||
"team_chip": "Agents %1$s–%2$s",
|
||||
"team_agents": "Subagents",
|
||||
"team_min": "Min",
|
||||
"team_max": "Max",
|
||||
"team_range": "Min %1$s · Max %2$s",
|
||||
"team_hint": "The numbers count this chat's own agent: 1 is the agent alone, with no subagents, and Max 4 is the agent and up to 3 subagents it leads.",
|
||||
"team_chip": "Subagents: Min %1$s · Max %2$s",
|
||||
"subagents_named_only": "This model serves one request at a time: subagents need another model, on another server, named in the chat.",
|
||||
"thinking_switch": "Think before answering",
|
||||
"level_off": "off",
|
||||
"level_default": "default",
|
||||
@@ -287,12 +296,10 @@ STRINGS: dict[str, str] = {
|
||||
SERVER_ENGLISH: dict[str, str] = {
|
||||
"activity_used": "%(percent)s%% used",
|
||||
"activity_tools_offered": "%(n)s tools offered.",
|
||||
"agents_n_working": "%(n)s agents working",
|
||||
"agents_n_queued": "%(n)s queued",
|
||||
"agents_n_waiting": "%(n)s waiting",
|
||||
"agents_n_finished": "%(n)s finished",
|
||||
"agent_steps": "%(steps)s steps, %(tools)s tools",
|
||||
"agent_stop": "Stop %(name)s",
|
||||
"agent_stop_member_confirm": "Stop %(name)s and the members under it? They leave the team.",
|
||||
"team_size": "Team: %(size)s of %(max)s agents",
|
||||
}
|
||||
+136
-8
@@ -1,6 +1,8 @@
|
||||
{
|
||||
"cs": {
|
||||
"about_version": "LLeMbas pro Android %1$s",
|
||||
"activity_compact_off": "Automatické shrnutí je vypnuté.",
|
||||
"activity_until_compact": "%1$s do automatického shrnutí",
|
||||
"add_instance": "Přidat instanci",
|
||||
"agent_directory": "Složka na zařízení",
|
||||
"agent_directory_default": "jeho první složka",
|
||||
@@ -122,6 +124,7 @@
|
||||
"signin_open_browser": "Otevřít v prohlížeči",
|
||||
"signin_too_new": "Tato instance používá novější rozhraní API pro aplikace než tato aplikace. Aktualizujte aplikaci.",
|
||||
"signin_too_old": "Tato instance používá starší LLeMbas. Tato aplikace potřebuje LLeMbas 2.0 nebo novější.",
|
||||
"subagents_named_only": "Tento model obslouží jen jeden požadavek najednou: podagenti potřebují jiný model, na jiném serveru, pojmenovaný v chatu.",
|
||||
"suggest_check": "Zkontroluj",
|
||||
"suggest_check_line": "text, chyby a tón",
|
||||
"suggest_explain": "Vysvětli",
|
||||
@@ -130,7 +133,20 @@
|
||||
"suggest_plan_line": "výlet, týden nebo projekt",
|
||||
"suggest_write": "Napiš",
|
||||
"suggest_write_line": "e-mail, poznámku nebo příspěvek",
|
||||
"team_chip": "Agenti %1$s–%2$s",
|
||||
"task_command": "Příkaz",
|
||||
"task_member": "Člen týmu",
|
||||
"task_subagent": "Podagent",
|
||||
"tasks_empty": "Na pozadí nic neběží. Podagenti, příkazy a členové týmu se tu ukážou, dokud pracují.",
|
||||
"tasks_finished": "Dokončeno",
|
||||
"tasks_n_running": "Běží: %1$s",
|
||||
"tasks_nested": "Pod ním: %1$s",
|
||||
"team_agents": "Podagenti",
|
||||
"team_chip": "Podagenti: Min %1$s · Max %2$s",
|
||||
"team_hint": "Čísla počítají i vlastního agenta tohoto chatu: 1 je agent sám, bez podagentů, a Max 4 je agent a až 3 podagenti, které vede.",
|
||||
"team_max": "Max",
|
||||
"team_min": "Min",
|
||||
"team_range": "Min %1$s · Max %2$s",
|
||||
"team_size": "Tým: %1$s z %2$s podagentů",
|
||||
"theme_moria": "Moria (temná)",
|
||||
"theme_shire": "Shire (světlý)",
|
||||
"theme_system": "Podle systému",
|
||||
@@ -152,6 +168,8 @@
|
||||
},
|
||||
"de": {
|
||||
"about_version": "LLeMbas für Android %1$s",
|
||||
"activity_compact_off": "Automatisches Zusammenfassen ist aus.",
|
||||
"activity_until_compact": "%1$s bis zum automatischen Zusammenfassen",
|
||||
"add_instance": "Instanz hinzufügen",
|
||||
"agent_directory": "Ordner auf dem Gerät",
|
||||
"agent_directory_default": "seinem ersten Ordner",
|
||||
@@ -274,6 +292,7 @@
|
||||
"signin_open_browser": "Im Browser öffnen",
|
||||
"signin_too_new": "Diese Instanz spricht eine neuere App-API als diese App. Aktualisieren Sie die App.",
|
||||
"signin_too_old": "Auf dieser Instanz läuft ein älteres LLeMbas. Diese App braucht LLeMbas 2.0 oder neuer.",
|
||||
"subagents_named_only": "Dieses Modell beantwortet nur eine Anfrage auf einmal: Subagenten brauchen ein anderes Modell auf einem anderen Server, im Chat genannt.",
|
||||
"suggest_check": "Prüfe",
|
||||
"suggest_check_line": "einen Text auf Fehler und Ton",
|
||||
"suggest_explain": "Erkläre",
|
||||
@@ -282,7 +301,20 @@
|
||||
"suggest_plan_line": "eine Reise, eine Woche oder ein Projekt",
|
||||
"suggest_write": "Schreibe",
|
||||
"suggest_write_line": "eine E-Mail, eine Notiz oder einen Beitrag",
|
||||
"team_chip": "Agenten %1$s–%2$s",
|
||||
"task_command": "Befehl",
|
||||
"task_member": "Teammitglied",
|
||||
"task_subagent": "Subagent",
|
||||
"tasks_empty": "Im Hintergrund läuft nichts. Subagenten, Befehle und die Mitglieder eines Teams erscheinen hier, solange sie arbeiten.",
|
||||
"tasks_finished": "Beendet",
|
||||
"tasks_n_running": "%1$s laufen",
|
||||
"tasks_nested": "%1$s darunter",
|
||||
"team_agents": "Subagenten",
|
||||
"team_chip": "Subagenten: Min %1$s · Max %2$s",
|
||||
"team_hint": "Die Zahlen zählen den eigenen Agenten dieses Chats mit: 1 ist der Agent allein, ohne Subagenten, und Max 4 ist der Agent mit bis zu 3 Subagenten, die er leitet.",
|
||||
"team_max": "Max",
|
||||
"team_min": "Min",
|
||||
"team_range": "Min %1$s · Max %2$s",
|
||||
"team_size": "Team: %1$s von %2$s Subagenten",
|
||||
"theme_moria": "Moria (dunkel)",
|
||||
"theme_shire": "Shire (hell)",
|
||||
"theme_system": "Wie das System",
|
||||
@@ -304,6 +336,8 @@
|
||||
},
|
||||
"es": {
|
||||
"about_version": "LLeMbas para Android %1$s",
|
||||
"activity_compact_off": "La compactación automática está desactivada.",
|
||||
"activity_until_compact": "%1$s hasta la compactación automática",
|
||||
"add_instance": "Añadir una instancia",
|
||||
"agent_directory": "Carpeta en el dispositivo",
|
||||
"agent_directory_default": "su primera carpeta",
|
||||
@@ -425,6 +459,7 @@
|
||||
"signin_open_browser": "Abrir en el navegador",
|
||||
"signin_too_new": "Esta instancia habla una API de aplicaciones más reciente que esta aplicación. Actualice la aplicación.",
|
||||
"signin_too_old": "Esta instancia usa una versión anterior de LLeMbas. Esta aplicación necesita LLeMbas 2.0 o posterior.",
|
||||
"subagents_named_only": "Este modelo atiende una sola petición a la vez: los subagentes necesitan otro modelo, en otro servidor, nombrado en el chat.",
|
||||
"suggest_check": "Revisa",
|
||||
"suggest_check_line": "un texto: errores y tono",
|
||||
"suggest_explain": "Explica",
|
||||
@@ -433,7 +468,20 @@
|
||||
"suggest_plan_line": "un viaje, una semana o un proyecto",
|
||||
"suggest_write": "Escribe",
|
||||
"suggest_write_line": "un correo, una nota o una publicación",
|
||||
"team_chip": "Agentes %1$s–%2$s",
|
||||
"task_command": "Comando",
|
||||
"task_member": "Miembro del equipo",
|
||||
"task_subagent": "Subagente",
|
||||
"tasks_empty": "No hay nada en segundo plano. Los subagentes, los comandos y los miembros de un equipo aparecen aquí mientras trabajan.",
|
||||
"tasks_finished": "Terminadas",
|
||||
"tasks_n_running": "%1$s en curso",
|
||||
"tasks_nested": "%1$s debajo",
|
||||
"team_agents": "Subagentes",
|
||||
"team_chip": "Subagentes: Mín %1$s · Máx %2$s",
|
||||
"team_hint": "Los números cuentan el propio agente de este chat: 1 es el agente solo, sin subagentes, y Máx 4 es el agente y hasta 3 subagentes que dirige.",
|
||||
"team_max": "Máx",
|
||||
"team_min": "Mín",
|
||||
"team_range": "Mín %1$s · Máx %2$s",
|
||||
"team_size": "Equipo: %1$s de %2$s subagentes",
|
||||
"theme_moria": "Moria (oscuro)",
|
||||
"theme_shire": "Shire (claro)",
|
||||
"theme_system": "Como el sistema",
|
||||
@@ -455,6 +503,8 @@
|
||||
},
|
||||
"fr": {
|
||||
"about_version": "LLeMbas pour Android %1$s",
|
||||
"activity_compact_off": "Le compactage automatique est désactivé.",
|
||||
"activity_until_compact": "%1$s avant le compactage automatique",
|
||||
"add_instance": "Ajouter une instance",
|
||||
"agent_directory": "Dossier sur l'appareil",
|
||||
"agent_directory_default": "son premier dossier",
|
||||
@@ -577,6 +627,7 @@
|
||||
"signin_open_browser": "Ouvrir dans le navigateur",
|
||||
"signin_too_new": "Cette instance utilise une API d'application plus récente que cette application. Mettez à jour l'application.",
|
||||
"signin_too_old": "Cette instance utilise une version plus ancienne de LLeMbas. Cette application nécessite LLeMbas 2.0 ou plus récent.",
|
||||
"subagents_named_only": "Ce modèle ne traite qu'une requête à la fois : les sous-agents ont besoin d'un autre modèle, sur un autre serveur, nommé dans le chat.",
|
||||
"suggest_check": "Relis",
|
||||
"suggest_check_line": "un texte : fautes et ton",
|
||||
"suggest_explain": "Explique",
|
||||
@@ -585,7 +636,20 @@
|
||||
"suggest_plan_line": "un voyage, une semaine ou un projet",
|
||||
"suggest_write": "Rédige",
|
||||
"suggest_write_line": "un e-mail, une note ou un billet",
|
||||
"team_chip": "Agents %1$s–%2$s",
|
||||
"task_command": "Commande",
|
||||
"task_member": "Membre de l'équipe",
|
||||
"task_subagent": "Sous-agent",
|
||||
"tasks_empty": "Rien ne tourne en arrière-plan. Les sous-agents, les commandes et les membres d'une équipe apparaissent ici pendant qu'ils travaillent.",
|
||||
"tasks_finished": "Terminées",
|
||||
"tasks_n_running": "%1$s en cours",
|
||||
"tasks_nested": "%1$s en dessous",
|
||||
"team_agents": "Sous-agents",
|
||||
"team_chip": "Sous-agents: Min %1$s · Max %2$s",
|
||||
"team_hint": "Les nombres comptent l'agent de ce chat : 1, c'est l'agent seul, sans sous-agents, et Max 4, l'agent et jusqu'à 3 sous-agents qu'il dirige.",
|
||||
"team_max": "Max",
|
||||
"team_min": "Min",
|
||||
"team_range": "Min %1$s · Max %2$s",
|
||||
"team_size": "Équipe : %1$s sur %2$s sous-agents",
|
||||
"theme_moria": "Moria (sombre)",
|
||||
"theme_shire": "Shire (clair)",
|
||||
"theme_system": "Comme le système",
|
||||
@@ -607,6 +671,8 @@
|
||||
},
|
||||
"hu": {
|
||||
"about_version": "LLeMbas Androidra %1$s",
|
||||
"activity_compact_off": "Az automatikus tömörítés ki van kapcsolva.",
|
||||
"activity_until_compact": "%1$s az automatikus tömörítésig",
|
||||
"add_instance": "Példány hozzáadása",
|
||||
"agent_directory": "Mappa az eszközön",
|
||||
"agent_directory_default": "az első mappája",
|
||||
@@ -729,6 +795,7 @@
|
||||
"signin_open_browser": "Megnyitás a böngészőben",
|
||||
"signin_too_new": "Ez a példány újabb alkalmazás-API-t használ, mint ez az alkalmazás. Frissítse az alkalmazást.",
|
||||
"signin_too_old": "Ezen a példányon régebbi LLeMbas fut. Ehhez az alkalmazáshoz LLeMbas 2.0 vagy újabb kell.",
|
||||
"subagents_named_only": "Ez a modell egyszerre csak egy kérést szolgál ki: az alügynököknek másik modell kell, másik szerveren, a csevegésben megnevezve.",
|
||||
"suggest_check": "Ellenőrizz",
|
||||
"suggest_check_line": "egy szöveget: hibák és hangnem",
|
||||
"suggest_explain": "Magyarázd el,",
|
||||
@@ -737,7 +804,20 @@
|
||||
"suggest_plan_line": "egy utat, egy hetet vagy egy projektet",
|
||||
"suggest_write": "Írj",
|
||||
"suggest_write_line": "e-mailt, jegyzetet vagy bejegyzést",
|
||||
"team_chip": "Ügynökök: %1$s–%2$s",
|
||||
"task_command": "Parancs",
|
||||
"task_member": "Csapattag",
|
||||
"task_subagent": "Alügynök",
|
||||
"tasks_empty": "A háttérben semmi sem fut. Az alügynökök, a parancsok és a csapat tagjai itt látszanak, amíg dolgoznak.",
|
||||
"tasks_finished": "Befejezve",
|
||||
"tasks_n_running": "%1$s fut",
|
||||
"tasks_nested": "Alatta: %1$s",
|
||||
"team_agents": "Alügynökök",
|
||||
"team_chip": "Alügynökök: Min %1$s · Max %2$s",
|
||||
"team_hint": "A számok a csevegés saját ügynökét is beleszámítják: 1 az ügynök egyedül, alügynökök nélkül, a Max 4 pedig az ügynök és legfeljebb 3 alügynök, akiket vezet.",
|
||||
"team_max": "Max",
|
||||
"team_min": "Min",
|
||||
"team_range": "Min %1$s · Max %2$s",
|
||||
"team_size": "Csapat: %1$s / %2$s alügynök",
|
||||
"theme_moria": "Moria (sötét)",
|
||||
"theme_shire": "Shire (világos)",
|
||||
"theme_system": "A rendszer szerint",
|
||||
@@ -759,6 +839,8 @@
|
||||
},
|
||||
"it": {
|
||||
"about_version": "LLeMbas per Android %1$s",
|
||||
"activity_compact_off": "La compattazione automatica è disattivata.",
|
||||
"activity_until_compact": "%1$s alla compattazione automatica",
|
||||
"add_instance": "Aggiungi un'istanza",
|
||||
"agent_directory": "Cartella sul dispositivo",
|
||||
"agent_directory_default": "la sua prima cartella",
|
||||
@@ -880,6 +962,7 @@
|
||||
"signin_open_browser": "Apri nel browser",
|
||||
"signin_too_new": "Questa istanza usa un'API per l'app più recente di questa app. Aggiorna l'app.",
|
||||
"signin_too_old": "Questa istanza usa una versione precedente di LLeMbas. Questa app richiede LLeMbas 2.0 o successivo.",
|
||||
"subagents_named_only": "Questo modello serve una sola richiesta alla volta: i sottoagenti hanno bisogno di un altro modello, su un altro server, nominato nella chat.",
|
||||
"suggest_check": "Controlla",
|
||||
"suggest_check_line": "un testo: errori e tono",
|
||||
"suggest_explain": "Spiega",
|
||||
@@ -888,7 +971,20 @@
|
||||
"suggest_plan_line": "un viaggio, una settimana o un progetto",
|
||||
"suggest_write": "Scrivi",
|
||||
"suggest_write_line": "un’email, una nota o un post",
|
||||
"team_chip": "Agenti %1$s–%2$s",
|
||||
"task_command": "Comando",
|
||||
"task_member": "Membro del team",
|
||||
"task_subagent": "Sottoagente",
|
||||
"tasks_empty": "Niente in background. Sottoagenti, comandi e membri di un team compaiono qui mentre lavorano.",
|
||||
"tasks_finished": "Terminate",
|
||||
"tasks_n_running": "%1$s in corso",
|
||||
"tasks_nested": "%1$s sotto",
|
||||
"team_agents": "Sottoagenti",
|
||||
"team_chip": "Sottoagenti: Min %1$s · Max %2$s",
|
||||
"team_hint": "I numeri contano l'agente di questa chat: 1 è l'agente da solo, senza sottoagenti, e Max 4 è l'agente più fino a 3 sottoagenti che guida.",
|
||||
"team_max": "Max",
|
||||
"team_min": "Min",
|
||||
"team_range": "Min %1$s · Max %2$s",
|
||||
"team_size": "Team: %1$s di %2$s sottoagenti",
|
||||
"theme_moria": "Moria (scuro)",
|
||||
"theme_shire": "Shire (chiaro)",
|
||||
"theme_system": "Come il sistema",
|
||||
@@ -910,6 +1006,8 @@
|
||||
},
|
||||
"pl": {
|
||||
"about_version": "LLeMbas na Androida %1$s",
|
||||
"activity_compact_off": "Automatyczne streszczanie jest wyłączone.",
|
||||
"activity_until_compact": "%1$s do automatycznego streszczenia",
|
||||
"add_instance": "Dodaj instancję",
|
||||
"agent_directory": "Folder na urządzeniu",
|
||||
"agent_directory_default": "jego pierwszym folderze",
|
||||
@@ -1031,6 +1129,7 @@
|
||||
"signin_open_browser": "Otwórz w przeglądarce",
|
||||
"signin_too_new": "Ta instancja używa nowszego API aplikacji niż ta aplikacja. Zaktualizuj aplikację.",
|
||||
"signin_too_old": "Ta instancja działa na starszym LLeMbas. Ta aplikacja wymaga LLeMbas 2.0 lub nowszego.",
|
||||
"subagents_named_only": "Ten model obsługuje tylko jedno żądanie naraz: podagenci potrzebują innego modelu, na innym serwerze, nazwanego w czacie.",
|
||||
"suggest_check": "Sprawdź",
|
||||
"suggest_check_line": "tekst pod kątem błędów i tonu",
|
||||
"suggest_explain": "Wyjaśnij",
|
||||
@@ -1039,7 +1138,20 @@
|
||||
"suggest_plan_line": "podróż, tydzień lub projekt",
|
||||
"suggest_write": "Napisz",
|
||||
"suggest_write_line": "e-mail, notatkę lub wpis",
|
||||
"team_chip": "Agenci %1$s–%2$s",
|
||||
"task_command": "Polecenie",
|
||||
"task_member": "Członek zespołu",
|
||||
"task_subagent": "Podagent",
|
||||
"tasks_empty": "W tle nic nie działa. Podagenci, polecenia i członkowie zespołu pojawiają się tu, gdy pracują.",
|
||||
"tasks_finished": "Zakończone",
|
||||
"tasks_n_running": "Działa: %1$s",
|
||||
"tasks_nested": "Pod nim: %1$s",
|
||||
"team_agents": "Podagenci",
|
||||
"team_chip": "Podagenci: Min %1$s · Maks %2$s",
|
||||
"team_hint": "Liczby obejmują własnego agenta tego czatu: 1 to sam agent, bez podagentów, a Maks 4 to agent i do 3 podagentów, którymi kieruje.",
|
||||
"team_max": "Maks",
|
||||
"team_min": "Min",
|
||||
"team_range": "Min %1$s · Maks %2$s",
|
||||
"team_size": "Zespół: %1$s z %2$s podagentów",
|
||||
"theme_moria": "Moria (ciemny)",
|
||||
"theme_shire": "Shire (jasny)",
|
||||
"theme_system": "Jak system",
|
||||
@@ -1061,6 +1173,8 @@
|
||||
},
|
||||
"sk": {
|
||||
"about_version": "LLeMbas pre Android %1$s",
|
||||
"activity_compact_off": "Automatické zhrnutie je vypnuté.",
|
||||
"activity_until_compact": "%1$s do automatického zhrnutia",
|
||||
"add_instance": "Pridať inštanciu",
|
||||
"agent_directory": "Zložka v zariadení",
|
||||
"agent_directory_default": "jeho prvý priečinok",
|
||||
@@ -1182,6 +1296,7 @@
|
||||
"signin_open_browser": "Otvoriť v prehliadači",
|
||||
"signin_too_new": "Táto inštancia používa novšie API pre aplikácie než táto aplikácia. Aktualizujte aplikáciu.",
|
||||
"signin_too_old": "Táto inštancia beží na staršom LLeMbas. Táto aplikácia potrebuje LLeMbas 2.0 alebo novší.",
|
||||
"subagents_named_only": "Tento model obslúži len jednu požiadavku naraz: podagenti potrebujú iný model, na inom serveri, pomenovaný v chate.",
|
||||
"suggest_check": "Skontroluj",
|
||||
"suggest_check_line": "text, chyby a tón",
|
||||
"suggest_explain": "Vysvetli",
|
||||
@@ -1190,7 +1305,20 @@
|
||||
"suggest_plan_line": "výlet, týždeň alebo projekt",
|
||||
"suggest_write": "Napíš",
|
||||
"suggest_write_line": "e-mail, poznámku alebo príspevok",
|
||||
"team_chip": "Agenti %1$s–%2$s",
|
||||
"task_command": "Príkaz",
|
||||
"task_member": "Člen tímu",
|
||||
"task_subagent": "Podagent",
|
||||
"tasks_empty": "Na pozadí nič nebeží. Podagenti, príkazy a členovia tímu sa tu ukážu, kým pracujú.",
|
||||
"tasks_finished": "Dokončené",
|
||||
"tasks_n_running": "Beží: %1$s",
|
||||
"tasks_nested": "Pod ním: %1$s",
|
||||
"team_agents": "Podagenti",
|
||||
"team_chip": "Podagenti: Min %1$s · Max %2$s",
|
||||
"team_hint": "Čísla rátajú aj vlastného agenta tohto chatu: 1 je agent sám, bez podagentov, a Max 4 je agent a až 3 podagenti, ktorých vedie.",
|
||||
"team_max": "Max",
|
||||
"team_min": "Min",
|
||||
"team_range": "Min %1$s · Max %2$s",
|
||||
"team_size": "Tím: %1$s z %2$s podagentov",
|
||||
"theme_moria": "Moria (tmavá)",
|
||||
"theme_shire": "Shire (svetlá)",
|
||||
"theme_system": "Podľa systému",
|
||||
|
||||
+3
-3
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"tag": "v2.0.0-beta.6",
|
||||
"commit": "a71e9b4bdb8acb6e9949e978253a72c347cc67f3",
|
||||
"sha256": "ad319465e65ad4f5f420395bbd3cd2a86d5c91f0026aa3df5ec59567078be57c"
|
||||
"tag": "v2.0.0-beta.7",
|
||||
"commit": "e3bd54f4d210cff6adb4586199caed4f41987f5e",
|
||||
"sha256": "59622796e62b9e8c054f53d40282deeabbdc59a8e565e9e08a5f73a565a1a305"
|
||||
}
|
||||
Reference in new issue
Block a user