MCPcopy Index your code
hub / github.com/coder/coder / getAllAppsWithAgent

Function getAllAppsWithAgent

site/src/modules/tasks/apps.ts:11–22  ·  view source on GitHub ↗
(
	workspace: Workspace,
)

Source from the content-addressed store, hash-verified

9};
10
11export function getAllAppsWithAgent(
12 workspace: Workspace,
13): WorkspaceAppWithAgent[] {
14 return workspace.latest_build.resources
15 .flatMap((r) => r.agents ?? [])
16 .flatMap((agent) =>
17 agent.apps.map((app) => ({
18 ...app,
19 agent,
20 })),
21 );
22}

Callers 2

TaskPageFunction · 0.90
TaskAppsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected