@@ -50,12 +50,14 @@ import {
5050 ActorsGetOrCreateRequestSchema ,
5151 type ActorsGetOrCreateResponse ,
5252 ActorsGetOrCreateResponseSchema ,
53+ type ActorsListNamesResponse ,
54+ ActorsListNamesResponseSchema ,
5355 type ActorsListResponse ,
5456 ActorsListResponseSchema ,
5557 type Actor as ApiActor ,
5658} from "@/manager-api/actors" ;
5759import type { AnyClient } from "@/mod" ;
58- import type { RegistryConfig } from "@/registry/config" ;
60+ import { buildActorNames , type RegistryConfig } from "@/registry/config" ;
5961import type { DriverConfig , RunnerConfig } from "@/registry/run-config" ;
6062import type { ActorOutput , ManagerDriver } from "./driver" ;
6163import { actorGateway , createTestWebSocketProxy } from "./gateway" ;
@@ -373,6 +375,27 @@ function addManagerRoutes(
373375 } ) ;
374376 }
375377
378+ // GET /actors/names
379+ {
380+ const route = createRoute ( {
381+ method : "get" ,
382+ path : "/actors/names" ,
383+ request : {
384+ query : z . object ( {
385+ namespace : z . string ( ) ,
386+ } ) ,
387+ } ,
388+ responses : buildOpenApiResponses ( ActorsListNamesResponseSchema ) ,
389+ } ) ;
390+
391+ router . openapi ( route , async ( c ) => {
392+ const names = buildActorNames ( registryConfig ) ;
393+ return c . json < ActorsListNamesResponse > ( {
394+ names,
395+ } ) ;
396+ } ) ;
397+ }
398+
376399 // PUT /actors
377400 {
378401 const route = createRoute ( {
0 commit comments