@rallycry/conveyor-agent 7.2.5 → 7.2.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-JFWVIDQ2.js → chunk-MFHMYUND.js} +31 -24
- package/dist/chunk-MFHMYUND.js.map +1 -0
- package/dist/cli.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/task-audit-handler-6TZRN3YB.js +885 -0
- package/dist/task-audit-handler-6TZRN3YB.js.map +1 -0
- package/package.json +1 -1
- package/dist/chunk-JFWVIDQ2.js.map +0 -1
- package/dist/task-audit-handler-7Q7EJENK.js +0 -584
- package/dist/task-audit-handler-7Q7EJENK.js.map +0 -1
|
@@ -470,6 +470,9 @@ var ModeController = class {
|
|
|
470
470
|
get mode() {
|
|
471
471
|
return this._mode;
|
|
472
472
|
}
|
|
473
|
+
get isAuto() {
|
|
474
|
+
return this._isAuto;
|
|
475
|
+
}
|
|
473
476
|
get hasExitedPlanMode() {
|
|
474
477
|
return this._hasExitedPlanMode;
|
|
475
478
|
}
|
|
@@ -552,11 +555,13 @@ var ModeController = class {
|
|
|
552
555
|
}
|
|
553
556
|
if (this._runnerMode === "task" && newMode === "building") {
|
|
554
557
|
this._mode = newMode;
|
|
558
|
+
this._isAuto = true;
|
|
555
559
|
this._hasExitedPlanMode = true;
|
|
556
560
|
return { type: "restart_query", newMode: "building" };
|
|
557
561
|
}
|
|
558
562
|
if (this._runnerMode === "task" && newMode === "auto") {
|
|
559
563
|
this._mode = newMode;
|
|
564
|
+
this._isAuto = true;
|
|
560
565
|
this._hasExitedPlanMode = true;
|
|
561
566
|
return { type: "restart_query", newMode: "auto" };
|
|
562
567
|
}
|
|
@@ -1782,21 +1787,25 @@ function buildPmRelaunchParts(context, lastAgentIdx, isAuto, agentMode) {
|
|
|
1782
1787
|
} else {
|
|
1783
1788
|
parts.push(`You have been relaunched. No new messages since your last session.`);
|
|
1784
1789
|
}
|
|
1785
|
-
if (
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
`
|
|
1790
|
+
if (agentMode === "building" || agentMode === "review") {
|
|
1791
|
+
parts.push(
|
|
1792
|
+
`
|
|
1789
1793
|
Your plan has been approved. Begin implementing it now.`,
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1794
|
+
`Work on the git branch "${context.githubBranch}". Stay on this branch \u2014 do not checkout or create other branches.`,
|
|
1795
|
+
`Start by reading the relevant source files mentioned in the plan, then write code.`,
|
|
1796
|
+
`When finished, use the mcp__conveyor__create_pull_request tool to open a PR. Do NOT use gh CLI.`
|
|
1797
|
+
);
|
|
1798
|
+
if (isAuto) {
|
|
1799
|
+
parts.push(
|
|
1793
1800
|
`
|
|
1794
1801
|
CRITICAL: You are in Auto mode. Do NOT report status, ask for confirmation, or go idle without making code changes.`,
|
|
1795
1802
|
`Your FIRST action must be reading source files from the plan, then immediately writing code.`,
|
|
1796
1803
|
`Do NOT summarize the plan or say "ready to implement" \u2014 start implementing.`,
|
|
1797
1804
|
`If you are genuinely blocked, explain the specific blocker \u2014 do not go idle silently.`
|
|
1798
1805
|
);
|
|
1799
|
-
}
|
|
1806
|
+
}
|
|
1807
|
+
} else if (isAuto) {
|
|
1808
|
+
if (context.plan?.trim()) {
|
|
1800
1809
|
parts.push(
|
|
1801
1810
|
`
|
|
1802
1811
|
You are in auto mode. A plan already exists for this task.`,
|
|
@@ -1855,7 +1864,7 @@ Address the requested changes. Do NOT re-investigate the codebase from scratch o
|
|
|
1855
1864
|
`Run \`git log --oneline -10\` to review what you already committed.`,
|
|
1856
1865
|
`Review the current state of the codebase and verify everything is working correctly.`
|
|
1857
1866
|
);
|
|
1858
|
-
if (agentMode === "auto" || agentMode === "building"
|
|
1867
|
+
if (agentMode === "auto" || agentMode === "building" || isAuto) {
|
|
1859
1868
|
parts.push(
|
|
1860
1869
|
`If work is incomplete, continue implementing the plan. When finished, commit, push, and use mcp__conveyor__create_pull_request to open a PR.`,
|
|
1861
1870
|
`Do NOT go idle or wait for instructions \u2014 you are in auto mode.`
|
|
@@ -2158,7 +2167,7 @@ function buildIdleRelaunchInstructions(context, isPm, agentMode, isAuto) {
|
|
|
2158
2167
|
`Wait for the team to provide instructions before taking action.`
|
|
2159
2168
|
];
|
|
2160
2169
|
}
|
|
2161
|
-
const isAutoMode = agentMode === "auto" || agentMode === "building"
|
|
2170
|
+
const isAutoMode = agentMode === "auto" || agentMode === "building" || isAuto;
|
|
2162
2171
|
const parts = [
|
|
2163
2172
|
`You were relaunched but no new instructions have been given since your last run.`,
|
|
2164
2173
|
`Work on the git branch "${context.githubBranch}". Stay on this branch \u2014 do not checkout or create other branches.`,
|
|
@@ -5164,7 +5173,7 @@ function buildQueryOptions(host, context) {
|
|
|
5164
5173
|
const systemPromptText = buildSystemPrompt(
|
|
5165
5174
|
host.config.mode,
|
|
5166
5175
|
context,
|
|
5167
|
-
host.config,
|
|
5176
|
+
{ ...host.config, isAuto: host.isAuto },
|
|
5168
5177
|
host.setupLog,
|
|
5169
5178
|
mode
|
|
5170
5179
|
);
|
|
@@ -5241,7 +5250,7 @@ async function buildFollowUpPrompt(host, context, followUpContent) {
|
|
|
5241
5250
|
const followUpImages = typeof followUpContent === "string" ? [] : followUpContent.filter(
|
|
5242
5251
|
(b) => b.type === "image"
|
|
5243
5252
|
);
|
|
5244
|
-
const textPrompt = isPmMode ? `${await buildInitialPrompt(host.config.mode, context, host.
|
|
5253
|
+
const textPrompt = isPmMode ? `${await buildInitialPrompt(host.config.mode, context, host.isAuto, host.agentMode)}
|
|
5245
5254
|
|
|
5246
5255
|
---
|
|
5247
5256
|
|
|
@@ -5290,12 +5299,7 @@ async function runSdkQuery(host, context, followUpContent) {
|
|
|
5290
5299
|
} else if (isDiscoveryLike) {
|
|
5291
5300
|
return;
|
|
5292
5301
|
} else {
|
|
5293
|
-
const initialPrompt = await buildInitialPrompt(
|
|
5294
|
-
host.config.mode,
|
|
5295
|
-
context,
|
|
5296
|
-
host.config.isAuto,
|
|
5297
|
-
mode
|
|
5298
|
-
);
|
|
5302
|
+
const initialPrompt = await buildInitialPrompt(host.config.mode, context, host.isAuto, mode);
|
|
5299
5303
|
const prompt = buildMultimodalPrompt(initialPrompt, context);
|
|
5300
5304
|
const agentQuery = host.harness.executeQuery({
|
|
5301
5305
|
prompt: host.createInputStream(prompt),
|
|
@@ -5320,7 +5324,7 @@ async function buildRetryQuery(host, context, options, lastErrorWasImage) {
|
|
|
5320
5324
|
);
|
|
5321
5325
|
}
|
|
5322
5326
|
const retryPrompt = buildMultimodalPrompt(
|
|
5323
|
-
await buildInitialPrompt(host.config.mode, context, host.
|
|
5327
|
+
await buildInitialPrompt(host.config.mode, context, host.isAuto, host.agentMode),
|
|
5324
5328
|
context,
|
|
5325
5329
|
lastErrorWasImage
|
|
5326
5330
|
);
|
|
@@ -5347,7 +5351,7 @@ async function handleAuthError(context, host, options) {
|
|
|
5347
5351
|
context.claudeSessionId = null;
|
|
5348
5352
|
host.connection.storeSessionId("");
|
|
5349
5353
|
const freshPrompt = buildMultimodalPrompt(
|
|
5350
|
-
await buildInitialPrompt(host.config.mode, context, host.
|
|
5354
|
+
await buildInitialPrompt(host.config.mode, context, host.isAuto, host.agentMode),
|
|
5351
5355
|
context
|
|
5352
5356
|
);
|
|
5353
5357
|
const freshQuery = host.harness.executeQuery({
|
|
@@ -5361,7 +5365,7 @@ async function handleStaleSession(context, host, options) {
|
|
|
5361
5365
|
context.claudeSessionId = null;
|
|
5362
5366
|
host.connection.storeSessionId("");
|
|
5363
5367
|
const freshPrompt = buildMultimodalPrompt(
|
|
5364
|
-
await buildInitialPrompt(host.config.mode, context, host.
|
|
5368
|
+
await buildInitialPrompt(host.config.mode, context, host.isAuto, host.agentMode),
|
|
5365
5369
|
context
|
|
5366
5370
|
);
|
|
5367
5371
|
const freshQuery = host.harness.executeQuery({
|
|
@@ -5611,6 +5615,9 @@ var QueryBridge = class {
|
|
|
5611
5615
|
get agentMode() {
|
|
5612
5616
|
return bridge.mode.effectiveMode;
|
|
5613
5617
|
},
|
|
5618
|
+
get isAuto() {
|
|
5619
|
+
return bridge.mode.isAuto;
|
|
5620
|
+
},
|
|
5614
5621
|
get isParentTask() {
|
|
5615
5622
|
return bridge._isParentTask;
|
|
5616
5623
|
},
|
|
@@ -6030,7 +6037,7 @@ var SessionRunner = class _SessionRunner {
|
|
|
6030
6037
|
// ── Auto-mode PR nudge ──────────────────────────────────────────────
|
|
6031
6038
|
static MAX_PR_NUDGES = 3;
|
|
6032
6039
|
needsPRNudge() {
|
|
6033
|
-
if (!this.
|
|
6040
|
+
if (!this.mode.isAuto || this.stopped) return false;
|
|
6034
6041
|
if (this.queryBridge?.wasRateLimited) return false;
|
|
6035
6042
|
if (this.prNudgeCount > _SessionRunner.MAX_PR_NUDGES) return false;
|
|
6036
6043
|
if (!this.taskContext) return false;
|
|
@@ -7308,7 +7315,7 @@ var ProjectRunner = class {
|
|
|
7308
7315
|
async handleAuditTasks(request) {
|
|
7309
7316
|
this.connection.emitStatus("busy");
|
|
7310
7317
|
try {
|
|
7311
|
-
const { handleTaskAudit } = await import("./task-audit-handler-
|
|
7318
|
+
const { handleTaskAudit } = await import("./task-audit-handler-6TZRN3YB.js");
|
|
7312
7319
|
await handleTaskAudit(request, this.connection, this.projectDir);
|
|
7313
7320
|
} catch (error) {
|
|
7314
7321
|
const msg = error instanceof Error ? error.message : String(error);
|
|
@@ -7753,4 +7760,4 @@ export {
|
|
|
7753
7760
|
loadForwardPorts,
|
|
7754
7761
|
loadConveyorConfig
|
|
7755
7762
|
};
|
|
7756
|
-
//# sourceMappingURL=chunk-
|
|
7763
|
+
//# sourceMappingURL=chunk-MFHMYUND.js.map
|