Add pi-langfuse extension (Langfuse LLM observability for pi) — vendored from npm 1.5.8

This commit is contained in:
2026-08-03 20:09:58 +10:00
parent 0603c29216
commit bc91a15905
27 changed files with 9219 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
import { homedir } from "node:os";
import { resolve } from "node:path";
export const CONFIG_DIR = resolve(homedir(), ".pi", "agent", "pi-langfuse");
export const CONFIG_PATH = resolve(CONFIG_DIR, "config.json");
export const DEFAULT_LANGFUSE_HOST = "https://cloud.langfuse.com";
export const MAX_STRING_LENGTH = 12_000;
export const MAX_TOOL_PAYLOAD_LENGTH = 24_000;
export const MAX_DEPTH = 6;
export const MAX_ARRAY_ITEMS = 50;
export const MAX_OBJECT_KEYS = 80;
export const MAX_PAYLOAD_NODES = 2_000;