novelws 3.1.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +74 -0
- package/README.md +47 -49
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +35 -33
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/upgrade.d.ts.map +1 -1
- package/dist/commands/upgrade.js +63 -6
- package/dist/commands/upgrade.js.map +1 -1
- package/dist/core/config.d.ts +22 -15
- package/dist/core/config.d.ts.map +1 -1
- package/dist/core/config.js +28 -16
- package/dist/core/config.js.map +1 -1
- package/dist/utils/diagnostics.d.ts.map +1 -1
- package/dist/utils/diagnostics.js +6 -5
- package/dist/utils/diagnostics.js.map +1 -1
- package/package.json +1 -1
- package/templates/commands/analyze.md +10 -10
- package/templates/commands/character.md +10 -10
- package/templates/commands/checklist.md +27 -27
- package/templates/commands/clarify.md +2 -2
- package/templates/commands/constitution.md +8 -8
- package/templates/commands/expert.md +3 -3
- package/templates/commands/facts.md +9 -9
- package/templates/commands/guide.md +25 -25
- package/templates/commands/help-me.md +2 -2
- package/templates/commands/plan.md +26 -26
- package/templates/commands/recap.md +16 -16
- package/templates/commands/relations.md +13 -13
- package/templates/commands/revise.md +15 -15
- package/templates/commands/search.md +10 -10
- package/templates/commands/specify.md +4 -4
- package/templates/commands/tasks.md +9 -9
- package/templates/commands/timeline.md +13 -13
- package/templates/commands/track-init.md +8 -8
- package/templates/commands/track.md +22 -22
- package/templates/commands/volume-summary.md +6 -6
- package/templates/commands/write.md +125 -38
- package/templates/dot-claude/CLAUDE.md +5 -5
- package/templates/{config → resources/config}/keyword-mappings.json +19 -19
- package/templates/{scripts → resources/scripts}/README.md +8 -8
- package/templates/{scripts → resources/scripts}/bash/analyze-story.sh +1 -1
- package/templates/{scripts → resources/scripts}/bash/check-consistency.sh +7 -7
- package/templates/{scripts → resources/scripts}/bash/check-facts.sh +1 -1
- package/templates/{scripts → resources/scripts}/bash/check-plot.sh +2 -2
- package/templates/{scripts → resources/scripts}/bash/check-timeline.sh +3 -3
- package/templates/{scripts → resources/scripts}/bash/check-world.sh +5 -5
- package/templates/{scripts → resources/scripts}/bash/check-writing-state.sh +26 -26
- package/templates/{scripts → resources/scripts}/bash/common.sh +3 -3
- package/templates/{scripts → resources/scripts}/bash/constitution.sh +1 -1
- package/templates/{scripts → resources/scripts}/bash/init-tracking.sh +13 -13
- package/templates/{scripts → resources/scripts}/bash/manage-relations.sh +10 -10
- package/templates/{scripts → resources/scripts}/bash/migrate-tracking.sh +1 -1
- package/templates/{scripts → resources/scripts}/bash/plan-story.sh +2 -2
- package/templates/{scripts → resources/scripts}/bash/specify-story.sh +1 -1
- package/templates/{scripts → resources/scripts}/bash/tasks-story.sh +2 -2
- package/templates/{scripts → resources/scripts}/bash/tests/bench-preload-cache.sh +3 -3
- package/templates/{scripts → resources/scripts}/bash/tests/test-cross-platform.sh +1 -1
- package/templates/{scripts → resources/scripts}/bash/tests/test-preload-cache.sh +1 -1
- package/templates/{scripts → resources/scripts}/bash/tests/test-regex-precompile.sh +4 -4
- package/templates/{scripts → resources/scripts}/bash/text-audit.sh +3 -3
- package/templates/{scripts → resources/scripts}/bash/track-progress.sh +5 -5
- package/templates/{scripts → resources/scripts}/powershell/analyze-story.ps1 +1 -1
- package/templates/{scripts → resources/scripts}/powershell/check-consistency.ps1 +8 -8
- package/templates/{scripts → resources/scripts}/powershell/check-plot.ps1 +2 -2
- package/templates/{scripts → resources/scripts}/powershell/check-timeline.ps1 +2 -2
- package/templates/{scripts → resources/scripts}/powershell/check-writing-state.ps1 +31 -31
- package/templates/{scripts → resources/scripts}/powershell/common.ps1 +2 -2
- package/templates/{scripts → resources/scripts}/powershell/constitution.ps1 +1 -1
- package/templates/{scripts → resources/scripts}/powershell/init-tracking.ps1 +5 -5
- package/templates/{scripts → resources/scripts}/powershell/manage-relations.ps1 +6 -6
- package/templates/{scripts → resources/scripts}/powershell/migrate-tracking.ps1 +1 -1
- package/templates/{scripts → resources/scripts}/powershell/plan-story.ps1 +2 -2
- package/templates/{scripts → resources/scripts}/powershell/specify-story.ps1 +1 -1
- package/templates/{scripts → resources/scripts}/powershell/tests/bench-ps-cache.ps1 +10 -10
- package/templates/{scripts → resources/scripts}/powershell/tests/test-ps-cache.ps1 +4 -4
- package/templates/{scripts → resources/scripts}/powershell/text-audit.ps1 +2 -2
- package/templates/{scripts → resources/scripts}/powershell/track-progress.ps1 +2 -2
- package/templates/skills/analysis/character-analysis/SKILL.md +1 -1
- package/templates/skills/analysis/foreshadow-analysis/SKILL.md +1 -1
- package/templates/skills/analysis/hook-analysis/SKILL.md +2 -2
- package/templates/skills/analysis/logic-analysis/SKILL.md +2 -2
- package/templates/skills/analysis/opening-analysis/SKILL.md +1 -1
- package/templates/skills/analysis/pacing-analysis/SKILL.md +1 -1
- package/templates/skills/analysis/power-analysis/SKILL.md +3 -3
- package/templates/skills/analysis/reader-analysis/SKILL.md +1 -1
- package/templates/skills/analysis/style-analysis/SKILL.md +1 -1
- package/templates/skills/analysis/voice-analysis/SKILL.md +1 -1
- package/templates/skills/auto-tracking/SKILL.md +1 -1
- package/templates/skills/quality-assurance/consistency-checker/SKILL.md +1 -1
- package/templates/skills/quality-assurance/facts-checker/SKILL.md +2 -2
- package/templates/skills/quality-assurance/hook-checker/SKILL.md +2 -2
- package/templates/skills/quality-assurance/long-series-continuity/SKILL.md +7 -7
- package/templates/skills/quality-assurance/pre-write-checklist/SKILL.md +22 -22
- package/templates/skills/quality-assurance/setting-detector/SKILL.md +15 -15
- package/templates/skills/quality-assurance/voice-consistency-checker/SKILL.md +1 -1
- package/templates/skills/writing-techniques/character-arc/SKILL.md +1 -1
- package/templates/skills/writing-techniques/multi-thread-narrative/SKILL.md +1 -1
- package/templates/skills/writing-techniques/reader-expectation/SKILL.md +1 -1
- package/templates/skills/writing-techniques/revision-polish/SKILL.md +1 -1
- package/templates/skills/writing-techniques/style-learning/SKILL.md +2 -2
- package/templates/skills/writing-techniques/writing-balance/SKILL.md +1 -1
- package/templates/knowledge-base/README.md +0 -285
- /package/templates/{knowledge-base → resources}/character-archetypes/01-hero.md +0 -0
- /package/templates/{knowledge-base → resources}/character-archetypes/02-mentor.md +0 -0
- /package/templates/{knowledge-base → resources}/character-archetypes/03-shadow.md +0 -0
- /package/templates/{knowledge-base → resources}/character-archetypes/04-ally.md +0 -0
- /package/templates/{knowledge-base → resources}/character-archetypes/05-shapeshifter.md +0 -0
- /package/templates/{knowledge-base → resources}/character-archetypes/06-trickster.md +0 -0
- /package/templates/{knowledge-base → resources}/character-archetypes/07-threshold-guardian.md +0 -0
- /package/templates/{knowledge-base → resources}/character-archetypes/08-herald.md +0 -0
- /package/templates/{knowledge-base → resources}/character-archetypes/09-father.md +0 -0
- /package/templates/{knowledge-base → resources}/character-archetypes/10-mother.md +0 -0
- /package/templates/{knowledge-base → resources}/character-archetypes/11-child.md +0 -0
- /package/templates/{knowledge-base → resources}/character-archetypes/12-sage.md +0 -0
- /package/templates/{knowledge-base → resources}/character-archetypes/README.md +0 -0
- /package/templates/{knowledge-base → resources}/character-archetypes/application-guide.md +0 -0
- /package/templates/{knowledge-base → resources}/character-archetypes/archetype-combinations.md +0 -0
- /package/templates/{knowledge-base → resources}/character-archetypes/config.yaml +0 -0
- /package/templates/{knowledge-base → resources}/character-archetypes/examples-analysis.md +0 -0
- /package/templates/{specification-example.md → resources/config/specification-example.md} +0 -0
- /package/templates/{knowledge-base → resources}/craft/character-arc.md +0 -0
- /package/templates/{knowledge-base → resources}/craft/dialogue.md +0 -0
- /package/templates/{knowledge-base → resources}/craft/hook-design.md +0 -0
- /package/templates/{knowledge-base → resources}/craft/pacing.md +0 -0
- /package/templates/{knowledge-base → resources}/craft/power-system.md +0 -0
- /package/templates/{knowledge-base → resources}/craft/scene-structure.md +0 -0
- /package/templates/{knowledge-base → resources}/craft/show-not-tell.md +0 -0
- /package/templates/{knowledge-base → resources}/craft/story-structures.md +0 -0
- /package/templates/{knowledge-base → resources}/craft/tension-management.md +0 -0
- /package/templates/{knowledge-base → resources}/emotional-beats/01-first-meeting.md +0 -0
- /package/templates/{knowledge-base → resources}/emotional-beats/02-bonding-moment.md +0 -0
- /package/templates/{knowledge-base → resources}/emotional-beats/03-declaration.md +0 -0
- /package/templates/{knowledge-base → resources}/emotional-beats/04-triumph.md +0 -0
- /package/templates/{knowledge-base → resources}/emotional-beats/05-reunion.md +0 -0
- /package/templates/{knowledge-base → resources}/emotional-beats/06-forgiveness.md +0 -0
- /package/templates/{knowledge-base → resources}/emotional-beats/07-betrayal.md +0 -0
- /package/templates/{knowledge-base → resources}/emotional-beats/08-loss.md +0 -0
- /package/templates/{knowledge-base → resources}/emotional-beats/09-rejection.md +0 -0
- /package/templates/{knowledge-base → resources}/emotional-beats/10-failure.md +0 -0
- /package/templates/{knowledge-base → resources}/emotional-beats/11-misunderstanding.md +0 -0
- /package/templates/{knowledge-base → resources}/emotional-beats/12-farewell.md +0 -0
- /package/templates/{knowledge-base → resources}/emotional-beats/13-revelation.md +0 -0
- /package/templates/{knowledge-base → resources}/emotional-beats/14-point-of-no-return.md +0 -0
- /package/templates/{knowledge-base → resources}/emotional-beats/15-dark-night.md +0 -0
- /package/templates/{knowledge-base → resources}/emotional-beats/16-sacrifice.md +0 -0
- /package/templates/{knowledge-base → resources}/emotional-beats/17-awakening.md +0 -0
- /package/templates/{knowledge-base → resources}/emotional-beats/18-confrontation.md +0 -0
- /package/templates/{knowledge-base → resources}/emotional-beats/19-bittersweet-goodbye.md +0 -0
- /package/templates/{knowledge-base → resources}/emotional-beats/20-moral-dilemma.md +0 -0
- /package/templates/{knowledge-base → resources}/emotional-beats/21-temptation.md +0 -0
- /package/templates/{knowledge-base → resources}/emotional-beats/22-redemption.md +0 -0
- /package/templates/{knowledge-base → resources}/emotional-beats/README.md +0 -0
- /package/templates/{knowledge-base → resources}/emotional-beats/beat-sequences.md +0 -0
- /package/templates/{knowledge-base → resources}/emotional-beats/config.yaml +0 -0
- /package/templates/{knowledge-base → resources}/emotional-beats/pacing-guide.md +0 -0
- /package/templates/{knowledge-base → resources}/genres/game-lit.md +0 -0
- /package/templates/{knowledge-base → resources}/genres/historical.md +0 -0
- /package/templates/{knowledge-base → resources}/genres/horror.md +0 -0
- /package/templates/{knowledge-base → resources}/genres/military.md +0 -0
- /package/templates/{knowledge-base → resources}/genres/mystery.md +0 -0
- /package/templates/{knowledge-base → resources}/genres/rebirth.md +0 -0
- /package/templates/{knowledge-base → resources}/genres/revenge.md +0 -0
- /package/templates/{knowledge-base → resources}/genres/romance.md +0 -0
- /package/templates/{knowledge-base → resources}/genres/sci-fi.md +0 -0
- /package/templates/{knowledge-base → resources}/genres/sports.md +0 -0
- /package/templates/{knowledge-base → resources}/genres/thriller.md +0 -0
- /package/templates/{knowledge-base → resources}/genres/urban.md +0 -0
- /package/templates/{knowledge-base → resources}/genres/workplace.md +0 -0
- /package/templates/{knowledge-base → resources}/genres/wuxia.md +0 -0
- /package/templates/{knowledge-base → resources}/genres/xuanhuan.md +0 -0
- /package/templates/{knowledge-base → resources}/genres/youth.md +0 -0
- /package/templates/{memory → resources/memory}/constitution.md +0 -0
- /package/templates/{memory → resources/memory}/personal-voice.md +0 -0
- /package/templates/{knowledge-base → resources}/references/README.md +0 -0
- /package/templates/{knowledge-base → resources}/references/china-1920s/culture.md +0 -0
- /package/templates/{knowledge-base → resources}/references/china-1920s/daily-life.md +0 -0
- /package/templates/{knowledge-base → resources}/references/china-1920s/overview.md +0 -0
- /package/templates/{knowledge-base → resources}/references/china-1920s/society.md +0 -0
- /package/templates/{knowledge-base → resources}/references/china-1920s/warlords.md +0 -0
- /package/templates/{knowledge-base → resources}/references/cultivation-world/daily-life.md +0 -0
- /package/templates/{knowledge-base → resources}/references/cultivation-world/overview.md +0 -0
- /package/templates/{knowledge-base → resources}/references/cultivation-world/power-system.md +0 -0
- /package/templates/{knowledge-base → resources}/references/cultivation-world/sects.md +0 -0
- /package/templates/{knowledge-base → resources}/references/cultivation-world/world-setting.md +0 -0
- /package/templates/{knowledge-base → resources}/references/modern-workplace/corporate.md +0 -0
- /package/templates/{knowledge-base → resources}/references/modern-workplace/daily-life.md +0 -0
- /package/templates/{knowledge-base → resources}/references/modern-workplace/overview.md +0 -0
- /package/templates/{knowledge-base → resources}/references/modern-workplace/relationships.md +0 -0
- /package/templates/{knowledge-base → resources}/references/modern-workplace/tech-industry.md +0 -0
- /package/templates/{knowledge-base → resources}/references/tang-dynasty/culture.md +0 -0
- /package/templates/{knowledge-base → resources}/references/tang-dynasty/daily-life.md +0 -0
- /package/templates/{knowledge-base → resources}/references/tang-dynasty/overview.md +0 -0
- /package/templates/{knowledge-base → resources}/references/tang-dynasty/politics.md +0 -0
- /package/templates/{knowledge-base → resources}/references/tang-dynasty/society.md +0 -0
- /package/templates/{knowledge-base → resources}/requirements/README.md +0 -0
- /package/templates/{knowledge-base → resources}/requirements/anti-ai-v3.md +0 -0
- /package/templates/{knowledge-base → resources}/requirements/anti-ai-v4-deprecated.md +0 -0
- /package/templates/{knowledge-base → resources}/requirements/anti-ai-v5-balanced.md +0 -0
- /package/templates/{knowledge-base → resources}/requirements/concretization.md +0 -0
- /package/templates/{knowledge-base → resources}/requirements/fast-paced.md +0 -0
- /package/templates/{knowledge-base → resources}/requirements/no-poison.md +0 -0
- /package/templates/{knowledge-base → resources}/requirements/romance-angst.md +0 -0
- /package/templates/{knowledge-base → resources}/requirements/romance-sweet.md +0 -0
- /package/templates/{knowledge-base → resources}/requirements/serious-literature.md +0 -0
- /package/templates/{knowledge-base → resources}/requirements/strong-emotion.md +0 -0
- /package/templates/{scripts → resources/scripts}/bash/check-analyze-stage.sh +0 -0
- /package/templates/{scripts → resources/scripts}/bash/clarify-story.sh +0 -0
- /package/templates/{scripts → resources/scripts}/bash/generate-tasks.sh +0 -0
- /package/templates/{scripts → resources/scripts}/bash/test-word-count.sh +0 -0
- /package/templates/{scripts → resources/scripts}/bash/tests/run-all-benchmarks.sh +0 -0
- /package/templates/{scripts → resources/scripts}/bash/tests/test-cache-semantics.sh +0 -0
- /package/templates/{scripts → resources/scripts}/bash/tests/test-edge-cases-bash.sh +0 -0
- /package/templates/{scripts → resources/scripts}/bash/tests/test-phase1-bash.sh +0 -0
- /package/templates/{scripts → resources/scripts}/bash/tests/test-regression-bash.sh +0 -0
- /package/templates/{scripts → resources/scripts}/bash/tests/test-task6-verification.sh +0 -0
- /package/templates/{scripts → resources/scripts}/powershell/check-analyze-stage.ps1 +0 -0
- /package/templates/{scripts → resources/scripts}/powershell/check-facts.ps1 +0 -0
- /package/templates/{scripts → resources/scripts}/powershell/clarify-story.ps1 +0 -0
- /package/templates/{scripts → resources/scripts}/powershell/generate-tasks.ps1 +0 -0
- /package/templates/{scripts → resources/scripts}/powershell/tests/test-cross-platform.ps1 +0 -0
- /package/templates/{scripts → resources/scripts}/powershell/tests/test-edge-cases-ps.ps1 +0 -0
- /package/templates/{scripts → resources/scripts}/powershell/tests/test-phase1-ps.ps1 +0 -0
- /package/templates/{scripts → resources/scripts}/powershell/tests/test-regression-ps.ps1 +0 -0
- /package/templates/{knowledge-base → resources}/styles/README.md +0 -0
- /package/templates/{knowledge-base → resources}/styles/ancient-style.md +0 -0
- /package/templates/{knowledge-base → resources}/styles/literary.md +0 -0
- /package/templates/{knowledge-base → resources}/styles/minimal.md +0 -0
- /package/templates/{knowledge-base → resources}/styles/natural-voice.md +0 -0
- /package/templates/{knowledge-base → resources}/styles/web-novel.md +0 -0
|
@@ -37,7 +37,7 @@ echo ""
|
|
|
37
37
|
# 检查前置文档
|
|
38
38
|
missing=()
|
|
39
39
|
|
|
40
|
-
if [ ! -f "
|
|
40
|
+
if [ ! -f "resources/memory/constitution.md" ]; then
|
|
41
41
|
missing+=("宪法文件")
|
|
42
42
|
fi
|
|
43
43
|
|
|
@@ -56,7 +56,7 @@ if [ ${#missing[@]} -gt 0 ]; then
|
|
|
56
56
|
done
|
|
57
57
|
echo ""
|
|
58
58
|
echo "请先完成:"
|
|
59
|
-
if [ ! -f "
|
|
59
|
+
if [ ! -f "resources/memory/constitution.md" ]; then
|
|
60
60
|
echo " 1. /constitution - 创建创作宪法"
|
|
61
61
|
fi
|
|
62
62
|
if [ ! -f "$SPEC_FILE" ]; then
|
|
@@ -7,11 +7,11 @@ echo ""
|
|
|
7
7
|
|
|
8
8
|
# 测试文件列表
|
|
9
9
|
files=(
|
|
10
|
-
"
|
|
10
|
+
"resources/config/keyword-mappings.json"
|
|
11
11
|
"templates/scripts/bash/check-writing-state.sh"
|
|
12
12
|
"templates/scripts/bash/common.sh"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
13
|
+
"resources/craft/dialogue.md"
|
|
14
|
+
"resources/craft/scene-structure.md"
|
|
15
15
|
)
|
|
16
16
|
|
|
17
17
|
echo "测试文件数: ${#files[@]}"
|
|
@@ -7,7 +7,7 @@ echo ""
|
|
|
7
7
|
|
|
8
8
|
# 测试 1.1: 验证 JSON 结构
|
|
9
9
|
echo "测试 1.1: 验证 JSON 结构"
|
|
10
|
-
version=$(jq -r '.version'
|
|
10
|
+
version=$(jq -r '.version' resources/config/keyword-mappings.json)
|
|
11
11
|
if [[ "$version" == "1.1.0" ]]; then
|
|
12
12
|
echo "✅ 版本号正确: $version"
|
|
13
13
|
else
|
|
@@ -35,8 +35,8 @@ for mapping in "${mappings[@]}"; do
|
|
|
35
35
|
category=$(echo "$mapping" | cut -d. -f1)
|
|
36
36
|
name=$(echo "$mapping" | cut -d. -f2)
|
|
37
37
|
|
|
38
|
-
regex=$(jq -r ".mappings[\"$category\"][\"$name\"].regex"
|
|
39
|
-
regex_flags=$(jq -r ".mappings[\"$category\"][\"$name\"].regex_flags"
|
|
38
|
+
regex=$(jq -r ".mappings[\"$category\"][\"$name\"].regex" resources/config/keyword-mappings.json)
|
|
39
|
+
regex_flags=$(jq -r ".mappings[\"$category\"][\"$name\"].regex_flags" resources/config/keyword-mappings.json)
|
|
40
40
|
|
|
41
41
|
if [[ -n "$regex" && "$regex" != "null" ]]; then
|
|
42
42
|
echo "✅ $mapping: regex='$regex', flags='$regex_flags'"
|
|
@@ -71,7 +71,7 @@ for test_case in "${!test_cases[@]}"; do
|
|
|
71
71
|
category=$(echo "$mapping" | cut -d. -f1)
|
|
72
72
|
name=$(echo "$mapping" | cut -d. -f2)
|
|
73
73
|
|
|
74
|
-
regex=$(jq -r ".mappings[\"$category\"][\"$name\"].regex"
|
|
74
|
+
regex=$(jq -r ".mappings[\"$category\"][\"$name\"].regex" resources/config/keyword-mappings.json)
|
|
75
75
|
|
|
76
76
|
if echo "$keyword" | grep -iE "$regex" > /dev/null; then
|
|
77
77
|
echo "✅ $mapping + '$keyword' → 匹配成功"
|
|
@@ -14,9 +14,9 @@ if [ -z "$FILE_PATH" ] || [ ! -f "$FILE_PATH" ]; then
|
|
|
14
14
|
exit 1
|
|
15
15
|
fi
|
|
16
16
|
|
|
17
|
-
# 选择配置:优先项目
|
|
18
|
-
CFG_PROJECT="$PROJECT_ROOT/
|
|
19
|
-
CFG_TEMPLATE="$PROJECT_ROOT
|
|
17
|
+
# 选择配置:优先项目 resources/knowledge,其次 resources
|
|
18
|
+
CFG_PROJECT="$PROJECT_ROOT/resources/knowledge/audit-config.json"
|
|
19
|
+
CFG_TEMPLATE="$PROJECT_ROOT/resources/knowledge/audit-config.json"
|
|
20
20
|
if [ -f "$CFG_PROJECT" ]; then
|
|
21
21
|
CFG="$CFG_PROJECT"
|
|
22
22
|
elif [ -f "$CFG_TEMPLATE" ]; then
|
|
@@ -38,7 +38,7 @@ check_files() {
|
|
|
38
38
|
has_files=true
|
|
39
39
|
fi
|
|
40
40
|
|
|
41
|
-
if [[ -f "
|
|
41
|
+
if [[ -f "tracking/plot-tracker.json" ]]; then
|
|
42
42
|
has_files=true
|
|
43
43
|
fi
|
|
44
44
|
|
|
@@ -61,7 +61,7 @@ show_basic_report() {
|
|
|
61
61
|
fi
|
|
62
62
|
|
|
63
63
|
# 读取情节追踪
|
|
64
|
-
if [[ -f "
|
|
64
|
+
if [[ -f "tracking/plot-tracker.json" ]]; then
|
|
65
65
|
echo -e "${BLUE}📍 情节状态${NC}"
|
|
66
66
|
echo " 主线进度等待分析..."
|
|
67
67
|
fi
|
|
@@ -85,7 +85,7 @@ run_deep_check() {
|
|
|
85
85
|
echo -e "${BLUE}Phase 2: 角色深度验证${NC}"
|
|
86
86
|
|
|
87
87
|
# 检查验证规则文件
|
|
88
|
-
if [[ -f "
|
|
88
|
+
if [[ -f "tracking/validation-rules.json" ]]; then
|
|
89
89
|
echo " ✅ 加载验证规则"
|
|
90
90
|
echo " 扫描章节中的角色名称..."
|
|
91
91
|
echo " 对比character-state.json..."
|
|
@@ -117,7 +117,7 @@ EOF
|
|
|
117
117
|
echo -e "${GREEN} ✅ 验证任务已生成${NC}"
|
|
118
118
|
else
|
|
119
119
|
echo -e "${YELLOW} ⚠️ 未找到验证规则文件${NC}"
|
|
120
|
-
echo " 建议创建
|
|
120
|
+
echo " 建议创建 tracking/validation-rules.json"
|
|
121
121
|
fi
|
|
122
122
|
|
|
123
123
|
# Phase 3: 生成报告
|
|
@@ -135,7 +135,7 @@ run_auto_fix() {
|
|
|
135
135
|
echo -e "${GREEN}🔧 执行自动修复...${NC}"
|
|
136
136
|
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
|
137
137
|
|
|
138
|
-
if [[ ! -f "
|
|
138
|
+
if [[ ! -f "tracking/validation-rules.json" ]]; then
|
|
139
139
|
echo -e "${RED}❌ 需要先运行 --check 生成验证报告${NC}"
|
|
140
140
|
exit 1
|
|
141
141
|
fi
|
|
@@ -28,7 +28,7 @@ function Test-StoryFiles {
|
|
|
28
28
|
$missingFiles = @()
|
|
29
29
|
|
|
30
30
|
# 检查基准文档
|
|
31
|
-
if (-not (Test-Path "
|
|
31
|
+
if (-not (Test-Path "resources\memory\constitution.md")) {
|
|
32
32
|
$missingFiles += "宪法文件"
|
|
33
33
|
}
|
|
34
34
|
if (-not (Test-Path "$StoryDir\specification.md")) {
|
|
@@ -11,14 +11,14 @@ $storyDir = Get-CurrentStoryDir
|
|
|
11
11
|
if (-not $storyDir) { throw "未找到故事项目(stories/*)" }
|
|
12
12
|
|
|
13
13
|
$progress = Join-Path $storyDir "progress.json"
|
|
14
|
-
$plot = Join-Path $storyDir "
|
|
15
|
-
if (-not (Test-Path $plot)) { $plot = Join-Path $root "
|
|
16
|
-
$timeline = Join-Path $storyDir "
|
|
17
|
-
if (-not (Test-Path $timeline)) { $timeline = Join-Path $root "
|
|
18
|
-
$rels = Join-Path $storyDir "
|
|
19
|
-
if (-not (Test-Path $rels)) { $rels = Join-Path $root "
|
|
20
|
-
$charState = Join-Path $storyDir "
|
|
21
|
-
if (-not (Test-Path $charState)) { $charState = Join-Path $root "
|
|
14
|
+
$plot = Join-Path $storyDir "tracking/plot-tracker.json"
|
|
15
|
+
if (-not (Test-Path $plot)) { $plot = Join-Path $root "tracking/plot-tracker.json" }
|
|
16
|
+
$timeline = Join-Path $storyDir "tracking/timeline.json"
|
|
17
|
+
if (-not (Test-Path $timeline)) { $timeline = Join-Path $root "tracking/timeline.json" }
|
|
18
|
+
$rels = Join-Path $storyDir "tracking/relationships.json"
|
|
19
|
+
if (-not (Test-Path $rels)) { $rels = Join-Path $root "tracking/relationships.json" }
|
|
20
|
+
$charState = Join-Path $storyDir "tracking/character-state.json"
|
|
21
|
+
if (-not (Test-Path $charState)) { $charState = Join-Path $root "tracking/character-state.json" }
|
|
22
22
|
|
|
23
23
|
$TOTAL=0; $PASS=0; $WARN=0; $ERR=0
|
|
24
24
|
function Check([string]$name, [bool]$ok, [string]$msg) {
|
|
@@ -10,8 +10,8 @@ $root = Get-ProjectRoot
|
|
|
10
10
|
$storyDir = Get-CurrentStoryDir
|
|
11
11
|
if (-not $storyDir) { throw "未找到故事项目(stories/*)" }
|
|
12
12
|
|
|
13
|
-
$plotPath = Join-Path $storyDir "
|
|
14
|
-
if (-not (Test-Path $plotPath)) { $plotPath = Join-Path $root "
|
|
13
|
+
$plotPath = Join-Path $storyDir "tracking/plot-tracker.json"
|
|
14
|
+
if (-not (Test-Path $plotPath)) { $plotPath = Join-Path $root "tracking/plot-tracker.json" }
|
|
15
15
|
$outlinePath = Join-Path $storyDir "creative-plan.md"
|
|
16
16
|
$progressPath = Join-Path $storyDir "progress.json"
|
|
17
17
|
|
|
@@ -17,8 +17,8 @@ $root = Get-ProjectRoot
|
|
|
17
17
|
$storyDir = Get-CurrentStoryDir
|
|
18
18
|
if (-not $storyDir) { throw "未找到故事项目(stories/*)" }
|
|
19
19
|
|
|
20
|
-
$timelinePath = Join-Path $storyDir "
|
|
21
|
-
if (-not (Test-Path $timelinePath)) { $timelinePath = Join-Path $root "
|
|
20
|
+
$timelinePath = Join-Path $storyDir "tracking/timeline.json"
|
|
21
|
+
if (-not (Test-Path $timelinePath)) { $timelinePath = Join-Path $root "tracking/timeline.json" }
|
|
22
22
|
|
|
23
23
|
function Init-Timeline {
|
|
24
24
|
if (-not (Test-Path $timelinePath)) {
|
|
@@ -50,7 +50,7 @@ function Mark-ResourceLoaded {
|
|
|
50
50
|
# 防御性设计:缓存目录不存在时直接返回
|
|
51
51
|
|
|
52
52
|
function Cleanup-OldCache {
|
|
53
|
-
$cacheDir = Join-Path $ProjectRoot ".
|
|
53
|
+
$cacheDir = Join-Path $ProjectRoot ".claude" ".cache"
|
|
54
54
|
|
|
55
55
|
# 缓存目录不存在,无需清理
|
|
56
56
|
if (-not (Test-Path $cacheDir)) {
|
|
@@ -145,17 +145,17 @@ $StoryDir = Join-Path "stories" $StoryName
|
|
|
145
145
|
if (-not $script:PreloadCompleted) {
|
|
146
146
|
$preloadFileList = @(
|
|
147
147
|
# 知识库文件
|
|
148
|
-
(Join-Path $ProjectRoot "
|
|
149
|
-
(Join-Path $ProjectRoot "
|
|
150
|
-
(Join-Path $ProjectRoot "
|
|
151
|
-
(Join-Path $ProjectRoot "
|
|
152
|
-
(Join-Path $ProjectRoot "
|
|
148
|
+
(Join-Path $ProjectRoot "resources/craft/dialogue.md")
|
|
149
|
+
(Join-Path $ProjectRoot "resources/craft/scene-structure.md")
|
|
150
|
+
(Join-Path $ProjectRoot "resources/craft/character-arc.md")
|
|
151
|
+
(Join-Path $ProjectRoot "resources/craft/pacing.md")
|
|
152
|
+
(Join-Path $ProjectRoot "resources/craft/show-not-tell.md")
|
|
153
153
|
# Skill 文件
|
|
154
|
-
(Join-Path $ProjectRoot ".
|
|
155
|
-
(Join-Path $ProjectRoot ".
|
|
156
|
-
(Join-Path $ProjectRoot ".
|
|
157
|
-
(Join-Path $ProjectRoot ".
|
|
158
|
-
(Join-Path $ProjectRoot ".
|
|
154
|
+
(Join-Path $ProjectRoot ".claude/skills/writing-techniques/dialogue-techniques/SKILL.md")
|
|
155
|
+
(Join-Path $ProjectRoot ".claude/skills/writing-techniques/scene-structure/SKILL.md")
|
|
156
|
+
(Join-Path $ProjectRoot ".claude/skills/writing-techniques/character-arc/SKILL.md")
|
|
157
|
+
(Join-Path $ProjectRoot ".claude/skills/writing-techniques/pacing-control/SKILL.md")
|
|
158
|
+
(Join-Path $ProjectRoot ".claude/skills/quality-assurance/consistency-checker/SKILL.md")
|
|
159
159
|
# 规格文件
|
|
160
160
|
(Join-Path $StoryDir "specification.md")
|
|
161
161
|
)
|
|
@@ -182,19 +182,19 @@ function Generate-LoadReport {
|
|
|
182
182
|
|
|
183
183
|
# 默认加载所有资源
|
|
184
184
|
$knowledgeBaseFiles = @(
|
|
185
|
-
"
|
|
186
|
-
"
|
|
187
|
-
"
|
|
188
|
-
"
|
|
189
|
-
"
|
|
185
|
+
"resources/craft/dialogue.md",
|
|
186
|
+
"resources/craft/scene-structure.md",
|
|
187
|
+
"resources/craft/character-arc.md",
|
|
188
|
+
"resources/craft/pacing.md",
|
|
189
|
+
"resources/craft/show-not-tell.md"
|
|
190
190
|
)
|
|
191
191
|
|
|
192
192
|
$skillsFiles = @(
|
|
193
|
-
".
|
|
194
|
-
".
|
|
195
|
-
".
|
|
196
|
-
".
|
|
197
|
-
".
|
|
193
|
+
".claude/skills/writing-techniques/dialogue-techniques",
|
|
194
|
+
".claude/skills/writing-techniques/scene-structure",
|
|
195
|
+
".claude/skills/writing-techniques/character-arc",
|
|
196
|
+
".claude/skills/writing-techniques/pacing-control",
|
|
197
|
+
".claude/skills/quality-assurance/consistency-checker"
|
|
198
198
|
)
|
|
199
199
|
|
|
200
200
|
$disabledResources = @()
|
|
@@ -301,7 +301,7 @@ Write-Host ""
|
|
|
301
301
|
function Test-MethodologyDocs {
|
|
302
302
|
$missing = @()
|
|
303
303
|
|
|
304
|
-
if (-not (Test-Path "
|
|
304
|
+
if (-not (Test-Path "resources\memory\constitution.md")) {
|
|
305
305
|
$missing += "宪法"
|
|
306
306
|
}
|
|
307
307
|
if (-not (Test-Path "$StoryDir\specification.md")) {
|
|
@@ -410,11 +410,11 @@ function Check-KnowledgeBaseAvailable {
|
|
|
410
410
|
$available = @()
|
|
411
411
|
|
|
412
412
|
$craftFiles = @(
|
|
413
|
-
"
|
|
414
|
-
"
|
|
415
|
-
"
|
|
416
|
-
"
|
|
417
|
-
"
|
|
413
|
+
"resources/craft/dialogue.md",
|
|
414
|
+
"resources/craft/scene-structure.md",
|
|
415
|
+
"resources/craft/character-arc.md",
|
|
416
|
+
"resources/craft/pacing.md",
|
|
417
|
+
"resources/craft/show-not-tell.md"
|
|
418
418
|
)
|
|
419
419
|
|
|
420
420
|
foreach ($file in $craftFiles) {
|
|
@@ -445,10 +445,10 @@ function Check-SkillsAvailable {
|
|
|
445
445
|
$available = @()
|
|
446
446
|
|
|
447
447
|
$skillDirs = @(
|
|
448
|
-
".
|
|
449
|
-
".
|
|
450
|
-
".
|
|
451
|
-
".
|
|
448
|
+
".claude/skills/writing-techniques/dialogue-techniques",
|
|
449
|
+
".claude/skills/writing-techniques/scene-structure",
|
|
450
|
+
".claude/skills/writing-techniques/character-arc",
|
|
451
|
+
".claude/skills/writing-techniques/pacing-control"
|
|
452
452
|
)
|
|
453
453
|
|
|
454
454
|
foreach ($dir in $skillDirs) {
|
|
@@ -7,13 +7,13 @@ $ErrorActionPreference = 'Stop'
|
|
|
7
7
|
function Get-ProjectRoot {
|
|
8
8
|
$current = (Get-Location).Path
|
|
9
9
|
while ($true) {
|
|
10
|
-
$cfg = Join-Path $current "
|
|
10
|
+
$cfg = Join-Path $current "resources/config/config.json"
|
|
11
11
|
if (Test-Path $cfg) { return $current }
|
|
12
12
|
$parent = Split-Path $current -Parent
|
|
13
13
|
if (-not $parent -or $parent -eq $current) { break }
|
|
14
14
|
$current = $parent
|
|
15
15
|
}
|
|
16
|
-
throw "未找到项目根目录(缺少
|
|
16
|
+
throw "未找到项目根目录(缺少 resources/config/config.json)"
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
function Get-CurrentStoryDir {
|
|
@@ -13,7 +13,7 @@ $storyDir = Get-CurrentStoryDir
|
|
|
13
13
|
if (-not $storyDir) { throw "请先完成 /specify 和 /plan,未找到 stories/*/ 目录" }
|
|
14
14
|
|
|
15
15
|
$storyName = Split-Path $storyDir -Leaf
|
|
16
|
-
$specTrack = Join-Path $root "
|
|
16
|
+
$specTrack = Join-Path $root "tracking"
|
|
17
17
|
New-Item -ItemType Directory -Path $specTrack -Force | Out-Null
|
|
18
18
|
|
|
19
19
|
Write-Host "📖 为《$storyName》初始化追踪系统..."
|
|
@@ -86,10 +86,10 @@ Write-Host ""
|
|
|
86
86
|
Write-Host "✅ 追踪系统初始化完成!"
|
|
87
87
|
Write-Host ""
|
|
88
88
|
Write-Host "📊 已创建以下追踪文件:"
|
|
89
|
-
Write-Host " •
|
|
90
|
-
Write-Host " •
|
|
91
|
-
Write-Host " •
|
|
92
|
-
Write-Host " •
|
|
89
|
+
Write-Host " • tracking/plot-tracker.json - 情节追踪"
|
|
90
|
+
Write-Host " • tracking/timeline.json - 时间线管理"
|
|
91
|
+
Write-Host " • tracking/relationships.json - 关系网络"
|
|
92
|
+
Write-Host " • tracking/character-state.json - 角色状态"
|
|
93
93
|
Write-Host ""
|
|
94
94
|
Write-Host "💡 下一步:"
|
|
95
95
|
Write-Host " 1. 使用 /write 开始创作(会自动更新追踪数据)"
|
|
@@ -20,14 +20,14 @@ $ErrorActionPreference = 'Stop'
|
|
|
20
20
|
$root = Get-ProjectRoot
|
|
21
21
|
$storyDir = Get-CurrentStoryDir
|
|
22
22
|
$relPath = $null
|
|
23
|
-
if ($storyDir -and (Test-Path (Join-Path $storyDir '
|
|
24
|
-
$relPath = Join-Path $storyDir '
|
|
25
|
-
} elseif (Test-Path (Join-Path $root '
|
|
26
|
-
$relPath = Join-Path $root '
|
|
23
|
+
if ($storyDir -and (Test-Path (Join-Path $storyDir 'tracking/relationships.json'))) {
|
|
24
|
+
$relPath = Join-Path $storyDir 'tracking/relationships.json'
|
|
25
|
+
} elseif (Test-Path (Join-Path $root 'tracking/relationships.json')) {
|
|
26
|
+
$relPath = Join-Path $root 'tracking/relationships.json'
|
|
27
27
|
} else {
|
|
28
|
-
$tpl1 = Join-Path $root '
|
|
28
|
+
$tpl1 = Join-Path $root 'tracking/relationships.json'
|
|
29
29
|
$tpl2 = Join-Path $root 'templates/tracking/relationships.json'
|
|
30
|
-
$dest = Join-Path $root '
|
|
30
|
+
$dest = Join-Path $root 'tracking/relationships.json'
|
|
31
31
|
New-Item -ItemType Directory -Path (Split-Path $dest -Parent) -Force | Out-Null
|
|
32
32
|
if (Test-Path $tpl1) { Copy-Item $tpl1 $dest -Force; $relPath = $dest }
|
|
33
33
|
elseif (Test-Path $tpl2) { Copy-Item $tpl2 $dest -Force; $relPath = $dest }
|
|
@@ -7,7 +7,7 @@ param(
|
|
|
7
7
|
[switch]$Json
|
|
8
8
|
)
|
|
9
9
|
|
|
10
|
-
$trackingDir = Join-Path
|
|
10
|
+
$trackingDir = Join-Path $PWD 'tracking'
|
|
11
11
|
$backupDir = Join-Path $trackingDir 'backup'
|
|
12
12
|
$summaryDir = Join-Path $trackingDir 'summary'
|
|
13
13
|
$volumesDir = Join-Path $trackingDir 'volumes'
|
|
@@ -33,7 +33,7 @@ Write-Host ""
|
|
|
33
33
|
# 检查前置文档
|
|
34
34
|
$missing = @()
|
|
35
35
|
|
|
36
|
-
if (-not (Test-Path "
|
|
36
|
+
if (-not (Test-Path "resources\memory\constitution.md")) {
|
|
37
37
|
$missing += "宪法文件"
|
|
38
38
|
}
|
|
39
39
|
|
|
@@ -48,7 +48,7 @@ if ($missing.Count -gt 0) {
|
|
|
48
48
|
}
|
|
49
49
|
Write-Host ""
|
|
50
50
|
Write-Host "请先完成:"
|
|
51
|
-
if (-not (Test-Path "
|
|
51
|
+
if (-not (Test-Path "resources\memory\constitution.md")) {
|
|
52
52
|
Write-Host " 1. /constitution - 创建创作宪法"
|
|
53
53
|
}
|
|
54
54
|
if (-not (Test-Path $SpecFile)) {
|
|
@@ -10,8 +10,8 @@ Write-Host "----------------------------------------" -ForegroundColor Gray
|
|
|
10
10
|
Write-Host "无缓存版本:"
|
|
11
11
|
$sw1 = [Diagnostics.Stopwatch]::StartNew()
|
|
12
12
|
for ($i = 1; $i -le 100; $i++) {
|
|
13
|
-
$null = Test-Path "
|
|
14
|
-
$null = Get-Item "
|
|
13
|
+
$null = Test-Path "resources/config/keyword-mappings.json" -PathType Leaf
|
|
14
|
+
$null = Get-Item "resources/config/keyword-mappings.json" -ErrorAction SilentlyContinue
|
|
15
15
|
}
|
|
16
16
|
$sw1.Stop()
|
|
17
17
|
Write-Host " 总时间: $($sw1.ElapsedMilliseconds) ms"
|
|
@@ -19,9 +19,9 @@ Write-Host " 总时间: $($sw1.ElapsedMilliseconds) ms"
|
|
|
19
19
|
. .\templates\scripts\powershell\check-writing-state.ps1
|
|
20
20
|
Write-Host "有缓存版本:"
|
|
21
21
|
$sw2 = [Diagnostics.Stopwatch]::StartNew()
|
|
22
|
-
Preload-FileMTimes -FilePathList @("
|
|
22
|
+
Preload-FileMTimes -FilePathList @("resources/config/keyword-mappings.json")
|
|
23
23
|
for ($i = 1; $i -le 100; $i++) {
|
|
24
|
-
$null = Test-FileExistsCached "
|
|
24
|
+
$null = Test-FileExistsCached "resources/config/keyword-mappings.json"
|
|
25
25
|
}
|
|
26
26
|
$sw2.Stop()
|
|
27
27
|
Write-Host " 总时间: $($sw2.ElapsedMilliseconds) ms"
|
|
@@ -36,17 +36,17 @@ Write-Host "----------------------------------------" -ForegroundColor Gray
|
|
|
36
36
|
# 构造文件列表(与实际脚本一致)
|
|
37
37
|
$ProjectRoot = Get-Location
|
|
38
38
|
$testFileList = @(
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
39
|
+
"resources/craft/dialogue.md"
|
|
40
|
+
"resources/craft/scene-structure.md"
|
|
41
|
+
"resources/craft/character-arc.md"
|
|
42
|
+
"resources/craft/pacing.md"
|
|
43
|
+
"resources/craft/show-not-tell.md"
|
|
44
44
|
"templates/skills/writing-techniques/dialogue-techniques/SKILL.md"
|
|
45
45
|
"templates/skills/writing-techniques/scene-structure/SKILL.md"
|
|
46
46
|
"templates/skills/writing-techniques/character-arc/SKILL.md"
|
|
47
47
|
"templates/skills/writing-techniques/pacing-control/SKILL.md"
|
|
48
48
|
"templates/skills/quality-assurance/consistency-checker/SKILL.md"
|
|
49
|
-
"
|
|
49
|
+
"resources/config/keyword-mappings.json" # 替代 specification.md(测试文件)
|
|
50
50
|
)
|
|
51
51
|
|
|
52
52
|
# 无缓存版本
|
|
@@ -8,8 +8,8 @@ Write-Host ""
|
|
|
8
8
|
|
|
9
9
|
# 测试 1: 存在的文件
|
|
10
10
|
Write-Host "测试 1: 存在的文件" -ForegroundColor Yellow
|
|
11
|
-
Preload-FileMTimes -FilePathList @("
|
|
12
|
-
if (Test-FileExistsCached "
|
|
11
|
+
Preload-FileMTimes -FilePathList @("resources/config/keyword-mappings.json")
|
|
12
|
+
if (Test-FileExistsCached "resources/config/keyword-mappings.json") {
|
|
13
13
|
Write-Host "✅ 存在的文件检测正确" -ForegroundColor Green
|
|
14
14
|
} else {
|
|
15
15
|
Write-Host "❌ 存在的文件检测错误" -ForegroundColor Red
|
|
@@ -28,7 +28,7 @@ if (Test-FileExistsCached "templates/nonexistent-file.md") {
|
|
|
28
28
|
# 测试 3: 检查缓存值
|
|
29
29
|
Write-Host ""
|
|
30
30
|
Write-Host "测试 3: 检查缓存值" -ForegroundColor Yellow
|
|
31
|
-
$mtimeExisting = Get-FileMTimeFromCache "
|
|
31
|
+
$mtimeExisting = Get-FileMTimeFromCache "resources/config/keyword-mappings.json"
|
|
32
32
|
$mtimeMissing = Get-FileMTimeFromCache "templates/nonexistent-file.md"
|
|
33
33
|
|
|
34
34
|
Write-Host "存在文件的 mtime: $mtimeExisting"
|
|
@@ -44,7 +44,7 @@ if ($null -ne $mtimeExisting -and $null -eq $mtimeMissing) {
|
|
|
44
44
|
Write-Host ""
|
|
45
45
|
Write-Host "测试 4: 批量预加载混合文件" -ForegroundColor Yellow
|
|
46
46
|
$mixedFiles = @(
|
|
47
|
-
"
|
|
47
|
+
"resources/config/keyword-mappings.json" # 存在
|
|
48
48
|
"templates/nonexistent1.md" # 不存在
|
|
49
49
|
"templates/nonexistent2.md" # 不存在
|
|
50
50
|
)
|
|
@@ -11,8 +11,8 @@ $ErrorActionPreference = 'Stop'
|
|
|
11
11
|
. "$PSScriptRoot/common.ps1"
|
|
12
12
|
|
|
13
13
|
$root = Get-ProjectRoot
|
|
14
|
-
$cfgProject = Join-Path $root "
|
|
15
|
-
$cfgTemplate = Join-Path $root "
|
|
14
|
+
$cfgProject = Join-Path $root "resources/knowledge/audit-config.json"
|
|
15
|
+
$cfgTemplate = Join-Path $root "resources/knowledge/audit-config.json"
|
|
16
16
|
$cfg = if (Test-Path $cfgProject) { $cfgProject } elseif (Test-Path $cfgTemplate) { $cfgTemplate } else { '' }
|
|
17
17
|
|
|
18
18
|
if (-not (Test-Path $File)) { throw "用法: text-audit.ps1 -File <路径>" }
|
|
@@ -17,7 +17,7 @@ $ErrorActionPreference = 'Stop'
|
|
|
17
17
|
$root = Get-ProjectRoot
|
|
18
18
|
$storyDir = Get-CurrentStoryDir
|
|
19
19
|
$progress = if ($storyDir) { Join-Path $storyDir "progress.json" } else { "" }
|
|
20
|
-
$plotPath = Join-Path $root "
|
|
20
|
+
$plotPath = Join-Path $root "tracking/plot-tracker.json"
|
|
21
21
|
|
|
22
22
|
function Show-BasicReport {
|
|
23
23
|
Write-Host "📊 小说创作综合报告"
|
|
@@ -41,7 +41,7 @@ function Run-DeepCheck {
|
|
|
41
41
|
Write-Host " [P] 执行关系验证..."
|
|
42
42
|
Write-Host " [P] 执行世界观验证..."
|
|
43
43
|
Write-Host "Phase 2: 角色深度验证"
|
|
44
|
-
$rules = Join-Path $root "
|
|
44
|
+
$rules = Join-Path $root "tracking/validation-rules.json"
|
|
45
45
|
if (Test-Path $rules) {
|
|
46
46
|
Write-Host " ✅ 加载验证规则"
|
|
47
47
|
Set-Content -LiteralPath "$env:TEMP/validation-tasks.md" -Encoding UTF8 -Value @"
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
**前置加载**:
|
|
6
6
|
- 加载 Skill:`templates/skills/quality-assurance/hook-checker/SKILL.md`
|
|
7
7
|
- 加载 Expert:`templates/skills/quality-assurance/hook-checker/experts/hook-analyst.md`
|
|
8
|
-
- 加载知识库:`
|
|
8
|
+
- 加载知识库:`resources/craft/hook-design.md`
|
|
9
9
|
- 读取所有已写章节内容
|
|
10
10
|
|
|
11
11
|
**分析流程**:
|
|
@@ -106,6 +106,6 @@
|
|
|
106
106
|
4. 卷末钩子(第 [N] 章)建议提升至 ⭐⭐⭐⭐ 以上
|
|
107
107
|
|
|
108
108
|
📚 参考资源:
|
|
109
|
-
- 钩子设计指南:
|
|
109
|
+
- 钩子设计指南:resources/craft/hook-design.md
|
|
110
110
|
- 六种钩子类型详解和示例
|
|
111
111
|
```
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
**前置加载**:
|
|
6
6
|
- 读取 `specification.md` 中的世界观和角色设定
|
|
7
|
-
- 读取 `
|
|
8
|
-
- 读取 `
|
|
7
|
+
- 读取 `tracking/timeline.json` 中的时间线数据
|
|
8
|
+
- 读取 `tracking/character-state.json` 中的角色能力数据
|
|
9
9
|
- 读取所有已写章节内容
|
|
10
10
|
|
|
11
11
|
**分析维度**:
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
**触发条件**:`$ARGUMENTS` 包含 `--focus=power`
|
|
4
4
|
|
|
5
5
|
**前置加载**:
|
|
6
|
-
- 加载知识库:`
|
|
6
|
+
- 加载知识库:`resources/craft/power-system.md`
|
|
7
7
|
- 读取 `specification.md` 中的力量体系设定(5.x 节或 worldbuilding 相关章节)
|
|
8
8
|
- 读取 `creative-plan.md` 中的升级节奏规划
|
|
9
|
-
- 读取 `
|
|
9
|
+
- 读取 `tracking/character-state.json` 中的角色能力数据
|
|
10
10
|
- 读取所有已写章节内容
|
|
11
11
|
|
|
12
12
|
**分析流程**:
|
|
@@ -143,6 +143,6 @@
|
|
|
143
143
|
💡 首要改进建议:[具体建议]
|
|
144
144
|
|
|
145
145
|
📚 参考资源:
|
|
146
|
-
- 力量体系设计指南:
|
|
146
|
+
- 力量体系设计指南:resources/craft/power-system.md
|
|
147
147
|
- 等级设计、战力平衡、升级节奏详解
|
|
148
148
|
```
|