@rallycry/conveyor-agent 8.9.0 → 8.11.0

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.
@@ -1141,9 +1141,10 @@ function stageAndCommit(cwd, message) {
1141
1141
  return null;
1142
1142
  }
1143
1143
  }
1144
- function tryPush(cwd, branch) {
1144
+ function tryPush(cwd, branch, skipVerify = false) {
1145
+ const noVerify = skipVerify ? "--no-verify " : "";
1145
1146
  try {
1146
- execSync(`git push origin ${branch}`, {
1147
+ execSync(`git push ${noVerify}origin ${branch}`, {
1147
1148
  cwd,
1148
1149
  stdio: ["ignore", "pipe", "pipe"],
1149
1150
  timeout: 3e4
@@ -1151,7 +1152,7 @@ function tryPush(cwd, branch) {
1151
1152
  return true;
1152
1153
  } catch {
1153
1154
  try {
1154
- execSync(`git push --force-with-lease origin ${branch}`, {
1155
+ execSync(`git push ${noVerify}--force-with-lease origin ${branch}`, {
1155
1156
  cwd,
1156
1157
  stdio: ["ignore", "pipe", "pipe"],
1157
1158
  timeout: 3e4
@@ -1211,7 +1212,7 @@ function createWipSnapshot(cwd, message) {
1211
1212
  }
1212
1213
  function tryPushRefspec(cwd, refspec, force = false) {
1213
1214
  try {
1214
- execSync(`git push ${force ? "--force " : ""}origin ${JSON.stringify(refspec)}`, {
1215
+ execSync(`git push --no-verify ${force ? "--force " : ""}origin ${JSON.stringify(refspec)}`, {
1215
1216
  cwd,
1216
1217
  stdio: ["ignore", "pipe", "pipe"],
1217
1218
  timeout: 3e4
@@ -1300,7 +1301,7 @@ async function dropStaleWipRef(cwd, branch, refreshToken) {
1300
1301
  wipRefPushed.delete(cwd);
1301
1302
  }
1302
1303
  }
1303
- async function pushToOrigin(cwd, refreshToken) {
1304
+ async function pushToOrigin(cwd, refreshToken, skipVerify = false) {
1304
1305
  try {
1305
1306
  const currentBranch = getCurrentBranch(cwd);
1306
1307
  if (!currentBranch) return false;
@@ -1315,14 +1316,14 @@ async function pushToOrigin(cwd, refreshToken) {
1315
1316
  } catch {
1316
1317
  }
1317
1318
  }
1318
- if (tryPush(cwd, currentBranch)) return true;
1319
+ if (tryPush(cwd, currentBranch, skipVerify)) return true;
1319
1320
  if (refreshToken && isAuthError(cwd)) {
1320
1321
  const token = await refreshToken();
1321
1322
  if (token) {
1322
1323
  updateRemoteToken(cwd, token);
1323
1324
  process.env.GITHUB_TOKEN = token;
1324
1325
  process.env.GH_TOKEN = token;
1325
- return tryPush(cwd, currentBranch);
1326
+ return tryPush(cwd, currentBranch, skipVerify);
1326
1327
  }
1327
1328
  }
1328
1329
  return false;
@@ -1878,6 +1879,10 @@ var SearchProjectTasksRequestSchema = z2.object({
1878
1879
  tagNames: z2.array(z2.string()).optional(),
1879
1880
  searchQuery: z2.string().optional(),
1880
1881
  statusFilters: z2.array(z2.string()).optional(),
1882
+ // Card types to include. Omitted/empty → defaults to ["task"] in the handler so
1883
+ // search doesn't surface incidents/suggestions unless asked. Enum validation lives
1884
+ // at the MCP tool layer (mirrors statusFilters).
1885
+ typeFilters: z2.array(z2.string()).optional(),
1881
1886
  assigneeId: z2.string().optional(),
1882
1887
  unassigned: z2.boolean().optional(),
1883
1888
  limit: z2.number().int().positive().optional().default(20)
@@ -3883,9 +3888,12 @@ function buildCreatePullRequestTool(connection, config) {
3883
3888
  ),
3884
3889
  commitMessage: z6.string().optional().describe(
3885
3890
  "Commit message for staging uncommitted changes. If not provided, a default message based on the PR title will be used."
3891
+ ),
3892
+ skipVerify: z6.boolean().optional().describe(
3893
+ "Pass --no-verify to the git push, bypassing the local pre-push quality gate (lint/typecheck/test). Use this if a previous attempt failed on the pre-push hook in an environment where you've already run the gates yourself \u2014 CI still runs on the resulting PR."
3886
3894
  )
3887
3895
  },
3888
- async ({ title, body, branch, baseBranch, commitMessage }) => {
3896
+ async ({ title, body, branch, baseBranch, commitMessage, skipVerify }) => {
3889
3897
  try {
3890
3898
  const cwd = config.workspaceDir;
3891
3899
  if (hasUncommittedChanges(cwd)) {
@@ -3905,16 +3913,20 @@ Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>`;
3905
3913
  }
3906
3914
  }
3907
3915
  if (hasUnpushedCommits(cwd)) {
3908
- const pushSuccess = await pushToOrigin(cwd, async () => {
3909
- try {
3910
- const result2 = await connection.call("refreshGithubToken", {
3911
- sessionId: connection.sessionId
3912
- });
3913
- return result2.token;
3914
- } catch {
3915
- return void 0;
3916
- }
3917
- });
3916
+ const pushSuccess = await pushToOrigin(
3917
+ cwd,
3918
+ async () => {
3919
+ try {
3920
+ const result2 = await connection.call("refreshGithubToken", {
3921
+ sessionId: connection.sessionId
3922
+ });
3923
+ return result2.token;
3924
+ } catch {
3925
+ return void 0;
3926
+ }
3927
+ },
3928
+ skipVerify ?? false
3929
+ );
3918
3930
  if (pushSuccess) {
3919
3931
  connection.sendEvent({
3920
3932
  type: "message",
@@ -9436,6 +9448,7 @@ function errorMessage(error) {
9436
9448
  return error instanceof Error ? error.message : "Unknown error";
9437
9449
  }
9438
9450
  var DESCRIPTION_PREVIEW_CHARS = 300;
9451
+ var CARD_TYPE_ENUM = ["task", "incident", "suggestion"];
9439
9452
  function summarizeTask(task) {
9440
9453
  if (typeof task !== "object" || task === null) return task;
9441
9454
  const { plan, description, ...rest } = task;
@@ -9490,11 +9503,12 @@ function buildSearchTasksTool(connection) {
9490
9503
  const projectId = connection.projectId;
9491
9504
  return defineTool(
9492
9505
  "search_tasks",
9493
- "Search tasks by tags, text query, status filters, or assignment. Returns summaries \u2014 plan omitted, description truncated; use get_project_task for full details.",
9506
+ "Search cards by tags, text query, status, type, or assignment. Defaults to type=task \u2014 pass typeFilters to include incidents/suggestions. Returns summaries \u2014 plan omitted, description truncated; use get_project_task for full details.",
9494
9507
  {
9495
9508
  tagNames: z17.array(z17.string()).optional().describe("Filter by tag names"),
9496
9509
  searchQuery: z17.string().optional().describe("Text search in title/description"),
9497
9510
  statusFilters: z17.array(z17.string()).optional().describe("Filter by statuses"),
9511
+ typeFilters: z17.array(z17.enum(CARD_TYPE_ENUM)).optional().describe('Card types to include (default ["task"]). Pass e.g. ["incident"] or several.'),
9498
9512
  assigneeId: z17.string().optional().describe("Filter by assigned user ID"),
9499
9513
  unassigned: z17.boolean().optional().describe("Only return tasks with no assignee (mutually exclusive with assigneeId)"),
9500
9514
  limit: z17.number().optional().describe("Max results (default 20)")
@@ -10788,4 +10802,4 @@ export {
10788
10802
  loadConveyorConfig,
10789
10803
  unshallowRepo
10790
10804
  };
10791
- //# sourceMappingURL=chunk-6462GDLZ.js.map
10805
+ //# sourceMappingURL=chunk-IB6M4OVT.js.map