@rallycry/conveyor-agent 11.1.7 → 11.1.8

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.
@@ -14,14 +14,14 @@ import {
14
14
  readAgentVersion,
15
15
  refreshSkillsAfterCheckout,
16
16
  runPreReadyBinds
17
- } from "./chunk-V5WR2F2P.js";
17
+ } from "./chunk-VYE7XV6U.js";
18
18
  import "./chunk-76JCOHPE.js";
19
19
  import {
20
20
  GitPrepJob,
21
21
  defaultGit,
22
22
  ensureDir,
23
23
  reportBootMilestone
24
- } from "./chunk-VIUZS7V4.js";
24
+ } from "./chunk-74BAVQKD.js";
25
25
  import "./chunk-W4LZ7R6Z.js";
26
26
  import "./chunk-372R6E4C.js";
27
27
  import "./chunk-SQM2BQ7H.js";
@@ -617,9 +617,9 @@ var SEED_GATES = {
617
617
  }
618
618
  };
619
619
  var SEED_FABLE_OPTION = {
620
- value: "claude-fable-5-1[1m]",
620
+ value: "claude-fable-5-2[1m]",
621
621
  label: "Fable",
622
- description: "Fable 5.1 - most capable for your hardest and longest-running tasks"
622
+ description: "Fable 5.2 - most capable for your hardest and longest-running tasks"
623
623
  };
624
624
  function isPlainObject(value) {
625
625
  return typeof value === "object" && value !== null && !Array.isArray(value);
@@ -955,6 +955,8 @@ function defaultWorkbenchBootDeps() {
955
955
  git: defaultGit,
956
956
  bundle,
957
957
  podImage: process.env.CONVEYOR_POD_IMAGE === "1",
958
+ partialClone: process.env.CONVEYOR_GIT_PARTIAL_CLONE === "1",
959
+ persistentRepo: (process.env.CONVEYOR_HOST_WORKSPACE ?? process.env.CONVEYOR_MAC_WORKSPACE) === "1",
958
960
  log: ctx.log
959
961
  }),
960
962
  bindsBeforeReady: (ctx, bundle) => runPreReadyBinds(WORKSPACE_DIR, bundle, defaultGit, ctx.log),
@@ -2,7 +2,7 @@ import {
2
2
  mapChatHistory,
3
3
  readAgentVersion,
4
4
  refreshSkillsAfterCheckout
5
- } from "./chunk-V5WR2F2P.js";
5
+ } from "./chunk-VYE7XV6U.js";
6
6
  import {
7
7
  MAX_BETWEEN_TURN_BUFFER,
8
8
  MAX_DIAGNOSTIC_OUTPUT,
@@ -100,10 +100,10 @@ import {
100
100
  toMemberMentionRows,
101
101
  updateRemoteToken,
102
102
  verifyGitCredential
103
- } from "./chunk-YQLVANEA.js";
103
+ } from "./chunk-X4T2FN7E.js";
104
104
  import {
105
105
  reportBootMilestone
106
- } from "./chunk-VIUZS7V4.js";
106
+ } from "./chunk-74BAVQKD.js";
107
107
  import {
108
108
  describeTokenFile,
109
109
  ghHostsExternallyOwned,
@@ -119,7 +119,7 @@ import {
119
119
  import {
120
120
  LoopLagMonitor,
121
121
  loopStatusForRunnerStatus
122
- } from "./chunk-PIHFGSXB.js";
122
+ } from "./chunk-L2E4EMEP.js";
123
123
  import {
124
124
  getWorkbenchClient
125
125
  } from "./chunk-SQM2BQ7H.js";
@@ -3018,7 +3018,7 @@ function seedWorkspaceTrust(config, trustCwd) {
3018
3018
  var FABLE_MODEL_OPTION = {
3019
3019
  value: `${FABLE_MODEL}[1m]`,
3020
3020
  label: "Fable",
3021
- description: "Fable 5.1 - most capable for your hardest and longest-running tasks"
3021
+ description: "Fable 5.2 - most capable for your hardest and longest-running tasks"
3022
3022
  };
3023
3023
  function seedFableModelOption(config) {
3024
3024
  const cache = Array.isArray(config.additionalModelOptionsCache) ? config.additionalModelOptionsCache : [];
@@ -5129,9 +5129,9 @@ async function seedOpenCodeOauth(env) {
5129
5129
 
5130
5130
  // src/harness/openai-model.ts
5131
5131
  var DEFAULT_OPENAI_CODING_MODEL = DEFAULT_CODEX_CODING_MODEL;
5132
- function resolveOpenAiCodingModel(model2) {
5132
+ function resolveOpenAiCodingModel(model2, fallback = DEFAULT_OPENAI_CODING_MODEL) {
5133
5133
  if (!model2 || model2.startsWith("claude-") || model2.includes("/") && !model2.startsWith("openai/")) {
5134
- return DEFAULT_OPENAI_CODING_MODEL;
5134
+ return fallback;
5135
5135
  }
5136
5136
  return model2.replace(/^openai\//, "");
5137
5137
  }
@@ -5169,11 +5169,12 @@ function buildOpenCodeChildEnv(source, configContent) {
5169
5169
  if (configContent) env.OPENCODE_CONFIG_CONTENT = configContent;
5170
5170
  return env;
5171
5171
  }
5172
+ var DEFAULT_OPENCODE_OPENAI_MODEL = "gpt-5.6-terra";
5172
5173
  function resolveOpenCodeModel(source, optionsModel) {
5173
5174
  const model2 = source.CONVEYOR_AGENT_MODEL ?? optionsModel;
5174
5175
  const configuredProvider = source.CONVEYOR_AGENT_PROVIDER;
5175
5176
  if (configuredProvider === "openai" || !configuredProvider && !model2) {
5176
- return `openai/${resolveOpenAiCodingModel(model2)}`;
5177
+ return `openai/${resolveOpenAiCodingModel(model2, DEFAULT_OPENCODE_OPENAI_MODEL)}`;
5177
5178
  }
5178
5179
  if (!model2) return void 0;
5179
5180
  if (model2.startsWith("zen/")) return `opencode/${model2.slice("zen/".length)}`;
@@ -6414,7 +6415,8 @@ function buildHarnessContracts(context) {
6414
6415
  ] : []
6415
6416
  ];
6416
6417
  }
6417
- function buildDiscoveryPrompt(context, runnerMode) {
6418
+ function buildDiscoveryPrompt(context, runnerMode, runtimeTui) {
6419
+ const usesClaudePlanGate = !runtimeTui || runtimeTui === "claude-code";
6418
6420
  const parts = [
6419
6421
  `
6420
6422
  ## Mode: Discovery`,
@@ -6425,11 +6427,15 @@ function buildDiscoveryPrompt(context, runnerMode) {
6425
6427
  ] : [],
6426
6428
  ``,
6427
6429
  `### Contracts this environment enforces`,
6428
- `- You are READ-ONLY. File writes are denied outside \`.claude/plans/\` and \`/tmp/\`, and so are the commands that would start the work: git commit/push/merge/rebase/checkout, git apply, gh pr create, package publish. Everything else runs without an approval prompt \u2014 the pod is a sandbox, so investigate freely (build, test, query the dev DB, read logs).`,
6430
+ usesClaudePlanGate ? `- You are READ-ONLY. File writes are denied outside \`.claude/plans/\` and \`/tmp/\`, and so are the commands that would start the work: git commit/push/merge/rebase/checkout, git apply, gh pr create, package publish. Everything else runs without an approval prompt \u2014 the pod is a sandbox, so investigate freely (build, test, query the dev DB, read logs).` : `- Keep the repository READ-ONLY. Use \`/tmp/\` for scratch files. Do not edit, commit, push, publish, open a PR, or start implementation.`,
6429
6431
  `- Research deliverables the team should keep (a diagram, an HTML report, a screenshot, a data export) go on the card with \`mcp__conveyor__upload_attachment\`: write the file under \`/tmp/\` first, and pass \`title\` as the caption so it shows in the thread. Never publish one as a Claude artifact.`,
6430
6432
  `- A plan file on disk is NOT the plan. Only \`update_task\` saves it to the card.`,
6431
- `- **ExitPlanMode is the LAST step and it validates.** It fails until the card has a plan, story points, risk, and a title \u2014 the plan comes from \`update_task\`, and story points, risk and title from \`update_task_properties\`. Calling it early wastes a turn on a denial.`,
6432
- `- ExitPlanMode does NOT start building. It parks this session for human review; the team decides when to build.`,
6433
+ `- Set story points, risk, and title with \`update_task_properties\` before saving the final plan. If this is a pack, save all child plans first.`,
6434
+ ...usesClaudePlanGate ? [
6435
+ `- After saving the plan and posting the \`plan_ready\` milestone, call ExitPlanMode. It validates the saved plan and required properties, then parks the Planner for review. It does NOT start building.`
6436
+ ] : [
6437
+ `- After saving the plan with \`update_task\`, post \`milestone: "plan_ready"\` using \`mcp__conveyor__post_to_chat\` and end the turn. Conveyor handles the card transition from the saved plan. This is the finish line for this runtime, even if a skill describes a native plan-exit tool. Stay in the Planner role.`
6438
+ ],
6433
6439
  ...runnerMode === "plan" ? [
6434
6440
  `- You are the Planner half of this card's lifecycle. When the team presses Build, a separate **Builder** session starts on THIS pod and takes over \u2014 you never become it. So the plan has to stand on its own: the Builder inherits this repo checkout, but none of your reasoning.`
6435
6441
  ] : [],
@@ -6462,10 +6468,10 @@ function buildBuildingPrompt(context) {
6462
6468
  if (context) parts.push(...buildPropertyInstructions(context));
6463
6469
  return parts.join("\n");
6464
6470
  }
6465
- function buildModePrompt(agentMode, context, runnerMode) {
6471
+ function buildModePrompt(agentMode, context, runnerMode, runtimeTui) {
6466
6472
  switch (agentMode) {
6467
6473
  case "discovery":
6468
- return buildDiscoveryPrompt(context, runnerMode);
6474
+ return buildDiscoveryPrompt(context, runnerMode, runtimeTui);
6469
6475
  case "building":
6470
6476
  return buildBuildingPrompt(context);
6471
6477
  case "review":
@@ -7171,7 +7177,7 @@ ${HUMAN_PROSE_WRITING_STYLE}`
7171
7177
  `Use the mcp__conveyor__create_pull_request tool to open PRs \u2014 it automatically stages, commits, and pushes changes before creating the PR. Do NOT use gh CLI or shell commands for PR creation.`
7172
7178
  );
7173
7179
  }
7174
- const modePrompt = buildModePrompt(agentMode, context, mode);
7180
+ const modePrompt = buildModePrompt(agentMode, context, mode, config.runtimeTui);
7175
7181
  if (modePrompt) {
7176
7182
  parts.push(modePrompt);
7177
7183
  }
@@ -10766,8 +10772,10 @@ function buildUploadAttachmentTool(connection, config) {
10766
10772
  ...supersedes ? { supersedes } : {}
10767
10773
  });
10768
10774
  const isShowcase = result.showcase === true;
10775
+ const localPrVideo = isShowcase && config.conveyorApiUrl === "http://conveyor.local-conveyor.svc.cluster.local:7090" && ["video/mp4", "video/quicktime", "video/webm"].includes(mimeType);
10776
+ const publication = localPrVideo ? " The Local Conveyor desktop app will publish this video and link it on the card once a GitHub PR is linked and GitHub CLI is signed in on the host." : describeEmbed(fileName, result.downloadUrl, isShowcase);
10769
10777
  return textResult(
10770
- `${isShowcase ? "Showcase attachment. " : ""}Uploaded ${fileName} (${info.size} bytes) and posted it to the task chat${caption ? ` with caption "${caption}"` : ""}. File ID: ${result.fileId}${describeTags(result.appliedTags, result.unknownTags)}${describeSupersede(result.superseded, result.supersedeError)}${describeEmbed(fileName, result.downloadUrl, isShowcase)}`
10778
+ `${isShowcase ? "Showcase attachment. " : ""}Uploaded ${fileName} (${info.size} bytes) and posted it to the task chat${caption ? ` with caption "${caption}"` : ""}. File ID: ${result.fileId}${describeTags(result.appliedTags, result.unknownTags)}${describeSupersede(result.superseded, result.supersedeError)}${publication}`
10771
10779
  );
10772
10780
  } catch (error) {
10773
10781
  return textResult(
@@ -138,11 +138,11 @@ async function syncTaskBranchToRepo(deps, paths) {
138
138
  log.error(`[boot] ERROR: remote set-url failed: ${errText(err)}`);
139
139
  return { state: "failed", reason: "remote set-url failed" };
140
140
  }
141
- const credentialFailure = await persistCredentialHelper(deps, paths);
142
- if (credentialFailure) return credentialFailure;
141
+ const configFailure = await configureWorkspaceGit(deps, paths);
142
+ if (configFailure) return configFailure;
143
143
  const [, resetSucceeded] = await Promise.all([
144
144
  warmBaseBranch(deps, paths),
145
- resetTrackedChanges(deps, paths)
145
+ deps.persistentRepo ? Promise.resolve(true) : resetTrackedChanges(deps, paths)
146
146
  ]);
147
147
  if (!resetSucceeded) return { state: "failed", reason: "pre-checkout reset failed" };
148
148
  log.info(`[boot] Repo remote ready; agent will checkout ${branch}`);
@@ -178,21 +178,33 @@ async function resetTrackedChanges(deps, paths) {
178
178
  log.info(`[boot] step=gitResetTracked ms=${Math.round(performance.now() - started)}`);
179
179
  }
180
180
  }
181
- async function persistCredentialHelper(deps, paths) {
181
+ async function configureWorkspaceGit(deps, paths) {
182
182
  try {
183
183
  await deps.git(["config", "--local", "credential.helper", paths.credentialHelper], {
184
184
  cwd: paths.repoDir,
185
185
  timeoutMs: QUICK_GIT_TIMEOUT_MS
186
186
  });
187
- return null;
188
187
  } catch (err) {
189
188
  deps.log.error(`[boot] ERROR: credential helper config failed: ${errText(err)}`);
190
189
  return { state: "failed", reason: "credential helper config failed" };
191
190
  }
191
+ if (deps.persistentRepo) {
192
+ try {
193
+ await deps.git(["config", "--local", "core.checkStat", "minimal"], {
194
+ cwd: paths.repoDir,
195
+ timeoutMs: QUICK_GIT_TIMEOUT_MS
196
+ });
197
+ } catch (err) {
198
+ deps.log.error(`[boot] ERROR: shared workspace Git config failed: ${errText(err)}`);
199
+ return { state: "failed", reason: "shared workspace Git config failed" };
200
+ }
201
+ }
202
+ return null;
192
203
  }
193
204
  async function clonePostAssignment(deps, paths) {
194
205
  const { git, log } = deps;
195
- const { branch, baseBranch, checkoutRef } = deps.bundle.gitPlan;
206
+ const { branch, baseBranch, checkoutRef, provider } = deps.bundle.gitPlan;
207
+ const filter = deps.partialClone && provider === "github" ? ["--filter=blob:none"] : [];
196
208
  log.info("[boot] Cloning repo post-assignment (pre-clone was missing)...");
197
209
  if (checkoutRef) {
198
210
  try {
@@ -201,6 +213,7 @@ async function clonePostAssignment(deps, paths) {
201
213
  "-c",
202
214
  `credential.helper=${paths.credentialHelper}`,
203
215
  "clone",
216
+ ...filter,
204
217
  "--depth",
205
218
  "1",
206
219
  "--single-branch",
@@ -215,8 +228,8 @@ async function clonePostAssignment(deps, paths) {
215
228
  log.error(`[boot] ERROR: post-assignment clone failed: ${errText(err)}`);
216
229
  return { state: "failed", reason: "post-assignment clone failed" };
217
230
  }
218
- const credentialFailure = await persistCredentialHelper(deps, paths);
219
- if (credentialFailure) return credentialFailure;
231
+ const configFailure = await configureWorkspaceGit(deps, paths);
232
+ if (configFailure) return configFailure;
220
233
  try {
221
234
  await git(["fetch", "origin", `+${checkoutRef}:refs/remotes/origin/pr-checkout`], {
222
235
  cwd: paths.repoDir,
@@ -243,6 +256,7 @@ async function clonePostAssignment(deps, paths) {
243
256
  "-c",
244
257
  `credential.helper=${paths.credentialHelper}`,
245
258
  "clone",
259
+ ...filter,
246
260
  "--single-branch",
247
261
  "--branch",
248
262
  baseBranch,
@@ -10631,15 +10631,23 @@ function conveyorReconnectOptions() {
10631
10631
  extraHeaders: { "ngrok-skip-browser-warning": "true" }
10632
10632
  };
10633
10633
  }
10634
+ function conveyorSocketEndpoint(apiUrl) {
10635
+ const endpoint = new URL(apiUrl);
10636
+ if (!["http:", "https:", "ws:", "wss:"].includes(endpoint.protocol) || endpoint.username || endpoint.password) {
10637
+ throw new Error("Conveyor API URL must be an HTTP or WebSocket URL without credentials.");
10638
+ }
10639
+ return { url: endpoint.origin, path: endpoint.pathname.replace(/\/+$/, "") + "/socket.io" };
10640
+ }
10634
10641
 
10635
10642
  // src/connection/quickdraw-transport.ts
10636
10643
  var AGENT_SESSION_SERVICE = "agentSessionService";
10637
10644
  function createAgentSessionConnection(options) {
10645
+ const endpoint = conveyorSocketEndpoint(options.apiUrl);
10638
10646
  return createQuickdrawConnection({
10639
- url: options.apiUrl,
10647
+ url: endpoint.url,
10640
10648
  auth: options.auth,
10641
10649
  transports: ["websocket"],
10642
- socketOptions: conveyorReconnectOptions(),
10650
+ socketOptions: { ...conveyorReconnectOptions(), path: endpoint.path },
10643
10651
  timeoutMs: options.timeoutMs,
10644
10652
  // The default reloads a browser page; a pod has none. An API that refuses
10645
10653
  // this protocol answers nothing the agent can use, so say why, loudly.
@@ -8,10 +8,10 @@ import {
8
8
  readWorkspaceBytes,
9
9
  statWorkspacePath,
10
10
  workspacePathExists
11
- } from "./chunk-YQLVANEA.js";
11
+ } from "./chunk-X4T2FN7E.js";
12
12
  import {
13
13
  reportBootMilestone
14
- } from "./chunk-VIUZS7V4.js";
14
+ } from "./chunk-74BAVQKD.js";
15
15
  import {
16
16
  runSetupCommand,
17
17
  runStartCommand,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  redactToken
3
- } from "./chunk-VIUZS7V4.js";
3
+ } from "./chunk-74BAVQKD.js";
4
4
 
5
5
  // src/boot/graphify.ts
6
6
  var USER_HOME_MOUNT = "/mnt/conveyor-users";
@@ -3,7 +3,7 @@ import {
3
3
  DEFAULT_RETRY_DELAY_MS,
4
4
  FETCH_TIMEOUT_MS,
5
5
  GIT_PREP_MAX_RETRIES
6
- } from "./chunk-VIUZS7V4.js";
6
+ } from "./chunk-74BAVQKD.js";
7
7
  import {
8
8
  gitCredentialHelper,
9
9
  sleep,
@@ -28,7 +28,7 @@ import {
28
28
  query,
29
29
  transportFailureOf,
30
30
  waitForConnection
31
- } from "./chunk-PIHFGSXB.js";
31
+ } from "./chunk-L2E4EMEP.js";
32
32
  import {
33
33
  WorkbenchError,
34
34
  getWorkbenchClient
@@ -37,13 +37,13 @@ import {
37
37
  workbenchEnabled
38
38
  } from "./chunk-KMB3BU4S.js";
39
39
 
40
- // ../shared/dist/chunk-E75VFMFL.js
40
+ // ../shared/dist/chunk-OOU3YSMM.js
41
41
  import { z } from "zod";
42
42
  import { z as z2 } from "zod";
43
43
  var DEFAULT_SONNET_MODEL = "claude-sonnet-5-5";
44
44
  var DEFAULT_OPUS_MODEL = "claude-opus-5-5";
45
45
  var DEFAULT_HAIKU_MODEL = "claude-haiku-5-5";
46
- var FABLE_MODEL = "claude-fable-5-1";
46
+ var FABLE_MODEL = "claude-fable-5-2";
47
47
  var PREVIOUS_SONNET_MODEL = "claude-sonnet-5";
48
48
  var PREVIOUS_OPUS_MODEL = "claude-opus-5";
49
49
  var MODEL_PROVIDERS = ["anthropic", "zen", "typesafe"];
@@ -2262,6 +2262,11 @@ var CRITICAL_AUTOMATED_SOURCES = /* @__PURE__ */ new Set([
2262
2262
  // clear the completion guard.
2263
2263
  "ci_result"
2264
2264
  ]);
2265
+ var CODEX_REASONING_EFFORTS = ["low", "medium", "high", "xhigh", "max"];
2266
+ var DEFAULT_CODEX_CODING_MODEL = "gpt-6.1-terra";
2267
+ function isCodexReasoningEffort(value) {
2268
+ return typeof value === "string" && CODEX_REASONING_EFFORTS.includes(value);
2269
+ }
2265
2270
  var AGENT_MODES = [
2266
2271
  "discovery",
2267
2272
  "building",
@@ -2330,6 +2335,8 @@ var SessionSpawnBuilderPushSchema = z12.object({
2330
2335
  branch: z12.string().nullable(),
2331
2336
  /** The agent whose model, settings and instructions the Builder runs under. */
2332
2337
  agentName: z12.string().nullable(),
2338
+ // Older servers omit this; the child then reads its own task settings.
2339
+ codex: z12.object({ model: z12.string(), effort: z12.enum(CODEX_REASONING_EFFORTS) }).optional(),
2333
2340
  timestamp: z12.string()
2334
2341
  });
2335
2342
  var SessionSpawnTuiPushSchema = z12.object({
@@ -2850,13 +2857,8 @@ var ANTHROPIC_CATALOG = [
2850
2857
  anthropicEntry(PREVIOUS_SONNET_MODEL, "Sonnet 5", 2, 10),
2851
2858
  // Haiku 5.5 has two rate cards; this is the ≤100K-prompt one (>100K bills $0.50/$2.50).
2852
2859
  anthropicEntry(DEFAULT_HAIKU_MODEL, "Haiku 5.5", 0.1, 0.5),
2853
- anthropicEntry(FABLE_MODEL, "Fable 5.1", 10, 50)
2860
+ anthropicEntry(FABLE_MODEL, "Fable 5.2", 8, 40)
2854
2861
  ];
2855
- var CODEX_REASONING_EFFORTS = ["low", "medium", "high", "xhigh", "max"];
2856
- var DEFAULT_CODEX_CODING_MODEL = "gpt-5.6-terra";
2857
- function isCodexReasoningEffort(value) {
2858
- return typeof value === "string" && CODEX_REASONING_EFFORTS.includes(value);
2859
- }
2860
2862
  var HUMAN_PROSE_WRITING_STYLE = `## Writing style for humans
2861
2863
  When you write prose a person will read \u2014 chat messages, plan updates, PR titles and bodies, review comments \u2014 follow these rules (based on ASD-STE100 Simplified Technical English):
2862
2864
  - Use active voice. Say who does what ("The API rejects the request", not "the request is rejected").
@@ -2925,6 +2927,7 @@ var FIREBASE_EMULATOR_ENV = {
2925
2927
  METADATA_SERVER_DETECTION: "none",
2926
2928
  GOOGLE_APPLICATION_CREDENTIALS: "/dev/null"
2927
2929
  };
2930
+ var UNITY_WORKSPACE_PATH = "/workspaces/unity";
2928
2931
  var CATALOG = {
2929
2932
  postgresql: {
2930
2933
  name: "postgresql",
@@ -3187,6 +3190,28 @@ var CATALOG = {
3187
3190
  retries: 20
3188
3191
  }
3189
3192
  }
3193
+ },
3194
+ "unity-editor": {
3195
+ name: "unity-editor",
3196
+ image: "unityci/editor:ubuntu-6000.6.8f1-base-3.2.2@sha256:63197c047ac7172d667e7ce71386b07e5d441ee798bd0d5c0827a8c1505b0523",
3197
+ command: [
3198
+ "sh",
3199
+ "-ec",
3200
+ [
3201
+ `install -d -m 2775 -o 1001 -g 1001 "${UNITY_WORKSPACE_PATH}/project" "${UNITY_WORKSPACE_PATH}/tmp"`,
3202
+ "if [ -x /opt/conveyor/unity-seed/restore ]; then /opt/conveyor/unity-seed/restore; fi",
3203
+ "exec sleep infinity"
3204
+ ].join("\n")
3205
+ ],
3206
+ ports: [],
3207
+ env: { TMPDIR: `${UNITY_WORKSPACE_PATH}/tmp` },
3208
+ resources: {
3209
+ // Project files, imports and temporary files use the shared pod volume.
3210
+ // Leave room for the other sidecars within Autopilot's 10 GiB pod cap.
3211
+ requests: { cpuMillicores: 1e3, memoryMi: 4096, ephemeralMi: 224 },
3212
+ limits: { cpuMillicores: 4e3, memoryMi: 4096, ephemeralMi: 224 }
3213
+ },
3214
+ statefulBake: false
3190
3215
  }
3191
3216
  };
3192
3217
  var SERVICE_DEFINITIONS = CATALOG;
@@ -11273,9 +11298,14 @@ var cardContract = defineContract("cardService", {
11273
11298
  }),
11274
11299
  countCards: query({
11275
11300
  input: countCardsSchema,
11276
- output: standard(z67.object({ total: z67.number() })),
11301
+ output: standard(
11302
+ z67.object({
11303
+ total: z67.number(),
11304
+ lanes: z67.partialRecord(z67.enum(taskStatusValues), z67.number())
11305
+ })
11306
+ ),
11277
11307
  watch: projectCardsWatch,
11278
- describe: "Counts the incidents and suggestions that match the Reports or card table filters, so the toolbar total agrees with the list."
11308
+ describe: "Counts the incidents and suggestions that match the Reports or card table filters, in total and per Reports status lane (legacy statuses folded into their lanes), so the toolbar total and each lane's count agree with the whole list, not only the loaded pages."
11279
11309
  }),
11280
11310
  addReviewer: mutation({
11281
11311
  input: addReviewerSchema,
@@ -13718,6 +13748,8 @@ var projectSettingsUpdateSchema = z97.record(z97.string(), z97.unknown()).superR
13718
13748
  }
13719
13749
  assertOptionalBoolean(ctx, settings, ["triage", "autoBuild"]);
13720
13750
  assertOptionalBoolean(ctx, settings, ["claudespace", "bakeLocal"]);
13751
+ assertOptionalBoolean(ctx, settings, ["claudespace", "localUnitySeed"]);
13752
+ assertOptionalBoolean(ctx, settings, ["claudespace", "localWorkspaceSeed"]);
13721
13753
  assertOptionalBoolean(ctx, settings, ["jev", "enabled"]);
13722
13754
  assertOptionalOneOf(ctx, settings, ["jev", "connection"], JEV_CONNECTIONS);
13723
13755
  assertOptionalOneOf(ctx, settings, ["claudespace", "reviewProfile"], REVIEW_PROFILES);
@@ -18663,13 +18695,13 @@ export {
18663
18695
  TAG_OVERVIEW_MAX,
18664
18696
  TAG_REASON_MAX,
18665
18697
  CRITICAL_AUTOMATED_SOURCES,
18698
+ DEFAULT_CODEX_CODING_MODEL,
18699
+ isCodexReasoningEffort,
18666
18700
  formatEvaluateQuestionsResult,
18667
18701
  subProjectScopePaths,
18668
18702
  AGENT_STATUS_REASON_USER_QUESTION,
18669
18703
  TASK_CHAT_HISTORY_LIMIT,
18670
18704
  PM_CHAT_HISTORY_LIMIT,
18671
- DEFAULT_CODEX_CODING_MODEL,
18672
- isCodexReasoningEffort,
18673
18705
  HUMAN_PROSE_WRITING_STYLE,
18674
18706
  parseMentions,
18675
18707
  toMemberMentionRows,
package/dist/cli.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  WorkspaceCommandSupervisor,
8
8
  startWorkspaceCommandsAfterConnect,
9
9
  stopWorkspaceCommands
10
- } from "./chunk-OFGV5G4O.js";
10
+ } from "./chunk-R46A26AR.js";
11
11
  import {
12
12
  PtyHarness,
13
13
  SessionRunner,
@@ -25,8 +25,8 @@ import {
25
25
  resolveTuiKindFromEnv,
26
26
  sampleKeyUsage,
27
27
  usesNativeUsageReporting
28
- } from "./chunk-TGU3DX5B.js";
29
- import "./chunk-V5WR2F2P.js";
28
+ } from "./chunk-22BKWHPI.js";
29
+ import "./chunk-VYE7XV6U.js";
30
30
  import {
31
31
  inheritedEnv,
32
32
  resolvePtySpawn
@@ -41,14 +41,16 @@ import {
41
41
  createServiceLogger,
42
42
  loadAndAnnotateDiscoveredPorts,
43
43
  loadConveyorConfig
44
- } from "./chunk-YQLVANEA.js";
45
- import "./chunk-VIUZS7V4.js";
44
+ } from "./chunk-X4T2FN7E.js";
45
+ import "./chunk-74BAVQKD.js";
46
46
  import "./chunk-W4LZ7R6Z.js";
47
47
  import "./chunk-372R6E4C.js";
48
- import "./chunk-PIHFGSXB.js";
48
+ import "./chunk-L2E4EMEP.js";
49
49
  import "./chunk-UP4XACLL.js";
50
50
  import "./chunk-SQM2BQ7H.js";
51
- import "./chunk-KMB3BU4S.js";
51
+ import {
52
+ workbenchEnabled
53
+ } from "./chunk-KMB3BU4S.js";
52
54
  import "./chunk-6Q6LQBWO.js";
53
55
  import "./chunk-JSBRDJBE.js";
54
56
 
@@ -1053,6 +1055,14 @@ function buildBuilderChildEnv(baseEnv, data) {
1053
1055
  delete env.CONVEYOR_GIT_READY_MARKER;
1054
1056
  delete env.CONVEYOR_AGENT_MODE;
1055
1057
  delete env.CONVEYOR_IS_AUTO;
1058
+ if (env.CONVEYOR_TUI === "codex") {
1059
+ delete env.CONVEYOR_AGENT_MODEL;
1060
+ delete env.CONVEYOR_AGENT_REASONING_EFFORT;
1061
+ if (data.codex) {
1062
+ env.CONVEYOR_AGENT_MODEL = data.codex.model;
1063
+ env.CONVEYOR_AGENT_REASONING_EFFORT = data.codex.effort;
1064
+ }
1065
+ }
1056
1066
  return env;
1057
1067
  }
1058
1068
  var BuilderChildSupervisor = class {
@@ -1092,7 +1102,7 @@ var BuilderChildSupervisor = class {
1092
1102
  let child;
1093
1103
  try {
1094
1104
  child = this.spawnFn(process.execPath, [cliPath], {
1095
- cwd: this.workspaceDir,
1105
+ cwd: workbenchEnabled() ? process.cwd() : this.workspaceDir,
1096
1106
  env: buildBuilderChildEnv(process.env, data),
1097
1107
  stdio: ["ignore", "pipe", "pipe"]
1098
1108
  });
@@ -1115,15 +1125,30 @@ var BuilderChildSupervisor = class {
1115
1125
  */
1116
1126
  watchForEarlyExit(child, sessionId) {
1117
1127
  const spawnedAt = Date.now();
1118
- child.on("exit", (code) => {
1119
- if (this.childSessionId === sessionId) {
1120
- this.child = null;
1121
- this.childSessionId = null;
1122
- }
1128
+ const reportFailure = (error) => {
1129
+ if (this.child !== child) return;
1130
+ this.child = null;
1131
+ this.childSessionId = null;
1132
+ this.connection.reportBuilderSpawnFailure(sessionId, error);
1133
+ };
1134
+ child.stdout?.on(
1135
+ "data",
1136
+ (chunk) => process.stdout.write(`[builder-child] ${chunk.toString()}`)
1137
+ );
1138
+ child.stderr?.on(
1139
+ "data",
1140
+ (chunk) => process.stderr.write(`[builder-child] ${chunk.toString()}`)
1141
+ );
1142
+ child.on("error", (error) => reportFailure(error.message));
1143
+ child.on("exit", (code, signal) => {
1144
+ if (this.child !== child) return;
1123
1145
  const early = Date.now() - spawnedAt < SPAWN_FAILURE_GRACE_MS;
1124
- if (early && code !== 0) {
1146
+ if (early && code !== null && code !== 0 && signal === null) {
1125
1147
  logger5.warn("Builder child exited inside the spawn grace window", { sessionId, code });
1126
- this.connection.reportBuilderSpawnFailure(sessionId, `child exited with code ${code}`);
1148
+ reportFailure(`child exited with code ${code}`);
1149
+ } else {
1150
+ this.child = null;
1151
+ this.childSessionId = null;
1127
1152
  }
1128
1153
  });
1129
1154
  }
@@ -1188,7 +1213,7 @@ function wireSpawnChildren(mode, connection, supervisors, logger7) {
1188
1213
 
1189
1214
  // src/cli.ts
1190
1215
  if (process.argv[2] === "boot") {
1191
- const { runBoot } = await import("./boot-6QUJHRWD.js");
1216
+ const { runBoot } = await import("./boot-KQ4UDUAI.js");
1192
1217
  process.exit(await runBoot(process.argv.slice(3)));
1193
1218
  }
1194
1219
  if (isLegacyEntrypointLaunch(process.env)) {
@@ -1399,7 +1424,7 @@ if (!RUNNER_MODES.includes(CONVEYOR_MODE)) {
1399
1424
  process.exit(1);
1400
1425
  }
1401
1426
  if (CONVEYOR_MODE === "serving") {
1402
- const { runServingSession } = await import("./serve-boot-JWGICOM7.js");
1427
+ const { runServingSession } = await import("./serve-boot-ZNDOATUL.js");
1403
1428
  exitContext.runnerMode = "serving";
1404
1429
  exitContext.sessionId = process.env.CONVEYOR_SESSION_ID ?? exitContext.sessionId;
1405
1430
  const outcome = await runServingSession({
@@ -6,7 +6,7 @@ import {
6
6
  lagFromBuffer,
7
7
  needsReopen,
8
8
  statusFromBuffer
9
- } from "./chunk-PIHFGSXB.js";
9
+ } from "./chunk-L2E4EMEP.js";
10
10
  import "./chunk-UP4XACLL.js";
11
11
  import "./chunk-JSBRDJBE.js";
12
12
 
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  SessionRunner,
3
3
  unshallowRepo
4
- } from "./chunk-TGU3DX5B.js";
5
- import "./chunk-V5WR2F2P.js";
4
+ } from "./chunk-22BKWHPI.js";
5
+ import "./chunk-VYE7XV6U.js";
6
6
  import "./chunk-76JCOHPE.js";
7
7
  import {
8
8
  AgentConnection,
@@ -17,15 +17,15 @@ import {
17
17
  stageAndCommit,
18
18
  updateRemoteToken,
19
19
  workspacePathExists
20
- } from "./chunk-YQLVANEA.js";
21
- import "./chunk-VIUZS7V4.js";
20
+ } from "./chunk-X4T2FN7E.js";
21
+ import "./chunk-74BAVQKD.js";
22
22
  import {
23
23
  runAuthTokenCommand,
24
24
  runSetupCommand,
25
25
  runStartCommand
26
26
  } from "./chunk-W4LZ7R6Z.js";
27
27
  import "./chunk-372R6E4C.js";
28
- import "./chunk-PIHFGSXB.js";
28
+ import "./chunk-L2E4EMEP.js";
29
29
  import "./chunk-UP4XACLL.js";
30
30
  import {
31
31
  getWorkbenchClient
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  WorkspaceCommandSupervisor
3
- } from "./chunk-OFGV5G4O.js";
3
+ } from "./chunk-R46A26AR.js";
4
4
  import {
5
5
  AgentConnection,
6
6
  DEFAULT_LIFECYCLE_CONFIG,
@@ -11,10 +11,10 @@ import {
11
11
  ensureOnTaskBranch,
12
12
  loadAndAnnotateDiscoveredPorts,
13
13
  loadConveyorConfig
14
- } from "./chunk-YQLVANEA.js";
15
- import "./chunk-VIUZS7V4.js";
14
+ } from "./chunk-X4T2FN7E.js";
15
+ import "./chunk-74BAVQKD.js";
16
16
  import "./chunk-W4LZ7R6Z.js";
17
- import "./chunk-PIHFGSXB.js";
17
+ import "./chunk-L2E4EMEP.js";
18
18
  import "./chunk-UP4XACLL.js";
19
19
  import "./chunk-SQM2BQ7H.js";
20
20
  import "./chunk-KMB3BU4S.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rallycry/conveyor-agent",
3
- "version": "11.1.7",
3
+ "version": "11.1.8",
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",
@@ -37,7 +37,7 @@
37
37
  "typecheck": "bash ../../scripts/typecheck.sh"
38
38
  },
39
39
  "dependencies": {
40
- "@anthropic-ai/claude-agent-sdk": "^0.3.301",
40
+ "@anthropic-ai/claude-agent-sdk": "^0.3.321",
41
41
  "@modelcontextprotocol/sdk": "^1.32.1",
42
42
  "node-pty": "^1.1.0",
43
43
  "socket.io-client": "^4.8.4",
@@ -14,10 +14,11 @@ The research and drafting below are identical everywhere. Only the two ends
14
14
  differ — resolving which project you are in, and where the finished plan lands
15
15
  — and both carry an **Environment** note.
16
16
 
17
- The division of labor is fixed: **you research and recommend; Conveyor's
18
- identification decides.** Moving the card to Open fires identification
19
- automatically (story points, icon, agent, and tags if you set none). Never set
20
- icon or story points yourself, and never `start_task` unless the user asks.
17
+ Conveyor identifies the card when it opens, assigning the icon, agent, and
18
+ tags if you set none. When creating a card from a local session, recommend
19
+ story points in chat and let identification set them. In a pod, set the
20
+ initial estimate before saving the plan. Never set the icon or call
21
+ `start_task` unless the user asks.
21
22
 
22
23
  ## Goal and finish line
23
24
 
@@ -25,8 +26,11 @@ icon or story points yourself, and never `start_task` unless the user asks.
25
26
  batched round of questions for a human when scope is genuinely ambiguous.
26
27
  **Finish line:** the plan is saved with `mcp__conveyor__update_task` AND the
27
28
  recommendation is posted with `mcp__conveyor__post_to_chat` and
28
- `milestone: "plan_ready"`. In a pod, story points and risk are also set
29
- (`mcp__conveyor__update_task_properties`) and plan mode is exited.
29
+ `milestone: "plan_ready"`. In a pod, set story points, risk, and title with
30
+ `mcp__conveyor__update_task_properties` before saving the final plan. Follow
31
+ the runner's completion instructions: Claude's Discovery planner also calls
32
+ its native plan-exit tool after posting the milestone. Codex and OpenCode end
33
+ the turn after the milestone. Conveyor handles the card transition.
30
34
  **A turn may end only when:** (a) the finish line above is true, or (b) an
31
35
  `AskUserQuestion` is pending. Nothing else. Anything else is a stalled run, not
32
36
  a paused one.
@@ -197,15 +201,13 @@ touching Conveyor, unless they asked you to just ship it.
197
201
  > does not exist in a pod. In a pod, the card exists and you are on it: save
198
202
  > the plan with `mcp__conveyor__update_task` (`plan`, and `description` if it
199
203
  > needs sharpening), post the same recommendation message to chat with
200
- > `milestone: "plan_ready"`, and stop. "Stop" means end the turn with no
201
- > question about starting work — per *Goal and finish line*, the Builder is a
204
+ > `milestone: "plan_ready"`, and follow the runtime-specific finish line
205
+ > above. End the turn without asking about starting work. The Builder is a
202
206
  > separate session the system spawns, and every later turn here is a plan
203
207
  > iteration. A pod does not promote its own card to
204
208
  > Open. A parked plan is never `blocked`: that milestone means you cannot
205
209
  > continue until a human acts, and it pages nobody. To page a person, ask them
206
- > with AskUserQuestion. If the pod also has to leave
207
- > plan mode, note that `update_task` carries no story points or risk; those go
208
- > through `mcp__conveyor__update_task_properties`. Everything in Phases 1-3 is
210
+ > with AskUserQuestion. Everything in Phases 1-3 is
209
211
  > identical in both environments. To break a large pod card into a pack, use
210
212
  > `mcp__conveyor__create_subtask` rather than `create_task`, and set child→child
211
213
  > ordering through its `dependsOn` field — `mcp__conveyor__add_dependency` is