We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c9e752 commit 267612cCopy full SHA for 267612c
common/src/util/agent-template-validation.ts
@@ -48,11 +48,13 @@ export async function validateSpawnableAgents(
48
// Check if agent exists in database.
49
const agent = await fetchAgent(agentId, version, publisherId)
50
if (!agent) {
51
- invalidIds.push(givenAgentId)
52
- validationErrors.push({
53
- filePath: givenAgentId,
54
- message: `Invalid agent ID: ${givenAgentId}. Agent not found in database.`,
55
- })
+ if (process.env.NODE_ENV !== 'development') {
+ invalidIds.push(givenAgentId)
+ validationErrors.push({
+ filePath: givenAgentId,
+ message: `Invalid agent ID: ${givenAgentId}. Agent not found in database.`,
56
+ })
57
+ }
58
continue
59
}
60
availableAgentTypes.push(givenAgentId)
0 commit comments