/** * Workstream Name Policy Module * * Owns canonical workstream name validation and slug normalization. * Shared by CJS runtime (active-workstream-store.cjs, planning-workspace.cjs, * workstream.cjs) and SDK layer. * * Phase 6 (#3575): added hasInvalidPathSegment and isValidActiveWorkstreamName * from CJS bin/lib/workstream-name-policy.cjs to complete the MIGRATE_ME migration. */ /** * Validate a workstream name. * Allowed: alphanumeric, hyphens, underscores, dots. * Disallowed: empty, spaces, slashes, special chars, path traversal. * * Alias for isValidActiveWorkstreamName; provided for SDK-layer callers. */ export declare function validateWorkstreamName(name: string): boolean; /** * Convert a display name to a URL/filesystem-safe workstream slug. * Lowercases, collapses non-alphanumeric runs to hyphens, strips leading/trailing hyphens. */ export declare function toWorkstreamSlug(name: string): string; /** * Returns true when `name` contains a path separator, a bare dot, or a * dot-dot sequence — any of which would make the name unsafe for use as a * filesystem path segment. */ export declare function hasInvalidPathSegment(name: string): boolean; /** * Returns true when `name` is a valid active workstream name: * - Must start with alphanumeric * - May contain alphanumeric, dots, underscores, hyphens * - Must not contain path traversal sequences (..) */ export declare function isValidActiveWorkstreamName(name: string): boolean; //# sourceMappingURL=workstream-name-policy.d.ts.map