MCPcopy Create free account
hub / github.com/callstack/agent-device / listAppsCommand

Function listAppsCommand

src/commands/management/runtime/apps.ts:146–159  ·  view source on GitHub ↗
(runtime, options = {})

Source from the content-addressed store, hash-verified

144 ListAppsCommandOptions | undefined,
145 ListAppsCommandResult
146> = async (runtime, options = {}): Promise<ListAppsCommandResult> => {
147 if (!runtime.backend.listApps) {
148 throw new AppError('UNSUPPORTED_OPERATION', 'apps.list is not supported by this backend');
149 }
150
151 const apps = await runtime.backend.listApps(
152 toAppBackendContext(runtime, options),
153 assertResolvedAppsFilter(options.filter),
154 );
155 return {
156 kind: 'appsList',
157 apps,
158 };
159};
160
161export const getAppStateCommand: RuntimeCommand<
162 GetAppStateCommandOptions,

Callers

nothing calls this directly

Calls 2

assertResolvedAppsFilterFunction · 0.90
toAppBackendContextFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…