@siftd/connect-agent 0.2.6 → 0.2.7

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/heartbeat.js CHANGED
@@ -10,7 +10,7 @@ import { hostname } from 'os';
10
10
  import { createHash } from 'crypto';
11
11
  import { getServerUrl, getAgentToken, getUserId, isCloudMode } from './config.js';
12
12
  const HEARTBEAT_INTERVAL = 10000; // 10 seconds
13
- const VERSION = '0.2.6'; // Should match package.json
13
+ const VERSION = '0.2.7'; // Should match package.json
14
14
  const state = {
15
15
  intervalId: null,
16
16
  runnerId: null,
@@ -362,7 +362,7 @@ export class MasterOrchestrator {
362
362
  },
363
363
  timeout: {
364
364
  type: 'number',
365
- description: 'Timeout in milliseconds (default: 300000 / 5 min)'
365
+ description: 'Timeout in milliseconds (default: 600000 / 10 min, max: 3600000 / 60 min)'
366
366
  },
367
367
  priority: {
368
368
  type: 'string',
@@ -729,7 +729,8 @@ This ensures nothing is lost even if your output gets truncated.`;
729
729
  });
730
730
  job.process = child;
731
731
  this.jobs.set(id, job);
732
- // Timeout after 5 minutes
732
+ // Timeout after 10 minutes (increased from 5 for complex tasks)
733
+ const WORKER_TIMEOUT = 10 * 60 * 1000;
733
734
  const timeout = setTimeout(() => {
734
735
  if (job.status === 'running') {
735
736
  job.status = 'timeout';
@@ -746,11 +747,11 @@ This ensures nothing is lost even if your output gets truncated.`;
746
747
  resolve({
747
748
  success: false,
748
749
  output: partialOutput
749
- ? `Worker timed out after 5 minutes. Partial findings:\n${partialOutput.slice(-2000)}`
750
- : 'Worker timed out after 5 minutes with no output. The task may be too complex - try breaking it into smaller steps.'
750
+ ? `Worker timed out after 10 minutes. Partial findings:\n${partialOutput.slice(-2000)}`
751
+ : 'Worker timed out after 10 minutes with no output. The task may be too complex - try breaking it into smaller steps.'
751
752
  });
752
753
  }
753
- }, 5 * 60 * 1000);
754
+ }, WORKER_TIMEOUT);
754
755
  child.stdout?.on('data', (data) => {
755
756
  job.output += data.toString();
756
757
  });
@@ -2,9 +2,9 @@
2
2
  * Worker System Types
3
3
  */
4
4
  export const DEFAULT_WORKER_CONFIG = {
5
- maxParallel: 3,
6
- defaultTimeout: 300000, // 5 minutes
7
- maxTimeout: 1800000, // 30 minutes
8
- jobRetention: 3600000, // 1 hour
5
+ maxParallel: 20, // Increased from 3 for real orchestration
6
+ defaultTimeout: 600000, // 10 minutes (was 5)
7
+ maxTimeout: 3600000, // 60 minutes (was 30)
8
+ jobRetention: 86400000, // 24 hours (was 1 hour)
9
9
  jobsDir: '' // Set at runtime
10
10
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@siftd/connect-agent",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "description": "Master orchestrator agent - control Claude Code remotely via web",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",