(id: string)
| 208 | |
| 209 | /** Derive a deterministic-ish port in the 4500–4999 range from the artifact id. */ |
| 210 | export function previewPort(id: string): number { |
| 211 | let h = 0; |
| 212 | for (let i = 0; i < id.length; i++) h = (h * 31 + id.charCodeAt(i)) >>> 0; |
| 213 | return 4500 + (h % 500); |
| 214 | } |
| 215 | |
| 216 | /** A stable process/registry name for an artifact's LIVE server. */ |
| 217 | export function liveServerName(id: string): string { |
no outgoing calls
no test coverage detected