open-agents-ai 0.187.32 → 0.187.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/dist/index.js +38 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -260246,6 +260246,8 @@ var init_agenticRunner = __esm({
|
|
|
260246
260246
|
// WO-INF-01: cap voting events at 2 per run
|
|
260247
260247
|
_graphUpdateHook = null;
|
|
260248
260248
|
// WO-KG-12
|
|
260249
|
+
_graphSummaryProvider = null;
|
|
260250
|
+
// WO-KG-13
|
|
260249
260251
|
_loopBlockedTools;
|
|
260250
260252
|
// Loop intervention: tools removed from schema
|
|
260251
260253
|
// -- Session Checkpointing (Priority 5) --
|
|
@@ -260366,6 +260368,28 @@ ${ctx3}`,
|
|
|
260366
260368
|
tokenEstimate: Math.ceil(ctx3.length / 4)
|
|
260367
260369
|
});
|
|
260368
260370
|
}
|
|
260371
|
+
if (this._graphSummaryProvider) {
|
|
260372
|
+
try {
|
|
260373
|
+
const tier = this.options.modelTier ?? "large";
|
|
260374
|
+
const budget = tier === "small" ? 500 : tier === "medium" ? 1e3 : 1500;
|
|
260375
|
+
const graphSummary = this._graphSummaryProvider(budget);
|
|
260376
|
+
if (graphSummary && graphSummary.length > 20) {
|
|
260377
|
+
const useXml = tier === "small" || tier === "medium";
|
|
260378
|
+
sections.push({
|
|
260379
|
+
label: "c_graph",
|
|
260380
|
+
content: useXml ? `
|
|
260381
|
+
|
|
260382
|
+
<codebase-graph>
|
|
260383
|
+
${graphSummary}
|
|
260384
|
+
</codebase-graph>` : `
|
|
260385
|
+
|
|
260386
|
+
${graphSummary}`,
|
|
260387
|
+
tokenEstimate: Math.ceil(graphSummary.length / 4)
|
|
260388
|
+
});
|
|
260389
|
+
}
|
|
260390
|
+
} catch {
|
|
260391
|
+
}
|
|
260392
|
+
}
|
|
260369
260393
|
const planSkeleton = this.buildPlanSkeleton();
|
|
260370
260394
|
if (planSkeleton) {
|
|
260371
260395
|
sections.push({
|
|
@@ -262156,6 +262180,12 @@ Full content available via: repl_exec(code="data = retrieve('${handleId}')") or
|
|
|
262156
262180
|
setGraphUpdateHook(hook) {
|
|
262157
262181
|
this._graphUpdateHook = hook;
|
|
262158
262182
|
}
|
|
262183
|
+
/** WO-KG-13: Set the graph summary provider — called during assembleContext().
|
|
262184
|
+
* Should return a compact codebase graph summary within the given token budget.
|
|
262185
|
+
* Example: CodeGraphDB.generateSummary(tokenBudget). */
|
|
262186
|
+
setGraphSummaryProvider(provider) {
|
|
262187
|
+
this._graphSummaryProvider = provider;
|
|
262188
|
+
}
|
|
262159
262189
|
/** Provide the sudo password — resolves any pending sudo_request wait. */
|
|
262160
262190
|
setSudoPassword(password) {
|
|
262161
262191
|
this._sudoPassword = password;
|
|
@@ -312331,6 +312361,13 @@ var init_file_watcher = __esm({
|
|
|
312331
312361
|
}
|
|
312332
312362
|
});
|
|
312333
312363
|
|
|
312364
|
+
// packages/indexer/dist/community-detection.js
|
|
312365
|
+
var init_community_detection = __esm({
|
|
312366
|
+
"packages/indexer/dist/community-detection.js"() {
|
|
312367
|
+
"use strict";
|
|
312368
|
+
}
|
|
312369
|
+
});
|
|
312370
|
+
|
|
312334
312371
|
// packages/indexer/dist/index.js
|
|
312335
312372
|
var init_dist10 = __esm({
|
|
312336
312373
|
"packages/indexer/dist/index.js"() {
|
|
@@ -312344,6 +312381,7 @@ var init_dist10 = __esm({
|
|
|
312344
312381
|
init_ollamaEmbeddings();
|
|
312345
312382
|
init_code_graph_db();
|
|
312346
312383
|
init_file_watcher();
|
|
312384
|
+
init_community_detection();
|
|
312347
312385
|
}
|
|
312348
312386
|
});
|
|
312349
312387
|
|
package/package.json
CHANGED