Phase 3 Testing: Sense 迁移 + CLI 适配 (RFC #308) #311

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

验证目标

所有现有 Sense 示例、CLI 模板和 CLI 命令适配到新的 stateful sense 签名。

测试步骤

  • Step 1: 示例 Sense 迁移

    • examples/cpu-usage/index.ts 改为 stateful 签名
    • examples/senses/nerve-health.ts 改为 stateful 签名
  • Step 2: CLI create sense 模板更新

    • buildSenseIndexTs 生成新签名的 compute + initialState
    • buildSenseSchemaTs 可以移除(不再需要 SQLite schema)
    • buildSenseMigrationSql 可以移除
  • Step 3: CLI 命令适配

    • sense-sqlite.ts 可能需要移除或重写
    • commands/sense.ts 适配(query 子命令可能需要变化)
    • commands/status.ts 移除 signal 相关引用
  • Step 4: CLI 包编译通过

    cd packages/cli && pnpm run build
    
  • Step 5: CLI 测试通过

    cd packages/cli && pnpm test
    

Ref: #308

## 验证目标 所有现有 Sense 示例、CLI 模板和 CLI 命令适配到新的 stateful sense 签名。 ## 测试步骤 - [ ] **Step 1: 示例 Sense 迁移** - examples/cpu-usage/index.ts 改为 stateful 签名 - examples/senses/nerve-health.ts 改为 stateful 签名 - [ ] **Step 2: CLI create sense 模板更新** - buildSenseIndexTs 生成新签名的 compute + initialState - buildSenseSchemaTs 可以移除(不再需要 SQLite schema) - buildSenseMigrationSql 可以移除 - [ ] **Step 3: CLI 命令适配** - sense-sqlite.ts 可能需要移除或重写 - commands/sense.ts 适配(query 子命令可能需要变化) - commands/status.ts 移除 signal 相关引用 - [ ] **Step 4: CLI 包编译通过** ```bash cd packages/cli && pnpm run build ``` - [ ] **Step 5: CLI 测试通过** ```bash cd packages/cli && pnpm test ``` 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#311