fix lint for clawhub readiness types

This commit is contained in:
Mariano Belinky
2026-05-02 20:32:45 +02:00
parent 75d9ef04b8
commit a0168232b5
2 changed files with 7 additions and 7 deletions

View File

@@ -213,7 +213,7 @@ export function buildPreferredClawHubSpec(raw: string): string | null {
}
function normalizeReadinessPhase(readiness: ClawHubPackageReadiness): string {
return normalizeLowercaseStringOrEmpty(String(readiness.phase ?? readiness.status ?? ""));
return normalizeLowercaseStringOrEmpty(readiness.phase ?? readiness.status ?? "");
}
export function isClawHubReadinessInstallReady(

View File

@@ -60,8 +60,8 @@ export type ClawHubArtifactScanState =
| "suspicious"
| "malicious"
| "not-run"
| string;
export type ClawHubArtifactModerationState = "approved" | "quarantined" | "revoked" | string;
| (string & {});
export type ClawHubArtifactModerationState = "approved" | "quarantined" | "revoked" | (string & {});
export type ClawHubResolvedArtifact =
| {
source: "clawhub";
@@ -115,7 +115,7 @@ export type ClawHubPackageReadinessPhase =
| "metadata-ready"
| "blocked"
| "ready-for-openclaw"
| string;
| (string & {});
export type ClawHubPackageReadiness = {
ready?: boolean | null;
readyForOpenClaw?: boolean | null;
@@ -124,12 +124,12 @@ export type ClawHubPackageReadiness = {
status?: ClawHubPackageReadinessPhase | null;
package?: {
name?: string | null;
family?: ClawHubPackageFamily | string | null;
channel?: ClawHubPackageChannel | string | null;
family?: ClawHubPackageFamily | (string & {}) | null;
channel?: ClawHubPackageChannel | (string & {}) | null;
isOfficial?: boolean | null;
} | null;
packageName?: string | null;
artifactKind?: ClawHubArtifactKind | string | null;
artifactKind?: ClawHubArtifactKind | (string & {}) | null;
blockers?: string[];
scanState?: ClawHubArtifactScanState | null;
moderationState?: ClawHubArtifactModerationState | null;