164 lines
5.5 KiB
JavaScript
164 lines
5.5 KiB
JavaScript
export const connection = {
|
||
label: '等待连接后端接口',
|
||
detail: '示例数据仅在接口未连接时显示,并会明确标注。',
|
||
source: '本地示例',
|
||
confidence: '低',
|
||
}
|
||
|
||
export const projects = [
|
||
{
|
||
id: 'manager',
|
||
name: 'codex-agent-manager',
|
||
path: '/Users/yoilun/Code/codex-agent-manager',
|
||
status: 'recent',
|
||
statusZh: '最近活跃',
|
||
trust: 'trusted',
|
||
activeAgents: 2,
|
||
uncertain: true,
|
||
drafts: 1,
|
||
lastActivity: '示例:18:42',
|
||
source: '示例数据',
|
||
confidence: '低',
|
||
},
|
||
{
|
||
id: 'codex-home',
|
||
name: '.codex 本机配置',
|
||
path: '/Users/yoilun/.codex',
|
||
status: 'unknown',
|
||
statusZh: '未知',
|
||
trust: 'local',
|
||
activeAgents: 0,
|
||
uncertain: true,
|
||
drafts: 0,
|
||
lastActivity: '等待接口',
|
||
source: '未连接',
|
||
confidence: '低',
|
||
},
|
||
{
|
||
id: 'example',
|
||
name: '示例项目',
|
||
path: '/Users/yoilun/Code/example',
|
||
status: 'idle',
|
||
statusZh: '空闲',
|
||
trust: '示例',
|
||
activeAgents: 0,
|
||
uncertain: false,
|
||
drafts: 0,
|
||
lastActivity: '示例:昨天',
|
||
source: '示例数据',
|
||
confidence: '低',
|
||
},
|
||
]
|
||
|
||
export const agentMatrix = [
|
||
{
|
||
id: 'lead',
|
||
name: '主智能体',
|
||
role: '规划与监管',
|
||
status: 'recent',
|
||
statusZh: '最近活跃',
|
||
goal: '阶段 4 前端工作台',
|
||
process: '等待进程表',
|
||
source: '本地示例',
|
||
confidence: '低',
|
||
lastActivity: '示例:18:42',
|
||
},
|
||
{
|
||
id: 'frontend',
|
||
name: '前端实现智能体',
|
||
role: 'Vue 只读界面',
|
||
status: 'running',
|
||
statusZh: '运行中',
|
||
goal: '搭建中文工作台',
|
||
process: '等待接口连接',
|
||
source: '本地示例',
|
||
confidence: '低',
|
||
lastActivity: '示例:刚刚',
|
||
},
|
||
{
|
||
id: 'reviewer',
|
||
name: '审查智能体',
|
||
role: '范围与质量审查',
|
||
status: 'unknown',
|
||
statusZh: '未知',
|
||
goal: '等待阶段 5 数据',
|
||
process: '未连接',
|
||
source: '等待接口',
|
||
confidence: '低',
|
||
lastActivity: '等待连接',
|
||
},
|
||
]
|
||
|
||
export const workflow = {
|
||
phases: [
|
||
{ name: '阶段 0-3', status: 'complete', label: '已完成', gate: 'Go 后端只读模型', evidence: 'task_plan.md / progress.md', confidence: '中' },
|
||
{ name: '阶段 4', status: 'running', label: '进行中', gate: '中文只读前端工作台', evidence: '本地示例视图', confidence: '低' },
|
||
{ name: '阶段 5', status: 'pending', label: '未开始', gate: '连接只读接口', evidence: '等待后续阶段', confidence: '低' },
|
||
{ name: '阶段 6', status: 'pending', label: '未开始', gate: '草稿校验与写回', evidence: '当前禁用写回', confidence: '低' },
|
||
],
|
||
handoffs: [
|
||
{ from: '主智能体', to: '前端实现智能体', summary: '派发阶段 4:构建只读工作台外壳', time: '示例:18:45', source: '本地示例', confidence: '低' },
|
||
{ from: '前端实现智能体', to: '审查智能体', summary: '等待构建和界面验证证据', time: '等待连接', source: '等待接口', confidence: '低' },
|
||
{ from: '审查智能体', to: '主智能体', summary: '阶段 5 接入真实接口和错误态', time: '计划中', source: '计划文件', confidence: '中' },
|
||
],
|
||
edges: [
|
||
{ parent: '主线程', child: '前端实现', status: '示例运行', source: '本地示例', confidence: '低' },
|
||
{ parent: '前端实现', child: '界面审查', status: '等待', source: '等待接口', confidence: '低' },
|
||
{ parent: '界面审查', child: '修复回路', status: '未开始', source: '计划文件', confidence: '中' },
|
||
],
|
||
}
|
||
|
||
export const agents = [
|
||
{
|
||
id: 'frontend-developer',
|
||
file: '~/.codex/agents/frontend-developer.toml',
|
||
name: '前端开发者',
|
||
description: '实现现代 Web 应用、响应式界面和无障碍体验。',
|
||
role: 'Vue / Vite / CSS / 可访问性',
|
||
status: '示例草稿',
|
||
source: '本地示例',
|
||
confidence: '低',
|
||
toml: '[agent]\nname = "前端开发者"\ndescription = "实现现代 Web 应用"\nmode = "readonly-preview"',
|
||
},
|
||
{
|
||
id: 'code-reviewer',
|
||
file: '~/.codex/agents/code-reviewer.toml',
|
||
name: '代码审查员',
|
||
description: '优先发现行为回归、安全边界和遗漏测试。',
|
||
role: '审查 / 风险 / 验证',
|
||
status: '等待读取',
|
||
source: '等待接口',
|
||
confidence: '低',
|
||
toml: '# 等待只读接口从 /api/agents 读取真实 TOML',
|
||
},
|
||
]
|
||
|
||
export const drafts = [
|
||
{
|
||
file: '~/.codex/agents/frontend-developer.toml',
|
||
changedFields: ['描述', '角色设定'],
|
||
validation: '示例:未校验',
|
||
backup: '等待阶段 6',
|
||
source: '本地示例',
|
||
confidence: '低',
|
||
steps: ['草稿'],
|
||
},
|
||
{
|
||
file: '~/.codex/agents/code-reviewer.toml',
|
||
changedFields: [],
|
||
validation: '无草稿',
|
||
backup: '无',
|
||
source: '等待接口',
|
||
confidence: '低',
|
||
steps: [],
|
||
},
|
||
]
|
||
|
||
export const settings = [
|
||
{ name: 'Codex 主目录', value: '/Users/yoilun/.codex', detail: '由后端配置提供', enabled: true },
|
||
{ name: 'SQLite 状态读取', value: '只读 mode=ro&immutable=1', detail: '通过只读接口展示', enabled: true },
|
||
{ name: '本机进程辅助判断', value: '等待后端聚合', detail: '只显示来源与置信度,不伪装确定状态', enabled: true },
|
||
{ name: '写回能力', value: '阶段 6 才启用', detail: '当前没有保存、写入或批量写回按钮', enabled: false },
|
||
{ name: '敏感文件黑名单', value: 'auth.json', detail: '前端只展示规则摘要,不读取内容', enabled: true },
|
||
]
|