Files
bilin/docs/superpowers/plans/2026-07-08-bilin-w4-creative-depth.md
T

81 lines
2.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 笔临 Wave 4 创作深化 Implementation Plan
> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.
**Goal:** 交付 v1.5.0:故事时间线、角色弧线、敏感词合规、引用抽屉与章悬停预览、自定义快捷命令。
**Architecture:** `timeline_events` 表 + 章节 `story_time` 聚合;`ArcService` 聚合 knowledge 角色状态;`ComplianceService` 本地词库 + TipTap DecorationGlobalSettings 扩展合规/命令字段。
**Tech Stack:** Electron 36、TipTap、TypeScript、Vitest、Playwright
**Spec:** `docs/superpowers/specs/2026-07-08-bilin-master-completion-design.md` §8
**Master Program:** Wave 4/5 → v1.5.0
---
## File Map
| 文件 | 职责 |
|------|------|
| `src/shared/timeline.ts` | TimelineEntry、TimelineConflict |
| `src/main/db/schema-v10.sql` | timeline_events |
| `src/main/db/repositories/timeline.repo.ts` | CRUD |
| `src/main/services/timeline.service.ts` | 列表、冲突检测 |
| `src/main/ipc/handlers/timeline.handler.ts` | TIMELINE_* |
| `src/renderer/components/timeline/TimelineModal.tsx` | 时间轴 UI |
| `src/main/services/arc.service.ts` | 角色弧线节点 |
| `src/renderer/components/setting/CharacterArcPanel.tsx` | 弧线 Tab |
| `src/main/services/compliance.service.ts` | 词库扫描 |
| `src/renderer/extensions/compliance-highlight.ts` | 下划线装饰 |
| `e2e/timeline.spec.ts` | E2E-TL-01~03 |
---
## Task 1: Schema v10 + 类型
- [x] **Step 1:** schema-v10 + migrate v10
- [x] **Step 2:** `timeline.ts` 类型
- [x] **Step 3:** migrate UT 更新
---
## Task 2: Timeline 服务 + UI
- [x] **Step 1:** TimelineRepository + TimelineService
- [x] **Step 2:** IPC + preload
- [x] **Step 3:** TimelineModal + EditorLayout 入口
- [x] **Step 4:** 冲突检测 + 红色标记
---
## Task 3: 角色弧线
- [x] **Step 1:** ArcService + ARC_GET IPC
- [x] **Step 2:** CharacterArcPanel 于 character 设定
- [x] **Step 3:** UT 弧线节点
---
## Task 4: 敏感词合规
- [x] **Step 1:** ComplianceService + IPC
- [x] **Step 2:** TipTap compliance-highlight
- [x] **Step 3:** 设置页开关 + UT 下划线
---
## Task 5: 其他补全
- [x] **Step 1:** 引用面板详情抽屉
- [x] **Step 2:** 章节悬停预览
- [x] **Step 3:** customSlashCommands 设置编辑
---
## Task 6: E2E + v1.5.0
- [x] **Step 1:** E2E-TL-01~03
- [x] **Step 2:** 全量 test + 相关 E2E
- [x] **Step 3:** 版本 **v1.5.0**