@botbotgo/agent-harness 0.0.361 → 0.0.362

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.
@@ -27,6 +27,46 @@ export function getRuntimeDefaults(refs) {
27
27
  }
28
28
  return runtimes[0].value;
29
29
  }
30
+ function mergeConfigValue(base, override) {
31
+ if (override === undefined) {
32
+ return base;
33
+ }
34
+ if (typeof base === "object" &&
35
+ base &&
36
+ typeof override === "object" &&
37
+ override &&
38
+ !Array.isArray(base) &&
39
+ !Array.isArray(override)) {
40
+ const merged = { ...base };
41
+ for (const [key, value] of Object.entries(override)) {
42
+ merged[key] = key in merged ? mergeConfigValue(merged[key], value) : value;
43
+ }
44
+ return merged;
45
+ }
46
+ return override;
47
+ }
48
+ export function getRuntimeAgentDefaults(refs) {
49
+ const runtimeDefaults = getRuntimeDefaults(refs);
50
+ const defaults = typeof runtimeDefaults?.defaults === "object" && runtimeDefaults.defaults && !Array.isArray(runtimeDefaults.defaults)
51
+ ? runtimeDefaults.defaults
52
+ : undefined;
53
+ const agentDefaults = typeof defaults?.agent === "object" && defaults.agent && !Array.isArray(defaults.agent)
54
+ ? defaults.agent
55
+ : undefined;
56
+ const agentConfig = typeof agentDefaults?.config === "object" && agentDefaults.config && !Array.isArray(agentDefaults.config)
57
+ ? agentDefaults.config
58
+ : undefined;
59
+ const inlineAgentDefaults = typeof runtimeDefaults?.agent === "object" && runtimeDefaults.agent && !Array.isArray(runtimeDefaults.agent)
60
+ ? runtimeDefaults.agent
61
+ : undefined;
62
+ const inlineAgentConfig = typeof inlineAgentDefaults?.config === "object" && inlineAgentDefaults.config && !Array.isArray(inlineAgentDefaults.config)
63
+ ? inlineAgentDefaults.config
64
+ : undefined;
65
+ const merged = mergeConfigValue(agentConfig, inlineAgentConfig);
66
+ return typeof merged === "object" && merged && !Array.isArray(merged)
67
+ ? merged
68
+ : undefined;
69
+ }
30
70
  function asNonEmptyString(value) {
31
71
  return typeof value === "string" && value.trim().length > 0 ? value.trim() : undefined;
32
72
  }
@@ -155,6 +155,8 @@ function normalizeKind(kind) {
155
155
  return "embedding-model";
156
156
  case "VectorStore":
157
157
  return "vector-store";
158
+ case "ResponseFormat":
159
+ return "response-format";
158
160
  case "Backend":
159
161
  return "backend";
160
162
  case "Store":
@@ -219,15 +221,17 @@ async function objectItemsFromDocument(document, sourcePath) {
219
221
  ? normalizeCatalogSpec(document, { defaultKind: "EmbeddingModel" })
220
222
  : catalogKind === "VectorStores"
221
223
  ? normalizeCatalogSpec(document, { defaultKind: "VectorStore" })
222
- : catalogKind === "Stores"
223
- ? normalizeCatalogSpec(document)
224
- : catalogKind === "Backends"
225
- ? normalizeCatalogSpec(document, { defaultKind: "Backend" })
226
- : catalogKind === "Tools" || catalogKind === "ToolSets"
227
- ? normalizeCatalogSpec(document, { defaultKind: "Tool" })
228
- : catalogKind === "McpServers"
229
- ? normalizeCatalogSpec(document, { defaultKind: "McpServer" })
230
- : [];
224
+ : catalogKind === "ResponseFormats"
225
+ ? normalizeCatalogSpec(document, { defaultKind: "ResponseFormat" })
226
+ : catalogKind === "Stores"
227
+ ? normalizeCatalogSpec(document)
228
+ : catalogKind === "Backends"
229
+ ? normalizeCatalogSpec(document, { defaultKind: "Backend" })
230
+ : catalogKind === "Tools" || catalogKind === "ToolSets"
231
+ ? normalizeCatalogSpec(document, { defaultKind: "Tool" })
232
+ : catalogKind === "McpServers"
233
+ ? normalizeCatalogSpec(document, { defaultKind: "McpServer" })
234
+ : [];
231
235
  if (catalogItems.length > 0) {
232
236
  return catalogItems;
233
237
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botbotgo/agent-harness",
3
- "version": "0.0.361",
3
+ "version": "0.0.362",
4
4
  "description": "Workspace runtime for multi-agent applications",
5
5
  "license": "MIT",
6
6
  "type": "module",