feat: add per-group workDir for agent working directory override

Agents can now run in a specified project directory instead of the group
folder. The group's CLAUDE.md is still loaded via additionalDirectories.
This commit is contained in:
Eyejoker
2026-03-11 02:02:51 +09:00
parent 82becfdfd7
commit cb51ef36f9
6 changed files with 39 additions and 11 deletions

View File

@@ -227,14 +227,11 @@ export class DiscordChannel implements Channel {
// Convert @username mentions to Discord mention format
const mentionMap: Record<string, string> = {
'눈쟁이': '216851709744513024',
: '216851709744513024',
};
let resolved = text;
for (const [name, id] of Object.entries(mentionMap)) {
resolved = resolved.replace(
new RegExp(`@${name}`, 'g'),
`<@${id}>`,
);
resolved = resolved.replace(new RegExp(`@${name}`, 'g'), `<@${id}>`);
}
// Discord has a 2000 character limit per message — split if needed