@co0ontty/wand 4.26.1 → 4.26.2

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.
@@ -130,7 +130,7 @@ export function registerSettingsRoutes(app, deps) {
130
130
  });
131
131
  res.json({ inheritEnv, total: entries.length, reveal, entries });
132
132
  });
133
- app.post("/api/settings/system-ai/import", requireAdmin, (req, res) => {
133
+ app.post("/api/settings/system-ai/import", requireAdmin, (_req, res) => {
134
134
  const imported = discoverCliSystemAiConfigs();
135
135
  if (!imported.length) {
136
136
  res.status(404).json({ error: "没有在已配置的 CLI 文件中找到可直连的 API 地址、密钥和模型。" });
@@ -73,7 +73,7 @@ export function buildLayout() {
73
73
  label: { fg: "cyan", bold: true },
74
74
  },
75
75
  });
76
- const hint = blessed.box({
76
+ blessed.box({
77
77
  parent: screen,
78
78
  bottom: 0,
79
79
  left: 0,
@@ -151,7 +151,6 @@ export function buildLayout() {
151
151
  bg: "black",
152
152
  },
153
153
  });
154
- let servicePanelHandlers = null;
155
154
  let servicePanelView = null;
156
155
  const servicePanelKeys = ["s", "t", "r", "i", "u", "l", "R", "escape", "q"];
157
156
  // 让 sessions 默认获得焦点以接收键盘事件
@@ -314,7 +313,6 @@ export function buildLayout() {
314
313
  scheduleRender();
315
314
  }
316
315
  function openServicePanel(handlers, initial) {
317
- servicePanelHandlers = handlers;
318
316
  servicePanelView = initial;
319
317
  renderServicePanel();
320
318
  servicePanel.show();
@@ -340,7 +338,6 @@ export function buildLayout() {
340
338
  }
341
339
  function closeServicePanel() {
342
340
  servicePanel.hide();
343
- servicePanelHandlers = null;
344
341
  sessions.focus();
345
342
  scheduleRender();
346
343
  }