snapshot of https://github.com/shadcn-ui/ui.git (main, 2026-09-15; blobs > 131072B omitted)
This commit is contained in:
23
apps/v4/lib/registry-health/state.ts
Normal file
23
apps/v4/lib/registry-health/state.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
import type { RegistryMonitorEntryState } from "./schema"
|
||||
|
||||
function createRegistryMonitorEntryState(now: Date) {
|
||||
return {
|
||||
firstObservedAt: now.toISOString(),
|
||||
status: "observing",
|
||||
consecutiveSuccessfulIndexes: 0,
|
||||
consecutiveIndexFailures: 0,
|
||||
availabilityRecoveryRequired: false,
|
||||
itemCursor: 0,
|
||||
itemNames: [],
|
||||
recentIndex: [],
|
||||
recentDryRuns: [],
|
||||
daily: [],
|
||||
latestHygiene: {
|
||||
contentTypeJson: null,
|
||||
noDuplicateNames: null,
|
||||
nameMatches: null,
|
||||
},
|
||||
} satisfies RegistryMonitorEntryState
|
||||
}
|
||||
|
||||
export { createRegistryMonitorEntryState }
|
||||
Reference in New Issue
Block a user