Commit ba4d0bb
authored
Include server.ts in typecheck; drop unused AgentContext fields (#3)
server.ts built AgentContext objects with sentiment, sentimentScore,
entities, category, and urgency — none of which are declared on
AgentContext or ever read by SmartAgent (agent-core.ts only touches
complaintId, rawText, userName, and previousComments). Rather than
widen the interface with fields nothing consumes, drop them from the
two call sites in server.ts.
Also add server.ts to tsconfig's include so CI's tsc --noEmit
actually covers the Express entrypoint, and widen rootDir to "."
since server.ts lives outside src/ (rootDir only affects emit
layout; nothing in the build/Docker path reads dist/, so this is
safe).1 parent 4b455da commit ba4d0bb
2 files changed
Lines changed: 2 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1216 | 1216 | | |
1217 | 1217 | | |
1218 | 1218 | | |
1219 | | - | |
1220 | | - | |
1221 | | - | |
1222 | | - | |
1223 | | - | |
1224 | 1219 | | |
1225 | 1220 | | |
1226 | 1221 | | |
| |||
1252 | 1247 | | |
1253 | 1248 | | |
1254 | 1249 | | |
1255 | | - | |
1256 | | - | |
1257 | | - | |
1258 | | - | |
1259 | | - | |
1260 | 1250 | | |
1261 | 1251 | | |
1262 | 1252 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
0 commit comments