MCPcopy Create free account
hub / github.com/agent-tower/core / getBaseCommand

Function getBaseCommand

packages/server/src/executors/cursor-agent.executor.ts:37–39  ·  view source on GitHub ↗

* 获取基础命令

()

Source from the content-addressed store, hash-verified

35/**
36 * 获取基础命令
37 */
38const CURSOR_AGENT_COMMANDS = ['agent', 'cursor-agent'] as const;
39
40async function resolveCursorAgentCommand(): Promise<string | null> {
41 for (const command of CURSOR_AGENT_COMMANDS) {
42 if (await which(command)) return command;

Callers 2

getAvailabilityInfoMethod · 0.70
buildCommandBuilderMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected