myagent-ai 1.15.9 → 1.15.11

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/main.py CHANGED
@@ -117,6 +117,7 @@ class MyAgentApp:
117
117
  self.main_agent: MainAgent | None = None
118
118
  self.tool_agent: ToolAgent | None = None
119
119
  self.memory_agent: MemoryAgent | None = None
120
+ self.agents: Dict[str, BaseAgent] = {} # Agent 注册表(供 api_server 等模块遍历)
120
121
 
121
122
  # 聊天平台
122
123
  self.chat_manager: ChatBotManager | None = None
@@ -306,6 +307,10 @@ class MyAgentApp:
306
307
  knowledge_base_dir=str(self.config_mgr.data_dir / "organization" / "knowledge")
307
308
  )
308
309
  self.logger.info("Agent 集群已初始化 (主/工具/记忆)")
310
+ # [v1.15.10] 注册到 agents 字典(供 api_server 等模块遍历)
311
+ self.agents["main"] = self.main_agent
312
+ self.agents["tool"] = self.tool_agent
313
+ self.agents["memory"] = self.memory_agent
309
314
 
310
315
  # 10. 自动更新管理器
311
316
  self.update_manager = UpdateManager(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "myagent-ai",
3
- "version": "1.15.9",
3
+ "version": "1.15.11",
4
4
  "description": "本地桌面端执行型AI助手 - Open Interpreter 风格 | Local Desktop Execution-Oriented AI Assistant",
5
5
  "main": "main.py",
6
6
  "bin": {
@@ -489,6 +489,8 @@ input,textarea,select{font:inherit}
489
489
  .thought-block .thought-content.reasoning-content::-webkit-scrollbar{width:4px}
490
490
  .thought-block .thought-content.reasoning-content::-webkit-scrollbar-thumb{background:var(--bg4);border-radius:2px}
491
491
  .thought-block .thought-content.reasoning-content::-webkit-scrollbar-track{background:transparent}
492
+ /* [v1.15.9] 提级后的 reasoning 块 — 作为 messages-inner 直接子元素时撑满宽度 */
493
+ .messages-inner>.thought-block{align-self:stretch;width:100%!important;flex-shrink:0}
492
494
  .thought-content p{margin:4px 0;width:100%;max-width:100%;box-sizing:border-box}
493
495
  .thought-content p:first-child{margin-top:0}
494
496
  .thought-content p:last-child{margin-bottom:0}
@@ -2547,11 +2547,13 @@ function _renderMessagesInner() {
2547
2547
  }
2548
2548
  const execEventsHtml = (!isUser && !hasParts && msg.exec_events && msg.exec_events.length > 0)
2549
2549
  ? renderExecEvents(msg.exec_events, i) : '';
2550
+ // [v1.15.9] reasoning 块提级:渲染在 message-row 之外,作为 messages-inner 的直接子元素
2551
+ // 这样它不受 message-avatar(32px) 挤压,能真正撑满 100% 宽度
2552
+ if (reasoningHtml) html += reasoningHtml;
2550
2553
  html += `
2551
2554
  <div class="message-row ${msg.role}${msg.streaming ? ' streaming' : ''}">
2552
2555
  <div class="message-avatar">${avatar}</div>
2553
2556
  <div class="message-content" style="flex:1;min-width:0;width:100%">
2554
- ${reasoningHtml}
2555
2557
  ${thoughtHtml}
2556
2558
  ${taskPlanHtml}
2557
2559
  ${finishReasonHtml}