From a7a0cbb9882bcf7322363830bf9dec14d894b9df Mon Sep 17 00:00:00 2001 From: Ajax Davis Date: Fri, 16 Jan 2026 18:00:58 +1000 Subject: [PATCH] fix(sprites-list): add 'warm' to valid sprite statuses The Sprites API can return 'warm' status for sprites that are warming up. This was causing sprites-list to throw 'Invalid sprite status: warm' error. --- packages/tools/official/sprites-list/package.json | 2 +- packages/tools/official/sprites-list/src/index.ts | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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}`); }