-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
63 lines (54 loc) · 1.48 KB
/
types.ts
File metadata and controls
63 lines (54 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
export type TaskStatus = 'ACTIVE' | 'PENDING_VERIFICATION' | 'NEUTRALIZED';
export interface Task {
id: string;
text: string;
createdAt: number;
completedAt: number | null;
updatedAt?: number;
deletedAt?: number | null;
// Syndicate Protocol Extensions
owner?: string | null; // OP-ID of the assignee carrying the burden
handler?: string | null; // OP-ID of the assigner who must verify the kill
status?: TaskStatus; // State machine for Two-Key authentication
syndicate?: boolean; // True if created under Syndicate Protocol
}
export interface Stats {
totalCompleted: number;
totalExpired: number;
totalSessions: number;
fastestSessionMs: number | null;
}
export interface CoprocessorStatus {
active: boolean;
type: string | null;
modelCount: number;
}
export interface HandlerMessage {
text: string;
timestamp: number;
isAI: boolean;
}
export interface NetworkNode {
socketId: string;
opId: string;
ip: string;
activeTaskCount: number;
}
export enum AppView {
LANDING = 'LANDING',
IDENTIFY = 'IDENTIFY',
TASKS = 'TASKS',
ENGAGED = 'ENGAGED',
EXPIRED_NOTICE = 'EXPIRED_NOTICE',
INCOMING_CALL = 'INCOMING_CALL',
DESTRUCTING = 'DESTRUCTING',
DESTRUCTED = 'DESTRUCTED',
// Syndicate Protocol Extensions
INCOMING_DIRECTIVE = 'INCOMING_DIRECTIVE',
GLOBAL_WIPE = 'GLOBAL_WIPE'
}
export enum DestructReason {
OPTIMAL_CLEAR = 'OPTIMAL_CLEAR',
MARGINAL_CLEAR = 'MARGINAL_CLEAR',
MANUAL_BURN = 'MANUAL_BURN'
}