Documentation / @agentick/gateway / AppRegistry
Class: AppRegistry
Defined in: gateway/src/app-registry.ts:17
Constructors
Constructor
new AppRegistry(
apps,defaultApp):AppRegistry
Defined in: gateway/src/app-registry.ts:21
Parameters
apps
Record<string, App>
defaultApp
string
Returns
AppRegistry
Accessors
defaultId
Get Signature
get defaultId():
string
Defined in: gateway/src/app-registry.ts:56
Get the default app ID
Returns
string
size
Get Signature
get size():
number
Defined in: gateway/src/app-registry.ts:84
Get app count
Returns
number
Methods
all()
all():
AppInfo[]
Defined in: gateway/src/app-registry.ts:77
Get all apps
Returns
AppInfo[]
get()
get(
id):AppInfo|undefined
Defined in: gateway/src/app-registry.ts:42
Get an app by ID
Parameters
id
string
Returns
AppInfo | undefined
getDefault()
getDefault():
AppInfo
Defined in: gateway/src/app-registry.ts:49
Get the default app
Returns
AppInfo
has()
has(
id):boolean
Defined in: gateway/src/app-registry.ts:63
Check if an app exists
Parameters
id
string
Returns
boolean
ids()
ids():
string[]
Defined in: gateway/src/app-registry.ts:70
Get all app IDs
Returns
string[]
resolve()
resolve(
id?):AppInfo
Defined in: gateway/src/app-registry.ts:91
Resolve an app ID, falling back to default
Parameters
id?
string
Returns
AppInfo