also looking at this
fix(app): report a crash instead of vanishing, and cap the log
#55
4 files
+252
-5
| @@ -17,6 +17,14 @@ export const DATA_DIR = join(homedir(), 'Library', 'Application Support', 'Uplin | ||
| 17 | 17 | export const SETTINGS_PATH = join(DATA_DIR, 'settings.json') |
| 18 | 18 | export const DATABASE_PATH = join(DATA_DIR, 'uplink.sqlite') |
| 19 | 19 | export const LOG_PATH = join(homedir(), 'Library', 'Logs', 'Uplink.log') |
| 20 | /** | |
| 21 | * Rotate past this. The watcher polls every two seconds and appends whatever | |
| 22 | * it finds, so the file is unbounded on a Mac that is simply left running. | |
| 23 | * One rotation is kept as `Uplink.log.1`, because the lines leading up to a | |
| 24 | * crash are the ones worth reading and a rotation triggered by that crash's | |
| 25 | * own output would otherwise throw them away. | |
| 26 | */ | |
| 27 | export const LOG_MAX_BYTES = 5 * 1024 * 1024 | |
| 20 | 28 | |
| 21 | 29 | const KEYCHAIN_SERVICE = 'com.stacksjs.uplink' |
| 22 | 30 | // Claude Code's token. Codex keeps its own credentials in CODEX_HOME via |