mirror of
https://github.com/harivansh-afk/clanker-agent.git
synced 2026-04-20 04:02:39 +00:00
rm bootstrap
This commit is contained in:
parent
bf9bfe38f7
commit
85c2a0b675
4 changed files with 0 additions and 24 deletions
|
|
@ -126,7 +126,6 @@ const companionContextFilenames = [
|
||||||
"USER.md",
|
"USER.md",
|
||||||
"TOOLS.md",
|
"TOOLS.md",
|
||||||
"MEMORY.md",
|
"MEMORY.md",
|
||||||
"BOOTSTRAP.md",
|
|
||||||
];
|
];
|
||||||
|
|
||||||
function loadNamedContextFilesFromDir(
|
function loadNamedContextFilesFromDir(
|
||||||
|
|
|
||||||
|
|
@ -66,11 +66,6 @@ function buildProjectContextSection(
|
||||||
if (hasFile("MEMORY.md")) {
|
if (hasFile("MEMORY.md")) {
|
||||||
guides.push("**MEMORY.md** is what you remember. Keep it current.");
|
guides.push("**MEMORY.md** is what you remember. Keep it current.");
|
||||||
}
|
}
|
||||||
if (hasFile("BOOTSTRAP.md")) {
|
|
||||||
guides.push(
|
|
||||||
"**BOOTSTRAP.md** has tasks to do first.",
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (guides.length > 0) {
|
if (guides.length > 0) {
|
||||||
section += "\n" + guides.map((g) => `- ${g}`).join("\n") + "\n";
|
section += "\n" + guides.map((g) => `- ${g}`).join("\n") + "\n";
|
||||||
|
|
|
||||||
|
|
@ -327,7 +327,6 @@ Content`,
|
||||||
mkdirSync(appDir, { recursive: true });
|
mkdirSync(appDir, { recursive: true });
|
||||||
writeFileSync(join(workspaceDir, "IDENTITY.md"), "# Identity\n\nPi");
|
writeFileSync(join(workspaceDir, "IDENTITY.md"), "# Identity\n\nPi");
|
||||||
writeFileSync(join(workspaceDir, "TOOLS.md"), "# Tools\n\nUse ~/.pi");
|
writeFileSync(join(workspaceDir, "TOOLS.md"), "# Tools\n\nUse ~/.pi");
|
||||||
writeFileSync(join(workspaceDir, "BOOTSTRAP.md"), "# Bootstrap\n\nDo it");
|
|
||||||
|
|
||||||
const loader = new DefaultResourceLoader({ cwd: appDir, agentDir });
|
const loader = new DefaultResourceLoader({ cwd: appDir, agentDir });
|
||||||
await loader.reload();
|
await loader.reload();
|
||||||
|
|
@ -337,9 +336,6 @@ Content`,
|
||||||
true,
|
true,
|
||||||
);
|
);
|
||||||
expect(agentsFiles.some((f) => f.path.endsWith("TOOLS.md"))).toBe(true);
|
expect(agentsFiles.some((f) => f.path.endsWith("TOOLS.md"))).toBe(true);
|
||||||
expect(agentsFiles.some((f) => f.path.endsWith("BOOTSTRAP.md"))).toBe(
|
|
||||||
true,
|
|
||||||
);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should discover SYSTEM.md from cwd/.pi", async () => {
|
it("should discover SYSTEM.md from cwd/.pi", async () => {
|
||||||
|
|
|
||||||
|
|
@ -99,20 +99,6 @@ describe("buildSystemPrompt", () => {
|
||||||
expect(prompt).toContain("## /tmp/project/SOUL.md");
|
expect(prompt).toContain("## /tmp/project/SOUL.md");
|
||||||
});
|
});
|
||||||
|
|
||||||
test("adds bootstrap guidance when BOOTSTRAP.md is present", () => {
|
|
||||||
const prompt = buildSystemPrompt({
|
|
||||||
contextFiles: [
|
|
||||||
{
|
|
||||||
path: "/home/node/.pi/workspace/BOOTSTRAP.md",
|
|
||||||
content: "# Bootstrap\n\nDo the setup",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
skills: [],
|
|
||||||
});
|
|
||||||
|
|
||||||
expect(prompt).toContain("BOOTSTRAP.md** has tasks to do first");
|
|
||||||
});
|
|
||||||
|
|
||||||
test("includes file contents in context section", () => {
|
test("includes file contents in context section", () => {
|
||||||
const prompt = buildSystemPrompt({
|
const prompt = buildSystemPrompt({
|
||||||
contextFiles: [
|
contextFiles: [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue