Files
pi-subagents/src/constants.ts

12 lines
471 B
TypeScript

import * as path from "node:path";
import { fileURLToPath } from "node:url";
import { homedir } from "node:os";
const SRC_DIR = path.dirname(fileURLToPath(import.meta.url));
export const EXTENSION_DIR = path.dirname(SRC_DIR);
export const EXTENSION_ENTRY = path.join(EXTENSION_DIR, "index.ts");
export const SUBAGENTS_DIR = path.join(homedir(), ".pi", "agent", "subagents");
export const FINALIZE_TOOL_NAME = "subagent_finalize";
export const MAX_FINALIZE_RETRIES = 2;