@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/cli.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  loadConveyorConfig,
6
6
  runSetupCommand,
7
7
  runStartCommand
8
- } from "./chunk-7RSDCWEI.js";
8
+ } from "./chunk-LKO3CBJU.js";
9
9
  import "./chunk-KNBG2634.js";
10
10
  import {
11
11
  createServiceLogger
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
@@ -23,7 +23,7 @@ import {
23
23
  runStartCommand,
24
24
  stageAndCommit,
25
25
  updateRemoteToken
26
- } from "./chunk-7RSDCWEI.js";
26
+ } from "./chunk-LKO3CBJU.js";
27
27
  import "./chunk-KNBG2634.js";
28
28
  import "./chunk-CYZPFJGN.js";
29
29
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rallycry/conveyor-agent",
3
- "version": "7.0.7",
3
+ "version": "7.0.9",
4
4
  "description": "Conveyor Agent Runner v7.0 - Agent-as-User architecture with BaseService patterns",
5
5
  "keywords": [
6
6
  "agent",