@rallycry/conveyor-agent 6.1.1 → 6.2.0

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
@@ -4,7 +4,7 @@ import {
4
4
  ProjectRunner,
5
5
  createServiceLogger,
6
6
  errorMeta
7
- } from "./chunk-4NL6FASS.js";
7
+ } from "./chunk-RMNWEID4.js";
8
8
 
9
9
  // src/cli.ts
10
10
  import { readFileSync } from "fs";
package/dist/index.d.ts CHANGED
@@ -1,9 +1,27 @@
1
- import { SDKUserMessage } from '@anthropic-ai/claude-agent-sdk';
2
1
  import * as _project_shared from '@project/shared';
3
- import { AgentRunnerStatus, MultimodalBlock, ProjectEnvironmentStatus, ChatMessageResponse, TaskFileResponse, TaskContext, AgentEvent, AgentQuestion, IncomingMessagePayload, SetModePayload, AgentMode, SubtaskCreatePayload, SubtaskUpdateFields, SubtaskResponse, StartChildCloudBuildResponse, TaskLookupResponse, UpdateTaskPropertiesPayload, IconListItem, GenerateIconResponse, TaskPropertiesResponse, TriggerIdentificationResponse, ModeTransitionPayload, DebugSessionState, DebugSessionSummary, IncidentDTO, TaskIncidentDTO, TagAuditRunnerRequest, TagAuditRunnerResponse, TagAuditProgressActivity, DebugTelemetryEvent } from '@project/shared';
2
+ import { AgentRunnerStatus, MultimodalBlock, ProjectEnvironmentStatus, ChatMessageResponse, TaskFileResponse, TaskContext, AgentEvent, AgentQuestion, IncomingMessagePayload, SetModePayload, AgentMode, SubtaskCreatePayload, SubtaskUpdateFields, SubtaskResponse, StartChildCloudBuildResponse, TaskLookupResponse, UpdateTaskPropertiesPayload, IconListItem, GenerateIconResponse, TaskPropertiesResponse, TriggerIdentificationResponse, ModeTransitionPayload, DebugSessionState, DebugSessionSummary, IncidentDTO, TaskIncidentDTO, ResourceTierName, ScaleUpResponse, TagAuditRunnerRequest, TagAuditRunnerResponse, TagAuditProgressActivity, DebugTelemetryEvent } from '@project/shared';
4
3
  export { AgentEvent, ChatMessage, DebugBreakpointHit, DebugModeEvent, TaskContext, TaskFileContext } from '@project/shared';
5
4
  import { ChildProcess } from 'node:child_process';
6
5
 
6
+ /**
7
+ * Harness-neutral types for agent query execution.
8
+ *
9
+ * These types abstract the underlying agent SDK so that the runner,
10
+ * execution, and tool layers never reference SDK-specific imports
11
+ * directly. The only place that should import from
12
+ * `@anthropic-ai/claude-agent-sdk` is `harness/claude-code/`.
13
+ */
14
+
15
+ interface HarnessUserMessage {
16
+ type: "user";
17
+ session_id: string;
18
+ message: {
19
+ role: "user";
20
+ content: string | unknown[];
21
+ };
22
+ parent_tool_use_id: null;
23
+ }
24
+
7
25
  interface AgentRunnerConfig {
8
26
  conveyorApiUrl: string;
9
27
  taskToken: string;
@@ -48,6 +66,7 @@ declare class AgentRunner {
48
66
  private conveyorConfig;
49
67
  private _queryHost;
50
68
  private tunnelClient;
69
+ private harness;
51
70
  constructor(config: AgentRunnerConfig, callbacks: AgentRunnerCallbacks);
52
71
  get state(): AgentRunnerStatus;
53
72
  private get effectiveAgentMode();
@@ -74,7 +93,7 @@ declare class AgentRunner {
74
93
  private injectHumanMessage;
75
94
  private waitForMessage;
76
95
  private waitForUserContent;
77
- createInputStream(initialPrompt: string | MultimodalBlock[]): AsyncGenerator<SDKUserMessage, void, unknown>;
96
+ createInputStream(initialPrompt: string | MultimodalBlock[]): AsyncGenerator<HarnessUserMessage, void, unknown>;
78
97
  private asQueryHost;
79
98
  private handleModeChange;
80
99
  private updateExitedPlanModeFlag;
@@ -124,6 +143,7 @@ declare class ConveyorConnection {
124
143
  private config;
125
144
  private eventBuffer;
126
145
  private flushTimer;
146
+ private lastEmittedStatus;
127
147
  private static readonly EVENT_BATCH_MS;
128
148
  private earlyMessages;
129
149
  private earlyStop;
@@ -221,6 +241,7 @@ declare class ConveyorConnection {
221
241
  emitCodeReviewResult(content: string, approved: boolean): void;
222
242
  searchIncidents(status?: string, source?: string): Promise<IncidentDTO[]>;
223
243
  getTaskIncidents(taskId?: string): Promise<TaskIncidentDTO[]>;
244
+ requestScaleUp(tier: ResourceTierName, reason?: string): Promise<ScaleUpResponse>;
224
245
  disconnect(): void;
225
246
  }
226
247
 
package/dist/index.js CHANGED
@@ -10,7 +10,7 @@ import {
10
10
  removeWorktree,
11
11
  runSetupCommand,
12
12
  runStartCommand
13
- } from "./chunk-4NL6FASS.js";
13
+ } from "./chunk-RMNWEID4.js";
14
14
 
15
15
  // src/debug/cdp-client.ts
16
16
  var MAX_VARIABLE_VALUE_BYTES = 2048;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rallycry/conveyor-agent",
3
- "version": "6.1.1",
3
+ "version": "6.2.0",
4
4
  "description": "Conveyor cloud build agent runner - executes task plans inside GitHub Codespaces",
5
5
  "keywords": [
6
6
  "agent",