MCPcopy
hub / github.com/continuedev/continue / getAgentIdFromArgs

Function getAgentIdFromArgs

extensions/cli/src/tools/reportFailure.ts:16–23  ·  view source on GitHub ↗

* Extract the agent ID from the --id command line flag

()

Source from the content-addressed store, hash-verified

14 * Extract the agent ID from the --id command line flag
15 */
16function getAgentIdFromArgs(): string | undefined {
17 const args = process.argv;
18 const idIndex = args.indexOf("--id");
19 if (idIndex !== -1 && idIndex + 1 < args.length) {
20 return args[idIndex + 1];
21 }
22 return undefined;
23}
24
25export const reportFailureTool: Tool = {
26 name: "ReportFailure",

Callers 1

reportFailure.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected