@hirohsu/user-web-feedback 2.8.22 → 2.8.23

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
@@ -93642,7 +93642,7 @@ var WebServer = class {
93642
93642
  */
93643
93643
  setupRoutes() {
93644
93644
  const staticPath = this.getStaticAssetsPath();
93645
- this.app.use(import_express.default.static(staticPath));
93645
+ this.app.use(import_express.default.static(staticPath, { etag: false, lastModified: true, maxAge: 0 }));
93646
93646
  this.app.get("/dashboard", (req, res) => {
93647
93647
  res.sendFile("dashboard.html", { root: staticPath });
93648
93648
  });
package/dist/index.cjs CHANGED
@@ -90654,7 +90654,7 @@ var WebServer = class {
90654
90654
  */
90655
90655
  setupRoutes() {
90656
90656
  const staticPath = this.getStaticAssetsPath();
90657
- this.app.use(import_express.default.static(staticPath));
90657
+ this.app.use(import_express.default.static(staticPath, { etag: false, lastModified: true, maxAge: 0 }));
90658
90658
  this.app.get("/dashboard", (req, res) => {
90659
90659
  res.sendFile("dashboard.html", { root: staticPath });
90660
90660
  });
@@ -111,6 +111,13 @@ export function clearSubmissionInputs() {
111
111
  export async function generateAIReply() {
112
112
  const workSummary = getWorkSummary();
113
113
  if (!workSummary) {
114
+ showConversationPanel();
115
+ updateConversationTitle("AI 回覆");
116
+ addConversationEntry(ConversationEntryType.ERROR, "目前沒有活躍的 AI 工作匯報。\n\n可能原因:\n1. 尚未有 AI 代理透過 MCP 發送工作匯報\n2. 會話已過期或尚未建立\n3. 伺服器剛重啟,尚未收到任何匯報", {
117
+ title: "無法取得 AI 訊息",
118
+ collapsed: false,
119
+ timestamp: Date.now(),
120
+ });
114
121
  showToast("error", "錯誤", "無法取得 AI 訊息");
115
122
  return;
116
123
  }
@@ -814,6 +821,13 @@ function buildLocalPromptPreview(workSummary, userContext, toolResults) {
814
821
  export async function generateAIReplyWithTools() {
815
822
  const workSummary = getWorkSummary();
816
823
  if (!workSummary) {
824
+ showConversationPanel();
825
+ updateConversationTitle("AI 回覆");
826
+ addConversationEntry(ConversationEntryType.ERROR, "目前沒有活躍的 AI 工作匯報。\n\n可能原因:\n1. 尚未有 AI 代理透過 MCP 發送工作匯報\n2. 會話已過期或尚未建立\n3. 伺服器剛重啟,尚未收到任何匯報", {
827
+ title: "無法取得 AI 訊息",
828
+ collapsed: false,
829
+ timestamp: Date.now(),
830
+ });
817
831
  showToast("error", "錯誤", "無法取得 AI 訊息");
818
832
  return;
819
833
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hirohsu/user-web-feedback",
3
- "version": "2.8.22",
3
+ "version": "2.8.23",
4
4
  "description": "基於Node.js的MCP回饋收集器 - 支持AI工作彙報和用戶回饋收集",
5
5
  "main": "dist/index.cjs",
6
6
  "bin": {