Repository navigation
Expand file tree
/
Copy pathPackage.swift
More file actions
43 lines (42 loc) · 1.61 KB
/
Copy pathPackage.swift
File metadata and controls
43 lines (42 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// swift-tools-version: 5.10
import PackageDescription
let package = Package(
name: "oab-computer",
platforms: [.macOS(.v14)],
products: [
.executable(name: "oab-computer", targets: ["oab-computer"]),
.library(name: "InstanceMCPCore", targets: ["InstanceMCPCore"]),
],
targets: [
// Everything testable: JSON-RPC, MCP dispatch, HTTP/1.1 parsing, auth, tools.
.target(
name: "InstanceMCPCore",
path: "Sources/InstanceMCPCore",
linkerSettings: [
.linkedFramework("ScreenCaptureKit"),
.linkedFramework("CoreGraphics"),
.linkedFramework("ApplicationServices"),
.linkedFramework("Network"),
.linkedFramework("Security"),
]
),
// Thin CLI: flag parsing + wiring. No logic worth testing lives here.
.executableTarget(
name: "oab-computer",
dependencies: ["InstanceMCPCore"],
path: "Sources/oab-computer"
),
// Test helper only (not a product): a stand-in MCP stdio server for the managed Playwright tests.
.executableTarget(
name: "FakeMCPStdioServer",
path: "Tests/FakeMCPStdioServer"
),
.testTarget(
name: "InstanceMCPCoreTests",
// The executable is a dependency only so it is built beside the tests: one test runs it with the hidden
// permission-check argument.
dependencies: ["InstanceMCPCore", "oab-computer", "FakeMCPStdioServer"],
path: "Tests/InstanceMCPCoreTests"
),
]
)