Phase 1 Testing: 核心类型重构 (RFC #308) #309

Closed
opened 2026-05-01 09:40:19 +00:00 by xiaoju · 0 comments
Owner

验证目标

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 类型已移除
    Signal type 从 core/src/sense.ts 和 index.ts 导出中移除
    RoutedSenseOutput 移除(被新签名替代)

  • Step 3: core 包编译通过

    cd packages/core && pnpm run build
    

    预期: 编译成功,无类型错误

  • Step 4: SenseConfig 清理
    retention 字段移除(不再有 _signals 表)
    DEFAULT_SENSE_SIGNAL_RETENTION 常量移除

验证完成标准

所有 checkbox 打勾
core 包 build 通过

Ref: #308

## 验证目标 SenseDefinition<S> 新类型体系编译通过,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 类型已移除** `Signal` type 从 core/src/sense.ts 和 index.ts 导出中移除 `RoutedSenseOutput` 移除(被新签名替代) - [ ] **Step 3: core 包编译通过** ```bash cd packages/core && pnpm run build ``` **预期:** 编译成功,无类型错误 - [ ] **Step 4: SenseConfig 清理** `retention` 字段移除(不再有 _signals 表) `DEFAULT_SENSE_SIGNAL_RETENTION` 常量移除 ## 验证完成标准 ✅ 所有 checkbox 打勾 ✅ core 包 build 通过 Ref: #308
This repo is archived. You cannot comment on issues.
No Label
1 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uncaged/nerve#309