osborn 0.9.139 → 0.9.141
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/claude-llm.js +32 -0
- package/dist/pipeline-direct-llm.js +1 -1
- package/package.json +1 -1
package/dist/claude-llm.js
CHANGED
|
@@ -1306,6 +1306,10 @@ class ClaudeLLMStream extends llm.LLMStream {
|
|
|
1306
1306
|
const toolResponse = input?.tool_response; // Capture actual tool output for fast brain processing
|
|
1307
1307
|
const agentTypePost = input?.agent_type || null;
|
|
1308
1308
|
console.log(`✅ Done: ${toolName}`);
|
|
1309
|
+
if (toolName === 'Task' || toolName === 'Agent') {
|
|
1310
|
+
const agentId = input?.tool_input?.agent_id ?? input?.tool_input?.id ?? undefined;
|
|
1311
|
+
console.log('[LIFECYCLE-PROBE] PostToolUse on', toolName, 'agent_id=', agentId, 'ts=', Date.now());
|
|
1312
|
+
}
|
|
1309
1313
|
this.#eventEmitter.emit('tool_result', { name: toolName, input: toolInput, response: toolResponse, agentRole: agentTypePost || 'main' });
|
|
1310
1314
|
return {};
|
|
1311
1315
|
}]
|
|
@@ -1513,6 +1517,34 @@ class ClaudeLLMStream extends llm.LLMStream {
|
|
|
1513
1517
|
}
|
|
1514
1518
|
return {};
|
|
1515
1519
|
}]
|
|
1520
|
+
}],
|
|
1521
|
+
SubagentStart: [{
|
|
1522
|
+
matcher: '.*',
|
|
1523
|
+
hooks: [async (input) => {
|
|
1524
|
+
console.log('[LIFECYCLE-PROBE] SubagentStart', JSON.stringify(input));
|
|
1525
|
+
return {};
|
|
1526
|
+
}]
|
|
1527
|
+
}],
|
|
1528
|
+
SubagentStop: [{
|
|
1529
|
+
matcher: '.*',
|
|
1530
|
+
hooks: [async (input) => {
|
|
1531
|
+
console.log('[LIFECYCLE-PROBE] SubagentStop', JSON.stringify(input));
|
|
1532
|
+
return {};
|
|
1533
|
+
}]
|
|
1534
|
+
}],
|
|
1535
|
+
TaskCreated: [{
|
|
1536
|
+
matcher: '.*',
|
|
1537
|
+
hooks: [async (input) => {
|
|
1538
|
+
console.log('[LIFECYCLE-PROBE] TaskCreated', JSON.stringify(input));
|
|
1539
|
+
return {};
|
|
1540
|
+
}]
|
|
1541
|
+
}],
|
|
1542
|
+
TaskCompleted: [{
|
|
1543
|
+
matcher: '.*',
|
|
1544
|
+
hooks: [async (input) => {
|
|
1545
|
+
console.log('[LIFECYCLE-PROBE] TaskCompleted', JSON.stringify(input));
|
|
1546
|
+
return {};
|
|
1547
|
+
}]
|
|
1516
1548
|
}]
|
|
1517
1549
|
},
|
|
1518
1550
|
// Named sub-agents — the orchestrator delegates to these specialists.
|
|
@@ -25,7 +25,7 @@ function buildSessionTail(sessionId, workingDir) {
|
|
|
25
25
|
return '';
|
|
26
26
|
if (!sessionId)
|
|
27
27
|
return '';
|
|
28
|
-
const maxLines = parseInt(process.env.OSBORN_SESSION_TAIL_COUNT || '
|
|
28
|
+
const maxLines = parseInt(process.env.OSBORN_SESSION_TAIL_COUNT || '2000', 10);
|
|
29
29
|
try {
|
|
30
30
|
const indexPath = getIndexPath(sessionId, workingDir);
|
|
31
31
|
if (!indexPath)
|