agent-bridge-abweb 1.0.11 → 1.0.12

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/README.md CHANGED
@@ -3,3 +3,5 @@
3
3
  供 `mu-agent-bridge` 使用的网页管理插件。核心包已内置此插件;默认页面为 `http://127.0.0.1:26107/abweb/`。
4
4
 
5
5
  独立安装:`npm install -g agent-bridge-abweb`。
6
+
7
+ 已安装插件的类型区分为 `Agent · CLI` 和 `Agent · 桌面`;旧桌面插件未提供运行方式字段时也显示为桌面。此显示调整可通过独立升级 ABWeb 插件生效。
@@ -5,7 +5,7 @@ const node_fs_1 = require("node:fs");
5
5
  const node_path_1 = require("node:path");
6
6
  const MANIFEST = {
7
7
  id: "abweb",
8
- version: "1.0.11",
8
+ version: "1.0.12",
9
9
  displayName: "Agent Bridge Web",
10
10
  entry: "dist/index.js",
11
11
  apiVersion: "1",
@@ -309,7 +309,7 @@
309
309
  status.className = `status status-${plugin.status}`;
310
310
  status.textContent = plugin.status;
311
311
  if (plugin.type === "agent")
312
- type.textContent += ` · ${{ cli: "CLI", cdp: "CDP" }[plugin.manifest?.executionMode ?? ""] ?? "未声明"}`;
312
+ type.textContent += plugin.manifest?.executionMode === "cli" ? " · CLI" : " · 桌面";
313
313
  const dependencies = Object.entries(plugin.manifest?.dependencies ?? {});
314
314
  if (dependencies.length) {
315
315
  const detail = document.createElement("small");
@@ -194,7 +194,7 @@
194
194
  const version = document.createElement("td"); version.textContent = `v${plugin.version}`;
195
195
  const state = document.createElement("td");
196
196
  const status = document.createElement("span"); status.className = `status status-${plugin.status}`; status.textContent = plugin.status;
197
- if (plugin.type === "agent") type.textContent += ` · ${({ cli: "CLI", cdp: "CDP" } as Record<string, string>)[plugin.manifest?.executionMode ?? ""] ?? "未声明"}`;
197
+ if (plugin.type === "agent") type.textContent += plugin.manifest?.executionMode === "cli" ? " · CLI" : " · 桌面";
198
198
  const dependencies = Object.entries(plugin.manifest?.dependencies ?? {});
199
199
  if (dependencies.length) { const detail = document.createElement("small"); detail.className = "muted plugin-id"; detail.textContent = `依赖:${dependencies.map(([id, range]) => `${id} ${range}`).join(";")}`; name.append(detail); }
200
200
  state.append(status);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-bridge-abweb",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "description": "agent-bridge 的网页管理插件。",
5
5
  "keywords": [
6
6
  "mu-agent-bridge-plugin",
package/plugin.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "id": "abweb",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "type": "management",
5
5
  "displayName": "Agent Bridge Web",
6
6
  "entry": "dist/src-ts/plugins/abweb/index.js",