@rallycry/conveyor-agent 7.1.5 → 7.1.6
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-36TKGT6T.js → chunk-6EJDKTIE.js} +33 -5
- package/dist/chunk-6EJDKTIE.js.map +1 -0
- package/dist/{chunk-U6AYNVS7.js → chunk-RRXX6DTB.js} +2 -1
- package/dist/chunk-RRXX6DTB.js.map +1 -0
- package/dist/cli.js +2 -2
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -2
- package/dist/{tag-audit-handler-BM6MMS5T.js → tag-audit-handler-WPGSBNXO.js} +2 -2
- package/dist/{task-audit-handler-URD2BOC4.js → task-audit-handler-AOYSFO5B.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-36TKGT6T.js.map +0 -1
- package/dist/chunk-U6AYNVS7.js.map +0 -1
- /package/dist/{tag-audit-handler-BM6MMS5T.js.map → tag-audit-handler-WPGSBNXO.js.map} +0 -0
- /package/dist/{task-audit-handler-URD2BOC4.js.map → task-audit-handler-AOYSFO5B.js.map} +0 -0
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
createHarness,
|
|
8
8
|
createServiceLogger,
|
|
9
9
|
defineTool
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-RRXX6DTB.js";
|
|
11
11
|
|
|
12
12
|
// src/connection/agent-connection.ts
|
|
13
13
|
import { io } from "socket.io-client";
|
|
@@ -923,6 +923,9 @@ var PlanSync = class {
|
|
|
923
923
|
}
|
|
924
924
|
};
|
|
925
925
|
|
|
926
|
+
// src/execution/query-executor.ts
|
|
927
|
+
import { createHash } from "crypto";
|
|
928
|
+
|
|
926
929
|
// src/execution/pack-runner-prompt.ts
|
|
927
930
|
function findLastAgentMessageIndex(history) {
|
|
928
931
|
for (let i = history.length - 1; i >= 0; i--) {
|
|
@@ -5018,6 +5021,10 @@ function buildHooks(host) {
|
|
|
5018
5021
|
]
|
|
5019
5022
|
};
|
|
5020
5023
|
}
|
|
5024
|
+
function taskIdToSessionUuid(taskId) {
|
|
5025
|
+
const hash = createHash("sha256").update(taskId).digest("hex");
|
|
5026
|
+
return `${hash.slice(0, 8)}-${hash.slice(8, 12)}-8${hash.slice(13, 16)}-a${hash.slice(17, 20)}-${hash.slice(20, 32)}`;
|
|
5027
|
+
}
|
|
5021
5028
|
function isReadOnlyMode(mode, hasExitedPlanMode) {
|
|
5022
5029
|
return mode === "discovery" || mode === "help" || mode === "auto" && !hasExitedPlanMode;
|
|
5023
5030
|
}
|
|
@@ -5066,6 +5073,7 @@ function buildQueryOptions(host, context) {
|
|
|
5066
5073
|
abortController: host.abortController ?? void 0,
|
|
5067
5074
|
disallowedTools: buildDisallowedTools(settings, mode, host.hasExitedPlanMode),
|
|
5068
5075
|
enableFileCheckpointing: settings.enableFileCheckpointing,
|
|
5076
|
+
sessionId: taskIdToSessionUuid(context.taskId),
|
|
5069
5077
|
stderr: (data) => {
|
|
5070
5078
|
logger2.warn("Claude Code stderr", { data: data.trimEnd() });
|
|
5071
5079
|
}
|
|
@@ -5139,7 +5147,7 @@ async function runSdkQuery(host, context, followUpContent) {
|
|
|
5139
5147
|
host.snapshotPlanFiles();
|
|
5140
5148
|
}
|
|
5141
5149
|
const options = buildQueryOptions(host, context);
|
|
5142
|
-
const resume = context.
|
|
5150
|
+
const resume = taskIdToSessionUuid(context.taskId);
|
|
5143
5151
|
if (followUpContent) {
|
|
5144
5152
|
const prompt = await buildFollowUpPrompt(host, context, followUpContent);
|
|
5145
5153
|
const agentQuery = host.harness.executeQuery({
|
|
@@ -5976,6 +5984,9 @@ var SessionRunner = class _SessionRunner {
|
|
|
5976
5984
|
if (this.fullContext && action.newMode === "review") {
|
|
5977
5985
|
this.fullContext.claudeSessionId = null;
|
|
5978
5986
|
}
|
|
5987
|
+
if (this.fullContext && action.newMode === "building") {
|
|
5988
|
+
void this.refreshBranchForBuilding();
|
|
5989
|
+
}
|
|
5979
5990
|
this.connection.emitModeChanged(action.newMode);
|
|
5980
5991
|
this.softStop();
|
|
5981
5992
|
}
|
|
@@ -5990,6 +6001,23 @@ var SessionRunner = class _SessionRunner {
|
|
|
5990
6001
|
}
|
|
5991
6002
|
});
|
|
5992
6003
|
}
|
|
6004
|
+
/** Re-fetch task context to pick up a newly created branch and check it out. */
|
|
6005
|
+
async refreshBranchForBuilding() {
|
|
6006
|
+
try {
|
|
6007
|
+
const ctx = await this.connection.call("getTaskContext", {
|
|
6008
|
+
sessionId: this.sessionId,
|
|
6009
|
+
includeHistory: false
|
|
6010
|
+
});
|
|
6011
|
+
if (ctx?.githubBranch && this.fullContext) {
|
|
6012
|
+
this.fullContext.githubBranch = ctx.githubBranch;
|
|
6013
|
+
ensureOnTaskBranch(this.config.workspaceDir, ctx.githubBranch);
|
|
6014
|
+
}
|
|
6015
|
+
} catch {
|
|
6016
|
+
process.stderr.write(
|
|
6017
|
+
"[conveyor-agent] Warning: failed to refresh branch for building transition\n"
|
|
6018
|
+
);
|
|
6019
|
+
}
|
|
6020
|
+
}
|
|
5993
6021
|
async setState(status) {
|
|
5994
6022
|
this._state = status;
|
|
5995
6023
|
await this.connection.emitStatus(status);
|
|
@@ -7051,7 +7079,7 @@ var ProjectRunner = class {
|
|
|
7051
7079
|
async handleAuditTags(request) {
|
|
7052
7080
|
this.connection.emitStatus("busy");
|
|
7053
7081
|
try {
|
|
7054
|
-
const { handleTagAudit } = await import("./tag-audit-handler-
|
|
7082
|
+
const { handleTagAudit } = await import("./tag-audit-handler-WPGSBNXO.js");
|
|
7055
7083
|
await handleTagAudit(request, this.connection, this.projectDir);
|
|
7056
7084
|
} catch (error) {
|
|
7057
7085
|
const msg = error instanceof Error ? error.message : String(error);
|
|
@@ -7074,7 +7102,7 @@ var ProjectRunner = class {
|
|
|
7074
7102
|
async handleAuditTasks(request) {
|
|
7075
7103
|
this.connection.emitStatus("busy");
|
|
7076
7104
|
try {
|
|
7077
|
-
const { handleTaskAudit } = await import("./task-audit-handler-
|
|
7105
|
+
const { handleTaskAudit } = await import("./task-audit-handler-AOYSFO5B.js");
|
|
7078
7106
|
await handleTaskAudit(request, this.connection, this.projectDir);
|
|
7079
7107
|
} catch (error) {
|
|
7080
7108
|
const msg = error instanceof Error ? error.message : String(error);
|
|
@@ -7514,4 +7542,4 @@ export {
|
|
|
7514
7542
|
loadForwardPorts,
|
|
7515
7543
|
loadConveyorConfig
|
|
7516
7544
|
};
|
|
7517
|
-
//# sourceMappingURL=chunk-
|
|
7545
|
+
//# sourceMappingURL=chunk-6EJDKTIE.js.map
|