-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
78 lines (69 loc) · 2.18 KB
/
types.ts
File metadata and controls
78 lines (69 loc) · 2.18 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
// ZIA SYSTEM TYPES
import { MemoryType } from './02_CORTEX/memory_orchestrator';
export type LLMProvider = 'GOOGLE' | 'OPENAI' | 'OLLAMA' | 'ANTHROPIC';
export type ReasoningMode = 'AUTO' | 'FAST' | 'PRECISE' | 'DEBATE' | 'RESEARCH';
export interface TaskLog {
id: string;
stage: 'ROUTER' | 'MEMORY' | 'SWARM' | 'RESPONSE' | 'FDE_SYNC';
status: 'pending' | 'processing' | 'completed' | 'failed';
message: string;
timestamp: number;
details?: string;
}
export interface BranchingOption {
id: string;
label: string;
description?: string;
next_action: string; // The query or action to perform if selected
icon?: string;
}
// [NEW] User Sovereignty Settings for Interpreter Protocol
export interface InterpreterConfig {
ambiguityThreshold: number; // 0.1 (Passive) ~ 0.9 (Strict)
uiMode: 'INLINE' | 'CANVAS';
showThoughtProcess: boolean; // Transparency toggle
}
export interface Message {
id: string;
role: 'user' | 'model' | 'system' | 'refiner';
text: string;
timestamp: Date;
metadata?: {
modelUsed?: string;
activeMemorySectors?: MemoryType[];
truthState?: string;
fdeSignature?: string;
doubtLevel?: number;
refinementStatus?: 'RAW' | 'REFINED' | 'CLARIFICATION_NEEDED';
cognitiveCard?: {
intent: 'TASK' | 'EMOTIONAL' | 'QUERY' | 'PHILOSOPHICAL';
original: string;
data: any;
};
groundingMetadata?: any;
harvested?: boolean;
swarmProcessed?: boolean;
swarmResult?: boolean;
appliedStrategy?: ReasoningMode;
branchingOptions?: BranchingOption[];
interpretedIntent?: string; // [NEW] For Transparency
};
}
export interface GraphNode {
id: string;
label: string;
status: 'idle' | 'active' | 'completed' | 'warning';
}
export interface UserEnvironment {
os: string;
language: string;
isLegacyPathRisk: boolean;
}
export interface SystemDNA {
layoutMode: 'STANDARD' | 'CODER' | 'WRITER' | 'MINIMAL' | 'FOCUS';
themeColor: 'cyan' | 'emerald' | 'rose' | 'violet' | 'amber';
aiPersona: 'ANALYTICAL' | 'EMPATHETIC' | 'CREATIVE';
generation: number;
reasoningMode: ReasoningMode;
interpreterConfig: InterpreterConfig; // [NEW] Added config
}