@rallycry/conveyor-agent 5.9.4 → 5.10.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-N3TSLBSH.js → chunk-MRTSBPY7.js} +1126 -44
- package/dist/chunk-MRTSBPY7.js.map +1 -0
- package/dist/cli.js +1 -1
- package/dist/index.d.ts +63 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-N3TSLBSH.js.map +0 -1
package/dist/cli.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SDKUserMessage } from '@anthropic-ai/claude-agent-sdk';
|
|
2
2
|
import * as _project_shared from '@project/shared';
|
|
3
|
-
import { AgentRunnerStatus, MultimodalBlock, ChatMessageResponse, TaskFileResponse, TaskContext, AgentEvent, AgentQuestion, IncomingMessagePayload, SetModePayload, AgentMode, SubtaskCreatePayload, SubtaskUpdateFields, SubtaskResponse, StartChildCloudBuildResponse, TaskLookupResponse, UpdateTaskPropertiesPayload, IconListItem, GenerateIconResponse, TaskPropertiesResponse, TriggerIdentificationResponse, ModeTransitionPayload, IncidentDTO, TaskIncidentDTO } 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, IncidentDTO, TaskIncidentDTO, TagAuditRunnerRequest, TagAuditRunnerResponse } from '@project/shared';
|
|
4
4
|
export { AgentEvent, ChatMessage, TaskContext, TaskFileContext } from '@project/shared';
|
|
5
5
|
import { ChildProcess } from 'node:child_process';
|
|
6
6
|
|
|
@@ -91,8 +91,23 @@ declare class ProjectRunner {
|
|
|
91
91
|
private heartbeatTimer;
|
|
92
92
|
private stopping;
|
|
93
93
|
private resolveLifecycle;
|
|
94
|
+
private startCommandChild;
|
|
95
|
+
private startCommandRunning;
|
|
96
|
+
private setupComplete;
|
|
97
|
+
private branchSwitchCommand;
|
|
98
|
+
private commitWatcher;
|
|
94
99
|
constructor(config: ProjectRunnerConfig);
|
|
95
100
|
private checkoutWorkspaceBranch;
|
|
101
|
+
private executeSetupCommand;
|
|
102
|
+
private executeStartCommand;
|
|
103
|
+
killStartCommand(): Promise<void>;
|
|
104
|
+
restartStartCommand(): Promise<void>;
|
|
105
|
+
getEnvironmentStatus(): ProjectEnvironmentStatus;
|
|
106
|
+
private getCurrentBranch;
|
|
107
|
+
private smartSync;
|
|
108
|
+
private handleSwitchBranch;
|
|
109
|
+
private handleSyncEnvironment;
|
|
110
|
+
private handleGetEnvStatus;
|
|
96
111
|
start(): Promise<void>;
|
|
97
112
|
private handleAssignment;
|
|
98
113
|
private handleStopTask;
|
|
@@ -202,6 +217,7 @@ interface ProjectConnectionConfig {
|
|
|
202
217
|
apiUrl: string;
|
|
203
218
|
projectToken: string;
|
|
204
219
|
projectId: string;
|
|
220
|
+
projectDir?: string;
|
|
205
221
|
}
|
|
206
222
|
interface TaskAssignment {
|
|
207
223
|
taskId: string;
|
|
@@ -241,7 +257,22 @@ interface AgentContext {
|
|
|
241
257
|
agentInstructions: string;
|
|
242
258
|
model: string;
|
|
243
259
|
agentSettings: Record<string, unknown> | null;
|
|
260
|
+
branchSwitchCommand?: string;
|
|
244
261
|
}
|
|
262
|
+
type SwitchBranchCallback = (res: {
|
|
263
|
+
ok: boolean;
|
|
264
|
+
data?: _project_shared.ProjectEnvironmentStatus;
|
|
265
|
+
error?: string;
|
|
266
|
+
}) => void;
|
|
267
|
+
type SyncEnvironmentCallback = (res: {
|
|
268
|
+
ok: boolean;
|
|
269
|
+
data?: _project_shared.ProjectEnvironmentStatus;
|
|
270
|
+
error?: string;
|
|
271
|
+
}) => void;
|
|
272
|
+
type GetEnvStatusCallback = (res: {
|
|
273
|
+
ok: boolean;
|
|
274
|
+
data?: _project_shared.ProjectEnvironmentStatus;
|
|
275
|
+
}) => void;
|
|
245
276
|
declare class ProjectConnection {
|
|
246
277
|
private socket;
|
|
247
278
|
private config;
|
|
@@ -250,6 +281,13 @@ declare class ProjectConnection {
|
|
|
250
281
|
private shutdownCallback;
|
|
251
282
|
private chatMessageCallback;
|
|
252
283
|
private earlyChatMessages;
|
|
284
|
+
private auditRequestCallback;
|
|
285
|
+
onSwitchBranch: ((data: {
|
|
286
|
+
branch: string;
|
|
287
|
+
syncAfter?: boolean;
|
|
288
|
+
}, cb: SwitchBranchCallback) => void) | null;
|
|
289
|
+
onSyncEnvironment: ((cb: SyncEnvironmentCallback) => void) | null;
|
|
290
|
+
onGetEnvStatus: ((cb: GetEnvStatusCallback) => void) | null;
|
|
253
291
|
constructor(config: ProjectConnectionConfig);
|
|
254
292
|
connect(): Promise<void>;
|
|
255
293
|
onTaskAssignment(callback: (assignment: TaskAssignment) => void): void;
|
|
@@ -258,6 +296,8 @@ declare class ProjectConnection {
|
|
|
258
296
|
}) => void): void;
|
|
259
297
|
onShutdown(callback: () => void): void;
|
|
260
298
|
onChatMessage(callback: (msg: IncomingChatMessage) => void): void;
|
|
299
|
+
onAuditRequest(callback: (request: TagAuditRunnerRequest) => void): void;
|
|
300
|
+
emitAuditResult(data: TagAuditRunnerResponse): void;
|
|
261
301
|
sendHeartbeat(): void;
|
|
262
302
|
emitTaskStarted(taskId: string): void;
|
|
263
303
|
emitTaskStopped(taskId: string, reason: string): void;
|
|
@@ -266,6 +306,28 @@ declare class ProjectConnection {
|
|
|
266
306
|
emitAgentStatus(status: string): void;
|
|
267
307
|
fetchAgentContext(): Promise<AgentContext | null>;
|
|
268
308
|
fetchChatHistory(limit?: number): Promise<ChatHistoryMessage[]>;
|
|
309
|
+
emitNewCommitsDetected(data: {
|
|
310
|
+
branch: string;
|
|
311
|
+
commitCount: number;
|
|
312
|
+
latestCommit: {
|
|
313
|
+
sha: string;
|
|
314
|
+
message: string;
|
|
315
|
+
author: string;
|
|
316
|
+
};
|
|
317
|
+
autoSyncing: boolean;
|
|
318
|
+
}): void;
|
|
319
|
+
emitEnvironmentReady(data: {
|
|
320
|
+
branch: string;
|
|
321
|
+
commitsSynced: number;
|
|
322
|
+
syncDurationMs: number;
|
|
323
|
+
stepsRun: string[];
|
|
324
|
+
}): void;
|
|
325
|
+
emitEnvSwitchProgress(data: {
|
|
326
|
+
step: string;
|
|
327
|
+
status: "running" | "success" | "error";
|
|
328
|
+
message?: string;
|
|
329
|
+
}): void;
|
|
330
|
+
private handleRunAuthTokenCommand;
|
|
269
331
|
disconnect(): void;
|
|
270
332
|
}
|
|
271
333
|
|
package/dist/index.js
CHANGED