refactor: centralize paired room role normalization (#193)
This commit is contained in:
17
src/types.ts
17
src/types.ts
@@ -1,5 +1,20 @@
|
||||
import {
|
||||
PAIRED_ROOM_ROLES,
|
||||
isPairedRoomRole,
|
||||
normalizePairedRoomRole,
|
||||
normalizePairedRoomRoleOrNull,
|
||||
type PairedRoomRole,
|
||||
} from 'ejclaw-runners-shared';
|
||||
import type { VisibleVerdict } from './paired-verdict.js';
|
||||
|
||||
export {
|
||||
PAIRED_ROOM_ROLES,
|
||||
isPairedRoomRole,
|
||||
normalizePairedRoomRole,
|
||||
normalizePairedRoomRoleOrNull,
|
||||
type PairedRoomRole,
|
||||
};
|
||||
|
||||
export interface AgentConfig {
|
||||
timeout?: number; // Default: 300000 (5 minutes)
|
||||
// Per-group model/effort overrides (take precedence over global env vars)
|
||||
@@ -55,8 +70,6 @@ export interface DeleteRecentMessagesByContentOptions {
|
||||
limit?: number;
|
||||
}
|
||||
|
||||
export type PairedRoomRole = 'owner' | 'reviewer' | 'arbiter';
|
||||
|
||||
export type PairedTaskStatus =
|
||||
| 'active'
|
||||
| 'review_ready'
|
||||
|
||||
Reference in New Issue
Block a user