AgentAuditEntry constructor

const AgentAuditEntry({
  1. int opId = 0,
  2. required String op,
  3. required String? targetId,
  4. String? locator,
  5. required AgentAuditEntryPoint entry,
  6. required String scopeId,
  7. required bool allowed,
  8. String? denyReason,
  9. int? gate,
  10. int undoRef = -1,
  11. required DateTime appliedAt,
  12. required String toolName,
  13. String? programId,
  14. String? programSha256,
  15. required AgentAuditOutcome outcome,
  16. int? mutationCount,
  17. int? logBytes,
})

Implementation

const AgentAuditEntry({
  this.opId = 0,
  required this.op,
  required this.targetId,
  this.locator,
  required this.entry,
  required this.scopeId,
  required this.allowed,
  this.denyReason,
  this.gate,
  this.undoRef = -1,
  required this.appliedAt,
  required this.toolName,
  this.programId,
  this.programSha256,
  required this.outcome,
  this.mutationCount,
  this.logBytes,
}) : assert(allowed == (denyReason == null)),
     assert(gate == null || !allowed);