- Updated README to include new features such as task-specific logs and messages, task creation with attachments, and task context preservation. - Introduced `stripAgentBlocks` function to remove agent-only blocks from text, improving message clarity. - Enhanced `lookupMessage` function to handle ambiguous messageId scenarios more effectively. - Added `sourceMessageId` and `sourceMessage` fields to capture original message details during task creation. - Updated tests to reflect changes in message handling and ensure robust functionality.
19 lines
658 B
TypeScript
19 lines
658 B
TypeScript
import * as agentTeamsControllerModule from 'agent-teams-controller';
|
|
|
|
type ControllerModule = typeof import('agent-teams-controller') & {
|
|
default?: typeof import('agent-teams-controller');
|
|
};
|
|
|
|
const controllerModule =
|
|
(agentTeamsControllerModule as ControllerModule).default ?? agentTeamsControllerModule;
|
|
const { createController } = controllerModule;
|
|
|
|
/** Re-export agentBlocks utilities (stripAgentBlocks, wrapAgentBlock, etc.) */
|
|
export const agentBlocks = controllerModule.agentBlocks;
|
|
|
|
export function getController(teamName: string, claudeDir?: string) {
|
|
return createController({
|
|
teamName,
|
|
...(claudeDir ? { claudeDir } : {}),
|
|
});
|
|
}
|