UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

30 lines (29 loc) • 1.78 kB
import { r as WorkerTaskError } from "./src-WCJCjrey.mjs"; //#region src/agents/prepared-model-catalog.errors.ts var PreparedModelCatalogConfigReplacedError = class extends Error { constructor(agentDir) { super(`prepared model catalog owner config was replaced during the read (${agentDir})`); this.name = "PreparedModelCatalogConfigReplacedError"; } }; var PreparedModelCatalogAdmissionStalledError = class extends Error { constructor(pluginId, idleMs) { super(`${pluginId ? `Plugin ${pluginId} native reference verification` : "Catalog preparation"} stalled after ${idleMs} ms without progress; reload the plugin or restart the Gateway to retry`); this.name = "PreparedModelCatalogAdmissionStalledError"; } }; var PreparedModelCatalogGenerationMismatchError = class extends Error { constructor(agentDir, generationFingerprint, reconstructedFingerprint) { super(`prepared model catalog worker reconstructed a different runtime generation for ${agentDir} (owner=${generationFingerprint} worker=${reconstructedFingerprint})`); this.agentDir = agentDir; this.generationFingerprint = generationFingerprint; this.reconstructedFingerprint = reconstructedFingerprint; this.name = "PreparedModelCatalogGenerationMismatchError"; } }; /** Only observed native verification stalls retire admission without automatic recovery. */ function createPreparedModelCatalogPreparationTimeout(pluginId, idleMs) { return pluginId ? new PreparedModelCatalogAdmissionStalledError(pluginId, idleMs) : new WorkerTaskError("worker task timed out", "timeout"); } //#endregion export { createPreparedModelCatalogPreparationTimeout as i, PreparedModelCatalogConfigReplacedError as n, PreparedModelCatalogGenerationMismatchError as r, PreparedModelCatalogAdmissionStalledError as t };