open-agents-ai 0.187.31 → 0.187.32
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 +21 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -260244,6 +260244,8 @@ 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
|
|
260247
260249
|
_loopBlockedTools;
|
|
260248
260250
|
// Loop intervention: tools removed from schema
|
|
260249
260251
|
// -- Session Checkpointing (Priority 5) --
|
|
@@ -261535,6 +261537,12 @@ Do NOT retry ${tc.name} with similar arguments.`);
|
|
|
261535
261537
|
if (isModify) {
|
|
261536
261538
|
this._taskState.modifiedFiles.set(filePath, tc.name === "file_write" ? "created/rewritten" : "edited");
|
|
261537
261539
|
}
|
|
261540
|
+
if (isModify && this._graphUpdateHook) {
|
|
261541
|
+
try {
|
|
261542
|
+
this._graphUpdateHook(filePath);
|
|
261543
|
+
} catch {
|
|
261544
|
+
}
|
|
261545
|
+
}
|
|
261538
261546
|
}
|
|
261539
261547
|
if (result.success) {
|
|
261540
261548
|
if (tc.name === "file_write" || tc.name === "file_edit" || tc.name === "batch_edit") {
|
|
@@ -262143,6 +262151,11 @@ Full content available via: repl_exec(code="data = retrieve('${handleId}')") or
|
|
|
262143
262151
|
// -------------------------------------------------------------------------
|
|
262144
262152
|
// Sudo / privilege escalation support
|
|
262145
262153
|
// -------------------------------------------------------------------------
|
|
262154
|
+
/** WO-KG-12: Set the graph update hook — called after every file modification.
|
|
262155
|
+
* The hook receives the relative file path and should call CodeGraphDB.indexFile(). */
|
|
262156
|
+
setGraphUpdateHook(hook) {
|
|
262157
|
+
this._graphUpdateHook = hook;
|
|
262158
|
+
}
|
|
262146
262159
|
/** Provide the sudo password — resolves any pending sudo_request wait. */
|
|
262147
262160
|
setSudoPassword(password) {
|
|
262148
262161
|
this._sudoPassword = password;
|
|
@@ -312311,6 +312324,13 @@ var init_code_graph_db = __esm({
|
|
|
312311
312324
|
}
|
|
312312
312325
|
});
|
|
312313
312326
|
|
|
312327
|
+
// packages/indexer/dist/file-watcher.js
|
|
312328
|
+
var init_file_watcher = __esm({
|
|
312329
|
+
"packages/indexer/dist/file-watcher.js"() {
|
|
312330
|
+
"use strict";
|
|
312331
|
+
}
|
|
312332
|
+
});
|
|
312333
|
+
|
|
312314
312334
|
// packages/indexer/dist/index.js
|
|
312315
312335
|
var init_dist10 = __esm({
|
|
312316
312336
|
"packages/indexer/dist/index.js"() {
|
|
@@ -312323,6 +312343,7 @@ var init_dist10 = __esm({
|
|
|
312323
312343
|
init_embeddings2();
|
|
312324
312344
|
init_ollamaEmbeddings();
|
|
312325
312345
|
init_code_graph_db();
|
|
312346
|
+
init_file_watcher();
|
|
312326
312347
|
}
|
|
312327
312348
|
});
|
|
312328
312349
|
|
package/package.json
CHANGED