@affectively/aeon 1.3.0 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +5 -11
- package/README.md +90 -10
- package/dist/compression/index.cjs +20 -3
- package/dist/compression/index.cjs.map +1 -1
- package/dist/compression/index.js +20 -3
- package/dist/compression/index.js.map +1 -1
- package/dist/crypto/index.cjs +30 -0
- package/dist/crypto/index.cjs.map +1 -1
- package/dist/crypto/index.js +29 -1
- package/dist/crypto/index.js.map +1 -1
- package/dist/distributed/index.cjs +15 -8
- package/dist/distributed/index.cjs.map +1 -1
- package/dist/distributed/index.js +15 -8
- package/dist/distributed/index.js.map +1 -1
- package/dist/index.cjs +2923 -46
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2879 -47
- package/dist/index.js.map +1 -1
- package/dist/optimization/index.cjs +6 -3
- package/dist/optimization/index.cjs.map +1 -1
- package/dist/optimization/index.js +6 -3
- package/dist/optimization/index.js.map +1 -1
- package/dist/persistence/index.cjs +91 -29
- package/dist/persistence/index.cjs.map +1 -1
- package/dist/persistence/index.js +91 -29
- package/dist/persistence/index.js.map +1 -1
- package/dist/presence/index.cjs.map +1 -1
- package/dist/presence/index.js.map +1 -1
- package/dist/versioning/index.cjs +4 -3
- package/dist/versioning/index.cjs.map +1 -1
- package/dist/versioning/index.js +4 -3
- package/dist/versioning/index.js.map +1 -1
- package/package.json +7 -8
- package/dist/compression/index.d.cts +0 -189
- package/dist/compression/index.d.ts +0 -189
- package/dist/core/index.d.cts +0 -216
- package/dist/core/index.d.ts +0 -216
- package/dist/crypto/index.d.cts +0 -446
- package/dist/crypto/index.d.ts +0 -446
- package/dist/distributed/index.d.cts +0 -1016
- package/dist/distributed/index.d.ts +0 -1016
- package/dist/index.d.cts +0 -12
- package/dist/index.d.ts +0 -12
- package/dist/offline/index.d.cts +0 -154
- package/dist/offline/index.d.ts +0 -154
- package/dist/optimization/index.d.cts +0 -347
- package/dist/optimization/index.d.ts +0 -347
- package/dist/persistence/index.d.cts +0 -63
- package/dist/persistence/index.d.ts +0 -63
- package/dist/presence/index.d.cts +0 -283
- package/dist/presence/index.d.ts +0 -283
- package/dist/types-B7gCpNX9.d.cts +0 -33
- package/dist/types-B7gCpNX9.d.ts +0 -33
- package/dist/utils/index.d.cts +0 -38
- package/dist/utils/index.d.ts +0 -38
- package/dist/versioning/index.d.cts +0 -537
- package/dist/versioning/index.d.ts +0 -537
|
@@ -1,283 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from 'eventemitter3';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Agent Presence Manager (Phase 14)
|
|
5
|
-
*
|
|
6
|
-
* Tracks real-time presence of all agents in a session.
|
|
7
|
-
* Provides status updates, cursor tracking, and activity monitoring.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
interface AgentPresence {
|
|
11
|
-
agentId: string;
|
|
12
|
-
name: string;
|
|
13
|
-
role: 'user' | 'assistant' | 'monitor' | 'admin';
|
|
14
|
-
status: 'online' | 'away' | 'offline' | 'reconnecting';
|
|
15
|
-
joinedAt: string;
|
|
16
|
-
lastSeen: string;
|
|
17
|
-
cursorPosition?: {
|
|
18
|
-
x: number;
|
|
19
|
-
y: number;
|
|
20
|
-
path: string;
|
|
21
|
-
};
|
|
22
|
-
activeSection?: string;
|
|
23
|
-
focusNode?: string;
|
|
24
|
-
selectionRange?: AgentSelectionRange;
|
|
25
|
-
typingState?: AgentTypingState;
|
|
26
|
-
scrollState?: AgentScrollState;
|
|
27
|
-
viewport?: AgentViewportState;
|
|
28
|
-
inputState?: AgentInputState;
|
|
29
|
-
emotionState?: AgentEmotionState;
|
|
30
|
-
metadata?: Record<string, unknown>;
|
|
31
|
-
}
|
|
32
|
-
interface AgentSelectionRange {
|
|
33
|
-
start: number;
|
|
34
|
-
end: number;
|
|
35
|
-
direction?: 'forward' | 'backward' | 'none';
|
|
36
|
-
path?: string;
|
|
37
|
-
}
|
|
38
|
-
interface AgentTypingState {
|
|
39
|
-
isTyping: boolean;
|
|
40
|
-
field?: string;
|
|
41
|
-
isComposing?: boolean;
|
|
42
|
-
startedAt?: string;
|
|
43
|
-
stoppedAt?: string;
|
|
44
|
-
}
|
|
45
|
-
interface AgentScrollState {
|
|
46
|
-
depth: number;
|
|
47
|
-
y?: number;
|
|
48
|
-
viewportHeight?: number;
|
|
49
|
-
documentHeight?: number;
|
|
50
|
-
path?: string;
|
|
51
|
-
}
|
|
52
|
-
interface AgentViewportState {
|
|
53
|
-
width: number;
|
|
54
|
-
height: number;
|
|
55
|
-
}
|
|
56
|
-
interface AgentInputState {
|
|
57
|
-
field: string;
|
|
58
|
-
hasFocus: boolean;
|
|
59
|
-
valueLength?: number;
|
|
60
|
-
selectionStart?: number;
|
|
61
|
-
selectionEnd?: number;
|
|
62
|
-
isComposing?: boolean;
|
|
63
|
-
inputMode?: string;
|
|
64
|
-
}
|
|
65
|
-
interface AgentEmotionState {
|
|
66
|
-
primary?: string;
|
|
67
|
-
secondary?: string;
|
|
68
|
-
confidence?: number;
|
|
69
|
-
intensity?: number;
|
|
70
|
-
valence?: number;
|
|
71
|
-
arousal?: number;
|
|
72
|
-
dominance?: number;
|
|
73
|
-
source?: 'self-report' | 'inferred' | 'sensor' | 'hybrid';
|
|
74
|
-
updatedAt?: string;
|
|
75
|
-
}
|
|
76
|
-
interface PresenceUpdate {
|
|
77
|
-
agentId: string;
|
|
78
|
-
changes: Partial<AgentPresence>;
|
|
79
|
-
timestamp: string;
|
|
80
|
-
}
|
|
81
|
-
interface PresenceEvents {
|
|
82
|
-
presence_updated: (data: {
|
|
83
|
-
agentId: string;
|
|
84
|
-
presence: AgentPresence;
|
|
85
|
-
}) => void;
|
|
86
|
-
agent_joined: (data: {
|
|
87
|
-
agentId: string;
|
|
88
|
-
presence: AgentPresence;
|
|
89
|
-
}) => void;
|
|
90
|
-
agent_left: (data: {
|
|
91
|
-
agentId: string;
|
|
92
|
-
presence: AgentPresence;
|
|
93
|
-
}) => void;
|
|
94
|
-
cursor_updated: (data: {
|
|
95
|
-
agentId: string;
|
|
96
|
-
cursorPosition: {
|
|
97
|
-
x: number;
|
|
98
|
-
y: number;
|
|
99
|
-
path: string;
|
|
100
|
-
};
|
|
101
|
-
}) => void;
|
|
102
|
-
section_updated: (data: {
|
|
103
|
-
agentId: string;
|
|
104
|
-
activeSection: string;
|
|
105
|
-
}) => void;
|
|
106
|
-
focus_updated: (data: {
|
|
107
|
-
agentId: string;
|
|
108
|
-
focusNode: string;
|
|
109
|
-
}) => void;
|
|
110
|
-
selection_updated: (data: {
|
|
111
|
-
agentId: string;
|
|
112
|
-
selectionRange: AgentSelectionRange;
|
|
113
|
-
}) => void;
|
|
114
|
-
typing_updated: (data: {
|
|
115
|
-
agentId: string;
|
|
116
|
-
typingState: AgentTypingState;
|
|
117
|
-
}) => void;
|
|
118
|
-
scroll_updated: (data: {
|
|
119
|
-
agentId: string;
|
|
120
|
-
scrollState: AgentScrollState;
|
|
121
|
-
}) => void;
|
|
122
|
-
viewport_updated: (data: {
|
|
123
|
-
agentId: string;
|
|
124
|
-
viewport: AgentViewportState;
|
|
125
|
-
}) => void;
|
|
126
|
-
input_state_updated: (data: {
|
|
127
|
-
agentId: string;
|
|
128
|
-
inputState?: AgentInputState;
|
|
129
|
-
}) => void;
|
|
130
|
-
emotion_updated: (data: {
|
|
131
|
-
agentId: string;
|
|
132
|
-
emotionState?: AgentEmotionState;
|
|
133
|
-
}) => void;
|
|
134
|
-
status_updated: (data: {
|
|
135
|
-
agentId: string;
|
|
136
|
-
status: AgentPresence['status'];
|
|
137
|
-
}) => void;
|
|
138
|
-
}
|
|
139
|
-
declare class AgentPresenceManager extends EventEmitter<PresenceEvents> {
|
|
140
|
-
private presences;
|
|
141
|
-
private sessionId;
|
|
142
|
-
private heartbeatInterval;
|
|
143
|
-
private heartbeatTimeout;
|
|
144
|
-
private inactivityThreshold;
|
|
145
|
-
constructor(sessionId: string);
|
|
146
|
-
/**
|
|
147
|
-
* Add or update agent presence
|
|
148
|
-
*/
|
|
149
|
-
updatePresence(agentId: string, presence: Omit<AgentPresence, 'joinedAt' | 'lastSeen'>): void;
|
|
150
|
-
/**
|
|
151
|
-
* Agent joined
|
|
152
|
-
*/
|
|
153
|
-
agentJoined(agentId: string, name: string, role?: AgentPresence['role'], metadata?: Record<string, unknown>): void;
|
|
154
|
-
/**
|
|
155
|
-
* Agent left
|
|
156
|
-
*/
|
|
157
|
-
agentLeft(agentId: string): void;
|
|
158
|
-
/**
|
|
159
|
-
* Update cursor position
|
|
160
|
-
*/
|
|
161
|
-
updateCursor(agentId: string, x: number, y: number, path: string): void;
|
|
162
|
-
/**
|
|
163
|
-
* Update active section
|
|
164
|
-
*/
|
|
165
|
-
updateActiveSection(agentId: string, section: string): void;
|
|
166
|
-
/**
|
|
167
|
-
* Update focused node path
|
|
168
|
-
*/
|
|
169
|
-
updateFocusNode(agentId: string, nodePath: string): void;
|
|
170
|
-
/**
|
|
171
|
-
* Update text selection range
|
|
172
|
-
*/
|
|
173
|
-
updateSelection(agentId: string, selectionRange: AgentSelectionRange): void;
|
|
174
|
-
/**
|
|
175
|
-
* Update typing state
|
|
176
|
-
*/
|
|
177
|
-
updateTyping(agentId: string, isTyping: boolean, field?: string, isComposing?: boolean): void;
|
|
178
|
-
/**
|
|
179
|
-
* Update scroll state
|
|
180
|
-
*/
|
|
181
|
-
updateScroll(agentId: string, scrollState: AgentScrollState): void;
|
|
182
|
-
/**
|
|
183
|
-
* Update viewport size
|
|
184
|
-
*/
|
|
185
|
-
updateViewport(agentId: string, width: number, height: number): void;
|
|
186
|
-
/**
|
|
187
|
-
* Update input state
|
|
188
|
-
*/
|
|
189
|
-
updateInputState(agentId: string, inputState: AgentInputState): void;
|
|
190
|
-
/**
|
|
191
|
-
* Clear input state
|
|
192
|
-
*/
|
|
193
|
-
clearInputState(agentId: string): void;
|
|
194
|
-
/**
|
|
195
|
-
* Update emotional state
|
|
196
|
-
*/
|
|
197
|
-
updateEmotionState(agentId: string, emotionState: Omit<AgentEmotionState, 'updatedAt'>): void;
|
|
198
|
-
/**
|
|
199
|
-
* Clear emotional state
|
|
200
|
-
*/
|
|
201
|
-
clearEmotionState(agentId: string): void;
|
|
202
|
-
/**
|
|
203
|
-
* Update status
|
|
204
|
-
*/
|
|
205
|
-
updateStatus(agentId: string, status: AgentPresence['status']): void;
|
|
206
|
-
/**
|
|
207
|
-
* Heartbeat from agent (keeps them online)
|
|
208
|
-
*/
|
|
209
|
-
heartbeat(agentId: string): void;
|
|
210
|
-
/**
|
|
211
|
-
* Get presence for agent
|
|
212
|
-
*/
|
|
213
|
-
getPresence(agentId: string): AgentPresence | undefined;
|
|
214
|
-
/**
|
|
215
|
-
* Get all online agents
|
|
216
|
-
*/
|
|
217
|
-
getOnlineAgents(): AgentPresence[];
|
|
218
|
-
/**
|
|
219
|
-
* Get all agents
|
|
220
|
-
*/
|
|
221
|
-
getAllAgents(): AgentPresence[];
|
|
222
|
-
/**
|
|
223
|
-
* Get all presences
|
|
224
|
-
*/
|
|
225
|
-
getAllPresences(): AgentPresence[];
|
|
226
|
-
/**
|
|
227
|
-
* Get agent count
|
|
228
|
-
*/
|
|
229
|
-
getAgentCount(): Record<AgentPresence['status'], number>;
|
|
230
|
-
/**
|
|
231
|
-
* Get statistics
|
|
232
|
-
*/
|
|
233
|
-
getStats(): {
|
|
234
|
-
totalAgents: number;
|
|
235
|
-
onlineAgents: number;
|
|
236
|
-
offlineAgents: number;
|
|
237
|
-
awayAgents: number;
|
|
238
|
-
reconnectingAgents: number;
|
|
239
|
-
};
|
|
240
|
-
/**
|
|
241
|
-
* Clear expired presences
|
|
242
|
-
*/
|
|
243
|
-
clearExpiredPresences(maxAgeMs: number): void;
|
|
244
|
-
/**
|
|
245
|
-
* Get agents by role
|
|
246
|
-
*/
|
|
247
|
-
getByRole(role: AgentPresence['role']): AgentPresence[];
|
|
248
|
-
/**
|
|
249
|
-
* Get agents in active section
|
|
250
|
-
*/
|
|
251
|
-
getInSection(section: string): AgentPresence[];
|
|
252
|
-
/**
|
|
253
|
-
* Get presence timeline
|
|
254
|
-
*/
|
|
255
|
-
getPresenceStats(): {
|
|
256
|
-
total: number;
|
|
257
|
-
online: number;
|
|
258
|
-
away: number;
|
|
259
|
-
offline: number;
|
|
260
|
-
reconnecting: number;
|
|
261
|
-
byRole: Record<string, number>;
|
|
262
|
-
};
|
|
263
|
-
/**
|
|
264
|
-
* Start heartbeat check (mark inactive agents as away)
|
|
265
|
-
*/
|
|
266
|
-
private startHeartbeatCheck;
|
|
267
|
-
/**
|
|
268
|
-
* Stop heartbeat monitoring
|
|
269
|
-
*/
|
|
270
|
-
stopHeartbeatMonitoring(): void;
|
|
271
|
-
/**
|
|
272
|
-
* Clear all presences
|
|
273
|
-
*/
|
|
274
|
-
clear(): void;
|
|
275
|
-
/**
|
|
276
|
-
* Destroy the manager
|
|
277
|
-
*/
|
|
278
|
-
destroy(): void;
|
|
279
|
-
}
|
|
280
|
-
declare function getAgentPresenceManager(sessionId: string): AgentPresenceManager;
|
|
281
|
-
declare function clearAgentPresenceManager(sessionId: string): void;
|
|
282
|
-
|
|
283
|
-
export { type AgentEmotionState, type AgentInputState, type AgentPresence, AgentPresenceManager, type AgentScrollState, type AgentSelectionRange, type AgentTypingState, type AgentViewportState, type PresenceEvents, type PresenceUpdate, clearAgentPresenceManager, getAgentPresenceManager };
|
package/dist/presence/index.d.ts
DELETED
|
@@ -1,283 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from 'eventemitter3';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Agent Presence Manager (Phase 14)
|
|
5
|
-
*
|
|
6
|
-
* Tracks real-time presence of all agents in a session.
|
|
7
|
-
* Provides status updates, cursor tracking, and activity monitoring.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
interface AgentPresence {
|
|
11
|
-
agentId: string;
|
|
12
|
-
name: string;
|
|
13
|
-
role: 'user' | 'assistant' | 'monitor' | 'admin';
|
|
14
|
-
status: 'online' | 'away' | 'offline' | 'reconnecting';
|
|
15
|
-
joinedAt: string;
|
|
16
|
-
lastSeen: string;
|
|
17
|
-
cursorPosition?: {
|
|
18
|
-
x: number;
|
|
19
|
-
y: number;
|
|
20
|
-
path: string;
|
|
21
|
-
};
|
|
22
|
-
activeSection?: string;
|
|
23
|
-
focusNode?: string;
|
|
24
|
-
selectionRange?: AgentSelectionRange;
|
|
25
|
-
typingState?: AgentTypingState;
|
|
26
|
-
scrollState?: AgentScrollState;
|
|
27
|
-
viewport?: AgentViewportState;
|
|
28
|
-
inputState?: AgentInputState;
|
|
29
|
-
emotionState?: AgentEmotionState;
|
|
30
|
-
metadata?: Record<string, unknown>;
|
|
31
|
-
}
|
|
32
|
-
interface AgentSelectionRange {
|
|
33
|
-
start: number;
|
|
34
|
-
end: number;
|
|
35
|
-
direction?: 'forward' | 'backward' | 'none';
|
|
36
|
-
path?: string;
|
|
37
|
-
}
|
|
38
|
-
interface AgentTypingState {
|
|
39
|
-
isTyping: boolean;
|
|
40
|
-
field?: string;
|
|
41
|
-
isComposing?: boolean;
|
|
42
|
-
startedAt?: string;
|
|
43
|
-
stoppedAt?: string;
|
|
44
|
-
}
|
|
45
|
-
interface AgentScrollState {
|
|
46
|
-
depth: number;
|
|
47
|
-
y?: number;
|
|
48
|
-
viewportHeight?: number;
|
|
49
|
-
documentHeight?: number;
|
|
50
|
-
path?: string;
|
|
51
|
-
}
|
|
52
|
-
interface AgentViewportState {
|
|
53
|
-
width: number;
|
|
54
|
-
height: number;
|
|
55
|
-
}
|
|
56
|
-
interface AgentInputState {
|
|
57
|
-
field: string;
|
|
58
|
-
hasFocus: boolean;
|
|
59
|
-
valueLength?: number;
|
|
60
|
-
selectionStart?: number;
|
|
61
|
-
selectionEnd?: number;
|
|
62
|
-
isComposing?: boolean;
|
|
63
|
-
inputMode?: string;
|
|
64
|
-
}
|
|
65
|
-
interface AgentEmotionState {
|
|
66
|
-
primary?: string;
|
|
67
|
-
secondary?: string;
|
|
68
|
-
confidence?: number;
|
|
69
|
-
intensity?: number;
|
|
70
|
-
valence?: number;
|
|
71
|
-
arousal?: number;
|
|
72
|
-
dominance?: number;
|
|
73
|
-
source?: 'self-report' | 'inferred' | 'sensor' | 'hybrid';
|
|
74
|
-
updatedAt?: string;
|
|
75
|
-
}
|
|
76
|
-
interface PresenceUpdate {
|
|
77
|
-
agentId: string;
|
|
78
|
-
changes: Partial<AgentPresence>;
|
|
79
|
-
timestamp: string;
|
|
80
|
-
}
|
|
81
|
-
interface PresenceEvents {
|
|
82
|
-
presence_updated: (data: {
|
|
83
|
-
agentId: string;
|
|
84
|
-
presence: AgentPresence;
|
|
85
|
-
}) => void;
|
|
86
|
-
agent_joined: (data: {
|
|
87
|
-
agentId: string;
|
|
88
|
-
presence: AgentPresence;
|
|
89
|
-
}) => void;
|
|
90
|
-
agent_left: (data: {
|
|
91
|
-
agentId: string;
|
|
92
|
-
presence: AgentPresence;
|
|
93
|
-
}) => void;
|
|
94
|
-
cursor_updated: (data: {
|
|
95
|
-
agentId: string;
|
|
96
|
-
cursorPosition: {
|
|
97
|
-
x: number;
|
|
98
|
-
y: number;
|
|
99
|
-
path: string;
|
|
100
|
-
};
|
|
101
|
-
}) => void;
|
|
102
|
-
section_updated: (data: {
|
|
103
|
-
agentId: string;
|
|
104
|
-
activeSection: string;
|
|
105
|
-
}) => void;
|
|
106
|
-
focus_updated: (data: {
|
|
107
|
-
agentId: string;
|
|
108
|
-
focusNode: string;
|
|
109
|
-
}) => void;
|
|
110
|
-
selection_updated: (data: {
|
|
111
|
-
agentId: string;
|
|
112
|
-
selectionRange: AgentSelectionRange;
|
|
113
|
-
}) => void;
|
|
114
|
-
typing_updated: (data: {
|
|
115
|
-
agentId: string;
|
|
116
|
-
typingState: AgentTypingState;
|
|
117
|
-
}) => void;
|
|
118
|
-
scroll_updated: (data: {
|
|
119
|
-
agentId: string;
|
|
120
|
-
scrollState: AgentScrollState;
|
|
121
|
-
}) => void;
|
|
122
|
-
viewport_updated: (data: {
|
|
123
|
-
agentId: string;
|
|
124
|
-
viewport: AgentViewportState;
|
|
125
|
-
}) => void;
|
|
126
|
-
input_state_updated: (data: {
|
|
127
|
-
agentId: string;
|
|
128
|
-
inputState?: AgentInputState;
|
|
129
|
-
}) => void;
|
|
130
|
-
emotion_updated: (data: {
|
|
131
|
-
agentId: string;
|
|
132
|
-
emotionState?: AgentEmotionState;
|
|
133
|
-
}) => void;
|
|
134
|
-
status_updated: (data: {
|
|
135
|
-
agentId: string;
|
|
136
|
-
status: AgentPresence['status'];
|
|
137
|
-
}) => void;
|
|
138
|
-
}
|
|
139
|
-
declare class AgentPresenceManager extends EventEmitter<PresenceEvents> {
|
|
140
|
-
private presences;
|
|
141
|
-
private sessionId;
|
|
142
|
-
private heartbeatInterval;
|
|
143
|
-
private heartbeatTimeout;
|
|
144
|
-
private inactivityThreshold;
|
|
145
|
-
constructor(sessionId: string);
|
|
146
|
-
/**
|
|
147
|
-
* Add or update agent presence
|
|
148
|
-
*/
|
|
149
|
-
updatePresence(agentId: string, presence: Omit<AgentPresence, 'joinedAt' | 'lastSeen'>): void;
|
|
150
|
-
/**
|
|
151
|
-
* Agent joined
|
|
152
|
-
*/
|
|
153
|
-
agentJoined(agentId: string, name: string, role?: AgentPresence['role'], metadata?: Record<string, unknown>): void;
|
|
154
|
-
/**
|
|
155
|
-
* Agent left
|
|
156
|
-
*/
|
|
157
|
-
agentLeft(agentId: string): void;
|
|
158
|
-
/**
|
|
159
|
-
* Update cursor position
|
|
160
|
-
*/
|
|
161
|
-
updateCursor(agentId: string, x: number, y: number, path: string): void;
|
|
162
|
-
/**
|
|
163
|
-
* Update active section
|
|
164
|
-
*/
|
|
165
|
-
updateActiveSection(agentId: string, section: string): void;
|
|
166
|
-
/**
|
|
167
|
-
* Update focused node path
|
|
168
|
-
*/
|
|
169
|
-
updateFocusNode(agentId: string, nodePath: string): void;
|
|
170
|
-
/**
|
|
171
|
-
* Update text selection range
|
|
172
|
-
*/
|
|
173
|
-
updateSelection(agentId: string, selectionRange: AgentSelectionRange): void;
|
|
174
|
-
/**
|
|
175
|
-
* Update typing state
|
|
176
|
-
*/
|
|
177
|
-
updateTyping(agentId: string, isTyping: boolean, field?: string, isComposing?: boolean): void;
|
|
178
|
-
/**
|
|
179
|
-
* Update scroll state
|
|
180
|
-
*/
|
|
181
|
-
updateScroll(agentId: string, scrollState: AgentScrollState): void;
|
|
182
|
-
/**
|
|
183
|
-
* Update viewport size
|
|
184
|
-
*/
|
|
185
|
-
updateViewport(agentId: string, width: number, height: number): void;
|
|
186
|
-
/**
|
|
187
|
-
* Update input state
|
|
188
|
-
*/
|
|
189
|
-
updateInputState(agentId: string, inputState: AgentInputState): void;
|
|
190
|
-
/**
|
|
191
|
-
* Clear input state
|
|
192
|
-
*/
|
|
193
|
-
clearInputState(agentId: string): void;
|
|
194
|
-
/**
|
|
195
|
-
* Update emotional state
|
|
196
|
-
*/
|
|
197
|
-
updateEmotionState(agentId: string, emotionState: Omit<AgentEmotionState, 'updatedAt'>): void;
|
|
198
|
-
/**
|
|
199
|
-
* Clear emotional state
|
|
200
|
-
*/
|
|
201
|
-
clearEmotionState(agentId: string): void;
|
|
202
|
-
/**
|
|
203
|
-
* Update status
|
|
204
|
-
*/
|
|
205
|
-
updateStatus(agentId: string, status: AgentPresence['status']): void;
|
|
206
|
-
/**
|
|
207
|
-
* Heartbeat from agent (keeps them online)
|
|
208
|
-
*/
|
|
209
|
-
heartbeat(agentId: string): void;
|
|
210
|
-
/**
|
|
211
|
-
* Get presence for agent
|
|
212
|
-
*/
|
|
213
|
-
getPresence(agentId: string): AgentPresence | undefined;
|
|
214
|
-
/**
|
|
215
|
-
* Get all online agents
|
|
216
|
-
*/
|
|
217
|
-
getOnlineAgents(): AgentPresence[];
|
|
218
|
-
/**
|
|
219
|
-
* Get all agents
|
|
220
|
-
*/
|
|
221
|
-
getAllAgents(): AgentPresence[];
|
|
222
|
-
/**
|
|
223
|
-
* Get all presences
|
|
224
|
-
*/
|
|
225
|
-
getAllPresences(): AgentPresence[];
|
|
226
|
-
/**
|
|
227
|
-
* Get agent count
|
|
228
|
-
*/
|
|
229
|
-
getAgentCount(): Record<AgentPresence['status'], number>;
|
|
230
|
-
/**
|
|
231
|
-
* Get statistics
|
|
232
|
-
*/
|
|
233
|
-
getStats(): {
|
|
234
|
-
totalAgents: number;
|
|
235
|
-
onlineAgents: number;
|
|
236
|
-
offlineAgents: number;
|
|
237
|
-
awayAgents: number;
|
|
238
|
-
reconnectingAgents: number;
|
|
239
|
-
};
|
|
240
|
-
/**
|
|
241
|
-
* Clear expired presences
|
|
242
|
-
*/
|
|
243
|
-
clearExpiredPresences(maxAgeMs: number): void;
|
|
244
|
-
/**
|
|
245
|
-
* Get agents by role
|
|
246
|
-
*/
|
|
247
|
-
getByRole(role: AgentPresence['role']): AgentPresence[];
|
|
248
|
-
/**
|
|
249
|
-
* Get agents in active section
|
|
250
|
-
*/
|
|
251
|
-
getInSection(section: string): AgentPresence[];
|
|
252
|
-
/**
|
|
253
|
-
* Get presence timeline
|
|
254
|
-
*/
|
|
255
|
-
getPresenceStats(): {
|
|
256
|
-
total: number;
|
|
257
|
-
online: number;
|
|
258
|
-
away: number;
|
|
259
|
-
offline: number;
|
|
260
|
-
reconnecting: number;
|
|
261
|
-
byRole: Record<string, number>;
|
|
262
|
-
};
|
|
263
|
-
/**
|
|
264
|
-
* Start heartbeat check (mark inactive agents as away)
|
|
265
|
-
*/
|
|
266
|
-
private startHeartbeatCheck;
|
|
267
|
-
/**
|
|
268
|
-
* Stop heartbeat monitoring
|
|
269
|
-
*/
|
|
270
|
-
stopHeartbeatMonitoring(): void;
|
|
271
|
-
/**
|
|
272
|
-
* Clear all presences
|
|
273
|
-
*/
|
|
274
|
-
clear(): void;
|
|
275
|
-
/**
|
|
276
|
-
* Destroy the manager
|
|
277
|
-
*/
|
|
278
|
-
destroy(): void;
|
|
279
|
-
}
|
|
280
|
-
declare function getAgentPresenceManager(sessionId: string): AgentPresenceManager;
|
|
281
|
-
declare function clearAgentPresenceManager(sessionId: string): void;
|
|
282
|
-
|
|
283
|
-
export { type AgentEmotionState, type AgentInputState, type AgentPresence, AgentPresenceManager, type AgentScrollState, type AgentSelectionRange, type AgentTypingState, type AgentViewportState, type PresenceEvents, type PresenceUpdate, clearAgentPresenceManager, getAgentPresenceManager };
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Persistence types for Aeon durable state.
|
|
3
|
-
*
|
|
4
|
-
* The adapter interface is intentionally minimal so consumers can map it to
|
|
5
|
-
* local storage, WASM-backed stores, D1/R2 synchronization layers, or custom
|
|
6
|
-
* encrypted stores without extra dependencies.
|
|
7
|
-
*/
|
|
8
|
-
/**
|
|
9
|
-
* Minimal storage adapter interface.
|
|
10
|
-
*/
|
|
11
|
-
interface StorageAdapter {
|
|
12
|
-
getItem(key: string): Promise<string | null> | string | null;
|
|
13
|
-
setItem(key: string, value: string): Promise<void> | void;
|
|
14
|
-
removeItem(key: string): Promise<void> | void;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Versioned envelope for persisted payloads.
|
|
18
|
-
*/
|
|
19
|
-
interface PersistedEnvelope<T> {
|
|
20
|
-
version: 1;
|
|
21
|
-
updatedAt: number;
|
|
22
|
-
data: T;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Serialization hook for custom privacy/security implementations.
|
|
26
|
-
*/
|
|
27
|
-
type PersistenceSerializer<T> = (value: PersistedEnvelope<T>) => string;
|
|
28
|
-
/**
|
|
29
|
-
* Deserialization hook for custom privacy/security implementations.
|
|
30
|
-
*/
|
|
31
|
-
type PersistenceDeserializer<T> = (raw: string) => PersistedEnvelope<T>;
|
|
32
|
-
|
|
33
|
-
export type { PersistedEnvelope as P, StorageAdapter as S, PersistenceDeserializer as a, PersistenceSerializer as b };
|
package/dist/types-B7gCpNX9.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Persistence types for Aeon durable state.
|
|
3
|
-
*
|
|
4
|
-
* The adapter interface is intentionally minimal so consumers can map it to
|
|
5
|
-
* local storage, WASM-backed stores, D1/R2 synchronization layers, or custom
|
|
6
|
-
* encrypted stores without extra dependencies.
|
|
7
|
-
*/
|
|
8
|
-
/**
|
|
9
|
-
* Minimal storage adapter interface.
|
|
10
|
-
*/
|
|
11
|
-
interface StorageAdapter {
|
|
12
|
-
getItem(key: string): Promise<string | null> | string | null;
|
|
13
|
-
setItem(key: string, value: string): Promise<void> | void;
|
|
14
|
-
removeItem(key: string): Promise<void> | void;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Versioned envelope for persisted payloads.
|
|
18
|
-
*/
|
|
19
|
-
interface PersistedEnvelope<T> {
|
|
20
|
-
version: 1;
|
|
21
|
-
updatedAt: number;
|
|
22
|
-
data: T;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Serialization hook for custom privacy/security implementations.
|
|
26
|
-
*/
|
|
27
|
-
type PersistenceSerializer<T> = (value: PersistedEnvelope<T>) => string;
|
|
28
|
-
/**
|
|
29
|
-
* Deserialization hook for custom privacy/security implementations.
|
|
30
|
-
*/
|
|
31
|
-
type PersistenceDeserializer<T> = (raw: string) => PersistedEnvelope<T>;
|
|
32
|
-
|
|
33
|
-
export type { PersistedEnvelope as P, StorageAdapter as S, PersistenceDeserializer as a, PersistenceSerializer as b };
|
package/dist/utils/index.d.cts
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Aeon Logger Interface
|
|
3
|
-
*
|
|
4
|
-
* Provides a pluggable logging interface that can be configured
|
|
5
|
-
* by consumers to integrate with their preferred logging solution.
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* Logger interface that consumers can implement
|
|
9
|
-
*/
|
|
10
|
-
interface Logger {
|
|
11
|
-
debug: (...args: unknown[]) => void;
|
|
12
|
-
info: (...args: unknown[]) => void;
|
|
13
|
-
warn: (...args: unknown[]) => void;
|
|
14
|
-
error: (...args: unknown[]) => void;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Get the current logger instance
|
|
18
|
-
*/
|
|
19
|
-
declare function getLogger(): Logger;
|
|
20
|
-
/**
|
|
21
|
-
* Set a custom logger implementation
|
|
22
|
-
*/
|
|
23
|
-
declare function setLogger(logger: Logger): void;
|
|
24
|
-
/**
|
|
25
|
-
* Reset to the default console logger
|
|
26
|
-
*/
|
|
27
|
-
declare function resetLogger(): void;
|
|
28
|
-
/**
|
|
29
|
-
* Disable all logging
|
|
30
|
-
*/
|
|
31
|
-
declare function disableLogging(): void;
|
|
32
|
-
/**
|
|
33
|
-
* Create a namespaced logger
|
|
34
|
-
*/
|
|
35
|
-
declare function createNamespacedLogger(namespace: string): Logger;
|
|
36
|
-
declare const logger: Logger;
|
|
37
|
-
|
|
38
|
-
export { type Logger, createNamespacedLogger, disableLogging, getLogger, logger, resetLogger, setLogger };
|
package/dist/utils/index.d.ts
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Aeon Logger Interface
|
|
3
|
-
*
|
|
4
|
-
* Provides a pluggable logging interface that can be configured
|
|
5
|
-
* by consumers to integrate with their preferred logging solution.
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* Logger interface that consumers can implement
|
|
9
|
-
*/
|
|
10
|
-
interface Logger {
|
|
11
|
-
debug: (...args: unknown[]) => void;
|
|
12
|
-
info: (...args: unknown[]) => void;
|
|
13
|
-
warn: (...args: unknown[]) => void;
|
|
14
|
-
error: (...args: unknown[]) => void;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Get the current logger instance
|
|
18
|
-
*/
|
|
19
|
-
declare function getLogger(): Logger;
|
|
20
|
-
/**
|
|
21
|
-
* Set a custom logger implementation
|
|
22
|
-
*/
|
|
23
|
-
declare function setLogger(logger: Logger): void;
|
|
24
|
-
/**
|
|
25
|
-
* Reset to the default console logger
|
|
26
|
-
*/
|
|
27
|
-
declare function resetLogger(): void;
|
|
28
|
-
/**
|
|
29
|
-
* Disable all logging
|
|
30
|
-
*/
|
|
31
|
-
declare function disableLogging(): void;
|
|
32
|
-
/**
|
|
33
|
-
* Create a namespaced logger
|
|
34
|
-
*/
|
|
35
|
-
declare function createNamespacedLogger(namespace: string): Logger;
|
|
36
|
-
declare const logger: Logger;
|
|
37
|
-
|
|
38
|
-
export { type Logger, createNamespacedLogger, disableLogging, getLogger, logger, resetLogger, setLogger };
|