open-agents-ai 0.187.31 → 0.187.33
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 +51 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -260244,6 +260244,10 @@ var init_agenticRunner = __esm({
|
|
|
260244
260244
|
// WO-LL-02: cap hint injection at 3 per session
|
|
260245
260245
|
_selfConsistencyVotes = 0;
|
|
260246
260246
|
// WO-INF-01: cap voting events at 2 per run
|
|
260247
|
+
_graphUpdateHook = null;
|
|
260248
|
+
// WO-KG-12
|
|
260249
|
+
_graphSummaryProvider = null;
|
|
260250
|
+
// WO-KG-13
|
|
260247
260251
|
_loopBlockedTools;
|
|
260248
260252
|
// Loop intervention: tools removed from schema
|
|
260249
260253
|
// -- Session Checkpointing (Priority 5) --
|
|
@@ -260364,6 +260368,28 @@ ${ctx3}`,
|
|
|
260364
260368
|
tokenEstimate: Math.ceil(ctx3.length / 4)
|
|
260365
260369
|
});
|
|
260366
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
|
+
}
|
|
260367
260393
|
const planSkeleton = this.buildPlanSkeleton();
|
|
260368
260394
|
if (planSkeleton) {
|
|
260369
260395
|
sections.push({
|
|
@@ -261535,6 +261561,12 @@ Do NOT retry ${tc.name} with similar arguments.`);
|
|
|
261535
261561
|
if (isModify) {
|
|
261536
261562
|
this._taskState.modifiedFiles.set(filePath, tc.name === "file_write" ? "created/rewritten" : "edited");
|
|
261537
261563
|
}
|
|
261564
|
+
if (isModify && this._graphUpdateHook) {
|
|
261565
|
+
try {
|
|
261566
|
+
this._graphUpdateHook(filePath);
|
|
261567
|
+
} catch {
|
|
261568
|
+
}
|
|
261569
|
+
}
|
|
261538
261570
|
}
|
|
261539
261571
|
if (result.success) {
|
|
261540
261572
|
if (tc.name === "file_write" || tc.name === "file_edit" || tc.name === "batch_edit") {
|
|
@@ -262143,6 +262175,17 @@ Full content available via: repl_exec(code="data = retrieve('${handleId}')") or
|
|
|
262143
262175
|
// -------------------------------------------------------------------------
|
|
262144
262176
|
// Sudo / privilege escalation support
|
|
262145
262177
|
// -------------------------------------------------------------------------
|
|
262178
|
+
/** WO-KG-12: Set the graph update hook — called after every file modification.
|
|
262179
|
+
* The hook receives the relative file path and should call CodeGraphDB.indexFile(). */
|
|
262180
|
+
setGraphUpdateHook(hook) {
|
|
262181
|
+
this._graphUpdateHook = hook;
|
|
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
|
+
}
|
|
262146
262189
|
/** Provide the sudo password — resolves any pending sudo_request wait. */
|
|
262147
262190
|
setSudoPassword(password) {
|
|
262148
262191
|
this._sudoPassword = password;
|
|
@@ -312311,6 +312354,13 @@ var init_code_graph_db = __esm({
|
|
|
312311
312354
|
}
|
|
312312
312355
|
});
|
|
312313
312356
|
|
|
312357
|
+
// packages/indexer/dist/file-watcher.js
|
|
312358
|
+
var init_file_watcher = __esm({
|
|
312359
|
+
"packages/indexer/dist/file-watcher.js"() {
|
|
312360
|
+
"use strict";
|
|
312361
|
+
}
|
|
312362
|
+
});
|
|
312363
|
+
|
|
312314
312364
|
// packages/indexer/dist/index.js
|
|
312315
312365
|
var init_dist10 = __esm({
|
|
312316
312366
|
"packages/indexer/dist/index.js"() {
|
|
@@ -312323,6 +312373,7 @@ var init_dist10 = __esm({
|
|
|
312323
312373
|
init_embeddings2();
|
|
312324
312374
|
init_ollamaEmbeddings();
|
|
312325
312375
|
init_code_graph_db();
|
|
312376
|
+
init_file_watcher();
|
|
312326
312377
|
}
|
|
312327
312378
|
});
|
|
312328
312379
|
|
package/package.json
CHANGED