* Extract the agent ID from the --id command line flag
()
| 11 | * Extract the agent ID from the --id command line flag |
| 12 | */ |
| 13 | function 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 | |
| 22 | export const uploadArtifactTool: Tool = { |
| 23 | name: "UploadArtifact", |