@voidlabs.gg/voidshift-agents 0.4.1 → 0.4.2

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/git.d.ts CHANGED
@@ -24,7 +24,7 @@ export declare function summarizeChecks(text: string): CheckSummary;
24
24
  export declare function ciReport(s: CheckSummary): string;
25
25
  export declare function waitForPrHead(worktree: string, branch: string, sha: string, timeoutMs?: number): Promise<boolean>;
26
26
  export declare function waitForChecks(worktree: string, branch: string, timeoutMs?: number, settleMs?: number): Promise<{
27
- verdict: 'SHIP' | 'FIX' | 'SKIP';
27
+ verdict: 'SHIP' | 'FIX' | 'SKIP' | 'PENDING';
28
28
  report: string;
29
29
  }>;
30
30
  export declare function resetWorktree(worktree: string): void;
package/dist/git.js CHANGED
@@ -124,7 +124,7 @@ export async function waitForChecks(worktree, branch, timeoutMs = 30 * 60_000, s
124
124
  if (!summary.failed.length && !summary.pending.length)
125
125
  return resolve({ verdict: 'SHIP', report: `CI passed (${summary.passed} checks).` });
126
126
  if (!summary.failed.length)
127
- return resolve({ verdict: 'FIX', report: `CI did not finish in time. Still running: ${summary.pending.join(', ')}.` });
127
+ return resolve({ verdict: 'PENDING', report: `CI did not finish in time. Still running: ${summary.pending.join(', ')}.` });
128
128
  resolve({ verdict: 'FIX', report: ciReport(summary) });
129
129
  });
130
130
  });
package/dist/runner.js CHANGED
@@ -155,7 +155,15 @@ export async function runCard(card, trigger, workflowName, workflow, project, rc
155
155
  if (!(await waitForPrHead(worktree, card.branchName, sha))) {
156
156
  throw new Park(`GitHub never showed commit ${sha.slice(0, 9)} on the pull request, so its CI could not be read. PR: ${prUrl}`);
157
157
  }
158
- const ci = await waitForChecks(worktree, card.branchName);
158
+ // A slow CI is not a failed one: wait a second window, then park
159
+ // rather than send Dev a round it can only answer with no commit.
160
+ let ci = await waitForChecks(worktree, card.branchName);
161
+ if (ci.verdict === 'PENDING') {
162
+ say('CI still running, waiting another window');
163
+ ci = await waitForChecks(worktree, card.branchName);
164
+ }
165
+ if (ci.verdict === 'PENDING')
166
+ throw new Park(`${ci.report} PR: ${prUrl}`);
159
167
  if (ci.verdict === 'FIX') {
160
168
  end(rec, 'FIX', ci.report);
161
169
  return { step: label, verdict: 'FIX', report: ci.report };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voidlabs.gg/voidshift-agents",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "Agents for Claude Code and Codex that plan, build and QA Linear cards, chained and run in the background.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {