@atolis-hq/wake 0.2.10 → 0.2.12

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.
@@ -104,6 +104,7 @@ export function classifyCursorCliFailure(input) {
104
104
  }
105
105
  const text = `${input.stderr}\n${input.stdout}`.toLowerCase();
106
106
  if (text.includes('rate limit') ||
107
+ text.includes('usage limit') ||
107
108
  text.includes('quota') ||
108
109
  text.includes('billing') ||
109
110
  text.includes('unauthorized') ||
@@ -22,6 +22,15 @@ function latestHumanCommentId(candidate) {
22
22
  function isLateralReadOnlyAction(action, config) {
23
23
  return isCustomCommandAction(action, config);
24
24
  }
25
+ function shouldPublishRunResult(input) {
26
+ if (input.failureClass === 'quota') {
27
+ return false;
28
+ }
29
+ if (input.failureClass === undefined || input.failureClass === 'task') {
30
+ return true;
31
+ }
32
+ return input.failureClass !== input.previousFailureClass;
33
+ }
25
34
  export function createTickRunner(deps) {
26
35
  const policy = createPolicyEngine();
27
36
  const lifecycle = createLifecycleService();
@@ -622,7 +631,10 @@ export function createTickRunner(deps) {
622
631
  workflowLabel: workflowLabelForWorkflowName(workflowName),
623
632
  occurredAt: finishedAt,
624
633
  }));
625
- if (runnerResult.failureClass !== 'quota') {
634
+ if (shouldPublishRunResult({
635
+ failureClass: runnerResult.failureClass,
636
+ previousFailureClass: candidate.context.lastFailureClass,
637
+ })) {
626
638
  const publishIntent = createPublishIntentEvent({
627
639
  projection: candidate,
628
640
  runId,
@@ -710,7 +722,12 @@ export function createTickRunner(deps) {
710
722
  occurredAt: finishedAt,
711
723
  startedAt: nowIso,
712
724
  });
713
- await deliverOutboundEvent(failurePublishIntent);
725
+ if (shouldPublishRunResult({
726
+ failureClass: 'infra',
727
+ previousFailureClass: candidate.context.lastFailureClass,
728
+ })) {
729
+ await deliverOutboundEvent(failurePublishIntent);
730
+ }
714
731
  return {
715
732
  status: 'processed',
716
733
  runId,
@@ -1 +1 @@
1
- export const wakeVersion = "0.2.10+gc34a38e";
1
+ export const wakeVersion = "0.2.12+g6314122";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atolis-hq/wake",
3
- "version": "0.2.10",
3
+ "version": "0.2.12",
4
4
  "description": "Local autonomous agent control plane for software development",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {