@bolloon/bolloon-agent 0.4.12 → 0.4.14
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/dist/agents/agent-gateway.js +130 -0
- package/dist/agents/agent-service-client.js +27 -1
- package/dist/agents/gateway-group.js +261 -0
- package/dist/agents/gateway-network.js +278 -0
- package/dist/agents/payment-approval.js +142 -0
- package/dist/agents/payment-gate.js +99 -0
- package/dist/agents/pi-sdk-tools.js +176 -0
- package/dist/agents/treasury-bridge.js +127 -0
- package/dist/constraint-runtime/tools/PolymarketSDK/econ-integration.d.ts +55 -0
- package/dist/constraint-runtime/tools/PolymarketSDK/econ-integration.js +59 -0
- package/dist/index.js +42 -0
- package/dist/orbitdb/cid-database.js +39 -10
- package/dist/web/client.js +273 -0
- package/dist/web/index.html +17 -0
- package/dist/web/mobile.html +2 -0
- package/dist/web/mobile.js +38 -1
- package/dist/web/server.js +243 -0
- package/dist/web/style.css +116 -0
- package/package.json +2 -1
package/dist/web/style.css
CHANGED
|
@@ -4944,3 +4944,119 @@ body:has(> .api-config-page) {
|
|
|
4944
4944
|
font-weight: 500;
|
|
4945
4945
|
}
|
|
4946
4946
|
|
|
4947
|
+
|
|
4948
|
+
/* ============ 2026-08-14: Agent 网络 (Gateway) UI ============ */
|
|
4949
|
+
.gateway-item {
|
|
4950
|
+
display: flex;
|
|
4951
|
+
align-items: center;
|
|
4952
|
+
gap: 8px;
|
|
4953
|
+
padding: 6px 10px;
|
|
4954
|
+
cursor: pointer;
|
|
4955
|
+
border-radius: 6px;
|
|
4956
|
+
transition: background 0.15s;
|
|
4957
|
+
}
|
|
4958
|
+
.gateway-item:hover { background: rgba(196, 214, 64, 0.1); }
|
|
4959
|
+
.gateway-item-icon { font-size: 14px; flex-shrink: 0; }
|
|
4960
|
+
.gateway-item-main { display: flex; flex-direction: column; min-width: 0; }
|
|
4961
|
+
.gateway-item-name { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
4962
|
+
.gateway-item-sub { font-size: 10.5px; opacity: 0.65; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
4963
|
+
.gateway-item-net .gateway-item-icon { opacity: 0.8; }
|
|
4964
|
+
|
|
4965
|
+
/* modal 通用 */
|
|
4966
|
+
.gw-modal-overlay {
|
|
4967
|
+
position: fixed; inset: 0; z-index: 10000;
|
|
4968
|
+
background: rgba(0, 0, 0, 0.55);
|
|
4969
|
+
display: flex; align-items: center; justify-content: center;
|
|
4970
|
+
backdrop-filter: blur(2px);
|
|
4971
|
+
}
|
|
4972
|
+
.gw-modal {
|
|
4973
|
+
position: relative;
|
|
4974
|
+
background: var(--bg, #1a1a18);
|
|
4975
|
+
border: 1px solid rgba(196, 214, 64, 0.35);
|
|
4976
|
+
border-radius: 12px;
|
|
4977
|
+
padding: 18px 20px;
|
|
4978
|
+
max-width: 480px; width: 92%;
|
|
4979
|
+
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
|
|
4980
|
+
color: var(--fg, #d8d8c8);
|
|
4981
|
+
}
|
|
4982
|
+
.gw-modal-close {
|
|
4983
|
+
position: absolute; top: 10px; right: 12px;
|
|
4984
|
+
cursor: pointer; opacity: 0.6; font-size: 15px;
|
|
4985
|
+
padding: 4px 8px; border-radius: 6px;
|
|
4986
|
+
}
|
|
4987
|
+
.gw-modal-close:hover { opacity: 1; background: rgba(255, 255, 255, 0.08); }
|
|
4988
|
+
|
|
4989
|
+
/* 加入/创建 */
|
|
4990
|
+
.gw-join h3 { margin: 0 0 6px; font-size: 15px; color: #c4d640; }
|
|
4991
|
+
.gw-hint { font-size: 11.5px; opacity: 0.7; margin: 0 0 12px; }
|
|
4992
|
+
.gw-join-input {
|
|
4993
|
+
width: 100%; box-sizing: border-box;
|
|
4994
|
+
background: rgba(255, 255, 255, 0.06);
|
|
4995
|
+
border: 1px solid rgba(255, 255, 255, 0.18);
|
|
4996
|
+
border-radius: 8px; color: inherit;
|
|
4997
|
+
padding: 10px 12px; font-size: 12.5px;
|
|
4998
|
+
font-family: 'JetBrains Mono', monospace;
|
|
4999
|
+
}
|
|
5000
|
+
.gw-join-input:focus { outline: none; border-color: #c4d640; }
|
|
5001
|
+
.gw-join-actions { display: flex; gap: 10px; margin-top: 12px; }
|
|
5002
|
+
.gw-join-go, .gw-join-my {
|
|
5003
|
+
padding: 8px 16px; border-radius: 8px; border: none; cursor: pointer;
|
|
5004
|
+
font-size: 12.5px; font-weight: 600;
|
|
5005
|
+
background: #c4d640; color: #1a1a18;
|
|
5006
|
+
}
|
|
5007
|
+
.gw-join-my { background: rgba(196, 214, 64, 0.15); color: #c4d640; border: 1px solid rgba(196, 214, 64, 0.4); }
|
|
5008
|
+
.gw-join-result { margin-top: 12px; font-size: 12px; line-height: 1.5; word-break: break-all; }
|
|
5009
|
+
.gw-join-result code {
|
|
5010
|
+
display: block; background: rgba(255, 255, 255, 0.07);
|
|
5011
|
+
padding: 6px 8px; border-radius: 6px; font-size: 11px;
|
|
5012
|
+
word-break: break-all; margin-top: 4px;
|
|
5013
|
+
}
|
|
5014
|
+
|
|
5015
|
+
/* 群聊 */
|
|
5016
|
+
.gw-chat { display: flex; flex-direction: column; height: 420px; max-height: 70vh; }
|
|
5017
|
+
.gw-chat-header {
|
|
5018
|
+
display: flex; justify-content: space-between; align-items: center;
|
|
5019
|
+
padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.12);
|
|
5020
|
+
font-size: 14px;
|
|
5021
|
+
}
|
|
5022
|
+
.gw-chat-invite {
|
|
5023
|
+
background: rgba(196, 214, 64, 0.15); color: #c4d640;
|
|
5024
|
+
border: 1px solid rgba(196, 214, 64, 0.4);
|
|
5025
|
+
border-radius: 6px; padding: 4px 10px; font-size: 11.5px; cursor: pointer;
|
|
5026
|
+
}
|
|
5027
|
+
.gw-chat-msgs {
|
|
5028
|
+
flex: 1; overflow-y: auto; padding: 12px 4px;
|
|
5029
|
+
display: flex; flex-direction: column; gap: 10px;
|
|
5030
|
+
}
|
|
5031
|
+
.gw-msg {
|
|
5032
|
+
max-width: 85%; align-self: flex-start;
|
|
5033
|
+
background: rgba(255, 255, 255, 0.08);
|
|
5034
|
+
border-radius: 10px 10px 10px 3px;
|
|
5035
|
+
padding: 7px 11px;
|
|
5036
|
+
}
|
|
5037
|
+
.gw-msg-mine {
|
|
5038
|
+
align-self: flex-end;
|
|
5039
|
+
background: rgba(196, 214, 64, 0.18);
|
|
5040
|
+
border-radius: 10px 10px 3px 10px;
|
|
5041
|
+
}
|
|
5042
|
+
.gw-msg-meta { font-size: 10.5px; opacity: 0.65; margin-bottom: 3px; }
|
|
5043
|
+
.gw-msg-text { font-size: 12.5px; line-height: 1.5; word-break: break-word; white-space: pre-wrap; }
|
|
5044
|
+
.gw-msg-empty { text-align: center; opacity: 0.5; font-size: 12px; padding: 30px 0; }
|
|
5045
|
+
.gw-chat-input-row { display: flex; gap: 8px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
|
|
5046
|
+
.gw-chat-input {
|
|
5047
|
+
flex: 1; background: rgba(255, 255, 255, 0.06);
|
|
5048
|
+
border: 1px solid rgba(255, 255, 255, 0.18);
|
|
5049
|
+
border-radius: 8px; color: inherit;
|
|
5050
|
+
padding: 9px 12px; font-size: 12.5px;
|
|
5051
|
+
}
|
|
5052
|
+
.gw-chat-input:focus { outline: none; border-color: #c4d640; }
|
|
5053
|
+
.gw-chat-send {
|
|
5054
|
+
background: #c4d640; color: #1a1a18; border: none;
|
|
5055
|
+
border-radius: 8px; padding: 0 16px; font-size: 12.5px; font-weight: 600; cursor: pointer;
|
|
5056
|
+
}
|
|
5057
|
+
|
|
5058
|
+
/* 手机端窄屏适配 */
|
|
5059
|
+
@media (max-width: 640px) {
|
|
5060
|
+
.gw-modal { max-width: 94%; padding: 14px; }
|
|
5061
|
+
.gw-chat { height: 60vh; }
|
|
5062
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bolloon/bolloon-agent",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.14",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "P2P AI Document Agent - 全局安装后执行 `bolloon` 启动产品",
|
|
6
6
|
"main": "dist/cli-entry.js",
|
|
@@ -101,6 +101,7 @@
|
|
|
101
101
|
"helia": "^7.1.3",
|
|
102
102
|
"ink": "^7.1.1",
|
|
103
103
|
"ink-text-input": "^6.0.0",
|
|
104
|
+
"js-yaml": "^5.2.3",
|
|
104
105
|
"libp2p": "^3.3.8",
|
|
105
106
|
"mammoth": "^1.12.1",
|
|
106
107
|
"pdf-parse": "^2.4.5",
|