Phase 1 Testing: 核心类型重构 (RFC #308) #309
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?
验证目标
SenseDefinition
新类型体系编译通过,Signal 相关类型移除,类型自洽。测试步骤
Step 1: 新类型存在且正确
SenseComputeFn<S>签名为(state: S) => Promise<{ state: S; workflow: WorkflowTrigger | null }>SenseModule<S>导出compute: SenseComputeFn<S>+initialState: S(不再有table)ComputeResult类型移除(不再需要)Step 2: Signal 类型已移除
Signaltype 从 core/src/sense.ts 和 index.ts 导出中移除RoutedSenseOutput移除(被新签名替代)Step 3: core 包编译通过
预期: 编译成功,无类型错误
Step 4: SenseConfig 清理
retention字段移除(不再有 _signals 表)DEFAULT_SENSE_SIGNAL_RETENTION常量移除验证完成标准
✅ 所有 checkbox 打勾
✅ core 包 build 通过
Ref: #308