fix(coding-agent): support PI_CODING_AGENT_DIR env var in example extensions (#2009)
This commit is contained in:
@@ -21,14 +21,13 @@
|
||||
*/
|
||||
|
||||
import type { TextContent } from "@mariozechner/pi-ai";
|
||||
import type { ExtensionAPI } from "@mariozechner/pi-coding-agent";
|
||||
import { type ExtensionAPI, getAgentDir } from "@mariozechner/pi-coding-agent";
|
||||
import { Type } from "@sinclair/typebox";
|
||||
import { appendFileSync, constants, readFileSync } from "fs";
|
||||
import { access, readFile } from "fs/promises";
|
||||
import { homedir } from "os";
|
||||
import { join, resolve } from "path";
|
||||
|
||||
const LOG_FILE = join(homedir(), ".pi", "agent", "read-access.log");
|
||||
const LOG_FILE = join(getAgentDir(), "read-access.log");
|
||||
|
||||
// Paths that are blocked from reading
|
||||
const BLOCKED_PATTERNS = [
|
||||
|
||||
Reference in New Issue
Block a user