feat: add managed SSH execution spaces

Add managed SSH Hosts and projects with signed side-by-side GoodBuddy Agent and OpenCode Runtime installation, Ask and Execute workspace access, a Main-owned model bridge, detached Agent lifecycle, durable ACP output recovery, and project activation UI.

Use protocol v2 with bounded FIFO frames over SSH instead of custom credit, priority, batching, or model-message chunking. Mismatched Host Agents now upgrade automatically, an exactly verified Node runtime is reused on-host, and local Portable builds can embed strictly verified Agent artifacts.

Release note: 新增托管 SSH 远程项目,可自动安装或升级签名 Agent/OpenCode Runtime,并在 SSH 断线后继续 Agent 工作和同步未确认输出。
This commit is contained in:
mesalogo
2026-08-24 23:02:18 +08:00
parent 3829a871f5
commit 607bb33249
258 changed files with 99449 additions and 2427 deletions
@@ -0,0 +1,26 @@
import { z } from 'zod'
import { agentIdentifierSchema } from './contracts'
export const AGENT_PROTOCOL_FAILURE_RECORD_NAME =
'protocol-failure.json'
export const AGENT_PROTOCOL_FAILURE_STDERR_PREFIX =
'GoodBuddy Agent protocol failure: '
export const agentProtocolFailureCategorySchema = z
.string()
.min(1)
.max(128)
.regex(/^[a-z][a-z0-9-]*(?:\/[a-z][a-z0-9-]*)*$/u)
export const agentProtocolFailureRecordSchema = z
.object({
formatVersion: z.literal(1),
connectionId: agentIdentifierSchema,
category: agentProtocolFailureCategorySchema,
createdAt: z.number().int().safe().nonnegative()
})
.strict()
export type AgentProtocolFailureCategory = z.infer<
typeof agentProtocolFailureCategorySchema
>