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
parent 5855793d6d
commit e894af8c02

View file

@ -3,6 +3,8 @@ import fs from "node:fs/promises";
const DEFAULT_AGENT_BUNDLE_FILES = { const DEFAULT_AGENT_BUNDLE_FILES = {
default: ["AGENTS.md"], default: ["AGENTS.md"],
ceo: ["AGENTS.md", "HEARTBEAT.md", "SOUL.md", "TOOLS.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; } as const;
type DefaultAgentBundleRole = keyof typeof DEFAULT_AGENT_BUNDLE_FILES; type DefaultAgentBundleRole = keyof typeof DEFAULT_AGENT_BUNDLE_FILES;
@ -23,5 +25,8 @@ export async function loadDefaultAgentInstructionsBundle(role: DefaultAgentBundl
} }
export function resolveDefaultAgentInstructionsBundleRole(role: string): DefaultAgentBundleRole { 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";
} }