@rallycry/conveyor-agent 7.0.7 → 7.0.9
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/{chunk-7RSDCWEI.js → chunk-LKO3CBJU.js} +677 -251
- package/dist/chunk-LKO3CBJU.js.map +1 -0
- package/dist/cli.js +1 -1
- package/dist/index.d.ts +6 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-7RSDCWEI.js.map +0 -1
package/dist/cli.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ interface AgentConnectionConfig {
|
|
|
21
21
|
interface IncomingMessage {
|
|
22
22
|
content: string;
|
|
23
23
|
userId: string;
|
|
24
|
+
source?: string;
|
|
24
25
|
files?: Array<{
|
|
25
26
|
name: string;
|
|
26
27
|
content: string;
|
|
@@ -40,6 +41,7 @@ declare class AgentConnection {
|
|
|
40
41
|
private eventBuffer;
|
|
41
42
|
private flushTimer;
|
|
42
43
|
private lastEmittedStatus;
|
|
44
|
+
private pendingAnswerResolvers;
|
|
43
45
|
private recentMessages;
|
|
44
46
|
private static readonly DEDUP_WINDOW_MS;
|
|
45
47
|
private static readonly DEDUP_SIMILARITY_THRESHOLD;
|
|
@@ -67,7 +69,7 @@ declare class AgentConnection {
|
|
|
67
69
|
onModeChange(callback: (data: SetModeData) => void): void;
|
|
68
70
|
onWake(callback: () => void): void;
|
|
69
71
|
onApiKeyUpdate(callback: (data: ApiKeyUpdateData) => void): void;
|
|
70
|
-
emitStatus(status: string): void
|
|
72
|
+
emitStatus(status: string): Promise<void>;
|
|
71
73
|
postChatMessage(content: string): void;
|
|
72
74
|
private isDuplicateMessage;
|
|
73
75
|
sendHeartbeat(): void;
|
|
@@ -103,7 +105,7 @@ declare class AgentConnection {
|
|
|
103
105
|
}>;
|
|
104
106
|
refreshAuthToken(): Promise<boolean>;
|
|
105
107
|
sendEvent(event: Record<string, unknown>): void;
|
|
106
|
-
flushEvents(): void
|
|
108
|
+
flushEvents(): Promise<void>;
|
|
107
109
|
}
|
|
108
110
|
|
|
109
111
|
type ModeAction = {
|
|
@@ -242,6 +244,8 @@ declare class SessionRunner {
|
|
|
242
244
|
run(): Promise<void>;
|
|
243
245
|
/** Convenience wrapper: connect() then run(). */
|
|
244
246
|
start(): Promise<void>;
|
|
247
|
+
/** Returns true if the message should be skipped (not processed). */
|
|
248
|
+
private shouldSkipMessage;
|
|
245
249
|
private coreLoop;
|
|
246
250
|
private executeInitialMode;
|
|
247
251
|
private waitForMessage;
|
package/dist/index.js
CHANGED