ProjectConfig constructor

ProjectConfig({
  1. List<String> allowedTools = const [],
  2. List<String> mcpContextUris = const [],
  3. Map<String, dynamic>? mcpServers,
  4. double? lastAPIDuration,
  5. double? lastAPIDurationWithoutRetries,
  6. double? lastToolDuration,
  7. double? lastCost,
  8. double? lastDuration,
  9. int? lastLinesAdded,
  10. int? lastLinesRemoved,
  11. int? lastTotalInputTokens,
  12. int? lastTotalOutputTokens,
  13. int? lastTotalCacheCreationInputTokens,
  14. int? lastTotalCacheReadInputTokens,
  15. int? lastTotalWebSearchRequests,
  16. double? lastFpsAverage,
  17. double? lastFpsLow1Pct,
  18. String? lastSessionId,
  19. Map<String, ModelUsageMetrics>? lastModelUsage,
  20. Map<String, int>? lastSessionMetrics,
  21. List<String>? exampleFiles,
  22. int? exampleFilesGeneratedAt,
  23. bool hasTrustDialogAccepted = false,
  24. bool hasCompletedProjectOnboarding = false,
  25. int projectOnboardingSeenCount = 0,
  26. bool hasNeomageMdExternalIncludesApproved = false,
  27. bool hasNeomageMdExternalIncludesWarningShown = false,
  28. List<String>? enabledMcpjsonServers,
  29. List<String>? disabledMcpjsonServers,
  30. bool? enableAllProjectMcpServers,
  31. List<String>? disabledMcpServers,
  32. List<String>? enabledMcpServers,
  33. Map<String, dynamic>? activeWorktreeSession,
  34. String? remoteControlSpawnMode,
})

Implementation

ProjectConfig({
  this.allowedTools = const [],
  this.mcpContextUris = const [],
  this.mcpServers,
  this.lastAPIDuration,
  this.lastAPIDurationWithoutRetries,
  this.lastToolDuration,
  this.lastCost,
  this.lastDuration,
  this.lastLinesAdded,
  this.lastLinesRemoved,
  this.lastTotalInputTokens,
  this.lastTotalOutputTokens,
  this.lastTotalCacheCreationInputTokens,
  this.lastTotalCacheReadInputTokens,
  this.lastTotalWebSearchRequests,
  this.lastFpsAverage,
  this.lastFpsLow1Pct,
  this.lastSessionId,
  this.lastModelUsage,
  this.lastSessionMetrics,
  this.exampleFiles,
  this.exampleFilesGeneratedAt,
  this.hasTrustDialogAccepted = false,
  this.hasCompletedProjectOnboarding = false,
  this.projectOnboardingSeenCount = 0,
  this.hasNeomageMdExternalIncludesApproved = false,
  this.hasNeomageMdExternalIncludesWarningShown = false,
  this.enabledMcpjsonServers,
  this.disabledMcpjsonServers,
  this.enableAllProjectMcpServers,
  this.disabledMcpServers,
  this.enabledMcpServers,
  this.activeWorktreeSession,
  this.remoteControlSpawnMode,
});