Commit 0bcf573
committed
fix: replace top-level await with synchronous require in AgentKeyManager
The top-level `await import('node:crypto')` breaks CJS output format
(esbuild/tsx emit error: "Top-level await is currently not supported
with the cjs output format"). Since node:crypto is a built-in module,
a synchronous require() works in all Node.js environments and avoids
the ESM-only TLA constraint.1 parent 89036be commit 0bcf573
1 file changed
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
15 | 21 | | |
16 | 22 | | |
17 | | - | |
18 | | - | |
| 23 | + | |
| 24 | + | |
19 | 25 | | |
20 | | - | |
| 26 | + | |
21 | 27 | | |
22 | 28 | | |
23 | 29 | | |
| |||
0 commit comments