@rallycry/conveyor-agent 10.5.0 → 10.6.1
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-MSDYMAG3.js → chunk-5ELLQUP4.js} +133 -81
- package/dist/chunk-5ELLQUP4.js.map +1 -0
- package/dist/cli.js +1 -1
- package/dist/index.d.ts +16 -23
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-MSDYMAG3.js.map +0 -1
package/dist/cli.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -304,24 +304,16 @@ declare class ModeController {
|
|
|
304
304
|
/** Resolve the initial mode based on task context */
|
|
305
305
|
resolveInitialMode(context: ModeTaskContext): AgentMode;
|
|
306
306
|
/**
|
|
307
|
-
*
|
|
308
|
-
*
|
|
309
|
-
*
|
|
310
|
-
*
|
|
311
|
-
*
|
|
312
|
-
*
|
|
313
|
-
*
|
|
314
|
-
* - a plan already on the card (e.g. a Planning card planned by a human/PM),
|
|
315
|
-
* - a build already underway (status past `Planning`/`Open` — releases booted
|
|
316
|
-
* `InProgress`, pod restarts mid-build where DB `agentMode` stays `"auto"`),
|
|
317
|
-
* - a PR already open (safety net if status lags).
|
|
318
|
-
*
|
|
319
|
-
* Runtime Build-after-Discovery never reaches this gate as `auto` — the server's
|
|
320
|
-
* `resolveModeToSend` rewrites it to `"building"` for any task with a plan.
|
|
307
|
+
* Auto mode always bypasses the plan turn: resolveInitialMode calls
|
|
308
|
+
* transitionToBuilding() at boot, so the agent runs with
|
|
309
|
+
* `--dangerously-skip-permissions` from turn 1 and documents its plan into
|
|
310
|
+
* the card (via update_task_plan) as the approach firms up — non-blocking,
|
|
311
|
+
* never a gate. Use discovery mode for a plan turn that stops for human
|
|
312
|
+
* approval. Non-auto modes never bypass.
|
|
321
313
|
*/
|
|
322
|
-
canBypassPlanning(
|
|
314
|
+
canBypassPlanning(_context: ModeTaskContext): boolean;
|
|
323
315
|
/** Handle mode change from server */
|
|
324
|
-
handleModeChange(newMode: AgentMode,
|
|
316
|
+
handleModeChange(newMode: AgentMode, _context?: ModeTaskContext | null): ModeAction;
|
|
325
317
|
/** Handle ExitPlanMode call from the agent */
|
|
326
318
|
handleExitPlanMode(context: ModeTaskContext): ModeAction;
|
|
327
319
|
/** Check if pack runner behavior should be used */
|
|
@@ -549,8 +541,8 @@ declare class SessionRunner {
|
|
|
549
541
|
/** The build-phase nudge (In Progress, no PR). Offers BOTH escape routes so
|
|
550
542
|
* the agent never just goes idle. */
|
|
551
543
|
private static readonly STUCK_PROMPT;
|
|
552
|
-
/** The
|
|
553
|
-
* Same two-escape-route shape, aimed at
|
|
544
|
+
/** The pre-build nudge (still Planning/Open, identification/plan unfinished).
|
|
545
|
+
* Same two-escape-route shape, aimed at landing the plan + continuing to build. */
|
|
554
546
|
private static readonly STUCK_PROMPT_PLANNING;
|
|
555
547
|
/**
|
|
556
548
|
* Classify how an auto task is "stuck" after its turn ended (call sites run
|
|
@@ -561,11 +553,12 @@ declare class SessionRunner {
|
|
|
561
553
|
*
|
|
562
554
|
* - "pr": In Progress with no open PR (build finished without shipping).
|
|
563
555
|
* - "planning": still in a pre-build status (Planning/Open) without
|
|
564
|
-
* (identified + saved plan)
|
|
565
|
-
*
|
|
566
|
-
*
|
|
567
|
-
*
|
|
568
|
-
* is never
|
|
556
|
+
* (identified + saved plan) — e.g. the server-side InProgress bump failed
|
|
557
|
+
* and the agent idled before documenting its plan. An agent that idles
|
|
558
|
+
* here would otherwise clean-exit → its session Ends → the workspace is
|
|
559
|
+
* reaped "agent_gone" before a plan ever landed. Nudging (and, on
|
|
560
|
+
* exhaustion, going dormant) keeps the session Active so the pod is never
|
|
561
|
+
* prematurely slept.
|
|
569
562
|
*/
|
|
570
563
|
private autoStuckKind;
|
|
571
564
|
private isAutoStuck;
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rallycry/conveyor-agent",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.6.1",
|
|
4
4
|
"description": "Conveyor Agent Runner v10 - PTY harness for the task chat (SDK harness for audit/project-chat). Agent-as-User architecture with BaseService patterns. Works locally too.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent",
|