feat(04-01): register pm and engineer bundles in bundle registry

- Add pm and engineer entries to DEFAULT_AGENT_BUNDLE_FILES
- Update resolveDefaultAgentInstructionsBundleRole to handle pm and engineer roles
- DefaultAgentBundleRole type auto-includes new keys via keyof typeof
- All changes marked with // [nexus] for rebase visibility
This commit is contained in:
Mikkel Georgsen 2026-03-31 10:38:05 +02:00 committed by Nexus Dev
parent eb89d8284f
commit 84c159a9d4

View file

@ -3,6 +3,8 @@ import fs from "node:fs/promises";
const DEFAULT_AGENT_BUNDLE_FILES = {
default: ["AGENTS.md"],
ceo: ["AGENTS.md", "HEARTBEAT.md", "SOUL.md", "TOOLS.md"],
pm: ["AGENTS.md", "HEARTBEAT.md", "SOUL.md", "TOOLS.md"], // [nexus]
engineer: ["AGENTS.md", "HEARTBEAT.md", "SOUL.md", "TOOLS.md"], // [nexus]
} as const;
type DefaultAgentBundleRole = keyof typeof DEFAULT_AGENT_BUNDLE_FILES;
@ -23,5 +25,8 @@ export async function loadDefaultAgentInstructionsBundle(role: DefaultAgentBundl
}
export function resolveDefaultAgentInstructionsBundleRole(role: string): DefaultAgentBundleRole {
return role === "ceo" ? "ceo" : "default";
if (role === "ceo") return "ceo";
if (role === "pm") return "pm"; // [nexus]
if (role === "engineer") return "engineer"; // [nexus]
return "default";
}