@botbotgo/agent-harness 0.0.262 → 0.0.263

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.
@@ -1 +1 @@
1
- export declare const AGENT_HARNESS_VERSION = "0.0.261";
1
+ export declare const AGENT_HARNESS_VERSION = "0.0.262";
@@ -1 +1 @@
1
- export const AGENT_HARNESS_VERSION = "0.0.261";
1
+ export const AGENT_HARNESS_VERSION = "0.0.262";
@@ -49,6 +49,16 @@ function parseHitlPolicy(value) {
49
49
  allow: allow && allow.length > 0 ? allow : undefined,
50
50
  };
51
51
  }
52
+ function deriveParsedToolName(inferredType, rawName, implementationName) {
53
+ const explicitName = String(rawName ?? "").trim();
54
+ if (explicitName) {
55
+ return explicitName;
56
+ }
57
+ if (inferredType !== "function") {
58
+ return "";
59
+ }
60
+ return typeof implementationName === "string" ? implementationName.trim() : "";
61
+ }
52
62
  export function parseModelObject(object) {
53
63
  const value = object.value;
54
64
  assertNoInitBlock(value, "Model", object.id);
@@ -275,12 +285,13 @@ export function parseToolObject(object) {
275
285
  : backend
276
286
  ? "backend"
277
287
  : "function";
288
+ const implementationName = typeof value.implementationName === "string" ? value.implementationName : undefined;
278
289
  return {
279
290
  id: object.id,
280
291
  type: String(inferredType),
281
- name: String(value.name ?? "").trim(),
292
+ name: deriveParsedToolName(String(inferredType), value.name, implementationName),
282
293
  description: String(value.description ?? "").trim(),
283
- implementationName: typeof value.implementationName === "string" ? value.implementationName : undefined,
294
+ implementationName,
284
295
  config: mergeObjects(mergeObjects(asObject(value.config), providerTool
285
296
  ? {
286
297
  providerTool,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botbotgo/agent-harness",
3
- "version": "0.0.262",
3
+ "version": "0.0.263",
4
4
  "description": "Workspace runtime for multi-agent applications",
5
5
  "license": "MIT",
6
6
  "type": "module",