open-agents-ai 0.187.271 → 0.187.272

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.
Files changed (2) hide show
  1. package/dist/index.js +32 -11
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -272324,27 +272324,45 @@ Full content available via: repl_exec(code="data = retrieve('${handleId}')") or
272324
272324
  const { join: join106 } = __require("node:path");
272325
272325
  const contextDir = join106(this._workingDirectory || process.cwd(), ".oa", "context");
272326
272326
  mkdirSync55(contextDir, { recursive: true });
272327
- const topEntities = this._temporalGraph.nodesByType("entity", 5);
272328
- const topFiles = this._temporalGraph.nodesByType("file", 5);
272329
- const topConcepts = this._temporalGraph.nodesByType("concept", 5);
272327
+ const topEntities = this._temporalGraph.nodesByType("entity", 3);
272328
+ const topFiles = this._temporalGraph.nodesByType("file", 3);
272329
+ const topConcepts = this._temporalGraph.nodesByType("concept", 3);
272330
272330
  const lines = [];
272331
272331
  lines.push(`# Knowledge Graph Summary — ${this._sessionId}`);
272332
272332
  lines.push("");
272333
272333
  lines.push(`Nodes: ${nodes} Active edges: ${edges}`);
272334
272334
  lines.push("");
272335
+ const g = this._temporalGraph;
272335
272336
  const section = (title, items) => {
272336
272337
  if (!items || items.length === 0)
272337
272338
  return;
272338
272339
  lines.push(`## ${title}`);
272339
272340
  for (const n2 of items) {
272340
- lines.push(`- ${n2.text} ${n2.mentionCount ? `(${n2.mentionCount})` : ""}`);
272341
+ const suffix = n2.mentionCount ? ` (${n2.mentionCount})` : "";
272342
+ lines.push(`- ${n2.text}${suffix}`);
272343
+ try {
272344
+ if (!g)
272345
+ break;
272346
+ const edges2 = g.currentEdges(n2.id);
272347
+ const rel = edges2.filter((e2) => e2.relation === "related_to").slice(0, 2);
272348
+ const picks = rel.length > 0 ? rel : edges2.slice(0, 2);
272349
+ for (const e2 of picks) {
272350
+ const neighborId = e2.srcId === n2.id ? e2.dstId : e2.srcId;
272351
+ const neighbor = g.getNode(neighborId);
272352
+ const neighborText = neighbor && neighbor.text ? neighbor.text.slice(0, 60) : neighborId.slice(0, 8);
272353
+ const relStr = e2.relation.replace(/_/g, " ");
272354
+ const fact = e2.fact ? ` — ${e2.fact.slice(0, 60)}` : "";
272355
+ lines.push(` · ${relStr} → ${neighborText}${fact}`);
272356
+ }
272357
+ } catch {
272358
+ }
272341
272359
  }
272342
272360
  lines.push("");
272343
272361
  };
272344
272362
  section("Top Entities", topEntities);
272345
272363
  section("Top Files", topFiles);
272346
272364
  section("Top Concepts", topConcepts);
272347
- lines.push("(Use file_read on this file for quick recall. See also the provenance JSON for detailed edges.)");
272365
+ lines.push("(Use file_read on this file for quick recall. See provenance JSON for full edge detail.)");
272348
272366
  const outPath = join106(contextDir, `kg-summary-${this._sessionId}.md`);
272349
272367
  writeFileSync49(outPath, lines.join("\n"), "utf-8");
272350
272368
  writeFileSync49(join106(contextDir, `kg-summary-latest.md`), lines.join("\n"), "utf-8");
@@ -329882,6 +329900,8 @@ ${entry.fullContent}`
329882
329900
  let streamStartMs = 0;
329883
329901
  let streamTextBuffer = "";
329884
329902
  let lastProvenancePath = null;
329903
+ let showLittleman = false;
329904
+ const littlemanBuffer = [];
329885
329905
  const contentWrite = (fn) => {
329886
329906
  if (isNeovimActive()) {
329887
329907
  const origWrite = process.stdout.write;
@@ -330211,8 +330231,9 @@ ${entry.fullContent}`
330211
330231
  littlemanBuffer.push(lm.details);
330212
330232
  if (littlemanBuffer.length > 50) littlemanBuffer.splice(0, littlemanBuffer.length - 50);
330213
330233
  if (showLittleman) {
330234
+ const det = String(lm.details);
330214
330235
  contentWrite(() => {
330215
- process.stdout.write(c3.dim(lm.details) + "\n");
330236
+ process.stdout.write(c3.dim(det) + "\n");
330216
330237
  });
330217
330238
  }
330218
330239
  }
@@ -331439,8 +331460,8 @@ Rationale: ${proposal.rationale}${provenanceNote}`;
331439
331460
  origTtyWriteRef = null;
331440
331461
  statusBar.setNeovimFocusChecker(() => isNeovimFocused());
331441
331462
  let _escapeHandler = null;
331442
- let showLittleman2 = false;
331443
- const littlemanBuffer2 = [];
331463
+ let showLittleman = false;
331464
+ const littlemanBuffer = [];
331444
331465
  statusBar.hookDirectInput(rl, () => {
331445
331466
  _escapeHandler?.();
331446
331467
  }, () => {
@@ -331475,12 +331496,12 @@ Rationale: ${proposal.rationale}${provenanceNote}`;
331475
331496
  statusBar.refreshHeaderContent();
331476
331497
  }
331477
331498
  }, () => {
331478
- showLittleman2 = !showLittleman2;
331499
+ showLittleman = !showLittleman;
331479
331500
  if (statusBar.isActive) {
331480
331501
  statusBar.beginContentWrite();
331481
- if (showLittleman2) {
331502
+ if (showLittleman) {
331482
331503
  renderInfo2("Littleman details: shown");
331483
- const dump = littlemanBuffer2.slice(-10).join("\n");
331504
+ const dump = littlemanBuffer.slice(-10).join("\n");
331484
331505
  if (dump.trim()) {
331485
331506
  process.stdout.write(`
331486
331507
  ${c3.dim("[littleman recap]")}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.187.271",
3
+ "version": "0.187.272",
4
4
  "description": "AI coding agent powered by open-source models (Ollama/vLLM) — interactive TUI with agentic tool-calling loop",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",