ralph-loop[epic-a-to-d-mainline]: iteration 2

This commit is contained in:
zhukang
2026-03-23 17:35:05 +08:00
parent 0550568a2b
commit 78ecca3a15
15 changed files with 731 additions and 40 deletions

View File

@@ -3,8 +3,59 @@ import AtlasDomain
import AtlasProtocol
import Foundation
public struct AtlasFixtureAppDescriptor: Hashable, Sendable {
public let scenario: String
public let appName: String
public let bundleIdentifier: String
public let hasLaunchAgent: Bool
public let expectedReviewOnlyCategories: [String]
public init(
scenario: String,
appName: String,
bundleIdentifier: String,
hasLaunchAgent: Bool,
expectedReviewOnlyCategories: [String]
) {
self.scenario = scenario
self.appName = appName
self.bundleIdentifier = bundleIdentifier
self.hasLaunchAgent = hasLaunchAgent
self.expectedReviewOnlyCategories = expectedReviewOnlyCategories
}
}
public enum AtlasTestingFixtures {
public static let workspace = AtlasScaffoldWorkspace.snapshot()
public static let request = AtlasRequestEnvelope(command: .inspectPermissions)
public static let firstFinding = AtlasScaffoldFixtures.findings.first
public static let appEvidenceFixtures: [AtlasFixtureAppDescriptor] = [
AtlasFixtureAppDescriptor(
scenario: "mainstream-gui",
appName: "Atlas Fixture Browser",
bundleIdentifier: "com.example.atlas.fixture.browser",
hasLaunchAgent: false,
expectedReviewOnlyCategories: ["support files", "caches", "preferences"]
),
AtlasFixtureAppDescriptor(
scenario: "developer-heavy",
appName: "Atlas Fixture Dev",
bundleIdentifier: "com.example.atlas.fixture.dev",
hasLaunchAgent: true,
expectedReviewOnlyCategories: ["support files", "caches", "logs", "launch items"]
),
AtlasFixtureAppDescriptor(
scenario: "sparse-leftovers",
appName: "Atlas Fixture Sparse",
bundleIdentifier: "com.example.atlas.fixture.sparse",
hasLaunchAgent: false,
expectedReviewOnlyCategories: ["saved state"]
),
]
public static let smartCleanSafeRoots: [String] = [
"~/Library/Developer/CoreSimulator/Caches",
"~/.gradle/caches",
"~/.ivy2/cache",
]
}