@rallycry/conveyor-agent 11.0.30 → 11.0.32

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.
@@ -8,7 +8,7 @@ import {
8
8
  readWorkspaceBytes,
9
9
  statWorkspacePath,
10
10
  workspacePathExists
11
- } from "./chunk-7KG7CDVU.js";
11
+ } from "./chunk-IHNXVFIB.js";
12
12
  import {
13
13
  reportBootMilestone
14
14
  } from "./chunk-Q4FQOJ7D.js";
package/dist/cli.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  WorkspaceCommandSupervisor,
8
8
  startWorkspaceCommandsAfterConnect,
9
9
  stopWorkspaceCommands
10
- } from "./chunk-2BHXJ37W.js";
10
+ } from "./chunk-XZDTLVWA.js";
11
11
  import {
12
12
  PtyHarness,
13
13
  SessionRunner,
@@ -16,6 +16,8 @@ import {
16
16
  buildSynthesizedCredentials,
17
17
  buildUnmeasurableEvent,
18
18
  claudeJsonPath,
19
+ getEffortOverride,
20
+ getModelOverride,
19
21
  isPermissionDeniedError,
20
22
  parseUsageGauges,
21
23
  resolvePlaywrightMcpServer,
@@ -25,13 +27,13 @@ import {
25
27
  runUsageProbe,
26
28
  sampleKeyUsage,
27
29
  usesNativeUsageReporting
28
- } from "./chunk-HYXAXQHN.js";
30
+ } from "./chunk-Q2E2TM3J.js";
29
31
  import "./chunk-37J5MMQT.js";
30
32
  import {
31
33
  inheritedEnv,
32
34
  resolvePtySpawn,
33
35
  sessionTempBase
34
- } from "./chunk-WCJ6HRVU.js";
36
+ } from "./chunk-EKTPDG3G.js";
35
37
  import {
36
38
  AgentConnection,
37
39
  CodespacePortVisibility,
@@ -44,7 +46,7 @@ import {
44
46
  createServiceLogger,
45
47
  fetchBootstrap,
46
48
  loadConveyorConfig
47
- } from "./chunk-7KG7CDVU.js";
49
+ } from "./chunk-IHNXVFIB.js";
48
50
  import "./chunk-Q4FQOJ7D.js";
49
51
  import "./chunk-W4LZ7R6Z.js";
50
52
  import "./chunk-372R6E4C.js";
@@ -350,13 +352,19 @@ function buildAdhocPtyBridge(connection, onInputActivity) {
350
352
  onInputActivity?.();
351
353
  handler(data);
352
354
  }),
353
- onResize: (handler) => connection.onPtyResize(handler)
355
+ onResize: (handler) => connection.onPtyResize(handler),
356
+ ...connection.onPtyModelEffort ? {
357
+ onModelEffort: (handler) => connection.onPtyModelEffort?.(handler) ?? (() => {
358
+ })
359
+ } : {}
354
360
  };
355
361
  }
356
362
  function buildAdhocQueryOptions(workspaceDir, model, abortController, session, env = process.env, headless) {
357
363
  const systemNote = headless ? HEADLESS_SYSTEM_NOTE : ADHOC_SYSTEM_NOTE;
364
+ const effort = getEffortOverride(env);
358
365
  return {
359
- model,
366
+ model: getModelOverride(env) ?? model,
367
+ ...effort ? { effort } : {},
360
368
  systemPrompt: { type: "preset", preset: "claude_code", append: systemNote },
361
369
  appendSystemPrompt: systemNote,
362
370
  cwd: workspaceDir,
@@ -615,6 +623,8 @@ function buildReviewChildEnv(baseEnv, data) {
615
623
  delete env.POD_BOOTSTRAP_TOKEN;
616
624
  delete env.CONVEYOR_BOOTSTRAP_TOKEN;
617
625
  delete env.CONVEYOR_START_COMMAND;
626
+ delete env.CONVEYOR_MODEL_OVERRIDE;
627
+ delete env.CONVEYOR_EFFORT_OVERRIDE;
618
628
  delete env.CONVEYOR_GIT_READY;
619
629
  delete env.CONVEYOR_GIT_READY_MARKER;
620
630
  delete env.CONVEYOR_AGENT_MODE;
@@ -1205,7 +1215,7 @@ function wireSpawnChildren(mode, connection, supervisors, logger7) {
1205
1215
 
1206
1216
  // src/cli.ts
1207
1217
  if (process.argv[2] === "boot") {
1208
- const { runBoot } = await import("./boot-65PTSADA.js");
1218
+ const { runBoot } = await import("./boot-T5HQVF3W.js");
1209
1219
  process.exit(await runBoot(process.argv.slice(3)));
1210
1220
  }
1211
1221
  if (isLegacyEntrypointLaunch(process.env)) {
@@ -1307,7 +1317,7 @@ process.on("unhandledRejection", (reason) => {
1307
1317
  process.exit(1);
1308
1318
  });
1309
1319
  if (process.env.CONVEYOR_MODE === "workbench") {
1310
- const { startWorkbenchServer } = await import("./server-E6IYHSMN.js");
1320
+ const { startWorkbenchServer } = await import("./server-GJZKUVBE.js");
1311
1321
  const { oomWatchdogOptionsFromEnv } = await import("./oom-watchdog-PAC5OJJG.js");
1312
1322
  const { DEFAULT_WORKBENCH_PORT } = await import("./protocol-QBCYO4GI.js");
1313
1323
  const port = Number(process.env.CONVEYOR_WORKBENCH_PORT) || DEFAULT_WORKBENCH_PORT;
@@ -1458,7 +1468,7 @@ if (!RUNNER_MODES.includes(CONVEYOR_MODE)) {
1458
1468
  process.exit(1);
1459
1469
  }
1460
1470
  if (CONVEYOR_MODE === "serving") {
1461
- const { runServingSession } = await import("./serve-boot-F2G7ZXFF.js");
1471
+ const { runServingSession } = await import("./serve-boot-VDR3RXRA.js");
1462
1472
  exitContext.runnerMode = "serving";
1463
1473
  exitContext.sessionId = process.env.CONVEYOR_SESSION_ID ?? exitContext.sessionId;
1464
1474
  const outcome = await runServingSession({
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _project_shared from '@project/shared';
2
- import { RunnerMode, AgentSessionServiceMethods, AgentMode, PtyChatEventPayload, WorkspaceDiscoveredPort, AgentQuestion, AgentRunnerStatus, SessionPreviewLink } from '@project/shared';
2
+ import { RunnerMode, AgentSessionServiceMethods, AgentMode, PtyChatEventPayload, PtyModelEffortRelay, WorkspaceDiscoveredPort, AgentQuestion, AgentRunnerStatus, SessionPreviewLink } from '@project/shared';
3
3
  export * from '@project/shared';
4
4
  import { ChildProcess } from 'node:child_process';
5
5
 
@@ -131,6 +131,7 @@ declare class AgentConnection {
131
131
  private earlyProbeUsage;
132
132
  private ptyInputCallback;
133
133
  private ptyResizeCallback;
134
+ private ptyModelEffortCallback;
134
135
  /** Epoch ms of the last relayed keystroke, or null before any input. The
135
136
  * question-grace expiry reads it to defer un-parking while a human is
136
137
  * actively typing into the Connected-TUI (they may be mid-answer). */
@@ -312,6 +313,8 @@ declare class AgentConnection {
312
313
  get lastPtyInputAt(): number | null;
313
314
  /** Subscribe to relayed keystrokes. Returns an unsubscribe fn. */
314
315
  onPtyInput(handler: (data: string) => void): () => void;
316
+ /** Subscribe to composer model/effort switches. Returns an unsubscribe fn. */
317
+ onPtyModelEffort(handler: (switchTo: PtyModelEffortRelay) => void): () => void;
315
318
  /** Subscribe to relayed (reconciled) terminal resizes. Returns an unsubscribe fn. */
316
319
  onPtyResize(handler: (cols: number, rows: number) => void): () => void;
317
320
  emitStatus(status: string, reason?: string, questionText?: string): Promise<void>;
package/dist/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  SessionRunner,
3
3
  unshallowRepo
4
- } from "./chunk-HYXAXQHN.js";
4
+ } from "./chunk-Q2E2TM3J.js";
5
5
  import "./chunk-37J5MMQT.js";
6
- import "./chunk-WCJ6HRVU.js";
6
+ import "./chunk-EKTPDG3G.js";
7
7
  import {
8
8
  AgentConnection,
9
9
  GIT_TIMEOUT_MS,
@@ -17,7 +17,7 @@ import {
17
17
  stageAndCommit,
18
18
  updateRemoteToken,
19
19
  workspacePathExists
20
- } from "./chunk-7KG7CDVU.js";
20
+ } from "./chunk-IHNXVFIB.js";
21
21
  import "./chunk-Q4FQOJ7D.js";
22
22
  import {
23
23
  runAuthTokenCommand,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  WorkspaceCommandSupervisor
3
- } from "./chunk-2BHXJ37W.js";
3
+ } from "./chunk-XZDTLVWA.js";
4
4
  import {
5
5
  AgentConnection,
6
6
  CodespacePortVisibility,
@@ -11,7 +11,7 @@ import {
11
11
  createServiceLogger,
12
12
  ensureOnTaskBranch,
13
13
  loadConveyorConfig
14
- } from "./chunk-7KG7CDVU.js";
14
+ } from "./chunk-IHNXVFIB.js";
15
15
  import "./chunk-Q4FQOJ7D.js";
16
16
  import "./chunk-W4LZ7R6Z.js";
17
17
  import "./chunk-IA45XHOA.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  startWorkbenchServer
3
- } from "./chunk-EITUTXXJ.js";
4
- import "./chunk-WCJ6HRVU.js";
3
+ } from "./chunk-F7XHSNU7.js";
4
+ import "./chunk-EKTPDG3G.js";
5
5
  import "./chunk-W4LZ7R6Z.js";
6
6
  import "./chunk-372R6E4C.js";
7
7
  import "./chunk-SQM2BQ7H.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rallycry/conveyor-agent",
3
- "version": "11.0.30",
3
+ "version": "11.0.32",
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",