UNPKG

@lucidcms/core

Version:

The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.

2 lines 411 B
const e=e=>`output`in e&&`usage`in e,t=e=>e.mode===`async`&&(e.status===`queued`||e.status===`processing`),n=e=>e.status===`failed`,r=(e,t)=>[e.errorMessage,e.error?.message,e.message].find(e=>typeof e==`string`&&e.trim().length>0)??t;export{r as getCmsAiGenerateFailedMessage,t as isCmsAiGenerateAcceptedData,e as isCmsAiGenerateCompletedData,n as isCmsAiGenerateFailedData}; //# sourceMappingURL=utils.mjs.map