feat: unify 3 bot services into single process
- Add UNIFIED_MODE flag (default on, disable with UNIFIED_MODE=0) - Register all 3 Discord bots in one process (claude, codex, review) - Load all registered groups regardless of agent_type (codex/owner priority) - Start credential proxy and container cleanup at unified startup - shouldServiceProcessChat returns true in unified mode - Add findChannelByName for role-based response routing - Backward compatible: UNIFIED_MODE=0 restores per-service behavior
This commit is contained in:
@@ -62,11 +62,6 @@ export interface PairedTask {
|
||||
source_ref: string | null;
|
||||
plan_notes: string | null;
|
||||
review_requested_at: string | null;
|
||||
last_finalized_checkpoint?: string | null;
|
||||
gate_turn_kind?: PairedGateTurnKind | null;
|
||||
reviewer_verdict?: PairedReviewerVerdict | null;
|
||||
reviewer_verdict_at?: string | null;
|
||||
reviewer_verdict_note?: string | null;
|
||||
status: PairedTaskStatus;
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
@@ -91,11 +86,9 @@ export type StructuredAgentOutput =
|
||||
| {
|
||||
visibility: 'public';
|
||||
text: string;
|
||||
verdict?: Exclude<PairedReviewerVerdict, 'silent'>;
|
||||
}
|
||||
| {
|
||||
visibility: 'silent';
|
||||
verdict?: 'silent';
|
||||
};
|
||||
|
||||
export function normalizeAgentOutputPhase(
|
||||
|
||||
Reference in New Issue
Block a user