@neotx/core 0.1.0-alpha.13 → 0.1.0-alpha.15
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/dist/index.d.ts +11 -1
- package/dist/index.js +257 -267
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1284,6 +1284,10 @@ interface GroupedEvents {
|
|
|
1284
1284
|
webhooks: QueuedEvent[];
|
|
1285
1285
|
runCompletions: QueuedEvent[];
|
|
1286
1286
|
}
|
|
1287
|
+
interface DrainAndGroupResult {
|
|
1288
|
+
grouped: GroupedEvents;
|
|
1289
|
+
rawEvents: QueuedEvent[];
|
|
1290
|
+
}
|
|
1287
1291
|
/**
|
|
1288
1292
|
* In-memory event queue with deduplication, rate limiting, and file watching.
|
|
1289
1293
|
*
|
|
@@ -1317,8 +1321,9 @@ declare class EventQueue {
|
|
|
1317
1321
|
/**
|
|
1318
1322
|
* Drain and group events: deduplicates messages by content,
|
|
1319
1323
|
* keeps webhooks and run completions separate.
|
|
1324
|
+
* Returns both grouped events AND original raw events for later marking as processed.
|
|
1320
1325
|
*/
|
|
1321
|
-
drainAndGroup():
|
|
1326
|
+
drainAndGroup(): DrainAndGroupResult;
|
|
1322
1327
|
size(): number;
|
|
1323
1328
|
/**
|
|
1324
1329
|
* Start watching inbox.jsonl and events.jsonl for new entries.
|
|
@@ -1356,6 +1361,8 @@ interface HeartbeatLoopOptions {
|
|
|
1356
1361
|
sessionId: string;
|
|
1357
1362
|
eventQueue: EventQueue;
|
|
1358
1363
|
activityLog: ActivityLog;
|
|
1364
|
+
/** Path to the inbox/events directory for markProcessed() calls */
|
|
1365
|
+
eventsPath: string;
|
|
1359
1366
|
/** Path to bundled default SUPERVISOR.md (e.g. from @neotx/agents) */
|
|
1360
1367
|
defaultInstructionsPath?: string | undefined;
|
|
1361
1368
|
memoryDbPath?: string | undefined;
|
|
@@ -1381,11 +1388,14 @@ declare class HeartbeatLoop {
|
|
|
1381
1388
|
private sessionId;
|
|
1382
1389
|
private readonly eventQueue;
|
|
1383
1390
|
private readonly activityLog;
|
|
1391
|
+
private readonly _eventsPath;
|
|
1384
1392
|
private customInstructions;
|
|
1385
1393
|
private readonly defaultInstructionsPath;
|
|
1386
1394
|
private memoryStore;
|
|
1387
1395
|
private readonly memoryDbPath;
|
|
1388
1396
|
constructor(options: HeartbeatLoopOptions);
|
|
1397
|
+
/** Path to the inbox/events directory for markProcessed() calls */
|
|
1398
|
+
get eventsPath(): string;
|
|
1389
1399
|
private getMemoryStore;
|
|
1390
1400
|
start(): Promise<void>;
|
|
1391
1401
|
stop(): void;
|