MCPcopy Create free account
hub / github.com/TanStack/cli / addHiddenAgentFlag

Function addHiddenAgentFlag

packages/cli/src/cli.ts:92–102  ·  view source on GitHub ↗
(cmd: T)

Source from the content-addressed store, hash-verified

90const AGENT_FLAG = '--agent'
91
92function addHiddenAgentFlag<T extends Command>(cmd: T) {
93 if (cmd.options.some((option) => option.long === AGENT_FLAG)) {
94 return cmd
95 }
96
97 cmd.addOption(
98 new Option(AGENT_FLAG, 'internal: invocation originated from an agent').hideHelp(),
99 )
100
101 return cmd
102}
103
104function getInvocationTelemetryProperties() {
105 return {

Callers 2

cliFunction · 0.85
configureCreateCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected