Merge pull request #928 from sebslight/feature/response-prefix-template-variables

feat: add dynamic template variables to messages.responsePrefix
This commit is contained in:
Peter Steinberger
2026-01-15 05:27:20 +00:00
committed by GitHub
15 changed files with 488 additions and 9 deletions

View File

@@ -26,6 +26,11 @@ export function resolveIdentityNamePrefix(
return `[${name}]`;
}
/** Returns just the identity name (without brackets) for template context. */
export function resolveIdentityName(cfg: ClawdbotConfig, agentId: string): string | undefined {
return resolveAgentIdentity(cfg, agentId)?.name?.trim() || undefined;
}
export function resolveMessagePrefix(
cfg: ClawdbotConfig,
agentId: string,