@rallycry/conveyor-agent 7.2.4 → 7.2.5

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.
@@ -1293,7 +1293,7 @@ function truncateDescription(desc, maxChars) {
1293
1293
  }
1294
1294
  function formatTagWithContextPaths(tag) {
1295
1295
  const desc = tag.description ? ` \u2014 ${tag.description}` : "";
1296
- const lines = [`- ID: "${tag.id}", Name: "${tag.name}"${desc}`];
1296
+ const lines = [`- Name: "${tag.name}"${desc}`];
1297
1297
  for (const link of tag.contextPaths ?? []) {
1298
1298
  const label = link.label ? ` (${link.label})` : "";
1299
1299
  lines.push(` \u2192 ${link.type}: ${link.path}${label}`);
@@ -1771,7 +1771,7 @@ function detectRelaunchScenario(context, trustChatHistory = false) {
1771
1771
  const hasNewUserMessages = messagesAfterAgent.some((m) => m.role === "user");
1772
1772
  return hasNewUserMessages ? "feedback_relaunch" : "idle_relaunch";
1773
1773
  }
1774
- function buildPmRelaunchParts(context, lastAgentIdx, isAuto) {
1774
+ function buildPmRelaunchParts(context, lastAgentIdx, isAuto, agentMode) {
1775
1775
  const parts = [];
1776
1776
  const newMessages = context.chatHistory.slice(lastAgentIdx + 1).filter((m) => m.role === "user");
1777
1777
  if (newMessages.length > 0) {
@@ -1783,7 +1783,20 @@ function buildPmRelaunchParts(context, lastAgentIdx, isAuto) {
1783
1783
  parts.push(`You have been relaunched. No new messages since your last session.`);
1784
1784
  }
1785
1785
  if (isAuto) {
1786
- if (context.plan?.trim()) {
1786
+ if (agentMode === "building" || agentMode === "review") {
1787
+ parts.push(
1788
+ `
1789
+ Your plan has been approved. Begin implementing it now.`,
1790
+ `Work on the git branch "${context.githubBranch}". Stay on this branch \u2014 do not checkout or create other branches.`,
1791
+ `Start by reading the relevant source files mentioned in the plan, then write code.`,
1792
+ `When finished, use the mcp__conveyor__create_pull_request tool to open a PR. Do NOT use gh CLI.`,
1793
+ `
1794
+ CRITICAL: You are in Auto mode. Do NOT report status, ask for confirmation, or go idle without making code changes.`,
1795
+ `Your FIRST action must be reading source files from the plan, then immediately writing code.`,
1796
+ `Do NOT summarize the plan or say "ready to implement" \u2014 start implementing.`,
1797
+ `If you are genuinely blocked, explain the specific blocker \u2014 do not go idle silently.`
1798
+ );
1799
+ } else if (context.plan?.trim()) {
1787
1800
  parts.push(
1788
1801
  `
1789
1802
  You are in auto mode. A plan already exists for this task.`,
@@ -1813,7 +1826,7 @@ function buildRelaunchWithSession(mode, context, agentMode, isAuto) {
1813
1826
  const parts = [];
1814
1827
  const lastAgentIdx = findLastAgentMessageIndex2(context.chatHistory);
1815
1828
  if (mode === "pm") {
1816
- parts.push(...buildPmRelaunchParts(context, lastAgentIdx, isAuto));
1829
+ parts.push(...buildPmRelaunchParts(context, lastAgentIdx, isAuto, agentMode));
1817
1830
  } else if (scenario === "feedback_relaunch") {
1818
1831
  const newMessages = context.chatHistory.slice(lastAgentIdx + 1).filter((m) => m.role === "user");
1819
1832
  parts.push(
@@ -3067,17 +3080,17 @@ function buildDiscoveryTools(connection) {
3067
3080
  {
3068
3081
  title: z3.string().optional().describe("The new task title"),
3069
3082
  storyPointValue: z3.number().optional().describe(SP_DESCRIPTION2),
3070
- tagIds: z3.array(z3.string()).optional().describe("Array of tag IDs to assign"),
3083
+ tagNames: z3.array(z3.string()).optional().describe("Array of tag names to assign"),
3071
3084
  githubPRUrl: z3.string().url().optional().describe("GitHub pull request URL to link to this task"),
3072
3085
  githubBranch: z3.string().optional().describe("Set the GitHub branch name for this task (e.g. 'conveyor/my-feature-abc123')")
3073
3086
  },
3074
- async ({ title, storyPointValue, tagIds, githubPRUrl, githubBranch }) => {
3087
+ async ({ title, storyPointValue, tagNames, githubPRUrl, githubBranch }) => {
3075
3088
  try {
3076
3089
  await connection.call("updateTaskProperties", {
3077
3090
  sessionId: connection.sessionId,
3078
3091
  title,
3079
3092
  storyPointValue,
3080
- tagIds,
3093
+ tagNames,
3081
3094
  githubPRUrl,
3082
3095
  githubBranch
3083
3096
  });
@@ -3085,7 +3098,7 @@ function buildDiscoveryTools(connection) {
3085
3098
  if (title !== void 0) updatedFields.push(`title to "${title}"`);
3086
3099
  if (storyPointValue !== void 0)
3087
3100
  updatedFields.push(`story points to ${storyPointValue}`);
3088
- if (tagIds !== void 0) updatedFields.push(`tags (${tagIds.length} tag(s))`);
3101
+ if (tagNames !== void 0) updatedFields.push(`tags (${tagNames.length} tag(s))`);
3089
3102
  if (githubPRUrl !== void 0) updatedFields.push(`PR link to "${githubPRUrl}"`);
3090
3103
  if (githubBranch !== void 0) updatedFields.push(`branch to "${githubBranch}"`);
3091
3104
  return textResult(`Task properties updated: ${updatedFields.join(", ")}`);
@@ -7295,7 +7308,7 @@ var ProjectRunner = class {
7295
7308
  async handleAuditTasks(request) {
7296
7309
  this.connection.emitStatus("busy");
7297
7310
  try {
7298
- const { handleTaskAudit } = await import("./task-audit-handler-LH35J3TX.js");
7311
+ const { handleTaskAudit } = await import("./task-audit-handler-7Q7EJENK.js");
7299
7312
  await handleTaskAudit(request, this.connection, this.projectDir);
7300
7313
  } catch (error) {
7301
7314
  const msg = error instanceof Error ? error.message : String(error);
@@ -7740,4 +7753,4 @@ export {
7740
7753
  loadForwardPorts,
7741
7754
  loadConveyorConfig
7742
7755
  };
7743
- //# sourceMappingURL=chunk-AS3FYEBJ.js.map
7756
+ //# sourceMappingURL=chunk-JFWVIDQ2.js.map