Repository navigation
Expand file tree
/
Copy pathPackage.swift
More file actions
44 lines (42 loc) · 2.07 KB
/
Copy pathPackage.swift
File metadata and controls
44 lines (42 loc) · 2.07 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
44
// swift-tools-version: 6.2
import PackageDescription
let package = Package(
name: "codex-plugin",
platforms: [.macOS(.v14)],
products: [.executable(name: "codex-mcp-adapter", targets: ["CodexMCPAdapter"])],
dependencies: [
.package(url: "https://github.com/apple/swift-crypto.git", exact: "4.5.2"),
.package(url: "https://github.com/apple/swift-system.git", exact: "1.8.1"),
.package(url: "https://github.com/groue/GRDB.swift.git", exact: "7.11.1"),
.package(url: "https://github.com/apple/swift-argument-parser", exact: "1.8.2"),
.package(url: "https://github.com/computer-mcp/swift-sdk.git", exact: "0.13.1-computer-mcp.1"),
.package(url: "https://github.com/swift-library/swift-codex.git", exact: "0.4.1"),
.package(url: "https://github.com/swiftlang/swift-subprocess.git", exact: "0.4.0"),
],
targets: [
.target(
name: "CodexAdapter",
dependencies: [
.product(name: "GRDB", package: "GRDB.swift"),
.product(name: "Crypto", package: "swift-crypto", condition: .when(platforms: [.windows])),
.product(name: "MCP", package: "swift-sdk"),
.product(
name: "SystemPackage", package: "swift-system", condition: .when(platforms: [.windows])),
.product(name: "CodexAppServerClient", package: "swift-codex"),
.product(name: "CodexAppServerProtocol", package: "swift-codex"),
.product(name: "CodexAppServerRuntime", package: "swift-codex"),
.product(
name: "CodexAppServerStdio", package: "swift-codex",
condition: .when(platforms: [.windows])),
.product(name: "CodexExec", package: "swift-codex"),
.product(name: "Subprocess", package: "swift-subprocess"),
],
resources: [.copy("Resources/Protocol")]),
.executableTarget(
name: "CodexMCPAdapter",
dependencies: [
"CodexAdapter", .product(name: "ArgumentParser", package: "swift-argument-parser"),
]),
.testTarget(name: "CodexAdapterTests", dependencies: ["CodexAdapter"]),
.testTarget(name: "CodexMCPAdapterTests", dependencies: ["CodexMCPAdapter"]),
])