tycono 0.1.102 → 0.1.103

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.
Files changed (2) hide show
  1. package/bin/cli.js +17 -1
  2. package/package.json +3 -2
package/bin/cli.js CHANGED
@@ -3,12 +3,28 @@
3
3
  import { fileURLToPath, pathToFileURL } from 'node:url';
4
4
  import { dirname, join } from 'node:path';
5
5
  import { createRequire } from 'node:module';
6
+ import { execFileSync } from 'node:child_process';
7
+
8
+ // Auto-increase heap if not already set (prevents OOM with server+TUI in same process)
9
+ if (!process.env.__TYCONO_HEAP_SET && !process.execArgv.some(a => a.includes('max-old-space-size'))) {
10
+ process.env.__TYCONO_HEAP_SET = '1';
11
+ try {
12
+ execFileSync(process.execPath, [
13
+ '--max-old-space-size=8192',
14
+ ...process.execArgv,
15
+ fileURLToPath(import.meta.url),
16
+ ...process.argv.slice(2),
17
+ ], { stdio: 'inherit', env: process.env });
18
+ } catch (e) {
19
+ process.exit(e.status ?? 1);
20
+ }
21
+ process.exit(0);
22
+ }
6
23
 
7
24
  const __filename = fileURLToPath(import.meta.url);
8
25
  const __dirname = dirname(__filename);
9
26
 
10
27
  // Resolve tsx using createRequire from THIS file's location
11
- // This traverses up node_modules correctly for both local and npx flat installs
12
28
  const require = createRequire(import.meta.url);
13
29
  const tsxApiPath = pathToFileURL(require.resolve('tsx/esm/api')).href;
14
30
  const tsx = await import(tsxApiPath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tycono",
3
- "version": "0.1.102",
3
+ "version": "0.1.103",
4
4
  "description": "Build an AI company. Watch them work.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -45,7 +45,8 @@
45
45
  "react": "^18.3.1",
46
46
  "tsx": "^4.19.3",
47
47
  "tyconoforge": "^0.1.0-beta.0",
48
- "yaml": "^2.7.0"
48
+ "yaml": "^2.7.0",
49
+ "yoga-layout": "3.1.0"
49
50
  },
50
51
  "devDependencies": {
51
52
  "@types/cors": "^2.8.17",