@rallycry/conveyor-agent 7.0.11 → 7.0.12
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-OUARAX27.js → chunk-5CBPSIEV.js} +13 -14
- package/dist/chunk-5CBPSIEV.js.map +1 -0
- package/dist/cli.js +4 -2
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-OUARAX27.js.map +0 -1
|
@@ -1794,8 +1794,8 @@ function buildAutoPrompt(context) {
|
|
|
1794
1794
|
`### Transitioning to Building:`,
|
|
1795
1795
|
`When your plan is complete and all required properties are set, call the **ExitPlanMode** tool.`,
|
|
1796
1796
|
`- If any required properties are missing, ExitPlanMode will be denied with details on what's missing`,
|
|
1797
|
-
`- Once ExitPlanMode succeeds,
|
|
1798
|
-
`-
|
|
1797
|
+
`- Once ExitPlanMode succeeds, you will seamlessly transition to full build access within the same session`,
|
|
1798
|
+
`- Continue directly with implementation \u2014 no restart or waiting is needed`,
|
|
1799
1799
|
``,
|
|
1800
1800
|
`### Subtask Plan Requirements`,
|
|
1801
1801
|
`When creating subtasks, each MUST include a detailed \`plan\` field:`,
|
|
@@ -5404,16 +5404,13 @@ async function handleExitPlanMode(host, input) {
|
|
|
5404
5404
|
host.connection.postChatMessage(
|
|
5405
5405
|
"Plan complete. Running identification \u2014 icon and agent assignment will be set automatically."
|
|
5406
5406
|
);
|
|
5407
|
-
host.requestSoftStop();
|
|
5408
5407
|
return { behavior: "allow", updatedInput: input };
|
|
5409
5408
|
}
|
|
5410
5409
|
await host.connection.triggerIdentification();
|
|
5411
5410
|
host.hasExitedPlanMode = true;
|
|
5412
5411
|
const newMode = host.isParentTask ? "review" : "building";
|
|
5413
|
-
host.
|
|
5414
|
-
|
|
5415
|
-
host.onModeTransition(newMode);
|
|
5416
|
-
}
|
|
5412
|
+
host.connection.sendEvent({ type: "mode_transition", from: "auto", to: newMode });
|
|
5413
|
+
host.connection.emitModeChanged(newMode);
|
|
5417
5414
|
return { behavior: "allow", updatedInput: input };
|
|
5418
5415
|
} catch (err) {
|
|
5419
5416
|
return {
|
|
@@ -6193,8 +6190,8 @@ var SessionRunner = class _SessionRunner {
|
|
|
6193
6190
|
this.queryBridge = this.createQueryBridge();
|
|
6194
6191
|
this.logInitialization();
|
|
6195
6192
|
const staleMessageCount = this.pendingMessages.length;
|
|
6196
|
-
await this.executeInitialMode();
|
|
6197
|
-
if (staleMessageCount > 0) {
|
|
6193
|
+
const didExecuteInitialQuery = await this.executeInitialMode();
|
|
6194
|
+
if (staleMessageCount > 0 && didExecuteInitialQuery) {
|
|
6198
6195
|
this.pendingMessages.splice(0, staleMessageCount);
|
|
6199
6196
|
}
|
|
6200
6197
|
if (!this.stopped && this._state !== "error") {
|
|
@@ -6289,15 +6286,16 @@ var SessionRunner = class _SessionRunner {
|
|
|
6289
6286
|
}
|
|
6290
6287
|
}
|
|
6291
6288
|
// ── Initial mode execution ─────────────────────────────────────────
|
|
6289
|
+
/** Returns true if an initial query was executed, false otherwise. */
|
|
6292
6290
|
async executeInitialMode() {
|
|
6293
|
-
if (!this.taskContext || !this.fullContext) return;
|
|
6291
|
+
if (!this.taskContext || !this.fullContext) return false;
|
|
6294
6292
|
const effectiveMode = this.mode.effectiveMode;
|
|
6295
6293
|
if (effectiveMode === "code-review") {
|
|
6296
6294
|
await this.setState("running");
|
|
6297
6295
|
await this.callbacks.onEvent({ type: "execute_mode", mode: effectiveMode });
|
|
6298
6296
|
await this.executeQuery();
|
|
6299
6297
|
this.stopped = true;
|
|
6300
|
-
return;
|
|
6298
|
+
return true;
|
|
6301
6299
|
}
|
|
6302
6300
|
const shouldRun = effectiveMode === "building" || effectiveMode === "auto" || effectiveMode === "review" && this.mode.isPackRunner(this.taskContext);
|
|
6303
6301
|
if (shouldRun) {
|
|
@@ -6305,9 +6303,10 @@ var SessionRunner = class _SessionRunner {
|
|
|
6305
6303
|
await this.callbacks.onEvent({ type: "execute_mode", mode: effectiveMode });
|
|
6306
6304
|
await this.executeQuery();
|
|
6307
6305
|
if (!this.stopped) await this.setState("idle");
|
|
6308
|
-
|
|
6309
|
-
await this.setState("idle");
|
|
6306
|
+
return true;
|
|
6310
6307
|
}
|
|
6308
|
+
await this.setState("idle");
|
|
6309
|
+
return false;
|
|
6311
6310
|
}
|
|
6312
6311
|
// ── Message waiting ────────────────────────────────────────────────
|
|
6313
6312
|
waitForMessage() {
|
|
@@ -7957,4 +7956,4 @@ export {
|
|
|
7957
7956
|
loadForwardPorts,
|
|
7958
7957
|
loadConveyorConfig
|
|
7959
7958
|
};
|
|
7960
|
-
//# sourceMappingURL=chunk-
|
|
7959
|
+
//# sourceMappingURL=chunk-5CBPSIEV.js.map
|