- Added new workspace commands for type checking, building, and testing across multiple packages. - Updated CI workflow to include paths for new packages and utilize workspace commands. - Refactored MCP server to integrate with the agent-teams-controller, enhancing task management capabilities. - Improved task boundary detection and logging for MCP tools, ensuring better tracking of task states. - Updated documentation and prompts to reflect new MCP tool usage, replacing previous teamctl.js references.
38 lines
968 B
JavaScript
38 lines
968 B
JavaScript
const { createControllerContext } = require('./internal/context.js');
|
|
const tasks = require('./internal/tasks.js');
|
|
const kanban = require('./internal/kanban.js');
|
|
const review = require('./internal/review.js');
|
|
const messages = require('./internal/messages.js');
|
|
const processes = require('./internal/processes.js');
|
|
|
|
function bindModule(context, moduleApi) {
|
|
return Object.fromEntries(
|
|
Object.entries(moduleApi).map(([name, fn]) => [
|
|
name,
|
|
(...args) => fn(context, ...args),
|
|
])
|
|
);
|
|
}
|
|
|
|
function createController(options) {
|
|
const context = createControllerContext(options);
|
|
|
|
return {
|
|
context,
|
|
tasks: bindModule(context, tasks),
|
|
kanban: bindModule(context, kanban),
|
|
review: bindModule(context, review),
|
|
messages: bindModule(context, messages),
|
|
processes: bindModule(context, processes),
|
|
};
|
|
}
|
|
|
|
module.exports = {
|
|
createController,
|
|
createControllerContext,
|
|
tasks,
|
|
kanban,
|
|
review,
|
|
messages,
|
|
processes,
|
|
};
|