@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/{chunk-4NL6FASS.js → chunk-RMNWEID4.js} +260 -138
- package/dist/chunk-RMNWEID4.js.map +1 -0
- package/dist/cli.js +1 -1
- package/dist/index.d.ts +24 -3
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-4NL6FASS.js.map +0 -1
package/dist/cli.js
CHANGED
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<
|
|
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