Documentation
¶
Overview ¶
Package pod 是 AIC 本地客户端(aic-pod)的根包:host 会话装配(Start/Stop)。 目录结构(对照 aic 服务端的分层):
cfg/ 配置中心:Options + Global、Version/DeviceType 二进制身份、日志文件写入
settings/ 本机设置面(`aic config get|set` 的读/写模型,原 api 包逻辑)
libs/ 客户端核心:host(NATS 会话运行时)、proto(协议信封签名)、
vcore(虚拟指令)、exec_procs(进程托管)、utils(纯工具)
cli/ 命令行版本(aic):连接运行 / config / bind / unbind
desktop/ Electron 壳(main.js + preload.js):Chromium 窗口 + Go 后端子进程
本地不监听任何端口(2026-09-22 去本地管理 API / code / 端口文件握手): 设置面 = config.yaml(Go 侧 flags 原子写),Electron 设置窗口经 IPC spawn `aic config|bind|unbind` 子命令读写;变更生效 = 重启后端子进程。
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package cfg 是 aic-pod 的配置中心(cli/desktop 共用同一份配置): Options 结构体 + Global 全局有效配置,落盘 UserConfigDir/aic/config.yaml。
|
Package cfg 是 aic-pod 的配置中心(cli/desktop 共用同一份配置): Options 结构体 + Global 全局有效配置,落盘 UserConfigDir/aic/config.yaml。 |
|
AIC CLI — 部署在 PC (Windows/macOS/Linux) 上的 host agent,通过 NATS 连接 AIC 平台。
|
AIC CLI — 部署在 PC (Windows/macOS/Linux) 上的 host agent,通过 NATS 连接 AIC 平台。 |
|
libs
|
|
|
browser
Package browser owns the dedicated Chrome, pages, observations, downloads and viewers.
|
Package browser owns the dedicated Chrome, pages, observations, downloads and viewers. |
|
browser/chrome
Package chrome launches a dedicated Chrome and speaks CDP over inherited pipes.
|
Package chrome launches a dedicated Chrome and speaks CDP over inherited pipes. |
|
cua
Package cua owns native driver sessions, windows, snapshot tokens and input state.
|
Package cua owns native driver sessions, windows, snapshot tokens and input state. |
|
exec_procs
Package exec_procs owns command executions and output, never service business state.
|
Package exec_procs owns command executions and output, never service business state. |
|
fsauth
Package fsauth enforces the host's local filesystem policy as one ordered rule table (aic/docs/permission_rules.md): builtin deny rows first, then cfg fs_rules (permanent grants append there); the last matching row wins and unmatched paths fall back to fs_policy.
|
Package fsauth enforces the host's local filesystem policy as one ordered rule table (aic/docs/permission_rules.md): builtin deny rows first, then cfg fs_rules (permanent grants append there); the last matching row wins and unmatched paths fall back to fs_policy. |
|
host
Package host 是 AIC host agent 运行时(docs/instruction_sets_v2.md §6.2): NATS 连接与认证、能力上报、心跳、fs/exec 方法分发、执行管理器装配、 granted_level 纵深检查(与 vcore 分级表同源)。
|
Package host 是 AIC host agent 运行时(docs/instruction_sets_v2.md §6.2): NATS 连接与认证、能力上报、心跳、fs/exec 方法分发、执行管理器装配、 granted_level 纵深检查(与 vcore 分级表同源)。 |
|
hostfs
Package hostfs implements the structured fs/1 provider.
|
Package hostfs implements the structured fs/1 provider. |
|
hosts_tool
Package hosts_tool binds tools once for all transports.
|
Package hosts_tool binds tools once for all transports. |
|
netauth
Package netauth enforces exact host/port rules for net and ssh as one ordered rule table per domain (aic/docs/permission_rules.md): builtin rows first, then cfg <domain>_rules (permanent grants append there); the last matching row wins and unmatched targets fall back to <domain>_policy.
|
Package netauth enforces exact host/port rules for net and ssh as one ordered rule table per domain (aic/docs/permission_rules.md): builtin rows first, then cfg <domain>_rules (permanent grants append there); the last matching row wins and unmatched targets fall back to <domain>_policy. |
|
policy
Package policy defines the common execution-policy primitives.
|
Package policy defines the common execution-policy primitives. |
|
proto
Package proto 是 AIC 指令集 v2 的协议层唯一实现(docs/instruction_sets_v2.md §6): subject 构造、请求/响应信封、HMAC-SHA256 签名与 canonical 输入、caps v2 结构、 错误模型、路径展开算法(§2.1.1 可解析层)。
|
Package proto 是 AIC 指令集 v2 的协议层唯一实现(docs/instruction_sets_v2.md §6): subject 构造、请求/响应信封、HMAC-SHA256 签名与 canonical 输入、caps v2 结构、 错误模型、路径展开算法(§2.1.1 可解析层)。 |
|
rtc
Package rtc transports hosts_rtc/1 over authenticated, reliable WebRTC channels.
|
Package rtc transports hosts_rtc/1 over authenticated, reliable WebRTC channels. |
|
uiscript
Package uiscript runs ui/1 orchestration in a disposable JS interpreter.
|
Package uiscript runs ui/1 orchestration in a disposable JS interpreter. |
|
vcore
Package vcore 是 AIC 指令集 v2 的指令实现层(docs/instruction_sets_v2.md §4/§5.4): fs read/write/edit + 核心 8 虚拟指令(ls/rg/tree/curl/rm/mkdir/cp/mv)。
|
Package vcore 是 AIC 指令集 v2 的指令实现层(docs/instruction_sets_v2.md §4/§5.4): fs read/write/edit + 核心 8 虚拟指令(ls/rg/tree/curl/rm/mkdir/cp/mv)。 |
|
protocol
|
|
|
fs
Package fs defines structured filesystem locations and results, independent from AI text formatting and physical host path syntax.
|
Package fs defines structured filesystem locations and results, independent from AI text formatting and physical host path syntax. |
|
hosts_nats
Package hosts_nats binds a tool request to its authenticated destination and caller.
|
Package hosts_nats binds a tool request to its authenticated destination and caller. |
|
hosts_rtc
Package hosts_rtc defines authenticated calls and opaque RTC tool channels.
|
Package hosts_rtc defines authenticated calls and opaque RTC tool channels. |
|
hosts_tools
Package hosts_tools defines the transport-independent tool contract.
|
Package hosts_tools defines the transport-independent tool contract. |
|
ui
Package ui defines the shared browser/cua ui/1 command contract.
|
Package ui defines the shared browser/cua ui/1 command contract. |
|
Package settings 是本机设置面(原 api 包 get_config/set_config 的逻辑,2026-09-22 随本地管理 API 一并从 HTTP 端点改为进程内调用):
|
Package settings 是本机设置面(原 api 包 get_config/set_config 的逻辑,2026-09-22 随本地管理 API 一并从 HTTP 端点改为进程内调用): |
Click to show internal directories.
Click to hide internal directories.