feat(cli): port complete entry point from JavaScript to TypeScript

- Port bin/ccs.js (1033 LOC) to src/ccs.ts (~1000 LOC)
- Implement all command handlers: version, help, doctor, sync, update, auth
- Add profile routing: settings-based (glm, glmt, kimi) and account-based
- Add GLMT proxy lifecycle: spawn, ready signal, cleanup on exit
- Add delegation routing (-p flag) to DelegationHandler
- Add shell completion installer
- Add public isHealthy() method to Doctor class
- All 39 tests passing
This commit is contained in:
kaitranntt committed 2025-11-26 20:13:39 -05:00
1 parent 3cb52e6917
commit 26e279decf
2 files changed
+968 -26

No files matched your search

+961 -26
View File
File diff suppressed because it is too large. Load diff
+7
View File
@@ -758,6 +758,13 @@ class Doctor {
healthy: this.results.isHealthy()
}, null, 2);
}
/**
* Check if the health check results are healthy
*/
isHealthy(): boolean {
return this.results.isHealthy();
}
}
export default Doctor;