diff --git a/packages/tools/official/sprites-list/package.json b/packages/tools/official/sprites-list/package.json index d07dcd3..3aa40a5 100644 --- a/packages/tools/official/sprites-list/package.json +++ b/packages/tools/official/sprites-list/package.json @@ -1,6 +1,6 @@ { "name": "@tpmjs/tools-sprites-list", - "version": "0.1.3", + "version": "0.1.4", "description": "List all sprites in the account with their current status and metadata", "type": "module", "keywords": [ diff --git a/packages/tools/official/sprites-list/src/index.ts b/packages/tools/official/sprites-list/src/index.ts index fcc9bc5..54b44b0 100644 --- a/packages/tools/official/sprites-list/src/index.ts +++ b/packages/tools/official/sprites-list/src/index.ts @@ -11,7 +11,7 @@ const SPRITES_API_BASE = 'https://api.sprites.dev/v1'; export interface Sprite { name: string; - status: 'creating' | 'running' | 'stopped' | 'error' | 'cold'; + status: 'creating' | 'running' | 'stopped' | 'error' | 'cold' | 'warm'; createdAt: string; runtime?: string; metadata?: Record; @@ -96,7 +96,8 @@ export const spritesListTool = tool({ // Validate status is a known value // Note: "cold" is returned for sprites that have been idle - if (status && !['creating', 'running', 'stopped', 'error', 'cold'].includes(status)) { + // Note: "warm" is returned for sprites that are warming up + if (status && !['creating', 'running', 'stopped', 'error', 'cold', 'warm'].includes(status)) { throw new Error(`Invalid sprite status: ${status}`); }