@botbotgo/agent-harness 0.0.33 → 0.0.34
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.
|
|
1
|
+
export declare const AGENT_HARNESS_VERSION = "0.0.33";
|
package/dist/package-version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const AGENT_HARNESS_VERSION = "0.0.
|
|
1
|
+
export const AGENT_HARNESS_VERSION = "0.0.33";
|
|
@@ -3,6 +3,9 @@ import { getSkillInheritancePolicy, resolveToolTargets } from "../extensions.js"
|
|
|
3
3
|
import { compileModel, compileTool } from "./resource-compilers.js";
|
|
4
4
|
import { discoverSkillPaths } from "./support/discovery.js";
|
|
5
5
|
import { compileAgentMemories, getRuntimeDefaults, resolvePromptValue, resolveRefId } from "./support/workspace-ref-utils.js";
|
|
6
|
+
const WORKSPACE_BOUNDARY_GUIDANCE = "Keep repository and file exploration bounded to the current workspace root unless the user explicitly asks for broader host or filesystem access. " +
|
|
7
|
+
"Do not inspect absolute paths outside the workspace, system directories, or unrelated repos by default. " +
|
|
8
|
+
"Prefer workspace-local tools, relative paths, and the current repository checkout when analyzing code.";
|
|
6
9
|
function requireSkills(pathEntries, workspaceRoot) {
|
|
7
10
|
return Array.from(new Set(discoverSkillPaths(pathEntries, workspaceRoot)));
|
|
8
11
|
}
|
|
@@ -79,7 +82,7 @@ function buildSubagent(agent, workspaceRoot, models, tools, parentSkills, parent
|
|
|
79
82
|
return {
|
|
80
83
|
name: resolveAgentRuntimeName(agent),
|
|
81
84
|
description: agent.description,
|
|
82
|
-
systemPrompt: resolvePromptValue(agent.deepAgentConfig?.systemPrompt)
|
|
85
|
+
systemPrompt: [resolvePromptValue(agent.deepAgentConfig?.systemPrompt), WORKSPACE_BOUNDARY_GUIDANCE].filter(Boolean).join("\n\n"),
|
|
83
86
|
tools: requireTools(tools, agent.toolRefs, agent.id),
|
|
84
87
|
model: agent.modelRef ? requireModel(models, agent.modelRef, agent.id) : parentModel,
|
|
85
88
|
interruptOn: agent.deepAgentConfig?.interruptOn,
|
|
@@ -98,10 +101,7 @@ function resolveSystemPrompt(agent) {
|
|
|
98
101
|
return resolveDirectPrompt(agent);
|
|
99
102
|
}
|
|
100
103
|
const deepagentPrompt = resolvePromptValue(agent.deepAgentConfig?.systemPrompt);
|
|
101
|
-
|
|
102
|
-
return deepagentPrompt;
|
|
103
|
-
}
|
|
104
|
-
return resolveDirectPrompt(agent);
|
|
104
|
+
return [deepagentPrompt ?? resolveDirectPrompt(agent), WORKSPACE_BOUNDARY_GUIDANCE].filter(Boolean).join("\n\n");
|
|
105
105
|
}
|
|
106
106
|
function resolveInterruptOn(agent) {
|
|
107
107
|
if (agent.executionMode !== "deepagent") {
|