mirror of
https://github.com/KeygraphHQ/shannon.git
synced 2026-05-23 00:59:51 +02:00
b208949345
- Move error-handling, git-manager, prompt-manager, queue-validation, and reporting into src/services/ - Delete src/constants.ts — relocate AGENT_VALIDATORS and MCP_AGENT_MAPPING into session-manager.ts alongside agent definitions - Delete src/utils/output-formatter.ts — absorb filterJsonToolCalls and getAgentPrefix into ai/output-formatters.ts - Extract ActivityLogger interface into src/types/activity-logger.ts to break temporal/ → services circular dependency - Consolidate VulnType, ExploitationDecision into types/agents.ts and SessionMetadata into types/audit.ts - Remove dead timingResults/costResults globals from utils/metrics.ts and all consumers
36 lines
882 B
TypeScript
36 lines
882 B
TypeScript
// Copyright (C) 2025 Keygraph, Inc.
|
|
//
|
|
// This program is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU Affero General Public License version 3
|
|
// as published by the Free Software Foundation.
|
|
|
|
/**
|
|
* Audit system type definitions
|
|
*/
|
|
|
|
/**
|
|
* Cross-cutting session metadata used by services, temporal, and audit.
|
|
*/
|
|
export interface SessionMetadata {
|
|
id: string;
|
|
webUrl: string;
|
|
repoPath?: string;
|
|
outputPath?: string;
|
|
[key: string]: unknown;
|
|
}
|
|
|
|
/**
|
|
* Result data passed to audit system when an agent execution ends.
|
|
* Used by both AuditSession and MetricsTracker.
|
|
*/
|
|
export interface AgentEndResult {
|
|
attemptNumber: number;
|
|
duration_ms: number;
|
|
cost_usd: number;
|
|
success: boolean;
|
|
model?: string | undefined;
|
|
error?: string | undefined;
|
|
checkpoint?: string | undefined;
|
|
isFinalAttempt?: boolean | undefined;
|
|
}
|