Phase 1 Testing: Types + Config Schema #235
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
验证目标
agents和extract配置段能被 nerve.yaml parser 正确解析,核心类型导出可用。前置条件
在
packages/core中工作。测试步骤
Step 1: 类型定义存在且可导入
预期: 构建成功,无类型错误
Step 2: AgentFn 类型签名正确
新增类型:
预期: 类型从
@nerve/core导出Step 3: nerve.yaml agents + extract 配置解析
预期:
pnpm test通过,config parse 测试覆盖 agents/extract 字段Step 4: ExtractError 类型存在
预期: 可从
@nerve/core导入Step 5: Agent naming 允许任意字符串
预期: config parse 不限制 agent name(任意 kebab-case 字符串)
验证完成标准
✅ 所有 checkbox 打勾 | ✅
pnpm run check通过 | ✅pnpm test通过Ref: #234