fix(coding-agent): use APP_NAME in export-html and tools-manager

This commit is contained in:
Mario Zechner 2025-12-03 16:27:49 +01:00
parent d4d5051940
commit 6cd8bcdeb3
2 changed files with 9 additions and 9 deletions

View file

@ -5,7 +5,7 @@ import { arch, platform } from "os";
import { join } from "path";
import { Readable } from "stream";
import { finished } from "stream/promises";
import { getToolsDir } from "./config.js";
import { APP_NAME, getToolsDir } from "./config.js";
const TOOLS_DIR = getToolsDir();
@ -93,7 +93,7 @@ export function getToolPath(tool: "fd" | "rg"): string | null {
// Fetch latest release version from GitHub
async function getLatestVersion(repo: string): Promise<string> {
const response = await fetch(`https://api.github.com/repos/${repo}/releases/latest`, {
headers: { "User-Agent": "pi-coding-agent" },
headers: { "User-Agent": `${APP_NAME}-coding-agent` },
});
if (!response.ok) {