MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / validateSlug

Function validateSlug

packages/worker-utils/src/deployment-slug.ts:60–64  ·  view source on GitHub ↗
(slug: string)

Source from the content-addressed store, hash-verified

58
59/** Return a user-facing validation error, or undefined for a valid slug. */
60export function validateSlug(slug: string): string | undefined {
61 const result = slugSchema.safeParse(slug);
62 if (result.success) return undefined;
63 return result.error.issues[0]?.message;
64}
65
66// Mixed-theme word lists: nature/poetic, neutral, and tech
67// All words kept short (<=10 chars) to stay well within the 63-char slug limit.

Callers 2

handleSlugChangeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected