tycono 0.1.20 → 0.1.22

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tycono",
3
- "version": "0.1.20",
3
+ "version": "0.1.22",
4
4
  "description": "Build an AI company. Watch them work.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -144,6 +144,7 @@ export function createHttpServer(): http.Server {
144
144
 
145
145
  server.timeout = 0;
146
146
  server.requestTimeout = 0;
147
+ server.headersTimeout = 0;
147
148
 
148
149
  return server;
149
150
  }
@@ -18,7 +18,7 @@ interface LastCommit {
18
18
  }
19
19
 
20
20
  function git(cmd: string): string {
21
- return execSync(`git ${cmd}`, { cwd: COMPANY_ROOT, encoding: 'utf-8' }).trim();
21
+ return execSync(`git ${cmd}`, { cwd: COMPANY_ROOT, encoding: 'utf-8', timeout: 5000 }).trim();
22
22
  }
23
23
 
24
24
  // GET /api/git/status
@@ -65,14 +65,14 @@ const SAVE_PATHS = [
65
65
 
66
66
  function run(cmd: string, cwd: string): string {
67
67
  try {
68
- return execSync(cmd, { cwd, encoding: 'utf-8', timeout: 30000, stdio: ['pipe', 'pipe', 'pipe'] }).trim();
68
+ return execSync(cmd, { cwd, encoding: 'utf-8', timeout: 5000, stdio: ['pipe', 'pipe', 'pipe'] }).trim();
69
69
  } catch {
70
70
  return '';
71
71
  }
72
72
  }
73
73
 
74
74
  function runOrThrow(cmd: string, cwd: string): string {
75
- return execSync(cmd, { cwd, encoding: 'utf-8', timeout: 30000, stdio: ['pipe', 'pipe', 'pipe'] }).trim();
75
+ return execSync(cmd, { cwd, encoding: 'utf-8', timeout: 5000, stdio: ['pipe', 'pipe', 'pipe'] }).trim();
76
76
  }
77
77
 
78
78
  /** Check if directory is a git repository */