@bolloon/bolloon-agent 0.2.10 → 0.2.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.
@@ -224,6 +224,7 @@
224
224
  <div class="btn-group">
225
225
  <button id="judgment-submit-btn" class="btn-primary">记录</button>
226
226
  <button id="judgment-import-btn" class="btn-secondary" title="从 .json / .yaml / .md / .txt / .html 文件批量导入">导入文件</button>
227
+ <button id="judgment-cleanup-btn" class="btn-secondary" title="软删除测试灌水数据: loadAll 测试/测试原则 等启发式匹配">清理测试数据</button>
227
228
  <input type="file" id="judgment-import-file" accept=".json,.yaml,.yml,.md,.txt,.html,.htm" style="display:none">
228
229
  </div>
229
230
  <div id="judgment-error" class="form-info judgment-error"></div>
@@ -1006,6 +1006,11 @@ body {
1006
1006
  align-self: flex-start;
1007
1007
  }
1008
1008
 
1009
+ /* 2026-07-06: 临时预览气泡 — pivot 每 iter 推, 等 loop 完 type=ai 终文覆盖 */
1010
+ .message-ai.preview {
1011
+ opacity: 0.55;
1012
+ }
1013
+
1009
1014
  .bubble {
1010
1015
  padding: 14px 18px;
1011
1016
  border-radius: var(--radius);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bolloon/bolloon-agent",
3
- "version": "0.2.10",
3
+ "version": "0.2.12",
4
4
  "type": "module",
5
5
  "description": "P2P AI Document Agent - 全局安装后执行 `bolloon` 启动产品",
6
6
  "main": "dist/cli-entry.js",
@@ -76,6 +76,10 @@ async function main() {
76
76
  });
77
77
 
78
78
  // 编译主客户端入口 (classic script, 非 module; 由 index.html 以 /client.js 加载)
79
+ // 2026-07-06: client.ts 加了 import { safeChannelName } from './util/safe-name.js'.
80
+ // 不开 bundle 的话, esbuild 把 require("./util/safe-name.js") 内联到 IIFE 顶层
81
+ // → 浏览器无 require → ReferenceError → init() 没跑 → UI 全空 (channels 不显示).
82
+ // 开 bundle=true 让 esbuild 把 safe-name 全部 inline 进 client.js (1.8KB, 无影响).
79
83
  console.log('[build-web] 编译 client.ts...');
80
84
  await esbuild.build({
81
85
  entryPoints: [path.join(ROOT, 'src/web/client.ts')],
@@ -84,6 +88,7 @@ async function main() {
84
88
  target: 'es2022',
85
89
  platform: 'browser',
86
90
  minify: false,
91
+ bundle: true,
87
92
  });
88
93
 
89
94
  // 复制静态文件