open-agents-ai 0.187.98 → 0.187.100

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 +25 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -263756,7 +263756,12 @@ ${transcript}`
263756
263756
  "pre_commit",
263757
263757
  "post_commit",
263758
263758
  "val_bpb",
263759
- "best_val"
263759
+ "best_val",
263760
+ // Conditionally registered tools documented in the prompt as optional
263761
+ "slash_command",
263762
+ // only registered when /commands auto
263763
+ "llm_query"
263764
+ // REPL sub-function, not a standalone tool
263760
263765
  ]);
263761
263766
  for (const tool of this.tools.values()) {
263762
263767
  const props = tool.parameters?.properties;
@@ -280759,10 +280764,13 @@ ${CONTENT_BG_SEQ}`);
280759
280764
  buf += "\x1BM";
280760
280765
  }
280761
280766
  buf += "\x1B[?7l";
280767
+ const boxInnerH = w - 2;
280768
+ buf += `\x1B[${pos.inputStartRow};1H${PANEL_BG_SEQ}\x1B[2K${BOX_FG}${BOX_TL}${BOX_H.repeat(Math.max(0, boxInnerH))}${BOX_TR}${RESET}`;
280762
280769
  for (let i2 = 0; i2 < inputWrap.lines.length; i2++) {
280763
- const row = pos.inputStartRow + i2;
280770
+ const row = pos.inputStartRow + 1 + i2;
280764
280771
  const prefix = i2 === 0 ? this.promptText : " ".repeat(this.promptWidth);
280765
- buf += `\x1B[${row};1H${PANEL_BG_SEQ}\x1B[2K${prefix}${inputWrap.lines[i2]}${RESET}`;
280772
+ const lineContent = `${prefix}${inputWrap.lines[i2]}`;
280773
+ buf += `\x1B[${row};1H${PANEL_BG_SEQ}\x1B[2K${BOX_FG}${BOX_V}${RESET}${PANEL_BG_SEQ}${lineContent}${PANEL_BG_SEQ}\x1B[K\x1B[${row};${w}H${BOX_FG}${BOX_V}${RESET}`;
280766
280774
  }
280767
280775
  const boxInnerS = w - 2;
280768
280776
  buf += `\x1B[${pos.bufferRow};1H${PANEL_BG_SEQ}\x1B[2K${BOX_FG}${BOX_BL}${BOX_H.repeat(Math.max(0, boxInnerS))}${BOX_BR}${RESET}`;
@@ -280779,9 +280787,13 @@ ${CONTENT_BG_SEQ}`);
280779
280787
  } else {
280780
280788
  let buf = "\x1B[?7l";
280781
280789
  for (let i2 = 0; i2 < inputWrap.lines.length; i2++) {
280782
- const row = pos.inputStartRow + i2;
280790
+ const row = pos.inputStartRow + 1 + i2;
280783
280791
  const prefix = i2 === 0 ? this.promptText : " ".repeat(this.promptWidth);
280784
- buf += `\x1B[${row};1H${PANEL_BG_SEQ}\x1B[2K${prefix}${inputWrap.lines[i2]}${RESET}`;
280792
+ const lineContent = `${prefix}${inputWrap.lines[i2]}`;
280793
+ buf += `\x1B[${row};1H${PANEL_BG_SEQ}\x1B[2K`;
280794
+ buf += `${BOX_FG}${BOX_V}${RESET}${PANEL_BG_SEQ}${lineContent}`;
280795
+ buf += `${PANEL_BG_SEQ}\x1B[K`;
280796
+ buf += `\x1B[${row};${w}H${BOX_FG}${BOX_V}${RESET}`;
280785
280797
  }
280786
280798
  buf += "\x1B[?7h";
280787
280799
  this.termWrite(buf);
@@ -308334,7 +308346,7 @@ ${entry.fullContent}`
308334
308346
  };
308335
308347
  runner.registerTool(new SkillBuildTool(repoRoot, llmCall));
308336
308348
  }
308337
- if (slashCommandHandler) {
308349
+ {
308338
308350
  runner.registerTool({
308339
308351
  name: "slash_command",
308340
308352
  description: "Invoke a slash command programmatically. Available when /commands auto is set by the user. Safe commands: help, config, models, skills, tools, stats, cost, score, nexus, commands, verbose, stream, brute-force, deep-context, flow, style, emojis, colors, task-type, compact, context, evaluate. Skill commands: /<skill-name> <args>. BLOCKED commands (user-only): quit, exit, destroy, model, endpoint, update, setup, telegram, call, listen, expose, p2p, secrets, dream, bless, clear. Use this to check configuration, run evaluations, discover skills, or adjust modes during a task.",
@@ -308395,6 +308407,13 @@ ${entry.fullContent}`
308395
308407
  error: `Command "/${cmdName}" is user-only and cannot be invoked by the agent. Ask the user to run /${cmdName} directly.`
308396
308408
  };
308397
308409
  }
308410
+ if (!slashCommandHandler) {
308411
+ return {
308412
+ success: false,
308413
+ output: "",
308414
+ error: "Slash commands are in manual mode. Ask the user to run /commands auto to enable agent access, or ask the user to run the command directly."
308415
+ };
308416
+ }
308398
308417
  try {
308399
308418
  const result = await slashCommandHandler("/" + cmd);
308400
308419
  return { success: true, output: result || `Command /${cmdName} executed.` };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.187.98",
3
+ "version": "0.187.100",
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",