Documentation
¶
Overview ¶
desktop.go:桌面 GUI 装配(应用更新 + 菜单 + 主窗口 + 窗口状态记忆 + popout 重建)。 仅 desktop 构建(不带 -tags server)编译;server 模式见 server.go 的 no-op 版本。 拆分目的:让 main.go 在 -tags server 下也能编译,启用 Wails3 server 模式做无 GUI 浏览器驱动集成测试(AGENTS.md §5.5)。GUI 专属符号(application.DefaultApplicationMenu / app.Window.NewWithOptions 等)只在非 server tag 下存在,故必须整块隔离。
remote_attach_desktop.go: desktop builds wire the embedded remote server (AGENTS.md §1.8). Server-tag builds get the no-op twin (remote_attach_server.go) — server mode already serves HTTP itself and must not double-serve.
Directories
¶
| Path | Synopsis |
|---|---|
|
internal
|
|
|
acp
Package acp 封装 coder/acp-go-sdk,实现桌面客户端侧的 ACP 客户端。
|
Package acp 封装 coder/acp-go-sdk,实现桌面客户端侧的 ACP 客户端。 |
|
config
Package config 处理应用配置与数据目录解析(AGENTS.md §0.5/§1.5)。
|
Package config 处理应用配置与数据目录解析(AGENTS.md §0.5/§1.5)。 |
|
fsview
Package fsview 提供受限工作目录内的文件浏览 / 管理。
|
Package fsview 提供受限工作目录内的文件浏览 / 管理。 |
|
harness
discover.go:运行时发现本机已安装的 harness + 解析本地版本 + 查上游最新版本。
|
discover.go:运行时发现本机已安装的 harness + 解析本地版本 + 查上游最新版本。 |
|
mcp
Package mcp 把 monkey-deck 的 MCP server 配置(store.McpServer)转成 ACP 线上的 acp.McpServer,并提供从 harness 配置文件(opencode opencode.json / OMP .mcp.json) 一次性导入的解析器。
|
Package mcp 把 monkey-deck 的 MCP server 配置(store.McpServer)转成 ACP 线上的 acp.McpServer,并提供从 harness 配置文件(opencode opencode.json / OMP .mcp.json) 一次性导入的解析器。 |
|
permissions
Package permissions 实现分级访问控制(AGENTS.md §3.4:有人在场,可交互)。
|
Package permissions 实现分级访问控制(AGENTS.md §3.4:有人在场,可交互)。 |
|
remote
Package remote embeds an optional, token-authenticated HTTP server into the desktop process so that browsers / mobile clients can connect to the very same app instance while the GUI keeps running (AGENTS.md §1.8).
|
Package remote embeds an optional, token-authenticated HTTP server into the desktop process so that browsers / mobile clients can connect to the very same app instance while the GUI keeps running (AGENTS.md §1.8). |
|
shellenv
Package shellenv resolves the user's login-shell PATH into the running process, fixing the classic macOS/Linux problem where a GUI app launched from Finder/Dock/Spotlight inherits only launchd's minimal PATH (/usr/bin:/bin:/usr/sbin:/sbin) and cannot find user-installed tools (Homebrew, bun, npm-global, nvm/volta-managed node, …).
|
Package shellenv resolves the user's login-shell PATH into the running process, fixing the classic macOS/Linux problem where a GUI app launched from Finder/Dock/Spotlight inherits only launchd's minimal PATH (/usr/bin:/bin:/usr/sbin:/sbin) and cannot find user-installed tools (Homebrew, bun, npm-global, nvm/volta-managed node, …). |
|
store
Package store 是 SQLite 的唯一入口(AGENTS.md §2.1)。
|
Package store 是 SQLite 的唯一入口(AGENTS.md §2.1)。 |
|
terminal
Package terminal 提供集成终端:每 session 可开多个交互式 shell(PTY), 供用户自由执行基础 shell 命令。
|
Package terminal 提供集成终端:每 session 可开多个交互式 shell(PTY), 供用户自由执行基础 shell 命令。 |
|
titlegen
Package titlegen 为会话生成「即时兜底标题」(无 LLM)。
|
Package titlegen 为会话生成「即时兜底标题」(无 LLM)。 |
|
ui
Package ui 持久化 UI 运行时状态(AGENTS.md §0.5「少量 JSON」)。
|
Package ui 持久化 UI 运行时状态(AGENTS.md §0.5「少量 JSON」)。 |
|
update
Package update 把 Wails3 内置的应用自更新(app.Updater)接到 GitHub Releases。
|
Package update 把 Wails3 内置的应用自更新(app.Updater)接到 GitHub Releases。 |
|
worktree
Package worktree 管理 git worktree:为每个 session 创建独立工作树 + 分支, 实现并行隔离(参考 orca 的 parallel worktree 模型)。
|
Package worktree 管理 git worktree:为每个 session 创建独立工作树 + 分支, 实现并行隔离(参考 orca 的 parallel worktree 模型)。 |
Click to show internal directories.
Click to hide internal directories.