Users, file manager, image generation, budgets and agent workflow

- User management: local accounts (Argon2) and OpenID Connect, admin/user
  roles, per-user folders plus admin-shared folders, read-only session
  sharing, event filtering per user
- File manager with CodeMirror editor and git client (status, diff,
  stage, commit, branches, fetch/pull/push, log, clone/init)
- Image generation via fal.ai: generate_image tool and image page
- Budgets: monthly limits per provider, provider balances/costs
  (OpenRouter, Anthropic admin cost report, fal.ai), price discovery
- Subagents on other models, background tasks, concurrency limits per
  host/model/subagent
- MCP tools loaded on demand (mcp_search/mcp_call), read-only hints
- Permission mode "auto", safe read-only commands always allowed
- Persistent message queue with attachments, deletable
- Live reasoning incl. <think> tags, activity animations, CSS themes,
  mobile layout, statistics per user, upload size handling
- Docker: named volume for state, localhost-bound port

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Richard ZinkandClaude Opus 5.5 committed 2026-11-08 16:54:08 +01:00
1 parent f3a2fe3816
commit 49262c612c
70 files changed
+8495 -714

No files matched your search

+36 -1
View File
@@ -48,13 +48,16 @@ export interface Session {
cwd: string;
model: string;
agent: string;
permission_mode: "default" | "accept_edits" | "bypass";
permission_mode: "default" | "auto" | "accept_edits" | "bypass";
parent_id?: string;
created_at: number;
updated_at: number;
todos: Todo[] | null;
last_usage?: Usage | null;
busy?: boolean;
owner_id?: string | null;
/** Listed because it was shared with the current user. */
shared?: boolean;
}
export interface QuestionOption {
@@ -103,6 +106,8 @@ export type ServerEvent =
| QuestionRequest
| { type: "question_resolved"; id: string; session_id: string }
| { type: "error"; session_id: string; message: string }
| { type: "waiting"; session_id: string; reason: string | null }
| { type: "queue_updated"; session_id: string; items: QueueItem[] }
| { type: "mcp_status"; servers: Record<string, McpServerStatus> }
| { type: "resync" };
@@ -129,6 +134,10 @@ export interface AgentInfo {
description: string;
mode: "primary" | "subagent";
read_only: boolean;
model?: string | null;
tools?: string[] | null;
source: "builtin" | "config" | "file";
max_parallel?: number | null;
}
export interface Aggregate {
@@ -145,3 +154,29 @@ export interface Aggregate {
cache_hit_rate: number;
duration_ms: number;
}
export interface User {
id: string;
username: string;
display_name: string;
role: "admin" | "user";
has_password: boolean;
oidc: boolean;
disabled: boolean;
created_at: number;
}
export interface Info {
name: string;
version: string;
setup_required: boolean;
oidc: { label: string } | null;
user: User | null;
}
export interface QueueItem {
id: string;
parts: Part[];
source: "user" | "background";
created_at: number;
}