feat: activate buddy system in open build (#346)
This commit is contained in:
@@ -250,6 +250,7 @@ import { isInProcessTeammate } from './teammateContext.js'
|
||||
import { removeTeammateFromTeamFile } from './swarm/teamHelpers.js'
|
||||
import { unassignTeammateTasks } from './tasks.js'
|
||||
import { getCompanionIntroAttachment } from '../buddy/prompt.js'
|
||||
import { isBuddyEnabled } from '../buddy/feature.js'
|
||||
|
||||
export const TODO_REMINDER_CONFIG = {
|
||||
TURNS_SINCE_WRITE: 10,
|
||||
@@ -861,10 +862,10 @@ export async function getAttachments(
|
||||
),
|
||||
),
|
||||
),
|
||||
...(feature('BUDDY')
|
||||
? [
|
||||
maybe('companion_intro', () =>
|
||||
Promise.resolve(getCompanionIntroAttachment(messages)),
|
||||
...(isBuddyEnabled()
|
||||
? [
|
||||
maybe('companion_intro', () =>
|
||||
Promise.resolve(getCompanionIntroAttachment(messages)),
|
||||
),
|
||||
]
|
||||
: []),
|
||||
|
||||
Reference in New Issue
Block a user