open-agents-ai 0.101.2 → 0.101.4
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 +5 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6258,12 +6258,12 @@ var init_skill_tools = __esm({
|
|
|
6258
6258
|
}
|
|
6259
6259
|
async execute(args) {
|
|
6260
6260
|
const start = performance.now();
|
|
6261
|
-
const name = String(args["name"] ?? "").trim();
|
|
6261
|
+
const name = String(args["name"] ?? args["skill_name"] ?? args["skillName"] ?? "").trim();
|
|
6262
6262
|
if (!name) {
|
|
6263
6263
|
return {
|
|
6264
6264
|
success: false,
|
|
6265
6265
|
output: "",
|
|
6266
|
-
error: "Skill name is required. Use skill_list to see available skills.",
|
|
6266
|
+
error: "Skill name is required. Pass the skill name as the 'name' parameter. Use skill_list to see available skills.",
|
|
6267
6267
|
durationMs: performance.now() - start
|
|
6268
6268
|
};
|
|
6269
6269
|
}
|
|
@@ -6373,7 +6373,7 @@ var init_skill_builder = __esm({
|
|
|
6373
6373
|
}
|
|
6374
6374
|
async execute(args) {
|
|
6375
6375
|
const start = performance.now();
|
|
6376
|
-
const skillRequest = String(args["skill_request"] ?? "").trim();
|
|
6376
|
+
const skillRequest = String(args["skill_request"] ?? args["request"] ?? args["description"] ?? args["prompt"] ?? "").trim();
|
|
6377
6377
|
const targetDir = String(args["target_dir"] ?? join15(this.repoRoot, ".oa", "skills"));
|
|
6378
6378
|
const shouldValidate = args["validate"] !== false;
|
|
6379
6379
|
if (!skillRequest) {
|
|
@@ -18270,6 +18270,8 @@ ${newerSummary}` : newerSummary;
|
|
|
18270
18270
|
const content = msg.content;
|
|
18271
18271
|
if (content.startsWith("Error:") || /^(FAIL|ERR!|TypeError|SyntaxError)/i.test(content))
|
|
18272
18272
|
return msg;
|
|
18273
|
+
if (/\bError:|is required|not found|FAIL|permission denied/i.test(content) && content.length < 2e3)
|
|
18274
|
+
return msg;
|
|
18273
18275
|
if (content.length < 500)
|
|
18274
18276
|
return msg;
|
|
18275
18277
|
const toolName = msg.tool_call_id ? toolCallNames.get(msg.tool_call_id) : void 0;
|
package/package.json
CHANGED