Skip to content

Commit 016da13

Browse files
committed
Bump server/shared: stateless Yemot logs, MCP SDK, TypeScript 5
- server/shared at nra-server main: each step of a stateless call is logged once, and a mid-call hangup replay is logged - shared main also brings the MCP module, which BaseNraAppModule imports: add @modelcontextprotocol/sdk 1.32.1 and zod ^3.25.76, typescript ~5.6.3 (per CONSUMER_CHANGES.md) - yemot handler test: a regex /s flag (needs es2018, now type-checked by TS 5) becomes [\s\S]; israelTimeAt pins a summer day, since its fixed UTC+3 offset broke the deadline tests once Israel winter time began Part of buzz-code/ops#20 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018cbUAz3gpa3f4WrabUVz3a
1 parent 6a83a81 commit 016da13

4 files changed

Lines changed: 409 additions & 30 deletions

File tree

‎server/package.json‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"@aws-sdk/client-s3": "^3.1079.0",
3535
"@dataui/crud": "^5.2.3",
3636
"@dataui/crud-typeorm": "^5.2.2",
37+
"@modelcontextprotocol/sdk": "1.32.1",
3738
"@nestjs-modules/mailer": "^1.8.1",
3839
"@nestjs/axios": "^2.0.0",
3940
"@nestjs/common": "^9.0.0",
@@ -53,10 +54,10 @@
5354
"axios": "^1.3.4",
5455
"bcrypt": "^5.1.0",
5556
"change-case": "^4.1.2",
56-
"cron-parser": "^4.9.0",
5757
"class-transformer": "^0.5.1",
5858
"class-validator": "0.13",
5959
"cookie-parser": "^1.4.6",
60+
"cron-parser": "^4.9.0",
6061
"exceljs": "^4.3.0",
6162
"gematriya": "^2.0.0",
6263
"handlebars": "^4.7.7",
@@ -82,7 +83,8 @@
8283
"typeorm": "^0.3.10",
8384
"typeorm-cache": "^1.1.3",
8485
"xlsx": "^0.18.5",
85-
"yemot-router2": "^6.2.0"
86+
"yemot-router2": "^6.2.0",
87+
"zod": "^3.25.76"
8688
},
8789
"devDependencies": {
8890
"@jest/globals": "^29.7.0",
@@ -111,6 +113,6 @@
111113
"ts-loader": "^9.2.3",
112114
"ts-node": "^10.0.0",
113115
"tsconfig-paths": "^4.2.0",
114-
"typescript": "^4.7.4"
116+
"typescript": "~5.6.3"
115117
}
116-
}
118+
}

‎server/src/yemot-handler.service.test.ts‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@ import { YemotHandlerService } from './yemot-handler.service';
66
* Returns a Date that, when read with `toLocaleString` in Asia/Jerusalem,
77
* represents the given local hour:minute on the current day.
88
*/
9+
// A fixed summer day, when Israel is UTC+3 - "today" broke these tests once winter time began.
910
function israelTimeAt(hour: number, minute: number): Date {
10-
const now = new Date();
11-
const utcMs = Date.UTC(now.getFullYear(), now.getMonth(), now.getDate(), hour - 3, minute);
12-
return new Date(utcMs);
11+
return new Date(Date.UTC(2026, 5, 15, hour - 3, minute));
1312
}
1413

1514
// ---- Prompts reused across scenario steps ----
@@ -1020,7 +1019,7 @@ describe('YemotHandlerService — react-admin-nestjs', () => {
10201019
],
10211020
},
10221021
})
1023-
.systemHangsUp(/Teacher A.*Teacher B/s)
1022+
.systemHangsUp(/Teacher A[\s\S]*Teacher B/)
10241023
.build();
10251024

10261025
const result = await runner.run(scenario);

0 commit comments

Comments
 (0)