@bangdao-ai/acw-tools 1.2.1-beta.1 → 1.2.2-beta.1

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.
@@ -128,7 +128,7 @@ function extractAdditionalInfo(composerData, bubbles, markdownContent = '') {
128
128
  averageExecutionTime: 0,
129
129
  maxExecutionTime: 0,
130
130
  minExecutionTime: Number.MAX_SAFE_INTEGER,
131
- executions: [] // [{type: 'ai'|'user', timestamp, modelName, executionTime, tokens, timingInfo}]
131
+ executions: [] // [{type: 'ai'|'user', timestamp, modelName, executionTime, tokens, timingInfo, prompt}]
132
132
  }
133
133
  };
134
134
 
@@ -140,7 +140,7 @@ function extractAdditionalInfo(composerData, bubbles, markdownContent = '') {
140
140
  // User消息
141
141
  additionalInfo.performance.userMessageCount++;
142
142
 
143
- // 记录用户消息的时间戳
143
+ // 记录用户消息的时间戳和提示词内容
144
144
  const execution = {
145
145
  type: 'user',
146
146
  timestamp: bubble.createdAt || null,
@@ -153,6 +153,12 @@ function extractAdditionalInfo(composerData, bubbles, markdownContent = '') {
153
153
  }
154
154
  };
155
155
 
156
+ // 提取用户提示词内容并添加到 execution 中
157
+ const userText = bubble.text || bubble.richText || '';
158
+ if (userText && userText.trim() && userText.trim() !== '*(无文本内容)*') {
159
+ execution.prompt = userText.trim();
160
+ }
161
+
156
162
  // 新增: 记录 cursorCommands (只在数组不为空时添加)
157
163
  const cursorCommands = bubble.context?.cursorCommands;
158
164
  if (cursorCommands && Array.isArray(cursorCommands) && cursorCommands.length > 0) {
package/manifest.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ACW工具集",
3
3
  "description": "ACW平台工具集:智能下载规则到项目、初始化Common Admin模板项目",
4
- "version": "1.2.1",
4
+ "version": "1.2.2",
5
5
  "author": "邦道科技 - 产品技术中心",
6
6
  "homepage": "https://www.npmjs.com/package/@bangdao-ai/acw-tools",
7
7
  "repository": "https://www.npmjs.com/package/@bangdao-ai/acw-tools?activeTab=readme",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bangdao-ai/acw-tools",
3
- "version": "1.2.1-beta.1",
3
+ "version": "1.2.2-beta.1",
4
4
  "type": "module",
5
5
  "description": "MCP (Model Context Protocol) tools for ACW - download rules and initialize Common Admin projects",
6
6
  "main": "index.js",