@atolis-hq/wake 0.2.68 → 0.2.70

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.
@@ -86,15 +86,7 @@ export function runClaudeCommand(input) {
86
86
  return runAgentCliCommand(input);
87
87
  }
88
88
  function resolveModel(options) {
89
- const { models, model } = options.settings;
90
- const actionSpecificModel = models[options.action];
91
- if (actionSpecificModel !== undefined) {
92
- return actionSpecificModel;
93
- }
94
- if (models.default !== undefined) {
95
- return models.default;
96
- }
97
- return model;
89
+ return options.settings.model;
98
90
  }
99
91
  function parseClaudePrintOutput(stdout) {
100
92
  return parseClaudePrintResult(JSON.parse(stdout));
@@ -165,15 +165,7 @@ export function classifyCodexCliFailure(input) {
165
165
  return 'infra';
166
166
  }
167
167
  function resolveModel(input) {
168
- const { models, model } = input.settings;
169
- const actionSpecificModel = models[input.action];
170
- if (actionSpecificModel !== undefined) {
171
- return actionSpecificModel;
172
- }
173
- if (models.default !== undefined) {
174
- return models.default;
175
- }
176
- return model;
168
+ return input.settings.model;
177
169
  }
178
170
  function readSandboxLogBreadcrumb() {
179
171
  const containerName = process.env.WAKE_SANDBOX_CONTAINER_NAME;
@@ -132,15 +132,7 @@ function resolveCursorMode(input) {
132
132
  return input.workspaceMode === 'read-only' ? 'ask' : undefined;
133
133
  }
134
134
  function resolveModel(input) {
135
- const { models, model } = input.settings;
136
- const actionSpecificModel = models[input.action];
137
- if (actionSpecificModel !== undefined) {
138
- return actionSpecificModel;
139
- }
140
- if (models.default !== undefined) {
141
- return models.default;
142
- }
143
- return model;
135
+ return input.settings.model;
144
136
  }
145
137
  function readSandboxLogBreadcrumb() {
146
138
  const containerName = process.env.WAKE_SANDBOX_CONTAINER_NAME;
@@ -660,7 +660,7 @@ function modelKey(run, config) {
660
660
  if (runner === undefined || runner.kind === 'fake') {
661
661
  return 'unknown';
662
662
  }
663
- return runner.models[run.action] ?? runner.models.default ?? runner.model;
663
+ return runner.model;
664
664
  }
665
665
  function completedAtForItem(item) {
666
666
  const doneEntry = item.wake.stageHistory.find((entry) => entry.stage === 'done');
@@ -123,6 +123,9 @@ export function createPolicyEngine() {
123
123
  if (issue.latestComment !== undefined &&
124
124
  !issue.latestComment.isBotAuthored &&
125
125
  issue.latestComment.id !== handledCommentId) {
126
+ if (lastRunSentinel === failedRunnerSentinel) {
127
+ return belowFailureRetryLimit(issue, config);
128
+ }
126
129
  return true;
127
130
  }
128
131
  if (isAwaitingApproval(issue)) {
@@ -70,12 +70,6 @@ export const runtimeEventSchema = z.object({
70
70
  });
71
71
  export const defaultAgentIdentity = 'Wake';
72
72
  export const defaultSmokePrompt = `This is ${defaultAgentIdentity}, reply with "hi ${defaultAgentIdentity} only"`;
73
- const modelOverridesSchema = z
74
- .object({
75
- default: z.string().optional(),
76
- })
77
- .catchall(z.string())
78
- .default({});
79
73
  const claudeEffortSchema = z.enum(['low', 'medium', 'high', 'xhigh', 'max']);
80
74
  const codexReasoningEffortSchema = z.enum(['low', 'medium', 'high']);
81
75
  const cursorModeSchema = z.enum(['ask', 'agent']);
@@ -96,7 +90,6 @@ const claudeRunnerSettingsSchema = z.object({
96
90
  enabled: z.boolean().default(false),
97
91
  })
98
92
  .default({ enabled: false }),
99
- models: modelOverridesSchema.default({ default: 'haiku', implement: 'claude-sonnet-4-6' }),
100
93
  effort: claudeEffortSchema.optional(),
101
94
  });
102
95
  const codexRunnerSettingsSchema = z.object({
@@ -109,7 +102,6 @@ const codexRunnerSettingsSchema = z.object({
109
102
  .int()
110
103
  .positive()
111
104
  .default(30 * 60 * 1000),
112
- models: modelOverridesSchema.default({ default: 'gpt-5.5', implement: 'gpt-5.5' }),
113
105
  reasoningEffort: codexReasoningEffortSchema.optional(),
114
106
  });
115
107
  const fakeRunnerEntrySchema = z.object({
@@ -132,7 +124,6 @@ const cursorRunnerSettingsSchema = z.object({
132
124
  .int()
133
125
  .positive()
134
126
  .default(30 * 60 * 1000),
135
- models: modelOverridesSchema.default({ default: 'composer-2.5', implement: 'composer-2.5' }),
136
127
  defaultMode: cursorModeSchema.optional(),
137
128
  });
138
129
  const cursorRunnerEntrySchema = cursorRunnerSettingsSchema.extend({
@@ -672,7 +663,6 @@ const wakeConfigBaseSchema = z.object({
672
663
  smokePrompt: defaultSmokePrompt,
673
664
  timeoutMs: 30 * 60 * 1000,
674
665
  remoteControl: { enabled: false },
675
- models: { default: 'haiku' },
676
666
  },
677
667
  'claude-opus': {
678
668
  kind: 'claude',
@@ -684,7 +674,6 @@ const wakeConfigBaseSchema = z.object({
684
674
  smokePrompt: defaultSmokePrompt,
685
675
  timeoutMs: 30 * 60 * 1000,
686
676
  remoteControl: { enabled: false },
687
- models: { default: 'claude-opus-4-8' },
688
677
  },
689
678
  'codex-mini': {
690
679
  kind: 'codex',
@@ -693,7 +682,6 @@ const wakeConfigBaseSchema = z.object({
693
682
  smokeModel: 'gpt-5.4-mini',
694
683
  smokePrompt: defaultSmokePrompt,
695
684
  timeoutMs: 30 * 60 * 1000,
696
- models: { default: 'gpt-5.4-mini', implement: 'gpt-5.4-mini' },
697
685
  },
698
686
  'codex-flagship': {
699
687
  kind: 'codex',
@@ -702,7 +690,6 @@ const wakeConfigBaseSchema = z.object({
702
690
  smokeModel: 'gpt-5.4-mini',
703
691
  smokePrompt: defaultSmokePrompt,
704
692
  timeoutMs: 30 * 60 * 1000,
705
- models: { default: 'gpt-5.5', implement: 'gpt-5.5' },
706
693
  },
707
694
  'cursor-composer': {
708
695
  kind: 'cursor',
@@ -711,7 +698,6 @@ const wakeConfigBaseSchema = z.object({
711
698
  smokeModel: 'auto',
712
699
  smokePrompt: defaultSmokePrompt,
713
700
  timeoutMs: 30 * 60 * 1000,
714
- models: { default: 'composer-2.5', implement: 'composer-2.5' },
715
701
  },
716
702
  }),
717
703
  tiers: z.record(z.string(), z.array(z.string().min(1)).min(1)).default({
@@ -124,4 +124,4 @@ export function resolveWakeVersion(options = {}) {
124
124
  }
125
125
  return '0.1.0-dev';
126
126
  }
127
- export const wakeVersion = "gd847502";
127
+ export const wakeVersion = "ge22f5df";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atolis-hq/wake",
3
- "version": "0.2.68",
3
+ "version": "0.2.70",
4
4
  "description": "Local autonomous agent control plane for software development",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {