@xcanwin/manyoyo 6.1.1 → 6.2.0

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.
@@ -17,7 +17,6 @@
17
17
  <div class="sidebar-top">
18
18
  <div class="brand-wrap">
19
19
  <div class="brand">MANYOYO Web</div>
20
- <div class="brand-sub">Container Session Console</div>
21
20
  </div>
22
21
  <div class="sidebar-actions">
23
22
  <button type="button" id="openConfigBtn" class="secondary">配置</button>
@@ -39,7 +38,7 @@
39
38
  <main class="main">
40
39
  <header class="header">
41
40
  <div class="header-main">
42
- <div class="header-main-top">
41
+ <div class="workbench-tabs" id="workbenchTabs" aria-label="工作台视图">
43
42
  <button
44
43
  type="button"
45
44
  id="mobileSessionToggle"
@@ -47,33 +46,26 @@
47
46
  aria-expanded="false"
48
47
  aria-controls="sessionList"
49
48
  >会话</button>
50
- <h1 id="activeTitle">未选择会话</h1>
51
- <div class="header-menu">
49
+ <div class="workspace-switcher">
52
50
  <button
53
51
  type="button"
54
- id="mobileActionsToggle"
55
- class="secondary mobile-actions-toggle"
52
+ id="workspaceSwitcherToggle"
53
+ class="secondary workspace-switcher-btn"
54
+ aria-haspopup="true"
56
55
  aria-expanded="false"
57
- aria-controls="headerActions"
58
- >更多</button>
59
- <div class="header-actions" id="headerActions">
60
- <button type="button" id="refreshBtn" class="secondary">刷新</button>
61
- <button type="button" id="openCreateMenuBtn" class="secondary">新建容器</button>
62
- <button type="button" id="removeBtn" class="danger">删除容器</button>
63
- <button type="button" id="addAgentBtn" class="secondary">新建 AGENT</button>
64
- <button type="button" id="removeAllBtn" class="danger">删除 AGENT</button>
56
+ aria-controls="workspaceSwitcherPanel"
57
+ aria-label="切换视图:活动、终端、文件、详情、配置、检查"
58
+ ><svg viewBox="0 0 16 16" aria-hidden="true" focusable="false"><circle cx="3" cy="8" r="1.4"></circle><circle cx="8" cy="8" r="1.4"></circle><circle cx="13" cy="8" r="1.4"></circle></svg></button>
59
+ <div class="workspace-switcher-panel" id="workspaceSwitcherPanel" hidden>
60
+ <button type="button" id="viewActivityBtn" class="secondary is-active">活动</button>
61
+ <button type="button" id="viewTerminalBtn" class="secondary">终端</button>
62
+ <button type="button" id="viewFilesBtn" class="secondary">文件</button>
63
+ <button type="button" id="viewDetailBtn" class="secondary">详情</button>
64
+ <button type="button" id="viewConfigBtn" class="secondary">配置</button>
65
+ <button type="button" id="viewCheckBtn" class="secondary">检查</button>
65
66
  </div>
66
67
  </div>
67
68
  </div>
68
- <div id="activeMeta">请选择左侧会话</div>
69
- <div class="workbench-tabs" id="workbenchTabs" aria-label="工作台视图">
70
- <button type="button" id="viewActivityBtn" class="secondary is-active">活动</button>
71
- <button type="button" id="viewTerminalBtn" class="secondary">终端</button>
72
- <button type="button" id="viewFilesBtn" class="secondary">文件</button>
73
- <button type="button" id="viewDetailBtn" class="secondary">详情</button>
74
- <button type="button" id="viewConfigBtn" class="secondary">配置</button>
75
- <button type="button" id="viewCheckBtn" class="secondary">检查</button>
76
- </div>
77
69
  </div>
78
70
  </header>
79
71
  <section class="workspace-shell">
@@ -103,27 +95,28 @@
103
95
  <div id="checkSummary" class="inspector-stack"></div>
104
96
  </section>
105
97
  <form class="composer" id="composer">
106
- <div class="composer-toolbar">
107
- <div class="composer-mode-switch" aria-label="活动输入模式">
108
- <button type="button" id="activityAgentBtn" class="secondary is-active">Agent</button>
109
- <button type="button" id="activityCommandBtn" class="secondary">命令</button>
110
- </div>
111
- <div class="composer-toolbar-meta">
112
- <button type="button" id="agentTemplateBtn" class="secondary toolbar-mini-btn">CLI · —</button>
113
- <span id="activityModelChip" class="toolbar-chip" aria-live="polite">模型 · —</span>
114
- </div>
115
- </div>
116
98
  <div class="composer-inner">
117
99
  <textarea id="commandInput" placeholder="输入容器命令,例如: ls -la"></textarea>
118
100
  <div class="composer-actions">
101
+ <div class="composer-options">
102
+ <button
103
+ type="button"
104
+ id="composerOptionsToggle"
105
+ class="secondary"
106
+ aria-haspopup="true"
107
+ aria-expanded="false"
108
+ aria-controls="composerOptionsPanel"
109
+ >选项</button>
110
+ <div class="composer-options-panel" id="composerOptionsPanel" hidden>
111
+ <button type="button" id="activityAgentBtn" class="secondary is-active">Agent对话</button>
112
+ <button type="button" id="activityCommandBtn" class="secondary">系统命令</button>
113
+ <button type="button" id="agentTemplateBtn" class="secondary">CLI · —</button>
114
+ <span id="activityModelChip" class="composer-options-info" aria-live="polite">模型 · —</span>
115
+ </div>
116
+ </div>
119
117
  <button type="submit" id="sendBtn">发送</button>
120
- <button type="button" id="stopBtn" class="danger-outline">停止</button>
121
118
  </div>
122
119
  </div>
123
- <div class="composer-foot">
124
- <span id="composerHint">Enter 发送 · Shift/Alt + Enter 换行</span>
125
- <span id="sendState" class="send-state">未选择会话</span>
126
- </div>
127
120
  </form>
128
121
  </div>
129
122
  </section>
@@ -306,6 +299,7 @@
306
299
  <script src="/app/vendor/xterm-addon-fit.js"></script>
307
300
  <script src="/app/vendor/marked.min.js"></script>
308
301
  <script src="/app/frontend/markdown-renderer.js"></script>
302
+ <script src="/app/frontend/chat-behavior.js"></script>
309
303
  <script src="/app/frontend/codemirror.bundle.js"></script>
310
304
  <script src="/app/frontend/file-browser.js"></script>
311
305
  <script src="/app/frontend/app.js"></script>