* Get the current commit SHA for the checked-out repository.
()
| 144 | * Get the current commit SHA for the checked-out repository. |
| 145 | */ |
| 146 | function getCurrentCommitSha() { |
| 147 | return execSync("git --no-pager rev-parse HEAD", { |
| 148 | cwd: ROOT_FOLDER, |
| 149 | encoding: "utf8", |
| 150 | stdio: ["pipe", "pipe", "pipe"], |
| 151 | }).trim(); |
| 152 | } |
| 153 | |
| 154 | /** |
| 155 | * Generate agents metadata |