/** * MCP-aligned gateway for all team operations. * * Both the MCP server and the runtime import from this module instead of * the lower-level persistence layers directly. Every exported function * corresponds to (or backs) an MCP tool with the same semantic name, * ensuring the runtime contract matches the external MCP surface. * * Modeled after oh-my-codex/src/team/team-ops.ts. */ import type { TeamTaskStatus } from './contracts.js'; import type { TeamTask, TeamTaskV2, TeamTaskClaim, TeamConfig, TeamManifestV2, WorkerInfo, WorkerStatus, WorkerHeartbeat, TeamEvent, TeamMailboxMessage, TeamMailbox, TaskApprovalRecord, ClaimTaskResult, TransitionTaskResult, ReleaseTaskClaimResult, TaskReadiness, TeamSummary, ShutdownAck, TeamMonitorSnapshotState } from './types.js'; export type { TeamConfig, WorkerInfo, WorkerHeartbeat, WorkerStatus, TeamTask, TeamTaskV2, TeamTaskClaim, TeamManifestV2, TeamEvent, TeamMailboxMessage, TeamMailbox, TaskApprovalRecord, ClaimTaskResult, TransitionTaskResult, ReleaseTaskClaimResult, TaskReadiness, TeamSummary, ShutdownAck, TeamMonitorSnapshotState, }; declare function writeAtomic(path: string, data: string): Promise; export declare function teamReadConfig(teamName: string, cwd: string): Promise; export declare function teamReadManifest(teamName: string, cwd: string): Promise; export declare function teamCleanup(teamName: string, cwd: string): Promise; export declare function teamWriteWorkerIdentity(teamName: string, workerName: string, identity: WorkerInfo, cwd: string): Promise; export declare function teamReadWorkerHeartbeat(teamName: string, workerName: string, cwd: string): Promise; export declare function teamUpdateWorkerHeartbeat(teamName: string, workerName: string, heartbeat: WorkerHeartbeat, cwd: string): Promise; export declare function teamReadWorkerStatus(teamName: string, workerName: string, cwd: string): Promise; export declare function teamWriteWorkerInbox(teamName: string, workerName: string, prompt: string, cwd: string): Promise; export declare function teamCreateTask(teamName: string, task: Omit, cwd: string): Promise; export declare function teamReadTask(teamName: string, taskId: string, cwd: string): Promise; export declare function teamListTasks(teamName: string, cwd: string): Promise; export declare function teamUpdateTask(teamName: string, taskId: string, updates: Record, cwd: string): Promise; export declare function teamClaimTask(teamName: string, taskId: string, workerName: string, expectedVersion: number | null, cwd: string): Promise; export declare function teamTransitionTaskStatus(teamName: string, taskId: string, from: TeamTaskStatus, to: TeamTaskStatus, claimToken: string, cwd: string): Promise; export declare function teamReleaseTaskClaim(teamName: string, taskId: string, claimToken: string, workerName: string, cwd: string): Promise; export declare function teamSendMessage(teamName: string, fromWorker: string, toWorker: string, body: string, cwd: string): Promise; export declare function teamBroadcast(teamName: string, fromWorker: string, body: string, cwd: string): Promise; export declare function teamListMailbox(teamName: string, workerName: string, cwd: string): Promise; export declare function teamMarkMessageDelivered(teamName: string, workerName: string, messageId: string, cwd: string): Promise; export declare function teamMarkMessageNotified(teamName: string, workerName: string, messageId: string, cwd: string): Promise; export declare function teamAppendEvent(teamName: string, event: Omit, cwd: string): Promise; export declare function teamReadTaskApproval(teamName: string, taskId: string, cwd: string): Promise; export declare function teamWriteTaskApproval(teamName: string, approval: TaskApprovalRecord, cwd: string): Promise; export declare function teamGetSummary(teamName: string, cwd: string): Promise; export declare function teamWriteShutdownRequest(teamName: string, workerName: string, requestedBy: string, cwd: string): Promise; export declare function teamReadShutdownAck(teamName: string, workerName: string, cwd: string, minUpdatedAt?: string): Promise; export declare function teamReadMonitorSnapshot(teamName: string, cwd: string): Promise; export declare function teamWriteMonitorSnapshot(teamName: string, snapshot: TeamMonitorSnapshotState, cwd: string): Promise; export { writeAtomic }; //# sourceMappingURL=team-ops.d.ts.map