@@ -46,12 +46,14 @@ import {
4646 ActorsGetOrCreateRequestSchema ,
4747 type ActorsGetOrCreateResponse ,
4848 ActorsGetOrCreateResponseSchema ,
49+ type ActorsListNamesResponse ,
50+ ActorsListNamesResponseSchema ,
4951 type ActorsListResponse ,
5052 ActorsListResponseSchema ,
5153 type Actor as ApiActor ,
5254} from "@/manager-api/actors" ;
5355import type { AnyClient } from "@/mod" ;
54- import type { RegistryConfig } from "@/registry/config" ;
56+ import { buildActorNames , type RegistryConfig } from "@/registry/config" ;
5557import type { DriverConfig , RunnerConfig } from "@/registry/run-config" ;
5658import type { ActorOutput , ManagerDriver } from "./driver" ;
5759import { actorGateway , createTestWebSocketProxy } from "./gateway" ;
@@ -369,6 +371,27 @@ function addManagerRoutes(
369371 } ) ;
370372 }
371373
374+ // GET /actors/names
375+ {
376+ const route = createRoute ( {
377+ method : "get" ,
378+ path : "/actors/names" ,
379+ request : {
380+ query : z . object ( {
381+ namespace : z . string ( ) ,
382+ } ) ,
383+ } ,
384+ responses : buildOpenApiResponses ( ActorsListNamesResponseSchema ) ,
385+ } ) ;
386+
387+ router . openapi ( route , async ( c ) => {
388+ const names = buildActorNames ( registryConfig ) ;
389+ return c . json < ActorsListNamesResponse > ( {
390+ names,
391+ } ) ;
392+ } ) ;
393+ }
394+
372395 // PUT /actors
373396 {
374397 const route = createRoute ( {
0 commit comments