(base: string, notice: string | null = getUpdateNotice())
| 76 | * env or it will fail only in the weeks after a release ships. |
| 77 | */ |
| 78 | export function initializeInstructions(base: string, notice: string | null = getUpdateNotice()): string { |
| 79 | if (!notice) return base; |
| 80 | return ( |
| 81 | `${base}\n\n---\n${notice} This server keeps running the old version until ` + |
| 82 | `the user upgrades — mention it when convenient; do not run the upgrade yourself.` |
| 83 | ); |
| 84 | } |
| 85 | |
| 86 | /** Every tool this server defines, by name: the names a client's rewrite may touch. */ |
| 87 | const TOOL_NAMES: readonly string[] = tools.map((t) => t.name); |
no test coverage detected