feat(agents,core,config): 写章 craft 教条块 + genre-aware 片段 + 开篇黄金三章特判
- 新增 write_craft.md 品类无关写章 craft 内核(网文语域/show-don't-tell/对话 voice/ 反注水/结构性文字质感,灵活原则非穷举清单)+ load_craft_doctrine()(import 期读盘, 不入 SPECS/金标准) - build_write_request 把 craft 教条作为最前的 cache=True system 块注入(craft→stable_core, 守缓存前缀 #9,tier=writer 不写 model) - 新增 packages/config GENRE_CRAFT 题材片段表,assemble 按 project.genre 注入 stable_core; ProjectSpecView + SqlProjectSpecRepo 透传 genre - 开篇前 3 章在 volatile 注入黄金三章提示(含章号→每章易变,不进缓存前缀) - 修正 toolbox_registry 注释:11 条 → 15 条(legacy 3 + 新 8 + Scope B 4)
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from .prompt_loader import PromptNotFoundError, load_prompt
|
||||
from .prompt_loader import PromptNotFoundError, load_craft_doctrine, load_prompt
|
||||
from .schema_catalog import SCHEMA_CATALOG, output_schema_for
|
||||
from .schemas import (
|
||||
Blurb,
|
||||
@@ -132,6 +132,7 @@ __all__ = [
|
||||
"foreshadow_spec",
|
||||
"glossary_spec",
|
||||
"golden_finger_spec",
|
||||
"load_craft_doctrine",
|
||||
"load_prompt",
|
||||
"name_spec",
|
||||
"opening_spec",
|
||||
|
||||
Reference in New Issue
Block a user