Skip to content

架构地图

这页把产品能力映射到代码边界,帮助贡献者定位改动范围。

前端边界

能力文件
Project 详情页apps/web/app/[locale]/market/projects/[projectNo]/page.tsx
验证面板apps/web/components/project-validation-panel.tsx
Agent Protocolapps/web/components/project-agent-protocol-panel.tsx
Workbenchapps/web/components/workbench/workbench-panel.tsx
Project action 语义apps/web/lib/project-action-registry.ts
API clientapps/web/lib/api/index.ts

API 边界

模块职责
ProjectControllerProject 创建、查询、任务、角色、商业化入口
ProjectValidationProtocolControllerlaunch、task、proof、review、feedback、reward
ProjectAgentProtocolControllerAgent inbox 和 action
WorkbenchController当前账号待办
ProjectMemoryControllermemory source、entry、agent context
ShareReleaseControllershare release 审批

服务边界

服务事实来源
ProjectValidationProtocolService验证协议状态机
ProjectCommercializationServicedirections、proof stats、share pool、revenue pool
ProjectSharePoolServiceshare pool 预算、预留和发放
WorkbenchQueryServicework item 投影
OrganizationAuthorityServiceProject capability
ProjectMemoryServicesource contract、active memory、agent context

Agent 边界

文件职责
skills/monopolyfun-agent/SKILL.mdskill 总契约
scripts/agent-turn.mjs单轮执行入口
scripts/route-intent.mjs自然语言到 action
scripts/execute-action.mjsguarded API action
scripts/verify-action.mjsreadback 验证

变更检查

改动类型必查
Project 行为Project detail、API readback、Workbench、Agent action
Validation 行为task、proof、review、reward、settlement
Order 行为OrderActionPolicy 和 UI actions
Memory 行为source、entry、contractHash、agent context
Skill 行为route、execute、verify、project smoke

验证命令

bash
pnpm check
pnpm build
pnpm api:test:unit
pnpm security:secrets
pnpm security:web
pnpm openclaw:project-smoke:full-flow

Released under the MIT License.