mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-18 16:02:24 +00:00
fix(coding-agent): use APP_NAME in export-html and tools-manager
This commit is contained in:
parent
d4d5051940
commit
6cd8bcdeb3
2 changed files with 9 additions and 9 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue