@rallycry/conveyor-agent 11.1.11 → 11.1.13
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-KOBCCVS3.js → chunk-2JW3ILVM.js} +6796 -6557
- package/dist/{chunk-YUTM2CST.js → chunk-6FEFEVVF.js} +147 -30
- package/dist/{chunk-K63H5C7O.js → chunk-CWGU7HVC.js} +1 -1
- package/dist/cli.js +4 -4
- package/dist/index.js +2 -2
- package/dist/{serve-boot-DU3UJJ6R.js → serve-boot-MHESEHYF.js} +2 -2
- package/package.json +1 -1
- package/skills/conveyor-local-loop/SKILL.md +6 -3
- package/skills/conveyor-manager/SKILL.md +261 -0
- package/skills/conveyor-manager/references/briefs.md +155 -0
- package/skills/conveyor-manager/references/charter.md +150 -0
- package/skills/conveyor-manager/references/landing.md +111 -0
- package/skills/conveyor-manager/references/lanes.md +211 -0
- package/skills/conveyor-manager/references/owner.md +114 -0
- package/skills/conveyor-manager/references/recovery.md +122 -0
- package/skills/conveyor-plan/SKILL.md +8 -0
- package/skills/conveyor-plan/references/plan-format.md +4 -0
- package/skills/conveyor-prune/SKILL.md +4 -1
- package/skills/conveyor-start/SKILL.md +9 -2
- package/skills/conveyor-workflows/SKILL.md +5 -1
|
@@ -41,6 +41,7 @@ import {
|
|
|
41
41
|
BRAINSTORM_TOOL_LIST_DEFAULT,
|
|
42
42
|
BRAINSTORM_TOOL_LIST_MAX,
|
|
43
43
|
CARD_DESCRIPTION_FIELD_HINT,
|
|
44
|
+
CARD_DESCRIPTION_MAX,
|
|
44
45
|
CONTEXT_LINK_LOCATOR_MAX,
|
|
45
46
|
CRITICAL_AUTOMATED_SOURCES,
|
|
46
47
|
DEFAULT_CI_WAIT_TIMEOUT_MINUTES,
|
|
@@ -79,6 +80,7 @@ import {
|
|
|
79
80
|
forceFreshCooldownNotice,
|
|
80
81
|
forceFreshMintBlocked,
|
|
81
82
|
formatEvaluateQuestionsResult,
|
|
83
|
+
formatRaciSummary,
|
|
82
84
|
getCurrentBranch,
|
|
83
85
|
git,
|
|
84
86
|
hasTaskPlan,
|
|
@@ -105,7 +107,7 @@ import {
|
|
|
105
107
|
toMemberMentionRows,
|
|
106
108
|
updateRemoteToken,
|
|
107
109
|
verifyGitCredential
|
|
108
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-2JW3ILVM.js";
|
|
109
111
|
import {
|
|
110
112
|
reportBootMilestone
|
|
111
113
|
} from "./chunk-74BAVQKD.js";
|
|
@@ -6849,22 +6851,31 @@ function tagContextIntro(runnerMode) {
|
|
|
6849
6851
|
}
|
|
6850
6852
|
return `These docs match this task's tags. They auto-load when you edit matching files, and you can Read any of them the moment you need its detail \u2014 do NOT read them all up front.`;
|
|
6851
6853
|
}
|
|
6854
|
+
var RACI_LEGEND = "RACI on these tags: Responsible and Accountable people own the area. Ask them when scope is unclear; a request from one of them is the owner's call and needs less second-guessing. Consulted people want a say before the area's behavior changes. Informed people need nothing from you.";
|
|
6855
|
+
function formatAssignedTag(tag) {
|
|
6856
|
+
if (tag.entries.length === 0 && !tag.hasOverview && !tag.raci?.length) return [];
|
|
6857
|
+
const desc = tag.description ? ` \u2014 ${tag.description}` : "";
|
|
6858
|
+
const parts = [`
|
|
6859
|
+
### Tag: "${tag.tagName}"${desc}`];
|
|
6860
|
+
if (tag.overviewPath) {
|
|
6861
|
+
parts.push(`- Full glossary overview \u2014 Read \`${tag.overviewPath}\` in the checkout`);
|
|
6862
|
+
} else if (tag.hasOverview) {
|
|
6863
|
+
parts.push(`- Full glossary overview available \u2014 call get_tag("${tag.tagName}")`);
|
|
6864
|
+
}
|
|
6865
|
+
if (tag.raci?.length) {
|
|
6866
|
+
parts.push(`- People (RACI): ${formatRaciSummary(tag.raci, { mentions: true })}`);
|
|
6867
|
+
}
|
|
6868
|
+
for (const entry of tag.entries) {
|
|
6869
|
+
parts.push(formatEntry(entry));
|
|
6870
|
+
}
|
|
6871
|
+
return parts;
|
|
6872
|
+
}
|
|
6852
6873
|
function formatResolvedTags(resolved, subProject, mentioned, runnerMode) {
|
|
6853
6874
|
const parts = [`
|
|
6854
6875
|
## Reference Guides (load on demand)`, tagContextIntro(runnerMode)];
|
|
6876
|
+
if (resolved.some((tag) => tag.raci?.length)) parts.push(RACI_LEGEND);
|
|
6855
6877
|
for (const tag of resolved) {
|
|
6856
|
-
|
|
6857
|
-
const desc = tag.description ? ` \u2014 ${tag.description}` : "";
|
|
6858
|
-
parts.push(`
|
|
6859
|
-
### Tag: "${tag.tagName}"${desc}`);
|
|
6860
|
-
if (tag.overviewPath) {
|
|
6861
|
-
parts.push(`- Full glossary overview \u2014 Read \`${tag.overviewPath}\` in the checkout`);
|
|
6862
|
-
} else if (tag.hasOverview) {
|
|
6863
|
-
parts.push(`- Full glossary overview available \u2014 call get_tag("${tag.tagName}")`);
|
|
6864
|
-
}
|
|
6865
|
-
for (const entry of tag.entries) {
|
|
6866
|
-
parts.push(formatEntry(entry));
|
|
6867
|
-
}
|
|
6878
|
+
parts.push(...formatAssignedTag(tag));
|
|
6868
6879
|
}
|
|
6869
6880
|
parts.push(...formatMentionedTags(mentioned));
|
|
6870
6881
|
if (subProject && subProject.entries.length > 0) {
|
|
@@ -6894,7 +6905,8 @@ async function resolveAssignedTags(assignedTags, coordinator) {
|
|
|
6894
6905
|
description: tag.description,
|
|
6895
6906
|
entries: await resolveEntries(tag.contextPaths, coordinator),
|
|
6896
6907
|
hasOverview: tag.hasOverview,
|
|
6897
|
-
overviewPath: tag.overviewPath ?? null
|
|
6908
|
+
overviewPath: tag.overviewPath ?? null,
|
|
6909
|
+
...tag.raci?.length ? { raci: tag.raci } : {}
|
|
6898
6910
|
}))
|
|
6899
6911
|
);
|
|
6900
6912
|
const counts = resolved.map((tag) => countResolved(tag.entries));
|
|
@@ -6911,7 +6923,9 @@ async function resolveTagContext(projectTags, taskTagIds, _model, _betas, runner
|
|
|
6911
6923
|
const mentionedTags = (projectTags ?? []).filter(
|
|
6912
6924
|
(t) => mentionedIdSet.has(t.id) && !taskTagIdSet.has(t.id)
|
|
6913
6925
|
);
|
|
6914
|
-
const hasTagPaths = assignedTags.some(
|
|
6926
|
+
const hasTagPaths = assignedTags.some(
|
|
6927
|
+
(t) => t.contextPaths?.length || t.hasOverview || t.raci?.length
|
|
6928
|
+
);
|
|
6915
6929
|
const hasSubProjectPaths = (subProject?.contextPaths?.length ?? 0) > 0;
|
|
6916
6930
|
if (!hasTagPaths && !hasSubProjectPaths && mentionedTags.length === 0) {
|
|
6917
6931
|
return { injectedSection: "", stats: { injected: 0, skipped: 0 } };
|
|
@@ -7567,8 +7581,17 @@ function compileShape(z11, fields) {
|
|
|
7567
7581
|
function defineToolContract(contract) {
|
|
7568
7582
|
return contract;
|
|
7569
7583
|
}
|
|
7584
|
+
function defineMcpToolContract(contract) {
|
|
7585
|
+
return contract;
|
|
7586
|
+
}
|
|
7570
7587
|
var mcpProjectId = f.optional(f.string({ desc: "Target Conveyor project ID" }));
|
|
7571
7588
|
var cardDescriptionDesc = (lead) => `${lead} \u2014 ${CARD_DESCRIPTION_FIELD_HINT}`;
|
|
7589
|
+
var mcpCardDescription = (lead) => f.optional(f.string({ desc: cardDescriptionDesc(lead), max: CARD_DESCRIPTION_MAX }));
|
|
7590
|
+
var mcpTextPath = (field, what) => f.optional(
|
|
7591
|
+
f.string({
|
|
7592
|
+
desc: `Absolute path to a local file holding the ${what}, read by the MCP server, instead of \`${field}\`: pass one of the two. At most 256 KB, UTF-8, not empty. The result ends with the sent text's length and sha256.`
|
|
7593
|
+
})
|
|
7594
|
+
);
|
|
7572
7595
|
var storyPointValueDesc = "Story point value (1=Common, 2=Magic, 3=Rare, 5=Unique)";
|
|
7573
7596
|
var priorityValueDesc = "Priority value from manage_priorities list (1 = the project's highest level; seeded defaults are 1=High, 2=Medium, 3=Low)";
|
|
7574
7597
|
var MENTION_HOW = "To mention a teammate, write @[user:<name, email or user id>]; list_project_members gives exact tokens.";
|
|
@@ -7611,7 +7634,12 @@ var getTaskContract = defineToolContract({
|
|
|
7611
7634
|
// project, where a bare slug already resolves, so the `agent` half of
|
|
7612
7635
|
// this contract deliberately says nothing about it.
|
|
7613
7636
|
desc: "The task ID or slug (the value in a card URL, /cards/<slug>), or a path-form reference '<project-slug>/<card-slug>' from the board's Copy path action"
|
|
7614
|
-
})
|
|
7637
|
+
}),
|
|
7638
|
+
view: f.optional(
|
|
7639
|
+
f.enum(["full", "plan", "summary"], {
|
|
7640
|
+
desc: '"full" (default) is the whole card. "plan" leaves out the chat messages; "summary" leaves out the chat messages and the plan.'
|
|
7641
|
+
})
|
|
7642
|
+
)
|
|
7615
7643
|
}
|
|
7616
7644
|
}
|
|
7617
7645
|
});
|
|
@@ -7650,7 +7678,8 @@ var postToChatContract = defineToolContract({
|
|
|
7650
7678
|
f.string({
|
|
7651
7679
|
desc: "Alias of `content` (the in-pod agent surface names this field `message`). Provide exactly one of the two."
|
|
7652
7680
|
})
|
|
7653
|
-
)
|
|
7681
|
+
),
|
|
7682
|
+
contentPath: mcpTextPath("content", "message")
|
|
7654
7683
|
}
|
|
7655
7684
|
}
|
|
7656
7685
|
});
|
|
@@ -7672,25 +7701,34 @@ var readTaskChatContract = defineToolContract({
|
|
|
7672
7701
|
fields: {
|
|
7673
7702
|
projectId: mcpProjectId,
|
|
7674
7703
|
taskId: f.string({ desc: "The task ID" }),
|
|
7675
|
-
limit: f.optional(f.number({ desc: "Max messages to return (default 50)" }))
|
|
7704
|
+
limit: f.optional(f.number({ desc: "Max messages to return (default 50, at most 200)" })),
|
|
7705
|
+
before: f.optional(
|
|
7706
|
+
f.string({
|
|
7707
|
+
desc: "Only messages older than this message id or ISO time: pass the first message's id to page back"
|
|
7708
|
+
})
|
|
7709
|
+
),
|
|
7710
|
+
messageId: f.optional(f.string({ desc: "Read exactly this message, whole" })),
|
|
7711
|
+
full: f.optional(
|
|
7712
|
+
f.boolean({ desc: "Return each message whole instead of cut at 2,000 characters" })
|
|
7713
|
+
)
|
|
7676
7714
|
}
|
|
7677
7715
|
}
|
|
7678
7716
|
});
|
|
7679
7717
|
var listTagsDetail = f.optional(
|
|
7680
7718
|
f.enum(["summary", "full"], {
|
|
7681
|
-
desc: `"summary" (default) returns one compact row per tag with a contextPathCount. "full" also ships each tag's contextPaths inline (each link with its verification status). Full mode can exceed a client's tool-output budget on a large glossary; use get_tag for one term instead.`
|
|
7719
|
+
desc: `"summary" (default) returns one compact row per tag with a contextPathCount. "full" also ships each tag's contextPaths inline (each link with its verification status) and its RACI people (raci, each with a mention token). Full mode can exceed a client's tool-output budget on a large glossary; use get_tag for one term instead.`
|
|
7682
7720
|
})
|
|
7683
7721
|
);
|
|
7684
7722
|
var listTagsContract = defineToolContract({
|
|
7685
7723
|
name: "list_tags",
|
|
7686
7724
|
agent: {
|
|
7687
|
-
description: "List the whole project glossary in one call. The default summary gives every tag's id, name, color, description, parent/child tag ids, whether it carries a full overview (hasOverview), its attachmentCount (files labelled as examples of the term), and its contextPathCount (the rule/doc/file/folder links it wires into agent context \u2014 `0` means none). Pass detail: \"full\" to ship the contextPaths
|
|
7725
|
+
description: "List the whole project glossary in one call. The default summary gives every tag's id, name, color, description, parent/child tag ids, whether it carries a full overview (hasOverview), its attachmentCount (files labelled as examples of the term), and its contextPathCount (the rule/doc/file/folder links it wires into agent context \u2014 `0` means none). Pass detail: \"full\" to ship the contextPaths and each tag's RACI people (raci) inline. Use get_tag for one term's full overview and full link verification. Use the ids with get_tag / update_tag.",
|
|
7688
7726
|
fields: {
|
|
7689
7727
|
detail: listTagsDetail
|
|
7690
7728
|
}
|
|
7691
7729
|
},
|
|
7692
7730
|
mcp: {
|
|
7693
|
-
description:
|
|
7731
|
+
description: "List all project tags in one call. The default summary gives names, IDs, colors, descriptions, hierarchy (parent/child ids), a hasOverview flag, an attachmentCount (files labelled as examples of the term \u2014 read the tiles with list_tag_attachments), and a contextPathCount (the rule/doc/file/folder links each tag wires into agent context \u2014 `0` means none). Pass detail: \"full\" to ship the contextPaths and each tag's RACI people (raci) inline. Call get_tag for one term's full overview and full link verification. Pass projectId to target a specific project; otherwise the configured default project is used.",
|
|
7694
7732
|
fields: {
|
|
7695
7733
|
projectId: mcpProjectId,
|
|
7696
7734
|
detail: listTagsDetail
|
|
@@ -7834,8 +7872,9 @@ var updateTaskContract = defineToolContract({
|
|
|
7834
7872
|
projectId: mcpProjectId,
|
|
7835
7873
|
taskId: f.string({ desc: "The task ID" }),
|
|
7836
7874
|
title: f.optional(f.string({ desc: "New title" })),
|
|
7837
|
-
description:
|
|
7875
|
+
description: mcpCardDescription("New description"),
|
|
7838
7876
|
plan: f.optional(f.string({ desc: "New plan (markdown)" })),
|
|
7877
|
+
planPath: mcpTextPath("plan", "new plan (markdown)"),
|
|
7839
7878
|
status: f.optional(f.enum(STATUS_ENUM, { desc: "New status" })),
|
|
7840
7879
|
risk: f.optional(
|
|
7841
7880
|
f.nullable(
|
|
@@ -7894,13 +7933,13 @@ var tagRef = f.string({
|
|
|
7894
7933
|
var getTagContract = defineToolContract({
|
|
7895
7934
|
name: "get_tag",
|
|
7896
7935
|
agent: {
|
|
7897
|
-
description: "Read one tag's full glossary entry: description, the full markdown overview (the term's spec \u2014 philosophy, mechanics, invariants), linked files/rules (each with its verified-link status \u2014 ok/stale/unchecked \u2014 from the periodic repo check), parent/child tags, active-card count, attachment count (files labelled as examples of the term),
|
|
7936
|
+
description: "Read one tag's full glossary entry: description, the full markdown overview (the term's spec \u2014 philosophy, mechanics, invariants), linked files/rules (each with its verified-link status \u2014 ok/stale/unchecked \u2014 from the periodic repo check), parent/child tags, active-card count, attachment count (files labelled as examples of the term), recent revisions with their reasons, and its RACI people (Responsible, Accountable, Consulted, Informed), each with a ready-to-paste mention token \u2014 Responsible and Accountable people own the area, Consulted people want a say before it changes. Call this whenever a chat message, plan, or tag list points at a term you need the full context for. A response with `overviewPath` set means the overview is sourced from that repo file \u2014 prefer Reading the path from your checkout (branch-correct); the served overview is materialized from the project's dev branch (the PR base; default branch when the repo has no dev branch) (`overviewSource.state`: ok/pending/stale).",
|
|
7898
7937
|
fields: {
|
|
7899
7938
|
tag: tagRef
|
|
7900
7939
|
}
|
|
7901
7940
|
},
|
|
7902
7941
|
mcp: {
|
|
7903
|
-
description: "Read one tag's full glossary entry \u2014 description, markdown overview, context links (each with its verified-link status: ok/stale/unchecked plus last-checked provenance), parent/child tags, active-card count, attachment count (files labelled as examples of the term \u2014 read the tiles with list_tag_attachments),
|
|
7942
|
+
description: "Read one tag's full glossary entry \u2014 description, markdown overview, context links (each with its verified-link status: ok/stale/unchecked plus last-checked provenance), parent/child tags, active-card count, attachment count (files labelled as examples of the term \u2014 read the tiles with list_tag_attachments), recent revisions with provenance, and its RACI people (Responsible, Accountable, Consulted, Informed), each with a ready-to-paste mention token. A response with `overviewPath` set means the overview is sourced from that repo file at the project's dev branch (the PR base; default branch when the repo has no dev branch) (`overviewSource.state`: ok/pending/stale) \u2014 clients with a checkout can read the path directly for the branch-correct copy. Pass projectId to target a specific project; otherwise the configured default project is used.",
|
|
7904
7943
|
fields: {
|
|
7905
7944
|
projectId: mcpProjectId,
|
|
7906
7945
|
tag: tagRef
|
|
@@ -8191,8 +8230,9 @@ var createSubtaskContract = defineToolContract({
|
|
|
8191
8230
|
projectId: mcpProjectId,
|
|
8192
8231
|
parentTaskId: f.string({ desc: "The parent task ID" }),
|
|
8193
8232
|
title: f.string({ desc: "Subtask title" }),
|
|
8194
|
-
description:
|
|
8233
|
+
description: mcpCardDescription("Subtask description"),
|
|
8195
8234
|
plan: f.optional(f.string({ desc: "Subtask implementation plan (markdown)" })),
|
|
8235
|
+
planPath: mcpTextPath("plan", "subtask's plan (markdown)"),
|
|
8196
8236
|
ordinal: f.optional(f.number({ desc: "Ordering position among siblings" })),
|
|
8197
8237
|
storyPointValue: f.optional(f.number({ desc: SP_DESCRIPTION })),
|
|
8198
8238
|
followParentStatus: f.optional(f.boolean({ desc: MCP_FOLLOW_PARENT_STATUS })),
|
|
@@ -8244,8 +8284,9 @@ var updateSubtaskContract = defineToolContract({
|
|
|
8244
8284
|
projectId: mcpProjectId,
|
|
8245
8285
|
subtaskId: f.string({ desc: "The subtask ID" }),
|
|
8246
8286
|
title: f.optional(f.string({ desc: "New title" })),
|
|
8247
|
-
description:
|
|
8287
|
+
description: mcpCardDescription("New description"),
|
|
8248
8288
|
plan: f.optional(f.string({ desc: "New plan (markdown)" })),
|
|
8289
|
+
planPath: mcpTextPath("plan", "new plan (markdown)"),
|
|
8249
8290
|
status: f.optional(f.enum(MCP_STATUS_ENUM, { desc: "New status" })),
|
|
8250
8291
|
ordinal: f.optional(f.number({ desc: "New ordering position among siblings" })),
|
|
8251
8292
|
storyPointValue: f.optional(f.number({ desc: SP_DESCRIPTION })),
|
|
@@ -8287,10 +8328,13 @@ var listSubtasksContract = defineToolContract({
|
|
|
8287
8328
|
}
|
|
8288
8329
|
},
|
|
8289
8330
|
mcp: {
|
|
8290
|
-
description: "List all subtasks of a parent task with their status and ordering. Pass projectId to target a specific project; otherwise the configured default project is used.",
|
|
8331
|
+
description: "List all subtasks of a parent task with their status and ordering. Rows are summaries: each says whether the subtask has a plan (hasPlan), its story points and branch, and its dependencies; get_task reads one subtask's plan. Pass includePlans to get every plan inline (large on a big pack). Pass projectId to target a specific project; otherwise the configured default project is used.",
|
|
8291
8332
|
fields: {
|
|
8292
8333
|
projectId: mcpProjectId,
|
|
8293
|
-
taskId: f.string({ desc: "The parent task ID" })
|
|
8334
|
+
taskId: f.string({ desc: "The parent task ID" }),
|
|
8335
|
+
includePlans: f.optional(
|
|
8336
|
+
f.boolean({ desc: "Include each subtask's plan text. Default: summaries only." })
|
|
8337
|
+
)
|
|
8294
8338
|
}
|
|
8295
8339
|
}
|
|
8296
8340
|
});
|
|
@@ -9722,14 +9766,14 @@ var listSiteAssetTargetsContract = defineToolContract({
|
|
|
9722
9766
|
var uploadSiteAssetsContract = defineToolContract({
|
|
9723
9767
|
name: "upload_site_assets",
|
|
9724
9768
|
agent: {
|
|
9725
|
-
description: "Upload up to 50 workspace image or
|
|
9769
|
+
description: "Upload up to 50 workspace image, video or PDF files (25 MiB each) to a registered site using Conveyor identity. Call list_site_asset_targets first for the registered siteId. Returns verified immutable keys and public URLs per file.",
|
|
9726
9770
|
fields: {
|
|
9727
9771
|
siteId: f.string({ min: 1, max: 100 }),
|
|
9728
9772
|
paths: f.array(f.string({ min: 1 }), { min: 1, max: 50 })
|
|
9729
9773
|
}
|
|
9730
9774
|
},
|
|
9731
9775
|
mcp: {
|
|
9732
|
-
description: "Upload up to 50 workspace image or
|
|
9776
|
+
description: "Upload up to 50 workspace image, video or PDF files (25 MiB each) to a registered site using Conveyor identity. Call list_site_asset_targets first for the registered siteId. Returns verified immutable keys and public URLs per file.",
|
|
9733
9777
|
fields: {
|
|
9734
9778
|
projectId: mcpProjectId,
|
|
9735
9779
|
siteId: f.string({ min: 1, max: 100 }),
|
|
@@ -9811,6 +9855,76 @@ async function transferSiteAsset(capability, bytes, expected) {
|
|
|
9811
9855
|
status: put.status === 201 ? "uploaded" : "existing"
|
|
9812
9856
|
};
|
|
9813
9857
|
}
|
|
9858
|
+
var TASK_ID = f.string({ desc: "The task ID" });
|
|
9859
|
+
var messageAgentContract = defineMcpToolContract({
|
|
9860
|
+
name: "message_agent",
|
|
9861
|
+
mcp: {
|
|
9862
|
+
description: "Send a message to a card's agent and wake it. The message is stored in the card's chat as post_to_chat stores it, then delivered: to the live agent at once, or to its slept environment, which wakes on your account and reads it. It never boots a card that has no environment (start_task does that), and it wakes nothing while a code review runs on the card or when the card's builder did not push its pull request. Use post_to_chat to leave a note without waking anything. Pass interrupt to reach a busy agent in its running turn instead of after it. Pass projectId to target a specific project; otherwise the configured default project is used.",
|
|
9863
|
+
fields: {
|
|
9864
|
+
projectId: mcpProjectId,
|
|
9865
|
+
taskId: TASK_ID,
|
|
9866
|
+
content: f.string({
|
|
9867
|
+
desc: "The message. Mention people as @[user:<name, email or id>].",
|
|
9868
|
+
min: 1
|
|
9869
|
+
}),
|
|
9870
|
+
interrupt: f.optional(
|
|
9871
|
+
f.boolean({ desc: "Deliver into the agent's running turn rather than after it." })
|
|
9872
|
+
)
|
|
9873
|
+
}
|
|
9874
|
+
}
|
|
9875
|
+
});
|
|
9876
|
+
var answerAgentQuestionContract = defineMcpToolContract({
|
|
9877
|
+
name: "answer_agent_question",
|
|
9878
|
+
mcp: {
|
|
9879
|
+
description: `Answer the question a card's agent is blocked on. The open question is the card's chat message whose metadata.type is "agent_question" (read_task_chat shows it): its metadata carries the requestId and each question with its options. The answers post as your chat message and reach the agent, waking its environment if it slept. A question answered already is refused. For anything that is not an answer, use message_agent.`,
|
|
9880
|
+
fields: {
|
|
9881
|
+
taskId: TASK_ID,
|
|
9882
|
+
requestId: f.string({ desc: "The requestId in the agent_question message's metadata" }),
|
|
9883
|
+
answers: f.array(
|
|
9884
|
+
f.object({
|
|
9885
|
+
question: f.string({ desc: "The question's exact text: its `question` field" }),
|
|
9886
|
+
answer: f.string({ desc: "The chosen option's label, or your own words" })
|
|
9887
|
+
}),
|
|
9888
|
+
{ desc: "One answer per question", min: 1 }
|
|
9889
|
+
)
|
|
9890
|
+
}
|
|
9891
|
+
}
|
|
9892
|
+
});
|
|
9893
|
+
var agentMessagingContracts = [
|
|
9894
|
+
messageAgentContract,
|
|
9895
|
+
answerAgentQuestionContract
|
|
9896
|
+
];
|
|
9897
|
+
var getBoardDigestContract = defineMcpToolContract({
|
|
9898
|
+
name: "get_board_digest",
|
|
9899
|
+
mcp: {
|
|
9900
|
+
description: "Read the whole board in one call: every card in Planning, Open, InProgress or ReviewPR, plus any card that is new, moved, merged or got a person's post since `since`, each with its pull request, pod, agent, review and open-question signals; the card counts per status; the project's review mode, auto-merge, open pull request limit and idle window; and your free pod slots. Pass the previous read's `asOf` as `since` to see only what changed. Returns compact text, about one line a card; format \"json\" returns the rows, about 1 KB a card, so pair it with a small limit. A change from up to two minutes before since can show again. Pass projectId to target a specific project; otherwise the configured default project is used.",
|
|
9901
|
+
fields: {
|
|
9902
|
+
projectId: mcpProjectId,
|
|
9903
|
+
since: f.optional(
|
|
9904
|
+
f.string({
|
|
9905
|
+
desc: "An ISO time, usually the previous digest's asOf: what changed after it"
|
|
9906
|
+
})
|
|
9907
|
+
),
|
|
9908
|
+
scope: f.optional(
|
|
9909
|
+
f.enum(["all", "mine"], {
|
|
9910
|
+
desc: '"mine": only cards you created or are assigned. Default "all"'
|
|
9911
|
+
})
|
|
9912
|
+
),
|
|
9913
|
+
format: f.optional(
|
|
9914
|
+
f.enum(["text", "json"], { desc: "Compact text (default) or the JSON rows" })
|
|
9915
|
+
),
|
|
9916
|
+
limit: f.optional(
|
|
9917
|
+
f.number({
|
|
9918
|
+
desc: "At most this many cards (default 300, at most 500)",
|
|
9919
|
+
int: true,
|
|
9920
|
+
min: 1,
|
|
9921
|
+
max: 500
|
|
9922
|
+
})
|
|
9923
|
+
)
|
|
9924
|
+
}
|
|
9925
|
+
}
|
|
9926
|
+
});
|
|
9927
|
+
var boardContracts = [getBoardDigestContract];
|
|
9814
9928
|
var TOOL_CONTRACTS = Object.fromEntries(
|
|
9815
9929
|
[
|
|
9816
9930
|
...tasksContracts,
|
|
@@ -9836,6 +9950,9 @@ var TOOL_CONTRACTS = Object.fromEntries(
|
|
|
9836
9950
|
...siteAssetsContracts
|
|
9837
9951
|
].map((contract) => [contract.name, contract])
|
|
9838
9952
|
);
|
|
9953
|
+
var MCP_TOOL_CONTRACTS = Object.fromEntries(
|
|
9954
|
+
[...agentMessagingContracts, ...boardContracts].map((contract) => [contract.name, contract])
|
|
9955
|
+
);
|
|
9839
9956
|
|
|
9840
9957
|
// src/tools/contract-tool.ts
|
|
9841
9958
|
import { z as z3 } from "zod";
|
package/dist/cli.js
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
WorkspaceCommandSupervisor,
|
|
8
8
|
startWorkspaceCommandsAfterConnect,
|
|
9
9
|
stopWorkspaceCommands
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-CWGU7HVC.js";
|
|
11
11
|
import {
|
|
12
12
|
PtyHarness,
|
|
13
13
|
SessionRunner,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
resolveTuiKindFromEnv,
|
|
26
26
|
sampleKeyUsage,
|
|
27
27
|
usesNativeUsageReporting
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-6FEFEVVF.js";
|
|
29
29
|
import "./chunk-VYE7XV6U.js";
|
|
30
30
|
import {
|
|
31
31
|
inheritedEnv,
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
createServiceLogger,
|
|
42
42
|
loadAndAnnotateDiscoveredPorts,
|
|
43
43
|
loadConveyorConfig
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-2JW3ILVM.js";
|
|
45
45
|
import "./chunk-74BAVQKD.js";
|
|
46
46
|
import "./chunk-W4LZ7R6Z.js";
|
|
47
47
|
import "./chunk-372R6E4C.js";
|
|
@@ -1424,7 +1424,7 @@ if (!RUNNER_MODES.includes(CONVEYOR_MODE)) {
|
|
|
1424
1424
|
process.exit(1);
|
|
1425
1425
|
}
|
|
1426
1426
|
if (CONVEYOR_MODE === "serving") {
|
|
1427
|
-
const { runServingSession } = await import("./serve-boot-
|
|
1427
|
+
const { runServingSession } = await import("./serve-boot-MHESEHYF.js");
|
|
1428
1428
|
exitContext.runnerMode = "serving";
|
|
1429
1429
|
exitContext.sessionId = process.env.CONVEYOR_SESSION_ID ?? exitContext.sessionId;
|
|
1430
1430
|
const outcome = await runServingSession({
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SessionRunner,
|
|
3
3
|
unshallowRepo
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-6FEFEVVF.js";
|
|
5
5
|
import "./chunk-VYE7XV6U.js";
|
|
6
6
|
import "./chunk-76JCOHPE.js";
|
|
7
7
|
import {
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
stageAndCommit,
|
|
18
18
|
updateRemoteToken,
|
|
19
19
|
workspacePathExists
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-2JW3ILVM.js";
|
|
21
21
|
import "./chunk-74BAVQKD.js";
|
|
22
22
|
import {
|
|
23
23
|
runAuthTokenCommand,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WorkspaceCommandSupervisor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CWGU7HVC.js";
|
|
4
4
|
import {
|
|
5
5
|
AgentConnection,
|
|
6
6
|
DEFAULT_LIFECYCLE_CONFIG,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
ensureOnTaskBranch,
|
|
12
12
|
loadAndAnnotateDiscoveredPorts,
|
|
13
13
|
loadConveyorConfig
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-2JW3ILVM.js";
|
|
15
15
|
import "./chunk-74BAVQKD.js";
|
|
16
16
|
import "./chunk-W4LZ7R6Z.js";
|
|
17
17
|
import "./chunk-L2E4EMEP.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rallycry/conveyor-agent",
|
|
3
|
-
"version": "11.1.
|
|
3
|
+
"version": "11.1.13",
|
|
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",
|
|
@@ -101,8 +101,10 @@ live loop is still working.
|
|
|
101
101
|
claimable — take its children one at a time instead; a card with a
|
|
102
102
|
`parentTaskId` only while the parent's status is neither InProgress nor
|
|
103
103
|
ReviewPR (see ground rules).
|
|
104
|
-
Skip `followParentStatus` mirror children. A
|
|
105
|
-
|
|
104
|
+
Skip `followParentStatus` mirror children. A card whose title starts
|
|
105
|
+
`[manager]` is never claimable: it is a `/conveyor-manager` run's duty
|
|
106
|
+
card, and its plan is a charter, not work to build. A blocker counts as met
|
|
107
|
+
only when merged-or-beyond (ReviewDev/ReviewLive/Complete) or Cancelled — a
|
|
106
108
|
blocker sitting in ReviewPR is NOT met until its PR merges.
|
|
107
109
|
2. Claim: re-confirm via `get_task` it is still Open, take the checkout claim
|
|
108
110
|
(`checkout acquire --card <slug>`; `held` → do not claim, arm the wait),
|
|
@@ -275,7 +277,8 @@ depth each iteration so the user can offload manually.
|
|
|
275
277
|
the loop takes turns on it through the checkout claim.
|
|
276
278
|
- Not a parallel executor: one card (or one pack) at a time is the point (the
|
|
277
279
|
full machine per gate). Backlogged? That is what claudespaces — or the
|
|
278
|
-
offload valve — are for.
|
|
280
|
+
offload valve — are for. Running pods side by side and landing their work
|
|
281
|
+
is `/conveyor-manager`.
|
|
279
282
|
|
|
280
283
|
## Improve This Skill
|
|
281
284
|
|