import { type ProjectScope } from "../lib/project-context.js"; import type { AgentConfigClass, Scope } from "memax-sdk"; /** * Agent config discovery + write-path resolution — the single registry of * which on-disk files each agent owns. Detection is existence-based: every * candidate location is listed here and the sync engine filters to files * that actually exist. * * Two kinds of agents live in this registry: * - Coding agents (Claude Code, Cursor, Codex, …) — configs are project * conventions and rules files, mostly project-scoped. * - Personal agents (OpenClaw, Hermes) — configs are identity (SOUL.md) * and accumulated memory. These are irreplaceable, so coverage errs * toward inclusion — but NEVER settings files (.env, *.json, *.yaml * at the agent root): they routinely hold tokens and secrets. */ /** Files larger than this are skipped by sync — configs are stored inline * in Postgres, not object storage. */ export declare const MAX_AGENT_CONFIG_BYTES: number; export interface AgentConfigLocation { agent: string; label: string; path: string; filePath: string; scope: Scope; configClass: AgentConfigClass; } export interface ResolveAgentConfigWritePathOptions { cwd?: string; home?: string; currentProjectScope?: ProjectScope; findClaudeProjectDir?: (scope: Scope) => string | null; } export declare function findClaudeProjectDir(scope: Scope): string | null; export declare function resolveAgentConfigWritePath(agent: string, filePath: string, scope: Scope, options?: ResolveAgentConfigWritePathOptions): string | null; export declare function discoverAgentConfigs(): AgentConfigLocation[]; export declare function formatAgentName(id: string): string; //# sourceMappingURL=agent-configs-discovery.d.ts.map