MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / previewServerName

Function previewServerName

src/artifacts/preview.ts:205–207  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

203
204/** A stable static-server process name for an artifact. */
205export function previewServerName(id: string): string {
206 return `artifact-preview:${id}`;
207}
208
209/** Derive a deterministic-ish port in the 4500–4999 range from the artifact id. */
210export function previewPort(id: string): number {

Callers 2

executeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected