/** * 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. */ export declare function observeAgentGitAction({ audit, toolContext, }: { audit: AuditAgentEmitter; toolContext: ToolObserverContext; }): Promise; export {}; //# sourceMappingURL=agent-audit.d.ts.map