@atolis-hq/wake 0.3.28 → 0.3.29

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.
@@ -108,4 +108,4 @@ export function resolveWakeVersion(options = {}) {
108
108
  return `g${headHash.slice(0, 7)}`;
109
109
  return '0.1.0-dev';
110
110
  }
111
- export const wakeVersion = "g69f927b";
111
+ export const wakeVersion = "ge3a9b57";
@@ -4,6 +4,7 @@ import { BuiltInResourceKind, ResourceCorrelationRole, ResourceStreamKind, resou
4
4
  import { WorkStatus } from '../../../work/index.js';
5
5
  import { UnknownGitHubIdentity } from '../contracts/vocabulary.js';
6
6
  import { commandContext } from './inbound-context.js';
7
+ import { ignoreIneligibleOperatorRetry } from './operator-retry-command.js';
7
8
  import { translateGitHubReviewCommand } from './review-command-translator.js';
8
9
  export async function applyReviewSignal(input) {
9
10
  const { event, journal, resources, work, lookup, adapter, orchestration } = input;
@@ -116,7 +117,7 @@ async function applyIssueRetrySignal(input) {
116
117
  const item = await work.get(workflow.workItemId);
117
118
  if (item === null || item.deleted || item.frozen || item.state !== WorkStatus.Open)
118
119
  continue;
119
- await orchestration.retryBlockedFailedStage(workflow.workflowInstanceId, commandContext(event));
120
+ await ignoreIneligibleOperatorRetry(() => orchestration.retryBlockedFailedStage(workflow.workflowInstanceId, commandContext(event)));
120
121
  }
121
122
  }
122
123
  async function applyIssueApprovalSignal(input) {
@@ -0,0 +1,11 @@
1
+ import { OperatorRetryIneligibleError } from '../../../orchestration/index.js';
2
+ export async function ignoreIneligibleOperatorRetry(retry) {
3
+ try {
4
+ await retry();
5
+ }
6
+ catch (error) {
7
+ if (error instanceof OperatorRetryIneligibleError)
8
+ return;
9
+ throw error;
10
+ }
11
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atolis-hq/wake",
3
- "version": "0.3.28",
3
+ "version": "0.3.29",
4
4
  "description": "Local autonomous agent control plane for software development",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {