@botbotgo/agent-harness 0.0.348 → 0.0.349
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,2 +1,2 @@
|
|
|
1
|
-
export declare const AGENT_HARNESS_VERSION = "0.0.
|
|
1
|
+
export declare const AGENT_HARNESS_VERSION = "0.0.349";
|
|
2
2
|
export declare const AGENT_HARNESS_RELEASE_DATE = "2026-04-24";
|
package/dist/package-version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const AGENT_HARNESS_VERSION = "0.0.
|
|
1
|
+
export const AGENT_HARNESS_VERSION = "0.0.349";
|
|
2
2
|
export const AGENT_HARNESS_RELEASE_DATE = "2026-04-24";
|
|
@@ -57,9 +57,7 @@ export function buildDeepAgentSystemPromptWithCapabilityHierarchy(input) {
|
|
|
57
57
|
const basePrompt = typeof input.systemPrompt === "string" ? input.systemPrompt : undefined;
|
|
58
58
|
const skills = buildSkillCatalog(input.skills ?? []);
|
|
59
59
|
const tools = input.tools ?? [];
|
|
60
|
-
|
|
61
|
-
return input.systemPrompt;
|
|
62
|
-
}
|
|
60
|
+
const hasNoConfiguredCapabilities = input.subagents.length === 0 && skills.length === 0 && tools.length === 0;
|
|
63
61
|
const catalogPrompt = [
|
|
64
62
|
"Capability selection hierarchy:",
|
|
65
63
|
"1. If the current request fits an available subagent, delegate with the task tool before using local skills or raw tools.",
|
|
@@ -86,13 +84,30 @@ export function buildDeepAgentSystemPromptWithCapabilityHierarchy(input) {
|
|
|
86
84
|
"Available skills for this agent:",
|
|
87
85
|
...skills.map(formatCapabilityLine),
|
|
88
86
|
]
|
|
89
|
-
: [
|
|
87
|
+
: [
|
|
88
|
+
"",
|
|
89
|
+
"Available skills for this agent: none.",
|
|
90
|
+
]),
|
|
90
91
|
...(tools.length > 0
|
|
91
92
|
? [
|
|
92
93
|
"",
|
|
93
94
|
"Raw tools available to this agent:",
|
|
94
95
|
...tools.map(formatCapabilityLine),
|
|
95
96
|
]
|
|
97
|
+
: [
|
|
98
|
+
"",
|
|
99
|
+
"Raw tools available to this agent: none.",
|
|
100
|
+
"Do not mention, offer, or claim any raw tool that is not listed here.",
|
|
101
|
+
]),
|
|
102
|
+
...(hasNoConfiguredCapabilities
|
|
103
|
+
? [
|
|
104
|
+
"",
|
|
105
|
+
"No-capability terminal rule:",
|
|
106
|
+
"This agent currently has no configured subagents, skills, or raw tools.",
|
|
107
|
+
"For requests that require execution, retrieval, live data, workspace inspection, or external evidence, return a direct refusal based on the missing configured capability.",
|
|
108
|
+
"Do not propose a tool-based next step, do not name any unlisted tool, and do not ask the user for links so this agent can fetch them.",
|
|
109
|
+
"The only valid next step is for the workspace owner to attach an appropriate subagent, skill, or tool and retry.",
|
|
110
|
+
]
|
|
96
111
|
: []),
|
|
97
112
|
"",
|
|
98
113
|
].join("\n");
|