MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / firstWorkspaceRuntime

Function firstWorkspaceRuntime

src/workspaces/service.ts:320–324  ·  view source on GitHub ↗
(wsMeta: WorkspaceMeta)

Source from the content-addressed store, hash-verified

318 };
319
320 const firstWorkspaceRuntime = (wsMeta: WorkspaceMeta): string | undefined =>
321 wsMeta.agents.find((id) => {
322 const adapter = adapters.get(id);
323 return adapter ? isAgentRuntime(adapter) : false;
324 });
325
326 const validRuntimeForWorkspace = (wsMeta: WorkspaceMeta, agentId: string | null): string | undefined => {
327 if (!agentId || !wsMeta.agents.includes(agentId)) return undefined;

Callers 1

Calls 2

isAgentRuntimeFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected