@@ -182,7 +182,7 @@ async function getAgentConfigByIdFromMongoDB(
182182// POST /api/agent-configs - Create a new agent config
183183export const POST = withErrorHandler ( async ( request : NextRequest ) => {
184184 if ( STORAGE_TYPE !== "mongodb" ) {
185- throw new ApiError ( "Agent Skills requires MongoDB to be configured" , 503 ) ;
185+ throw new ApiError ( "Skills requires MongoDB to be configured" , 503 ) ;
186186 }
187187
188188 return await withAuth ( request , async ( req , user ) => {
@@ -230,7 +230,7 @@ export const POST = withErrorHandler(async (request: NextRequest) => {
230230// GET /api/agent-configs - Retrieve all agent configs (system + user's own)
231231export const GET = withErrorHandler ( async ( request : NextRequest ) => {
232232 if ( STORAGE_TYPE !== "mongodb" ) {
233- throw new ApiError ( "Agent Skills requires MongoDB to be configured" , 503 ) ;
233+ throw new ApiError ( "Skills requires MongoDB to be configured" , 503 ) ;
234234 }
235235
236236 const { searchParams } = new URL ( request . url ) ;
@@ -268,7 +268,7 @@ export const GET = withErrorHandler(async (request: NextRequest) => {
268268// PUT /api/agent-configs?id=<configId> - Update an existing agent config
269269export const PUT = withErrorHandler ( async ( request : NextRequest ) => {
270270 if ( STORAGE_TYPE !== "mongodb" ) {
271- throw new ApiError ( "Agent Skills requires MongoDB to be configured" , 503 ) ;
271+ throw new ApiError ( "Skills requires MongoDB to be configured" , 503 ) ;
272272 }
273273
274274 const { searchParams } = new URL ( request . url ) ;
@@ -324,7 +324,7 @@ export const PUT = withErrorHandler(async (request: NextRequest) => {
324324// DELETE /api/agent-configs?id=<configId> - Delete an agent config
325325export const DELETE = withErrorHandler ( async ( request : NextRequest ) => {
326326 if ( STORAGE_TYPE !== "mongodb" ) {
327- throw new ApiError ( "Agent Skills requires MongoDB to be configured" , 503 ) ;
327+ throw new ApiError ( "Skills requires MongoDB to be configured" , 503 ) ;
328328 }
329329
330330 const { searchParams } = new URL ( request . url ) ;
0 commit comments