@rallycry/conveyor-agent 11.1.7 → 11.1.9

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.
@@ -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";
@@ -8,10 +8,10 @@ import {
8
8
  readWorkspaceBytes,
9
9
  statWorkspacePath,
10
10
  workspacePathExists
11
- } from "./chunk-YQLVANEA.js";
11
+ } from "./chunk-T6FEYIIV.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,
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-XGCTWHO6.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-QCYVI6YQ.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-T6FEYIIV.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-PFS6KWJL.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-QCYVI6YQ.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-T6FEYIIV.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-XGCTWHO6.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-T6FEYIIV.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.9",
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",
@@ -0,0 +1,81 @@
1
+ ---
2
+ name: conveyor-brainstorm-review
3
+ description: Turn a Conveyor brainstorm table into confirmed cards and packs — read the table's ranked ideas, cross-reference each top idea against the board and the decision log, draft proposals at the plan-quality bar, and create only what a human confirms item by item, then link each idea to the card it became. Use when the user says "/conveyor-brainstorm-review <table>", "turn that brainstorm into cards", "what came out of the brainstorm", or asks for the follow-ups from a table. Never creates anything unasked.
4
+ ---
5
+
6
+ # Conveyor Brainstorm Review
7
+
8
+ A table's rank says what the team liked. It does not say what the team should build next. This skill does the reading, the cross-referencing and the drafting, and then **stops and asks**.
9
+
10
+ ## The one rule
11
+
12
+ **Never create, edit or link anything before a human confirms that specific item.** Not "shall I proceed?" and then everything: item by item, so "create 1 and 3, skip 2" is a normal answer.
13
+
14
+ A brainstorm is built to produce more ideas than anyone will build. A high rank can mean "this sounded fun at 4 pm", and a contested idea is one the table split on. An agent that turns the top five into cards manufactures work the team never chose. The rank is a **starting point, not a mandate**.
15
+
16
+ ## 1 — Read
17
+
18
+ 1. `mcp__conveyor__get_connection_context`: where you are. Same call in a pod and a local MCP session.
19
+ 2. `mcp__conveyor__list_brainstorms`: find the table. The newest comes first, and `status: "closed"` lists the finished ones.
20
+ 3. `mcp__conveyor__get_brainstorm`: the face-up ideas in table-rank order, with authors, pitches, the dealer's notes, tags, the ideas nested under each one, and the card each idea already became.
21
+
22
+ What the brief cannot tell you:
23
+
24
+ - **Face-down cards are never returned**, your own user's included. Ideas still in a hand were never pitched; do not ask for them.
25
+ - **A sealed rank has no positions.** While `ranking.sealed` is true, ideas come oldest first with `rank: null`. Say so and offer to come back after the dealer reveals the rank, rather than guessing an order.
26
+ - **A parked idea is out of the rank on purpose.** The dealer set it aside; propose it only if the notes say why it matters.
27
+
28
+ ## 2 — Cross-reference every top idea
29
+
30
+ Skipping this is how a brainstorm review produces cards that duplicate work already in flight.
31
+
32
+ - `mcp__conveyor__search_tasks`: two or three keyword variants per idea, across `task` and `suggestion`. One search misses the card that used the other word for it.
33
+ - `mcp__conveyor__list_decisions`: an idea may reopen a question the team already settled. A settled decision is the answer; cite it instead of re-proposing the losing option.
34
+ - `mcp__conveyor__list_tags`: the project's vocabulary. Use its words in your proposals.
35
+ - An idea whose `promotedCard` is set already became a card. Report it; do not propose it again.
36
+
37
+ Then say what you found, including the negatives: "this one already exists as `dark-mode-toggle`", "nothing on the board covers this", "decision `chat-retention` already settled this the other way".
38
+
39
+ ## 3 — Draft at the plan-quality bar
40
+
41
+ Each proposal must be something a context-free reader could execute: what changes, where (file paths where you know them), and how it is verified. The `/conveyor-plan` skill's `references/plan-format.md` is the bar. A pitch is not a plan; the plan is your work.
42
+
43
+ Classify each idea honestly:
44
+
45
+ - **A card**: one coherent piece of work.
46
+ - **A pack**: a parent plus children, when the work has real internal ordering. Do not inflate a card into a pack for ceremony.
47
+ - **An edit to an existing card**: usually better than a new card when the idea is already in flight. Say which card and what changes.
48
+ - **Nothing**: most ideas at a brainstorm end here, and that is the point of ranking. Say so rather than finding work.
49
+
50
+ ## 4 — Present and wait
51
+
52
+ Number the proposals in rank order. For each, give:
53
+
54
+ - the type, the title, and one sentence of what it is;
55
+ - the idea's **rank position and points**, and whether it is **contested**;
56
+ - who pitched it, and what the notes or nested ideas add.
57
+
58
+ A contested idea gets one line on the split: the table disagreed, and a human should know before saying yes.
59
+
60
+ Flag separately:
61
+
62
+ - **Decisions that need a human**, which a card cannot settle (`mcp__conveyor__create_decision` is the home for those, after confirmation).
63
+ - **Ideas you deliberately did not propose**, and why. That is often the most useful part.
64
+
65
+ Then wait. If the reply is partial ("1 and 3"), create exactly those.
66
+
67
+ ## 5 — Create, then link
68
+
69
+ Only the confirmed items, through the normal card tools: `create_task`, `create_subtask`, `add_dependency`, `update_task`. There is no brainstorm-specific write path for cards, on purpose: a card born from a brainstorm is reviewed like any other card.
70
+
71
+ After each card exists, call `mcp__conveyor__link_brainstorm_idea` with the idea's id and the new card's slug. The table then shows the idea as promoted, and the card's Details link back to the idea and its table. Linking needs Moderate on the project; if it is refused, say so and give the card's slug so a moderator can link it.
72
+
73
+ Report back with what was created, what was linked, and what was skipped.
74
+
75
+ ## Environment notes
76
+
77
+ - All Conveyor tools are **fully qualified** (`mcp__conveyor__get_brainstorm`); bare names fail.
78
+ - The brainstorm tools are **deferred**. Reach them via ToolSearch rather than expecting them preloaded.
79
+ - In a pod they appear only for a project that HAS a brainstorm table. If they are absent, the project has none; say so instead of hunting.
80
+ - `mcp__conveyor__add_brainstorm_idea` exists for adding an idea to a table, not for this review: it puts a face-down card in your user's hand. Do not use it to "record" proposals.
81
+ - A pod and a local MCP session run this identically. The only difference is where you report: in a pod, card chat.
@@ -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.
@@ -109,6 +113,9 @@ Scale to the idea's size; a one-file tweak needs minutes, not a survey.
109
113
  `mcp__conveyor__get_task` on the closest hits. You're looking for duplicates
110
114
  (stop and surface), related shipped work (reuse its patterns), and
111
115
  cancelled attempts (learn why before re-proposing).
116
+ When the project runs brainstorm tables, `mcp__conveyor__list_brainstorms`
117
+ then `mcp__conveyor__get_brainstorm` show whether the idea was pitched
118
+ before and where the team ranked it.
112
119
  - **Prod signals** (only when the feature touches live behavior):
113
120
  `mcp__conveyor__query_gcp_logs` / `mcp__conveyor__query_grafana_logs` for
114
121
  error rates, actual usage, current behavior. **Environment:** these are
@@ -197,15 +204,13 @@ touching Conveyor, unless they asked you to just ship it.
197
204
  > does not exist in a pod. In a pod, the card exists and you are on it: save
198
205
  > the plan with `mcp__conveyor__update_task` (`plan`, and `description` if it
199
206
  > 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
207
+ > `milestone: "plan_ready"`, and follow the runtime-specific finish line
208
+ > above. End the turn without asking about starting work. The Builder is a
202
209
  > separate session the system spawns, and every later turn here is a plan
203
210
  > iteration. A pod does not promote its own card to
204
211
  > Open. A parked plan is never `blocked`: that milestone means you cannot
205
212
  > 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
213
+ > with AskUserQuestion. Everything in Phases 1-3 is
209
214
  > identical in both environments. To break a large pod card into a pack, use
210
215
  > `mcp__conveyor__create_subtask` rather than `create_task`, and set child→child
211
216
  > ordering through its `dependsOn` field — `mcp__conveyor__add_dependency` is
@@ -54,6 +54,14 @@ and let Conveyor's own automation do the linking.
54
54
  stop. Most forks are not decisions — an assumption you can simply state
55
55
  belongs in the plan as a GIVEN / WHEN / THEN line. The full bar is in
56
56
  [../conveyor-plan/references/product-decisions.md](../conveyor-plan/references/product-decisions.md).
57
+ - **Brainstorms**: a brainstorm table is where a team writes ideas face-down,
58
+ pitches them, sorts them into tag piles and stack-ranks them.
59
+ `mcp__conveyor__list_brainstorms` and `mcp__conveyor__get_brainstorm` read a
60
+ table as a ranked brief; face-down cards are never returned.
61
+ `mcp__conveyor__add_brainstorm_idea` puts an idea in your user's hand, and
62
+ `mcp__conveyor__link_brainstorm_idea` records the card an idea became. No
63
+ brainstorm tool creates a card: the `/conveyor-brainstorm-review` skill
64
+ turns a finished table into cards, one confirmed item at a time.
57
65
  - **Mechanics**: `create_task` takes the title, description, `plan`
58
66
  (markdown), and optional status/tags; cards start in `Planning`. Every
59
67
  status change you make goes through `mcp__conveyor__update_task`