Component evidence

Media Task Constants (media/constants.ts)

lobsterai · src/shared/media/constants.ts · typescript · MIT
aifileslang:typescripttag:constants

Defines status enums, phases, protocols, and delivery states for asynchronous media generation tasks. Reuse when building media processing or AI generation pipelines.

Source preview first 800 characters · full source over MCP
// Source: https://github.com/netease-youdao/lobsterai | License: MIT | Copyright 2026 NetEase Youdao
// Provided via justclaw.it.com; keep this notice with the code.
export const MediaTaskStatus = {
  Pending: 'pending',
  Processing: 'processing',
  Succeeded: 'succeeded',
  Failed: 'failed',
  Timeout: 'timeout',
  Cancelled: 'cancelled',
  Background: 'background',
  PollingStopped: 'polling_stopped',
} as const;

export const TERMINAL_MEDIA_TASK_STATUSES = new Set<string>([
  MediaTaskStatus.Succeeded, MediaTaskStatus.Failed, MediaTaskStatus.Timeout, MediaTaskStatus.Cancelled,
]);

export const MediaTaskPhase = {
  Queued: 'queued',
  Submitting: 'submitting',
  Generating: 'generating',
  Verifying: 'verifying',
  Fetching: 'fetching',
  Finished: 'finished',
} as const;

export cons

... (truncated -- full source via MCP)