@workermill/agent 0.6.1 → 0.6.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.
@@ -183,8 +183,8 @@ export function runCriticCli(claudePath, model, prompt, env) {
183
183
  });
184
184
  const timeout = setTimeout(() => {
185
185
  proc.kill("SIGTERM");
186
- reject(new Error("Critic CLI timed out after 10 minutes"));
187
- }, 600_000);
186
+ reject(new Error("Critic CLI timed out after 20 minutes"));
187
+ }, 1_200_000);
188
188
  proc.on("exit", (code) => {
189
189
  clearTimeout(timeout);
190
190
  if (code !== 0) {
@@ -262,7 +262,7 @@ export async function runCriticValidation(claudePath, model, prd, plan, env, tas
262
262
  if (!providerApiKey) {
263
263
  throw new Error(`No API key for critic provider "${effectiveProvider}"`);
264
264
  }
265
- rawCriticOutput = await generateText(effectiveProvider, model, criticPrompt, providerApiKey, { maxTokens: 4096, temperature: 0.3, timeoutMs: 600_000 });
265
+ rawCriticOutput = await generateText(effectiveProvider, model, criticPrompt, providerApiKey, { maxTokens: 4096, temperature: 0.3, timeoutMs: 1_200_000 });
266
266
  }
267
267
  const result = parseCriticResponse(rawCriticOutput);
268
268
  const statusIcon = result.score >= AUTO_APPROVAL_THRESHOLD
package/dist/poller.js CHANGED
@@ -250,7 +250,11 @@ export function startPolling(config) {
250
250
  */
251
251
  export function startHeartbeat(config) {
252
252
  setInterval(async () => {
253
- const activeTaskIds = getActiveTaskIds();
253
+ // Include BOTH running containers AND tasks being planned/managed
254
+ const containerTaskIds = getActiveTaskIds();
255
+ const planningTaskIds = Array.from(planningInProgress);
256
+ const managerTaskIds = Array.from(managerInProgress);
257
+ const activeTaskIds = [...containerTaskIds, ...planningTaskIds, ...managerTaskIds];
254
258
  try {
255
259
  const response = await api.post("/api/agent/heartbeat", {
256
260
  agentId: config.agentId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workermill/agent",
3
- "version": "0.6.1",
3
+ "version": "0.6.2",
4
4
  "description": "WorkerMill Remote Agent - Run AI workers locally with your Claude Max subscription",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",