@bolloon/bolloon-agent 0.3.21 → 0.3.22
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/pi-sdk.js +0 -14
- package/dist/index.js +8 -0
- package/dist/web/client.js +4321 -4826
- package/dist/web/components/p2p/P2PModal.js +188 -0
- package/dist/web/components/p2p/index.js +276 -234
- package/dist/web/components/p2p/p2p-modal.js +664 -0
- package/dist/web/components/p2p/p2p-tools.js +248 -0
- package/dist/web/ui/message-renderer.js +535 -396
- package/dist/web/ui/step-timeline.js +371 -272
- package/package.json +1 -1
package/dist/agents/pi-sdk.js
CHANGED
|
@@ -353,11 +353,6 @@ export class PiAgentSession {
|
|
|
353
353
|
this.skillRegistry.register(s);
|
|
354
354
|
}
|
|
355
355
|
console.log(`[loadSkills] 已加载 ${skills.length} 个 skill from ${resolved.join(', ')}`);
|
|
356
|
-
if (skills.length > 0) {
|
|
357
|
-
for (const s of skills) {
|
|
358
|
-
console.log(` - ${s.name}: ${s.description.substring(0, 100)}${s.description.length > 100 ? '...' : ''}`);
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
356
|
})
|
|
362
357
|
.catch((err) => {
|
|
363
358
|
console.error('[loadSkills] 加载失败:', err);
|
|
@@ -1442,15 +1437,6 @@ ${toolDefs}
|
|
|
1442
1437
|
if (onStream) {
|
|
1443
1438
|
onStream({ type: 'status', content: `✅ 处理完成,共 ${iteration - 1} 次循环`, tool: 'system' });
|
|
1444
1439
|
}
|
|
1445
|
-
const now = new Date().toISOString();
|
|
1446
|
-
const identityPrefix = `${this.identity.name} | bolloon 智能体
|
|
1447
|
-
<environment_details>
|
|
1448
|
-
Current time: ${now}
|
|
1449
|
-
Working directory: ${this.cwd}
|
|
1450
|
-
Workspace root folder: ${this.cwd}
|
|
1451
|
-
</environment_details>
|
|
1452
|
-
`;
|
|
1453
|
-
finalResponse = identityPrefix + finalResponse;
|
|
1454
1440
|
this.messageHistory.push({ role: 'assistant', content: finalResponse });
|
|
1455
1441
|
// React Harness: 循环结束
|
|
1456
1442
|
try {
|
package/dist/index.js
CHANGED
|
@@ -373,6 +373,14 @@ function statusBarLine() {
|
|
|
373
373
|
}
|
|
374
374
|
function startCLI(comm) {
|
|
375
375
|
isRunning = true;
|
|
376
|
+
// CLI 模式下过滤 [xxx] 内部日志
|
|
377
|
+
const _origLog = console.log;
|
|
378
|
+
const _origWarn = console.warn;
|
|
379
|
+
const _isInternal = (args) => args.length && typeof args[0] === 'string' && /^\[[A-Za-z _\-.]+/.test(args[0]);
|
|
380
|
+
console.log = (...args) => { if (_isInternal(args))
|
|
381
|
+
return; _origLog.apply(console, args); };
|
|
382
|
+
console.warn = (...args) => { if (_isInternal(args))
|
|
383
|
+
return; _origWarn.apply(console, args); };
|
|
376
384
|
let peerCount = 0;
|
|
377
385
|
try {
|
|
378
386
|
peerCount = comm.getConnections().length;
|