@whispering233/ai-editor-shared 0.0.67 → 0.0.68
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/dist/constants/tool.d.ts
CHANGED
|
@@ -30,7 +30,7 @@ export declare const WORKSPACE_TOOL_SCOPES: Record<WorkspaceKind, readonly ToolS
|
|
|
30
30
|
*/
|
|
31
31
|
export declare function isToolScopeRegistered(kind: WorkspaceKind, scope: ToolScope): boolean;
|
|
32
32
|
/** 查询类工具(自动,「查询类」):默认过滤软删对象 */
|
|
33
|
-
export declare const QUERY_TOOLS: readonly ["get_entity", "search_entities", "search_references", "query_relationships", "get_outline", "get_outline_path", "get_deduction_marks", "get_chapter_text", "compute_state", "get_delta_history", "get_entity_summary"];
|
|
33
|
+
export declare const QUERY_TOOLS: readonly ["get_entity", "search_entities", "search_references", "query_relationships", "get_outline", "get_outline_path", "search_outline", "get_deduction_marks", "get_chapter_text", "search_manuscript", "compute_state", "get_delta_history", "get_entity_summary"];
|
|
34
34
|
/** 分析类工具(自动,「分析类」):结构化分析,不操作数据 */
|
|
35
35
|
export declare const ANALYSIS_TOOLS: readonly ["analyze_consistency", "detect_conflicts", "trace_plot_paths", "find_orphan_elements", "suggest_connections"];
|
|
36
36
|
/** 伏笔分析工具(自动,「工具扩展」分析类) */
|
|
@@ -48,8 +48,8 @@ export declare const PROPOSAL_TOOLS: readonly ["propose_create_entity", "propose
|
|
|
48
48
|
* reorder_timepoints 为批量重排(G2:按新序事务内重写 sort_order 0..n-1,取代 F9 reorder_events)
|
|
49
49
|
*/
|
|
50
50
|
export declare const EXECUTOR_TOOLS: readonly ["create_entity", "update_entity", "delete_entity", "add_relation", "remove_relation", "add_delta", "create_outline_node", "move_node", "delete_node", "advance_hook", "resolve_hook", "abandon_hook", "reorder_timepoints"];
|
|
51
|
-
/** 自动级工具(查询
|
|
52
|
-
export declare const AUTO_TOOLS: readonly ["get_entity", "search_entities", "search_references", "query_relationships", "get_outline", "get_outline_path", "get_deduction_marks", "get_chapter_text", "compute_state", "get_delta_history", "get_entity_summary", "analyze_consistency", "detect_conflicts", "trace_plot_paths", "find_orphan_elements", "suggest_connections", "analyze_hook_health", "trace_hook_lifecycle", "suggest_hook_payoff", "find_hook_opportunities", "detect_hook_conflicts"];
|
|
51
|
+
/** 自动级工具(查询 13 + 分析 5 + 伏笔分析 5,共 23 个) */
|
|
52
|
+
export declare const AUTO_TOOLS: readonly ["get_entity", "search_entities", "search_references", "query_relationships", "get_outline", "get_outline_path", "search_outline", "get_deduction_marks", "get_chapter_text", "search_manuscript", "compute_state", "get_delta_history", "get_entity_summary", "analyze_consistency", "detect_conflicts", "trace_plot_paths", "find_orphan_elements", "suggest_connections", "analyze_hook_health", "trace_hook_lifecycle", "suggest_hook_payoff", "find_hook_opportunities", "detect_hook_conflicts"];
|
|
53
53
|
/**
|
|
54
54
|
* 通用工具(自动级,`scope = "common"`,共 2 个):**两种工作区都注册**——
|
|
55
55
|
* 外部检索 `web_search` 与网页抓取 `fetch_content`(联网能力,与工作区语义无关,
|
|
@@ -63,8 +63,8 @@ export declare const COMMON_TOOLS: readonly ["web_search", "fetch_content"];
|
|
|
63
63
|
* 工具面**不存在任何写用户稿的工具**——用户的稿只有用户能写(结构性边界)。
|
|
64
64
|
*/
|
|
65
65
|
export declare const PRACTICE_TOOLS: readonly ["get_practice_sample", "get_practice_draft", "get_free_draft", "get_style_notes", "submit_style_feedback", "submit_free_feedback", "submit_practice_topic"];
|
|
66
|
-
/** 全部工具名(自动
|
|
67
|
-
export declare const TOOL_NAMES: readonly ["get_entity", "search_entities", "search_references", "query_relationships", "get_outline", "get_outline_path", "get_deduction_marks", "get_chapter_text", "compute_state", "get_delta_history", "get_entity_summary", "analyze_consistency", "detect_conflicts", "trace_plot_paths", "find_orphan_elements", "suggest_connections", "analyze_hook_health", "trace_hook_lifecycle", "suggest_hook_payoff", "find_hook_opportunities", "detect_hook_conflicts", "web_search", "fetch_content", "get_practice_sample", "get_practice_draft", "get_free_draft", "get_style_notes", "submit_style_feedback", "submit_free_feedback", "submit_practice_topic", "propose_create_entity", "propose_update_entity", "propose_delete_entity", "propose_add_relation", "propose_remove_relation", "propose_add_delta", "propose_outline_node", "propose_move_node", "propose_delete_node", "propose_update_outline_node", "propose_create_hook", "propose_update_hook", "propose_advance_hook", "propose_resolve_hook", "propose_abandon_hook", "propose_reorder_timepoints", "propose_create_reference", "create_entity", "update_entity", "delete_entity", "add_relation", "remove_relation", "add_delta", "create_outline_node", "move_node", "delete_node", "advance_hook", "resolve_hook", "abandon_hook", "reorder_timepoints"];
|
|
66
|
+
/** 全部工具名(自动 23 + 通用 2 + 练习 7 + 提案 17 + 执行 13 = 62 个) */
|
|
67
|
+
export declare const TOOL_NAMES: readonly ["get_entity", "search_entities", "search_references", "query_relationships", "get_outline", "get_outline_path", "search_outline", "get_deduction_marks", "get_chapter_text", "search_manuscript", "compute_state", "get_delta_history", "get_entity_summary", "analyze_consistency", "detect_conflicts", "trace_plot_paths", "find_orphan_elements", "suggest_connections", "analyze_hook_health", "trace_hook_lifecycle", "suggest_hook_payoff", "find_hook_opportunities", "detect_hook_conflicts", "web_search", "fetch_content", "get_practice_sample", "get_practice_draft", "get_free_draft", "get_style_notes", "submit_style_feedback", "submit_free_feedback", "submit_practice_topic", "propose_create_entity", "propose_update_entity", "propose_delete_entity", "propose_add_relation", "propose_remove_relation", "propose_add_delta", "propose_outline_node", "propose_move_node", "propose_delete_node", "propose_update_outline_node", "propose_create_hook", "propose_update_hook", "propose_advance_hook", "propose_resolve_hook", "propose_abandon_hook", "propose_reorder_timepoints", "propose_create_reference", "create_entity", "update_entity", "delete_entity", "add_relation", "remove_relation", "add_delta", "create_outline_node", "move_node", "delete_node", "advance_hook", "resolve_hook", "abandon_hook", "reorder_timepoints"];
|
|
68
68
|
/** 工具名(从 TOOL_NAMES 派生) */
|
|
69
69
|
export type ToolName = (typeof TOOL_NAMES)[number];
|
|
70
70
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool.d.ts","sourceRoot":"","sources":["../../src/constants/tool.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEpD;;;GAGG;AACH,eAAO,MAAM,eAAe;;;CAGlB,CAAC;AAEX,aAAa;AACb,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC;AAEpF;;;;GAIG;AACH,eAAO,MAAM,WAAW,0CAA2C,CAAC;AAEpE,YAAY;AACZ,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;AAErD;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,aAAa,EAAE,SAAS,SAAS,EAAE,CAG7E,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,SAAS,GAAG,OAAO,CAMpF;AAED,+BAA+B;AAC/B,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"tool.d.ts","sourceRoot":"","sources":["../../src/constants/tool.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEpD;;;GAGG;AACH,eAAO,MAAM,eAAe;;;CAGlB,CAAC;AAEX,aAAa;AACb,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC;AAEpF;;;;GAIG;AACH,eAAO,MAAM,WAAW,0CAA2C,CAAC;AAEpE,YAAY;AACZ,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;AAErD;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,aAAa,EAAE,SAAS,SAAS,EAAE,CAG7E,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,SAAS,GAAG,OAAO,CAMpF;AAED,+BAA+B;AAC/B,eAAO,MAAM,WAAW,yQAcd,CAAC;AAEX,kCAAkC;AAClC,eAAO,MAAM,cAAc,yHAMjB,CAAC;AAEX,2BAA2B;AAC3B,eAAO,MAAM,mBAAmB,qIAMtB,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,cAAc,ibAkBjB,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,cAAc,uOAcjB,CAAC;AAEX,0CAA0C;AAC1C,eAAO,MAAM,UAAU,ifAAuE,CAAC;AAE/F;;;;GAIG;AACH,eAAO,MAAM,YAAY,0CAGf,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,cAAc,uKAQjB,CAAC;AAEX,wDAAwD;AACxD,eAAO,MAAM,UAAU,8yCAMb,CAAC;AAEX,2BAA2B;AAC3B,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;AAEnD;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,qFAMK,CAAC"}
|
package/dist/constants/tool.js
CHANGED
|
@@ -42,8 +42,10 @@ export const QUERY_TOOLS = [
|
|
|
42
42
|
"query_relationships",
|
|
43
43
|
"get_outline",
|
|
44
44
|
"get_outline_path",
|
|
45
|
+
"search_outline", // C2:大纲结构化检索(关键词 / 状态 / 标签 / 卷)
|
|
45
46
|
"get_deduction_marks", // 推演节点标记(剧情推演)
|
|
46
47
|
"get_chapter_text", // 章正文只读(卡 12.9:分页拉取 content_text 投影)
|
|
48
|
+
"search_manuscript", // 正文检索(跨章 LIKE 检索,回命中章 + 片段;千章书的导航入口)
|
|
47
49
|
"compute_state",
|
|
48
50
|
"get_delta_history",
|
|
49
51
|
"get_entity_summary",
|
|
@@ -109,7 +111,7 @@ export const EXECUTOR_TOOLS = [
|
|
|
109
111
|
"abandon_hook",
|
|
110
112
|
"reorder_timepoints",
|
|
111
113
|
];
|
|
112
|
-
/** 自动级工具(查询
|
|
114
|
+
/** 自动级工具(查询 13 + 分析 5 + 伏笔分析 5,共 23 个) */
|
|
113
115
|
export const AUTO_TOOLS = [...QUERY_TOOLS, ...ANALYSIS_TOOLS, ...HOOK_ANALYSIS_TOOLS];
|
|
114
116
|
/**
|
|
115
117
|
* 通用工具(自动级,`scope = "common"`,共 2 个):**两种工作区都注册**——
|
|
@@ -135,7 +137,7 @@ export const PRACTICE_TOOLS = [
|
|
|
135
137
|
"submit_free_feedback", // 提交自由练习点评卡(只写 practice_free_pieces.feedback)
|
|
136
138
|
"submit_practice_topic", // AI 出题(只写 practice_free_pieces.topic / brief)
|
|
137
139
|
];
|
|
138
|
-
/** 全部工具名(自动
|
|
140
|
+
/** 全部工具名(自动 23 + 通用 2 + 练习 7 + 提案 17 + 执行 13 = 62 个) */
|
|
139
141
|
export const TOOL_NAMES = [
|
|
140
142
|
...AUTO_TOOLS,
|
|
141
143
|
...COMMON_TOOLS,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool.js","sourceRoot":"","sources":["../../src/constants/tool.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAIhC;;;GAGG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,UAAU;CACZ,CAAC;AAKX;;;;GAIG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,OAAO,EAAE,UAAU,EAAE,QAAQ,CAAU,CAAC;AAKpE;;;;GAIG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAgD;IAChF,KAAK,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC;IAC1B,QAAQ,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC;CACjC,CAAC;AAEF;;;;GAIG;AACH,MAAM,UAAU,qBAAqB,CAAC,IAAmB,EAAE,KAAgB;IACzE,MAAM,OAAO,GAAqC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