open-agents-ai 0.187.99 → 0.187.101
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 +14 -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;
|
|
@@ -308341,7 +308346,7 @@ ${entry.fullContent}`
|
|
|
308341
308346
|
};
|
|
308342
308347
|
runner.registerTool(new SkillBuildTool(repoRoot, llmCall));
|
|
308343
308348
|
}
|
|
308344
|
-
|
|
308349
|
+
{
|
|
308345
308350
|
runner.registerTool({
|
|
308346
308351
|
name: "slash_command",
|
|
308347
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.",
|
|
@@ -308402,6 +308407,13 @@ ${entry.fullContent}`
|
|
|
308402
308407
|
error: `Command "/${cmdName}" is user-only and cannot be invoked by the agent. Ask the user to run /${cmdName} directly.`
|
|
308403
308408
|
};
|
|
308404
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
|
+
}
|
|
308405
308417
|
try {
|
|
308406
308418
|
const result = await slashCommandHandler("/" + cmd);
|
|
308407
308419
|
return { success: true, output: result || `Command /${cmdName} executed.` };
|
package/package.json
CHANGED