@bolloon/bolloon-agent 0.1.32 → 0.1.34
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 +7 -2
- package/dist/agents/pi-sdk.js +10 -1
- package/dist/bollharness-integration/index.js +8 -1
- package/dist/heartbeat/Watchdog.js +9 -1
- package/dist/llm/audio-config-store.js +199 -0
- package/dist/llm/config-store.js +20 -10
- package/dist/llm/pi-ai.js +2 -2
- package/dist/llm/video-config-store.js +31 -1
- package/dist/network/p2p-direct.js +59 -2
- package/dist/pi-ecosystem/index.js +10 -7
- package/dist/pi-ecosystem-judgment/decision.js +5 -2
- package/dist/social/heartbeat.js +19 -2
- package/dist/web/api-config.html +16 -4
- package/dist/web/client.js +1017 -137
- package/dist/web/index.html +10 -27
- package/dist/web/server.js +865 -52
- package/dist/web/style.css +370 -0
- package/package.json +2 -1
- package/src/agents/pi-sdk.ts +9 -1
- package/src/bollharness-integration/index.ts +8 -32
- package/src/heartbeat/Watchdog.ts +9 -1
- package/src/llm/audio-config-store.ts +6 -1
- package/src/llm/config-store.ts +21 -11
- package/src/llm/pi-ai.ts +2 -2
- package/src/llm/video-config-store.ts +7 -1
- package/src/network/p2p-direct.ts +59 -3
- package/src/social/ant-colony/index.js +19 -0
- package/src/social/heartbeat.ts +18 -2
- package/src/web/api-config.html +16 -4
- package/src/web/client.js +1017 -137
- package/src/web/index.html +10 -27
- package/src/web/server.ts +810 -47
- package/src/web/style.css +370 -0
- package/src/social/ant-colony/AdaptiveHeartbeat.ts +0 -131
- package/src/social/ant-colony/PheromoneEngine.ts +0 -302
- package/src/social/ant-colony/index.ts +0 -18
- package/src/social/ant-colony/types.ts +0 -94
package/dist/web/index.html
CHANGED
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
<!-- PWA Manifest -->
|
|
17
17
|
<link rel="manifest" href="/manifest.json">
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
<!-- 2026-06-11: 移除 Google Fonts + jsdelivr 外部 CDN 阻塞 — 在大陆/跨公网 timeout 拖慢首屏/返回主页
|
|
20
|
+
字体: style.css 只用字面量 'JetBrains Mono', 系统有就用, 没有自动 fall back monospace
|
|
21
|
+
marked/qrcode: 改 async 不阻塞 (下载失败时本地降级到 escape 文本, 不影响主聊天) -->
|
|
22
22
|
<link rel="stylesheet" href="/style.css">
|
|
23
|
-
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
|
|
24
|
-
<script src="https://cdn.jsdelivr.net/npm/qrcode@1.5.3/build/qrcode.min.js"></script>
|
|
23
|
+
<script async src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
|
|
24
|
+
<script async src="https://cdn.jsdelivr.net/npm/qrcode@1.5.3/build/qrcode.min.js"></script>
|
|
25
25
|
</head>
|
|
26
26
|
<body>
|
|
27
27
|
<div class="app-container">
|
|
@@ -36,23 +36,15 @@
|
|
|
36
36
|
<span class="brand-icon">◈</span>
|
|
37
37
|
<span class="brand-text">Bolloon</span>
|
|
38
38
|
</span>
|
|
39
|
-
|
|
40
|
-
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
41
|
-
<path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"></path>
|
|
42
|
-
</svg>
|
|
43
|
-
</button>
|
|
39
|
+
<!-- 2026-06-11: 加载 Session 文件夹按钮删除 -->
|
|
44
40
|
</div>
|
|
45
|
-
|
|
41
|
+
<!-- 2026-06-11: session-file-input 已无用, 同步删除 -->
|
|
42
|
+
<!-- <input type="file" id="session-file-input" accept=".json" style="display:none"> -->
|
|
46
43
|
|
|
47
44
|
<div class="sidebar-section">
|
|
48
45
|
<div class="section-header">
|
|
49
46
|
<span class="section-title">智能体</span>
|
|
50
|
-
|
|
51
|
-
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
52
|
-
<line x1="12" y1="5" x2="12" y2="19"></line>
|
|
53
|
-
<line x1="5" y1="12" x2="19" y2="12"></line>
|
|
54
|
-
</svg>
|
|
55
|
-
</button>
|
|
47
|
+
<!-- 2026-06-11: catalog-add-btn (添加智能体) 删除 -->
|
|
56
48
|
</div>
|
|
57
49
|
<button id="new-channel-btn" class="section-action" title="新建智能体">
|
|
58
50
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
@@ -77,8 +69,8 @@
|
|
|
77
69
|
<span class="section-title" style="font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:0.5px;color:var(--text-muted);">P2P 好友</span>
|
|
78
70
|
</span>
|
|
79
71
|
<span style="display:flex;gap:4px;">
|
|
72
|
+
<button id="p2p-toggle-all-btn" title="切换全部展开/折叠" style="background:none;border:1px solid var(--border);color:var(--text-secondary);cursor:pointer;padding:2px 6px;border-radius:4px;font-size:11px;line-height:1;">⊞ 展开</button>
|
|
80
73
|
<button id="show-my-p2p-id-btn" title="查看并复制我的 P2P publicKey" style="background:none;border:1px solid var(--border);color:var(--text-secondary);cursor:pointer;padding:2px 6px;border-radius:4px;font-size:11px;line-height:1;">我的 ID</button>
|
|
81
|
-
<button id="refresh-shared-btn" title="向所有好友拉取最新分享列表 (双向: A 拉 B 的, B 拉 A 的)" style="background:none;border:1px solid var(--border);color:var(--text-secondary);cursor:pointer;padding:2px 6px;border-radius:4px;font-size:11px;line-height:1;">↻ 刷新</button>
|
|
82
74
|
<button id="add-p2p-peer-btn" title="添加 P2P 好友 (输入对方的 publicKey)" style="background:none;border:1px solid var(--border);color:var(--text-secondary);cursor:pointer;padding:2px 6px;border-radius:4px;font-size:11px;line-height:1;">+ 好友</button>
|
|
83
75
|
</span>
|
|
84
76
|
</div>
|
|
@@ -133,15 +125,6 @@
|
|
|
133
125
|
</svg>
|
|
134
126
|
<span id="wallet-badge" class="task-badge" style="display:none;">0</span>
|
|
135
127
|
</button>
|
|
136
|
-
<button id="task-queue-btn" class="header-action" title="任务队列">
|
|
137
|
-
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
138
|
-
<path d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2"></path>
|
|
139
|
-
<rect x="9" y="3" width="6" height="4" rx="1"></rect>
|
|
140
|
-
<line x1="9" y1="12" x2="15" y2="12"></line>
|
|
141
|
-
<line x1="9" y1="16" x2="13" y2="16"></line>
|
|
142
|
-
</svg>
|
|
143
|
-
<span id="task-badge" class="task-badge" style="display:none;">0</span>
|
|
144
|
-
</button>
|
|
145
128
|
<button id="judgments-btn" class="header-action" title="我的判断">
|
|
146
129
|
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
147
130
|
<path d="M12 2L4 6v6c0 5 3.5 9.5 8 10 4.5-.5 8-5 8-10V6l-8-4z"></path>
|