@rallycry/conveyor-agent 7.0.8 → 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-PMDVB2EU.js → chunk-LKO3CBJU.js} +639 -246
- package/dist/chunk-LKO3CBJU.js.map +1 -0
- package/dist/cli.js +1 -1
- package/dist/index.d.ts +5 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-PMDVB2EU.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;
|
|
@@ -68,7 +69,7 @@ declare class AgentConnection {
|
|
|
68
69
|
onModeChange(callback: (data: SetModeData) => void): void;
|
|
69
70
|
onWake(callback: () => void): void;
|
|
70
71
|
onApiKeyUpdate(callback: (data: ApiKeyUpdateData) => void): void;
|
|
71
|
-
emitStatus(status: string): void
|
|
72
|
+
emitStatus(status: string): Promise<void>;
|
|
72
73
|
postChatMessage(content: string): void;
|
|
73
74
|
private isDuplicateMessage;
|
|
74
75
|
sendHeartbeat(): void;
|
|
@@ -104,7 +105,7 @@ declare class AgentConnection {
|
|
|
104
105
|
}>;
|
|
105
106
|
refreshAuthToken(): Promise<boolean>;
|
|
106
107
|
sendEvent(event: Record<string, unknown>): void;
|
|
107
|
-
flushEvents(): void
|
|
108
|
+
flushEvents(): Promise<void>;
|
|
108
109
|
}
|
|
109
110
|
|
|
110
111
|
type ModeAction = {
|
|
@@ -243,6 +244,8 @@ declare class SessionRunner {
|
|
|
243
244
|
run(): Promise<void>;
|
|
244
245
|
/** Convenience wrapper: connect() then run(). */
|
|
245
246
|
start(): Promise<void>;
|
|
247
|
+
/** Returns true if the message should be skipped (not processed). */
|
|
248
|
+
private shouldSkipMessage;
|
|
246
249
|
private coreLoop;
|
|
247
250
|
private executeInitialMode;
|
|
248
251
|
private waitForMessage;
|
package/dist/index.js
CHANGED