agent-loft 0.2.124 → 0.2.125

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-loft",
3
- "version": "0.2.124",
3
+ "version": "0.2.125",
4
4
  "type": "module",
5
5
  "description": "多个 agent 的工作台:把本机 Claude Code / Codex 放到一处统一管理,用飞书和 Web 页面随时驱动——会话、审批、模型切换都共用",
6
6
  "keywords": [
@@ -7,7 +7,7 @@
7
7
  padding-left: 12px;
8
8
  }
9
9
 
10
- .topbar .menu-btn,
10
+ .menu-btn.icon-btn,
11
11
  .top-actions {
12
12
  border-radius: 999px;
13
13
  background: var(--bg-input);
@@ -15,13 +15,13 @@
15
15
  }
16
16
 
17
17
  @media (prefers-color-scheme: dark) {
18
- .topbar .menu-btn,
18
+ .menu-btn.icon-btn,
19
19
  .top-actions {
20
20
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24), 0 2px 5px rgba(0, 0, 0, 0.12);
21
21
  }
22
22
  }
23
23
 
24
- .topbar .menu-btn {
24
+ .menu-btn.icon-btn {
25
25
  width: 44px;
26
26
  height: 44px;
27
27
  color: var(--fg);
@@ -127,7 +127,7 @@
127
127
  }
128
128
  }
129
129
 
130
- .topbar .menu-btn {
130
+ .menu-btn.icon-btn {
131
131
  display: inline-grid;
132
132
  }
133
133
 
@@ -126,7 +126,7 @@
126
126
  }
127
127
  }
128
128
 
129
- .topbar .menu-btn {
129
+ .menu-btn.icon-btn {
130
130
  display: none;
131
131
  }
132
132
 
@@ -2,7 +2,7 @@ import { fill, h, icon } from "../lib/dom.js";
2
2
  import { api } from "../lib/api.js";
3
3
  import { contentHash, isAdmin, ui } from "../state.js";
4
4
  import { closeMenu, confirmDialog } from "../lib/overlay.js";
5
- import { closeSide, renderSidebar } from "../views/sidebar.js";
5
+ import { closeSide, openSide, renderSidebar } from "../views/sidebar.js";
6
6
  import { syncDesktopMenu } from "../views/topbar.js";
7
7
  import { WS } from "../lib/ws.js";
8
8
  import { hasDirty, markDirty } from "./common.js";
@@ -64,9 +64,12 @@ export async function openSettings(tab) {
64
64
  if (previousFocus?.isConnected) previousFocus.focus({ preventScroll: true });
65
65
  return true;
66
66
  };
67
- const back = h("button", { class: "btn", onclick: close }, icon("back"), "返回");
67
+ const title = h("h1", { tabindex: "-1" }, "设置");
68
68
  const pane = h("main", { class: "settings-view", "aria-label": "设置" },
69
- h("header", { class: "settings-header" }, back, h("h1", {}, "设置")),
69
+ h("header", { class: "settings-header" },
70
+ h("button", { class: "icon-btn menu-btn", onclick: openSide, title: "会话列表" }, icon("menu")),
71
+ title,
72
+ ),
70
73
  h("div", { class: "settings" }, nav, panel),
71
74
  );
72
75
  const settings = { close, isDirty, selectTab: (name) => { tab = name; } };
@@ -77,7 +80,7 @@ export async function openSettings(tab) {
77
80
  syncDesktopMenu();
78
81
  renderSidebar();
79
82
  WS.presence();
80
- back.focus({ preventScroll: true });
83
+ title.focus({ preventScroll: true });
81
84
 
82
85
  // 带 data-form 的表单里改了东西:标成没保存(common.js 的 saveButton)
83
86
  const onEdit = (e) => {