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:
parent
5855793d6d
commit
e894af8c02
1 changed files with 6 additions and 1 deletions
|
|
@ -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";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue