/** * Git and GitHub actions performed by agents inside runs never touch web routes, * so this observer detects their externally-visible side effects in the command * and delegates recording to the factory-owned audit domain. */ import type { RequestContext } from '@mastra/core/request-context'; import type { AuditAgentEmitter } from './domain.js'; interface ToolObserverContext { toolName: string; input: unknown; output?: unknown; error?: unknown; context: RequestContext; } /** * Detect externally-visible git and GitHub side effects in a completed tool * call and record `factory.agent.*` audit events for them. One command can emit * multiple events (`git commit && git push` emits both). Never throws. * * `resolveRepositorySlugs` names the repositories the session may target so a * pull request can be attributed to one of them; a URL elsewhere is still * audited, with a warning and no `repository`. */ export declare function observeAgentGitAction({ audit, toolContext, resolveRepositorySlugs, }: { audit: AuditAgentEmitter; toolContext: ToolObserverContext; resolveRepositorySlugs?: (sessionId: string) => Promise; }): Promise; export {}; //# sourceMappingURL=agent-audit.d.ts.map