@@ -87,7 +87,8 @@ npm run healthcheck
8787
8888- ` npm run start ` - start the bot
8989- ` npm run dev ` - watch mode for local development
90- - ` npm run check ` - syntax validation
90+ - ` npm run check ` - TypeScript-aware type and syntax validation for the mixed JS/TS codebase
91+ - ` npm run typecheck ` - run the TypeScript compiler in ` --noEmit ` mode
9192- ` npm run lint ` - ESLint for source, tests, scripts, and local JS/CJS config files
9293- ` npm run lint:fix ` - apply safe lint fixes
9394- ` npm run format ` - format repository files with Prettier
@@ -102,7 +103,7 @@ npm run healthcheck
102103``` text
103104Telegram Message
104105 -> src/bot/handlers.js
105- -> src/orchestrator/router.js
106+ -> src/orchestrator/router.ts
106107 -> src/runner/ptyManager.js (coding tasks -> Codex CLI)
107108 -> src/orchestrator/skills/*.js (general tasks -> MCP/GitHub subagents)
108109 -> src/bot/formatter.js
@@ -112,7 +113,7 @@ Telegram Message
112113Core modules:
113114
114115- ` src/index.js ` : bootstrap and lifecycle
115- - ` src/config.js ` : env parsing and validation
116+ - ` src/config.ts ` : env parsing and validation
116117- ` src/bot/ ` : auth middleware, formatting, command handlers
117118- ` src/orchestrator/ ` : routing + MCP client + skills
118119- ` src/runner/ptyManager.js ` : Codex PTY process + streaming
@@ -153,8 +154,8 @@ How they are triggered:
153154
154155Where this happens:
155156
156- - Router decision order: [ router.js ] ( /Users/ding/Documents/Code/Github/codex-telegram-claws/src/orchestrator/router.js )
157- - Skill toggles per chat: [ skillRegistry.js ] ( /Users/ding/Documents/Code/Github/codex-telegram-claws/src/orchestrator/skillRegistry.js )
157+ - Router decision order: [ router.ts ] ( /Users/ding/Documents/Code/Github/codex-telegram-claws/src/orchestrator/router.ts )
158+ - Skill toggles per chat: [ skillRegistry.ts ] ( /Users/ding/Documents/Code/Github/codex-telegram-claws/src/orchestrator/skillRegistry.ts )
158159- Telegram command entrypoints: [ handlers.js] ( /Users/ding/Documents/Code/Github/codex-telegram-claws/src/bot/handlers.js )
159160
160161Operationally, subagents are the bot's control plane. Codex remains the coding execution plane.
0 commit comments