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

Function validRuntimeForWorkspace

src/workspaces/service.ts:326–330  ·  view source on GitHub ↗
(wsMeta: WorkspaceMeta, agentId: string | null)

Source from the content-addressed store, hash-verified

324 });
325
326 const validRuntimeForWorkspace = (wsMeta: WorkspaceMeta, agentId: string | null): string | undefined => {
327 if (!agentId || !wsMeta.agents.includes(agentId)) return undefined;
328 const adapter = adapters.get(agentId);
329 return adapter && isAgentRuntime(adapter) ? agentId : undefined;
330 };
331
332 /**
333 * Default for scheduled issues with no frontmatter `agent`: issue-specific

Callers 1

Calls 2

isAgentRuntimeFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected