@rallycry/conveyor-agent 11.1.8 → 11.1.10
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-22BKWHPI.js → chunk-EJXVXGLK.js} +196 -11
- package/dist/{chunk-X4T2FN7E.js → chunk-T6FEYIIV.js} +5506 -4834
- package/dist/{chunk-R46A26AR.js → chunk-XGCTWHO6.js} +1 -1
- package/dist/cli.js +4 -4
- package/dist/index.js +2 -2
- package/dist/{serve-boot-ZNDOATUL.js → serve-boot-PFS6KWJL.js} +2 -2
- package/package.json +1 -1
- package/skills/conveyor-brainstorm-review/SKILL.md +81 -0
- package/skills/conveyor-plan/SKILL.md +3 -0
- package/skills/conveyor-workflows/SKILL.md +8 -0
|
@@ -35,6 +35,11 @@ import {
|
|
|
35
35
|
import {
|
|
36
36
|
AGENT_STATUS_REASON_USER_QUESTION,
|
|
37
37
|
AgentConnection,
|
|
38
|
+
BRAINSTORM_HAND_MAX,
|
|
39
|
+
BRAINSTORM_IDEA_BODY_MAX,
|
|
40
|
+
BRAINSTORM_IDEA_TITLE_MAX,
|
|
41
|
+
BRAINSTORM_TOOL_LIST_DEFAULT,
|
|
42
|
+
BRAINSTORM_TOOL_LIST_MAX,
|
|
38
43
|
CARD_DESCRIPTION_FIELD_HINT,
|
|
39
44
|
CONTEXT_LINK_LOCATOR_MAX,
|
|
40
45
|
CRITICAL_AUTOMATED_SOURCES,
|
|
@@ -100,7 +105,7 @@ import {
|
|
|
100
105
|
toMemberMentionRows,
|
|
101
106
|
updateRemoteToken,
|
|
102
107
|
verifyGitCredential
|
|
103
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-T6FEYIIV.js";
|
|
104
109
|
import {
|
|
105
110
|
reportBootMilestone
|
|
106
111
|
} from "./chunk-74BAVQKD.js";
|
|
@@ -7118,7 +7123,7 @@ function buildTaskAgentPreamble(context, workspaceDir, runtimeTui, agentMode) {
|
|
|
7118
7123
|
Environment \u2014 already built${managedStack ? " and running" : ""}. These are the facts you would otherwise spend calls discovering:`,
|
|
7119
7124
|
`- The repo is cloned at your working directory with \`${context.githubBranch}\` checked out, dependencies installed, database migrated, git configured${managedStack ? ", and the dev stack up" : ""}. Commit and push directly to this branch.`,
|
|
7120
7125
|
...stackLines,
|
|
7121
|
-
`- Browser automation is the Playwright CLI (\`playwright
|
|
7126
|
+
`- Browser automation is the Playwright CLI (\`playwright\`), NOT an MCP server \u2014 there are no \`mcp__playwright__*\` tools here. Only the headless shell is baked, so a launch must name it AND disable the sandbox: \`chromium.launch({ channel: "chromium-headless-shell", args: ["--no-sandbox"] })\`. A bare \`chromium.launch()\` FAILS: since playwright 1.49 that resolves to the full browser, which is deliberately not installed (pods have no display and cannot run Chromium's sandbox). Screenshots land wherever you write them \u2014 move or delete them before committing.`,
|
|
7122
7127
|
`- The clone is \`--single-branch\`, so a bare \`git fetch origin <branch>\` does NOT create \`origin/<branch>\`. To reference any other branch, use the explicit refspec: \`git fetch origin <branch>:refs/remotes/origin/<branch>\`.`,
|
|
7123
7128
|
`- The shell cwd resets between Bash calls, and so does every shell variable. A var you export in one call is EMPTY in the next, which silently redirects output to \`/\` and loses it. Write literal absolute paths (\`git -C\`, \`bun run --cwd\`), and \`mkdir -p\` a directory in the SAME call as the redirect that writes to it.`,
|
|
7124
7129
|
`- The \`gh\` CLI is available for READ-ONLY PR and CI state (\`gh pr view\`, \`gh pr checks\`, \`gh pr diff\`), one read at a time. ${ciWaitRule(agentMode)} Use the mcp__conveyor__* tools for anything that mutates a PR or card.`,
|
|
@@ -9298,6 +9303,101 @@ var meetingsContracts = [
|
|
|
9298
9303
|
editMeetingChecklistItemContract,
|
|
9299
9304
|
removeMeetingChecklistItemContract
|
|
9300
9305
|
];
|
|
9306
|
+
var TABLE_ID = "Brainstorm table id, as returned by list_brainstorms.";
|
|
9307
|
+
var MCP_TAIL2 = "Pass projectId to target a specific project; otherwise the configured default project is used.";
|
|
9308
|
+
var FACE_DOWN_NOTE = "Face-down cards (ideas still in a hand, submitted or not) are never returned, your own user's included.";
|
|
9309
|
+
var SEALED_NOTE = "While the dealer keeps the rank sealed, ideas come oldest first with rank null; ranking.sealed says which case applies.";
|
|
9310
|
+
var listFields = {
|
|
9311
|
+
status: f.optional(
|
|
9312
|
+
f.enum(["open", "closed"], { desc: "Only open tables, or only closed ones. Omit for both." })
|
|
9313
|
+
),
|
|
9314
|
+
limit: f.optional(
|
|
9315
|
+
f.number({
|
|
9316
|
+
desc: `How many to return (default ${String(BRAINSTORM_TOOL_LIST_DEFAULT)}, maximum ${String(BRAINSTORM_TOOL_LIST_MAX)}).`,
|
|
9317
|
+
int: true,
|
|
9318
|
+
min: 1,
|
|
9319
|
+
max: BRAINSTORM_TOOL_LIST_MAX
|
|
9320
|
+
})
|
|
9321
|
+
)
|
|
9322
|
+
};
|
|
9323
|
+
var listBrainstormsContract = defineToolContract({
|
|
9324
|
+
name: "list_brainstorms",
|
|
9325
|
+
agent: {
|
|
9326
|
+
description: `List this project's brainstorm tables, newest first. Each row has the table's id, title, prompt, status (open or closed), phase (write, pitch, group, rank or wrap), idea and ballot counts, the people seated, and its web link. Start here when you are asked about "the brainstorm", "what did we come up with" or "what did the team rank highest", then read one table with get_brainstorm.`,
|
|
9327
|
+
fields: listFields
|
|
9328
|
+
},
|
|
9329
|
+
mcp: {
|
|
9330
|
+
description: `List a project's brainstorm tables, newest first, with status, phase, idea and ballot counts, the people seated, and the web link. Read one table with get_brainstorm. ${MCP_TAIL2}`,
|
|
9331
|
+
fields: { projectId: mcpProjectId, ...listFields }
|
|
9332
|
+
}
|
|
9333
|
+
});
|
|
9334
|
+
var getBrainstormContract = defineToolContract({
|
|
9335
|
+
name: "get_brainstorm",
|
|
9336
|
+
agent: {
|
|
9337
|
+
description: `Read one brainstorm table as a ranked brief: its face-up ideas in table-rank order, each with its author, pitch, notes, tags, the ideas nested under it, whether it was discussed or parked, its rank (position, points, ballots, contested) and the card it was promoted to. ${FACE_DOWN_NOTE} ${SEALED_NOTE} Use it to check whether an idea was pitched before and where it ranked.`,
|
|
9338
|
+
fields: { brainstorm: f.string({ min: 1, desc: TABLE_ID }) }
|
|
9339
|
+
},
|
|
9340
|
+
mcp: {
|
|
9341
|
+
description: `Read one brainstorm table as a ranked brief: its face-up ideas in table-rank order, with authors, pitches, notes, tags, nested ideas, rank and promoted cards. ${FACE_DOWN_NOTE} ${SEALED_NOTE} ${MCP_TAIL2}`,
|
|
9342
|
+
fields: { projectId: mcpProjectId, brainstorm: f.string({ min: 1, desc: TABLE_ID }) }
|
|
9343
|
+
}
|
|
9344
|
+
});
|
|
9345
|
+
var ideaFields = {
|
|
9346
|
+
brainstorm: f.string({ min: 1, desc: TABLE_ID }),
|
|
9347
|
+
title: f.string({
|
|
9348
|
+
min: 1,
|
|
9349
|
+
max: BRAINSTORM_IDEA_TITLE_MAX,
|
|
9350
|
+
desc: "The idea in a few words, as it shows on the card."
|
|
9351
|
+
}),
|
|
9352
|
+
pitch: f.optional(
|
|
9353
|
+
f.string({
|
|
9354
|
+
max: BRAINSTORM_IDEA_BODY_MAX,
|
|
9355
|
+
desc: "A few sentences on the idea, for its author to pitch from."
|
|
9356
|
+
})
|
|
9357
|
+
),
|
|
9358
|
+
submit: f.optional(
|
|
9359
|
+
f.boolean({
|
|
9360
|
+
desc: "True puts the card forward for the dealer to pull at once. Omit to leave it in the hand for the user to submit."
|
|
9361
|
+
})
|
|
9362
|
+
)
|
|
9363
|
+
};
|
|
9364
|
+
var ADD_RULES = `The card stays face-down, seen only by its author, until the dealer pulls it to the table. The table must be open. A hand holds ${String(BRAINSTORM_HAND_MAX)} cards, submitted ones included; a full hand is refused. You cannot add an idea for anyone else.`;
|
|
9365
|
+
var addBrainstormIdeaContract = defineToolContract({
|
|
9366
|
+
name: "add_brainstorm_idea",
|
|
9367
|
+
agent: {
|
|
9368
|
+
description: `Add an idea card to the hand of the user this session acts for, at a brainstorm table. ${ADD_RULES}`,
|
|
9369
|
+
fields: ideaFields
|
|
9370
|
+
},
|
|
9371
|
+
mcp: {
|
|
9372
|
+
description: `Add an idea card to the hand of the user the token acts for, at a brainstorm table. ${ADD_RULES} ${MCP_TAIL2}`,
|
|
9373
|
+
fields: { projectId: mcpProjectId, ...ideaFields }
|
|
9374
|
+
}
|
|
9375
|
+
});
|
|
9376
|
+
var linkFields = {
|
|
9377
|
+
idea: f.string({ min: 1, desc: "Idea id, as returned by get_brainstorm." }),
|
|
9378
|
+
card: f.string({
|
|
9379
|
+
min: 1,
|
|
9380
|
+
desc: "The card the idea became: its slug or id, in the same project."
|
|
9381
|
+
})
|
|
9382
|
+
};
|
|
9383
|
+
var LINK_RULES = "Only a face-up idea can be linked. Linking again replaces the earlier card. Needs Moderate on the project.";
|
|
9384
|
+
var linkBrainstormIdeaContract = defineToolContract({
|
|
9385
|
+
name: "link_brainstorm_idea",
|
|
9386
|
+
agent: {
|
|
9387
|
+
description: `Record the card a brainstorm idea became. After you create a card for an idea with create_task, call this so the table shows the idea as promoted and the card links back to it. ${LINK_RULES}`,
|
|
9388
|
+
fields: linkFields
|
|
9389
|
+
},
|
|
9390
|
+
mcp: {
|
|
9391
|
+
description: `Record the card a brainstorm idea became, after the card was created with create_task, so the table shows the idea as promoted and the card links back to it. ${LINK_RULES} ${MCP_TAIL2}`,
|
|
9392
|
+
fields: { projectId: mcpProjectId, ...linkFields }
|
|
9393
|
+
}
|
|
9394
|
+
});
|
|
9395
|
+
var brainstormContracts = [
|
|
9396
|
+
listBrainstormsContract,
|
|
9397
|
+
getBrainstormContract,
|
|
9398
|
+
addBrainstormIdeaContract,
|
|
9399
|
+
linkBrainstormIdeaContract
|
|
9400
|
+
];
|
|
9301
9401
|
var SINCE_MINUTES = f.optional(
|
|
9302
9402
|
f.number({
|
|
9303
9403
|
desc: "Relative time window ending now, in minutes (default 60). Ignored if startTime is set.",
|
|
@@ -9728,6 +9828,7 @@ var TOOL_CONTRACTS = Object.fromEntries(
|
|
|
9728
9828
|
...membersContracts,
|
|
9729
9829
|
...driveContracts,
|
|
9730
9830
|
...meetingsContracts,
|
|
9831
|
+
...brainstormContracts,
|
|
9731
9832
|
...logsContracts,
|
|
9732
9833
|
...ciWaitContracts,
|
|
9733
9834
|
...evaluateContracts,
|
|
@@ -12244,18 +12345,100 @@ ${res.map(describeItem).join("\n")}`);
|
|
|
12244
12345
|
];
|
|
12245
12346
|
}
|
|
12246
12347
|
|
|
12247
|
-
// src/tools/
|
|
12348
|
+
// src/tools/brainstorm-tools.ts
|
|
12248
12349
|
function errText5(prefix, error) {
|
|
12249
12350
|
return textResult(`${prefix}: ${error instanceof Error ? error.message : "Unknown error"}`);
|
|
12250
12351
|
}
|
|
12352
|
+
function buildBrainstormTools(connection, projectId) {
|
|
12353
|
+
return [...readTools2(connection, projectId), ...writeTools2(connection, projectId)];
|
|
12354
|
+
}
|
|
12355
|
+
function readTools2(connection, projectId) {
|
|
12356
|
+
return [
|
|
12357
|
+
defineContractTool(
|
|
12358
|
+
listBrainstormsContract,
|
|
12359
|
+
async (input) => {
|
|
12360
|
+
try {
|
|
12361
|
+
const res = await connection.call("listProjectBrainstorms", {
|
|
12362
|
+
projectId,
|
|
12363
|
+
status: input.status,
|
|
12364
|
+
limit: input.limit
|
|
12365
|
+
});
|
|
12366
|
+
if (res.brainstorms.length === 0) {
|
|
12367
|
+
return textResult(
|
|
12368
|
+
input.status ? `This project has no ${input.status} brainstorm tables. Try list_brainstorms with no status.` : "This project has no brainstorm tables yet. A member starts one from Cards \u2192 Brainstorm."
|
|
12369
|
+
);
|
|
12370
|
+
}
|
|
12371
|
+
return textResult(JSON.stringify(res.brainstorms, null, 2));
|
|
12372
|
+
} catch (error) {
|
|
12373
|
+
return errText5("Failed to list brainstorm tables", error);
|
|
12374
|
+
}
|
|
12375
|
+
},
|
|
12376
|
+
{ annotations: { readOnlyHint: true } }
|
|
12377
|
+
),
|
|
12378
|
+
defineContractTool(
|
|
12379
|
+
getBrainstormContract,
|
|
12380
|
+
async (input) => {
|
|
12381
|
+
try {
|
|
12382
|
+
const res = await connection.call("getProjectBrainstorm", {
|
|
12383
|
+
projectId,
|
|
12384
|
+
brainstorm: input.brainstorm
|
|
12385
|
+
});
|
|
12386
|
+
return textResult(JSON.stringify(res, null, 2));
|
|
12387
|
+
} catch (error) {
|
|
12388
|
+
return errText5("Failed to read the brainstorm table", error);
|
|
12389
|
+
}
|
|
12390
|
+
},
|
|
12391
|
+
{ annotations: { readOnlyHint: true } }
|
|
12392
|
+
)
|
|
12393
|
+
];
|
|
12394
|
+
}
|
|
12395
|
+
function writeTools2(connection, projectId) {
|
|
12396
|
+
return [
|
|
12397
|
+
defineContractTool(addBrainstormIdeaContract, async (input) => {
|
|
12398
|
+
try {
|
|
12399
|
+
const res = await connection.call("addProjectBrainstormIdea", {
|
|
12400
|
+
projectId,
|
|
12401
|
+
brainstorm: input.brainstorm,
|
|
12402
|
+
title: input.title,
|
|
12403
|
+
pitch: input.pitch,
|
|
12404
|
+
submit: input.submit
|
|
12405
|
+
});
|
|
12406
|
+
return textResult(
|
|
12407
|
+
res.submitted ? `Added "${res.title}" (${res.ideaId}) face-down and put it forward. The dealer pulls it to the table when its turn comes.` : `Added "${res.title}" (${res.ideaId}) face-down to the hand. It waits there until the user submits it.`
|
|
12408
|
+
);
|
|
12409
|
+
} catch (error) {
|
|
12410
|
+
return errText5("Failed to add the idea", error);
|
|
12411
|
+
}
|
|
12412
|
+
}),
|
|
12413
|
+
defineContractTool(linkBrainstormIdeaContract, async (input) => {
|
|
12414
|
+
try {
|
|
12415
|
+
const res = await connection.call("linkProjectBrainstormIdea", {
|
|
12416
|
+
projectId,
|
|
12417
|
+
idea: input.idea,
|
|
12418
|
+
card: input.card
|
|
12419
|
+
});
|
|
12420
|
+
return textResult(
|
|
12421
|
+
`Linked idea ${res.ideaId} to card ${res.card.slug} (${res.card.url}). The table now shows the idea as promoted.`
|
|
12422
|
+
);
|
|
12423
|
+
} catch (error) {
|
|
12424
|
+
return errText5("Failed to link the idea", error);
|
|
12425
|
+
}
|
|
12426
|
+
})
|
|
12427
|
+
];
|
|
12428
|
+
}
|
|
12429
|
+
|
|
12430
|
+
// src/tools/decision-tools.ts
|
|
12431
|
+
function errText6(prefix, error) {
|
|
12432
|
+
return textResult(`${prefix}: ${error instanceof Error ? error.message : "Unknown error"}`);
|
|
12433
|
+
}
|
|
12251
12434
|
function buildDecisionTools(connection, projectId) {
|
|
12252
12435
|
return [
|
|
12253
|
-
...
|
|
12436
|
+
...readTools3(connection, projectId),
|
|
12254
12437
|
...raiseAndVoteTools(connection, projectId),
|
|
12255
12438
|
...settleTools(connection, projectId)
|
|
12256
12439
|
];
|
|
12257
12440
|
}
|
|
12258
|
-
function
|
|
12441
|
+
function readTools3(connection, projectId) {
|
|
12259
12442
|
return [
|
|
12260
12443
|
defineContractTool(
|
|
12261
12444
|
listDecisionsContract,
|
|
@@ -12276,7 +12459,7 @@ function readTools2(connection, projectId) {
|
|
|
12276
12459
|
}
|
|
12277
12460
|
return textResult(JSON.stringify(res.decisions, null, 2));
|
|
12278
12461
|
} catch (error) {
|
|
12279
|
-
return
|
|
12462
|
+
return errText6("Failed to list decisions", error);
|
|
12280
12463
|
}
|
|
12281
12464
|
},
|
|
12282
12465
|
{ annotations: { readOnlyHint: true } }
|
|
@@ -12291,7 +12474,7 @@ function readTools2(connection, projectId) {
|
|
|
12291
12474
|
});
|
|
12292
12475
|
return textResult(JSON.stringify(res, null, 2));
|
|
12293
12476
|
} catch (error) {
|
|
12294
|
-
return
|
|
12477
|
+
return errText6("Failed to read the decision", error);
|
|
12295
12478
|
}
|
|
12296
12479
|
},
|
|
12297
12480
|
{ annotations: { readOnlyHint: true } }
|
|
@@ -12329,7 +12512,7 @@ Blocking ${impactedLinked.length} card(s).${refusedLine}
|
|
|
12329
12512
|
${JSON.stringify(detail, null, 2)}`
|
|
12330
12513
|
);
|
|
12331
12514
|
} catch (error) {
|
|
12332
|
-
return
|
|
12515
|
+
return errText6("Failed to raise the decision", error);
|
|
12333
12516
|
}
|
|
12334
12517
|
}),
|
|
12335
12518
|
defineContractTool(voteDecisionContract, async (input) => {
|
|
@@ -12343,7 +12526,7 @@ ${JSON.stringify(detail, null, 2)}`
|
|
|
12343
12526
|
const tally = res.options.map((o) => `${o.label}: ${o.votes}`).join(", ");
|
|
12344
12527
|
return textResult(`Voted on ${res.slug}. Tally \u2014 ${tally}.`);
|
|
12345
12528
|
} catch (error) {
|
|
12346
|
-
return
|
|
12529
|
+
return errText6("Failed to vote", error);
|
|
12347
12530
|
}
|
|
12348
12531
|
})
|
|
12349
12532
|
];
|
|
@@ -12363,7 +12546,7 @@ function settleTools(connection, projectId) {
|
|
|
12363
12546
|
`Settled ${res.slug} as "${res.chosenOption}". ${res.impactedCount} card(s) were written back to and are no longer blocked.`
|
|
12364
12547
|
);
|
|
12365
12548
|
} catch (error) {
|
|
12366
|
-
return
|
|
12549
|
+
return errText6("Failed to settle the decision", error);
|
|
12367
12550
|
}
|
|
12368
12551
|
}),
|
|
12369
12552
|
defineContractTool(updateDecisionContract, async (input) => {
|
|
@@ -12387,7 +12570,7 @@ function settleTools(connection, projectId) {
|
|
|
12387
12570
|
`Updated ${res.slug} \u2014 ${res.status}, ${res.impactedCount} impacted card(s), deadline ${res.deadlineAt}.`
|
|
12388
12571
|
);
|
|
12389
12572
|
} catch (error) {
|
|
12390
|
-
return
|
|
12573
|
+
return errText6("Failed to update the decision", error);
|
|
12391
12574
|
}
|
|
12392
12575
|
})
|
|
12393
12576
|
];
|
|
@@ -12480,6 +12663,7 @@ function connectedToolsFor(connection, context, config) {
|
|
|
12480
12663
|
buildListProjectMembersTool(connection, projectId),
|
|
12481
12664
|
...context.chatChannelsConfigured ? buildChannelTools(connection, projectId) : [],
|
|
12482
12665
|
...context.meetingsAvailable ? buildMeetingTools(connection, projectId) : [],
|
|
12666
|
+
...context.brainstormsAvailable ? buildBrainstormTools(connection, projectId) : [],
|
|
12483
12667
|
// Always available: the decision tables exist on every project, and a fork
|
|
12484
12668
|
// an agent cannot file is a fork it assumes its way past instead.
|
|
12485
12669
|
...buildDecisionTools(connection, projectId),
|
|
@@ -16904,6 +17088,7 @@ var SessionRunner = class _SessionRunner {
|
|
|
16904
17088
|
googleDriveFolderName: ctx.googleDriveFolderName ?? null,
|
|
16905
17089
|
chatChannelsConfigured: ctx.chatChannelsConfigured ?? false,
|
|
16906
17090
|
meetingsAvailable: ctx.meetingsAvailable ?? false,
|
|
17091
|
+
brainstormsAvailable: ctx.brainstormsAvailable ?? false,
|
|
16907
17092
|
googleAnalyticsConfigured: ctx.googleAnalyticsConfigured ?? false,
|
|
16908
17093
|
gcpLogsConfigured: ctx.gcpLogsConfigured ?? false,
|
|
16909
17094
|
grafanaLogsConfigured: ctx.grafanaLogsConfigured ?? false,
|