@hirohsu/user-web-feedback 2.8.19 → 2.8.21

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/cli.cjs CHANGED
@@ -78231,11 +78231,11 @@ var init_prompt_aggregator = __esm({
78231
78231
  init_logger();
78232
78232
  COMPONENT_NAME_MAP = {
78233
78233
  "system_prompt": "SystemPrompt",
78234
- "mcp_tools": "MCPToolsPrompt",
78234
+ "mcp_tools": "MCPTools",
78235
78235
  "mcp_tools_detailed": "MCPToolsDetailed",
78236
78236
  "user_context": "UserContext",
78237
78237
  "tool_results": "ToolResults",
78238
- "closing": "ClosingPrompt"
78238
+ "closing": "Closing"
78239
78239
  };
78240
78240
  PromptAggregator = class _PromptAggregator {
78241
78241
  static instance;
@@ -78274,9 +78274,10 @@ var init_prompt_aggregator = __esm({
78274
78274
  const configs = this.getPromptConfigsWithDefaults();
78275
78275
  const isFirstCall = context.isFirstCall !== false;
78276
78276
  const configuredComponents = this.components.map((component) => {
78277
- const configId = Object.entries(COMPONENT_NAME_MAP).find(
78277
+ const configEntry = Object.entries(COMPONENT_NAME_MAP).find(
78278
78278
  ([, name]) => name === component.getName()
78279
- )?.[0];
78279
+ );
78280
+ const configId = configEntry?.[0];
78280
78281
  const config2 = configId ? configs.find((c) => c.id === configId) : null;
78281
78282
  const order = config2 ? isFirstCall ? config2.firstOrder : config2.secondOrder : component.getOrder();
78282
78283
  const enabled = config2 ? config2.enabled : true;
package/dist/index.cjs CHANGED
@@ -75118,11 +75118,11 @@ var init_prompt_aggregator = __esm({
75118
75118
  init_logger();
75119
75119
  COMPONENT_NAME_MAP = {
75120
75120
  "system_prompt": "SystemPrompt",
75121
- "mcp_tools": "MCPToolsPrompt",
75121
+ "mcp_tools": "MCPTools",
75122
75122
  "mcp_tools_detailed": "MCPToolsDetailed",
75123
75123
  "user_context": "UserContext",
75124
75124
  "tool_results": "ToolResults",
75125
- "closing": "ClosingPrompt"
75125
+ "closing": "Closing"
75126
75126
  };
75127
75127
  PromptAggregator = class _PromptAggregator {
75128
75128
  static instance;
@@ -75161,9 +75161,10 @@ var init_prompt_aggregator = __esm({
75161
75161
  const configs = this.getPromptConfigsWithDefaults();
75162
75162
  const isFirstCall = context.isFirstCall !== false;
75163
75163
  const configuredComponents = this.components.map((component) => {
75164
- const configId = Object.entries(COMPONENT_NAME_MAP).find(
75164
+ const configEntry = Object.entries(COMPONENT_NAME_MAP).find(
75165
75165
  ([, name]) => name === component.getName()
75166
- )?.[0];
75166
+ );
75167
+ const configId = configEntry?.[0];
75167
75168
  const config2 = configId ? configs.find((c) => c.id === configId) : null;
75168
75169
  const order = config2 ? isFirstCall ? config2.firstOrder : config2.secondOrder : component.getOrder();
75169
75170
  const enabled = config2 ? config2.enabled : true;
@@ -681,6 +681,7 @@
681
681
  showToast("提示詞配置已儲存", "success");
682
682
  if (data.prompts) {
683
683
  promptConfigs = data.prompts;
684
+ renderPromptConfigs();
684
685
  }
685
686
  } else {
686
687
  showToast(`儲存失敗: ${data.error || "未知錯誤"}`, "error");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hirohsu/user-web-feedback",
3
- "version": "2.8.19",
3
+ "version": "2.8.21",
4
4
  "description": "基於Node.js的MCP回饋收集器 - 支持AI工作彙報和用戶回饋收集",
5
5
  "main": "dist/index.cjs",
6
6
  "bin": {