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

Function getAgentIdFromArgs

extensions/cli/src/tools/uploadArtifact.ts:13–20  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

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

Callers 1

uploadArtifact.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected