You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: __tests__/tools/extract_antv_topic.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "extract_antv_topic",
3
-
"description": "AntV Intelligent Assistant Preprocessing Tool - Specifically designed to handle any user queries related to AntV visualization libraries.\n This tool is the first step in processing AntV technology stack issues, responsible for intelligently identifying, parsing, and structuring user visualization requirements.\n\n**MANDATORY: Must be called for ANY new AntV-related queries, including simple questions. Always precedes query_antv_document tool.**\n\nWhen to use this tool:\n- **AntV-related queries**: Questions about g2/g6/l7/x6/f2/s2/g/ava/adc libraries.\n- **Visualization tasks**: Creating charts, graphs, maps, or other visualizations.\n- **Problem solving**: Debugging errors, performance issues, or compatibility problems.\n- **Learning & implementation**: Understanding concepts or requesting code examples.\n\nKey features:\n- **Smart Library Detection**: Scans installed AntV libraries and recommends the best fit based on query and project dependencies.\n- **Topic & Intent Extraction**: Intelligently extracts technical topics and determines user intent (learn/implement/solve).\n- **Task Complexity Handling**: Detects complex tasks and decomposes them into manageable subtasks.\n- **Seamless Integration**: Prepares structured data for the query_antv_document tool to provide precise solutions.",
3
+
"description": "AntV Intelligent Assistant Preprocessing Tool - Specifically designed to handle any user queries related to AntV visualization libraries.\n This tool is the first step in processing AntV technology stack issues, responsible for intelligently identifying, parsing, and structuring user visualization requirements.\n\n**MANDATORY: Must be called for ANY new AntV-related queries, including simple questions. Always precedes query_antv_document tool.**\n\nWhen to use this tool:\n- **AntV-related queries**: Questions about g2/g6/l7/x6/f2/s2/g/ava/adc libraries.\n- **Visualization tasks**: Creating charts, graphs, maps, or other visualizations.\n- **Problem solving**: Debugging errors, performance issues, or compatibility problems.\n- **Learning & implementation**: Understanding concepts or requesting code examples.\n\nKey features:\n- **Smart Library Detection**: Scans installed AntV libraries and recommends the best fit based on query and project dependencies.\n- **Topic & Intent Extraction**: Intelligently extracts technical topics and determines user intent (implement/solve).\n- **Task Complexity Handling**: Detects complex tasks and decomposes them into manageable subtasks.\n- **Seamless Integration**: Prepares structured data for the query_antv_document tool to provide precise solutions.",
- Use F2's components directly in JSX. If TypeScript errors occur, add @ts-ignore above the component
74
-
- Code examples are for Node environment. For React framework, import ReactCanvas from '@antv/f2-react' and use <ReactCanvas/> component instead of <Canvas/> component
73
+
- Use F2's components directly in JSX. If TypeScript errors occur, add @ts-ignore above the component.
74
+
- Code examples are for Node environment. For React framework, import ReactCanvas from '@antv/f2-react' and use <ReactCanvas/> component instead of <Canvas/> component.
75
75
- In F2's canvas coordinate system, Y coordinates increase from top to bottom, and X coordinates increase from left to right by default. Therefore, all values for offsetY, offsetX, x, y and similar properties are relative to the top-left corner of the canvas.
76
+
- **CRITICAL: The top-level scope does not support \`await\`. You MUST handle asynchronous operations like \`canvas.render()\` according to the following logic:**
77
+
- **If \`canvas.render()\` is the final action and nothing follows it, you MUST remove the \`await\` keyword.**
78
+
- **WRONG:** \`await canvas.render();\`
79
+
- **CORRECT:** \`canvas.render();\`
80
+
- **If there is any code that must run *after* \`canvas.render()\` completes, you MUST wrap the \`await\` and all subsequent code in an \`async\` IIFE (Immediately Invoked Function Expression).**
81
+
- **WRONG:**
82
+
\`\`\`javascript
83
+
await canvas.render();
84
+
console.log('Render complete.');
85
+
\`\`\`
86
+
- **CORRECT:**
87
+
\`\`\`javascript
88
+
(async () => {
89
+
await canvas.render();
90
+
console.log('Render complete.');
91
+
})();
92
+
\`\`\`
76
93
</convention>
77
94
`,
78
95
},
79
96
s2: {
80
97
id: 's2'asAntVLibrary,
81
98
name: 'S2',
82
99
description: 'Table analysis, spreadsheet-like interactions, data grids',
83
-
keywords: '',
84
-
codeStyle: '',
100
+
keywords: `
101
+
<components>
102
+
- 基础透视表 (Basic Pivot Table)
103
+
- 自定义单元格 (Custom Cell)
104
+
- 表组件 (Sheet Component)
105
+
- 字段标记 (Field Marking)
106
+
- 多行文本 (Multi-line Text)
107
+
- 分页 (Pagination)
108
+
- 排序 (Sorting)
109
+
- 透视表模式 (Pivot Mode)
110
+
- 明细表模式 (Table Mode)
111
+
- 下钻功能 (Drill Down)
112
+
- 导出功能 (Export)
113
+
- 分页组件 (Pagination Component)
114
+
- 表格组件 (Sheet Component)
115
+
- 合并单元格 (Merged Cell)
116
+
- 迷你图表 (Mini Chart)
117
+
- 冻结 (Frozen)
118
+
- 头部操作图标 (Header Action Icon)
119
+
- 复制导出 (Copy Export)
120
+
- 单元格对齐 (Cell Alignment)
121
+
- 获取单元格数据 (Get Cell Data)
122
+
- 获取实例 (Get Instance)
123
+
- 编辑表 (Editable Table)
124
+
- 趋势分析表 (Strategy Table)
125
+
- 趋势分析 (Strategy Analysis)
126
+
- 透视表 (Pivot Table)
127
+
- 明细表 (Table)
128
+
- 树状结构 (Tree Structure)
129
+
- 展开/折叠 (Expand/Collapse)
130
+
- 刷选 (Brush Selection)
131
+
- 单选 (Single Selection)
132
+
- 多选 (Multiple Selection)
133
+
- 行选/列选 (Row/Column Selection)
134
+
- 区间选择 (Range Selection)
135
+
- 悬停高亮 (Hover Highlight)
136
+
- 复制功能 (Copy Function)
137
+
- 隐藏列头 (Hide Column Header)
138
+
- 链接跳转 (Link Jump)
139
+
- 事件处理 (Event Handling)
140
+
- 单元格渲染 (Cell Rendering)
141
+
- 透视图表 (Pivot Chart)
142
+
</components>
143
+
`,
144
+
codeStyle: `
145
+
<convention>
146
+
- **Default to using the core \`@antv/s2\` package** for simple pivot tables or tables without complex interactions. If the user's request can be fulfilled with a basic \`PivotSheet\` or \`TableSheet\` instance, do not use a framework-specific wrapper.
147
+
- **You MUST use the \`@antv/s2-react\` package and its \`SheetComponent\`** if the user's request involves advanced features such as building a trend analysis table (e.g., with in-cell mini charts), an editable table, or requires pre-built analysis components like \`Switch\` or \`Export\`.
148
+
- **The \`@antv/s2-vue\` library is unmaintained and MUST NOT be used.** For Vue.js implementations, you MUST generate code that manually wraps the core \`@antv/s2\` package within a standard Vue component.
0 commit comments