| 1 | // swift-tools-version: 5.10 |
| 2 | import PackageDescription |
| 3 | |
| 4 | let package = Package( |
| 5 | name: "Textley", |
| 6 | platforms: [.macOS(.v14)], |
| 7 | products: [.executable(name: "Textley", targets: ["Textley"])], |
| 8 | dependencies: [ |
| 9 | .package(url: "https://github.com/modelcontextprotocol/swift-sdk.git", exact: "0.12.1"), |
| 10 | .package(url: "https://github.com/apple/swift-log.git", exact: "1.17.0"), |
| 11 | .package(url: "https://github.com/apple/swift-nio.git", exact: "2.105.0") |
| 12 | ], |
| 13 | targets: [ |
| 14 | .target(name: "TextleyCore"), |
| 15 | .executableTarget(name: "Textley", dependencies: [ |
| 16 | "TextleyCore", |
| 17 | .product(name: "MCP", package: "swift-sdk"), |
| 18 | .product(name: "Logging", package: "swift-log"), |
| 19 | .product(name: "NIOCore", package: "swift-nio"), |
| 20 | .product(name: "NIOHTTP1", package: "swift-nio"), |
| 21 | .product(name: "NIOPosix", package: "swift-nio") |
| 22 | ]), |
| 23 | .testTarget(name: "TextleyCoreTests", dependencies: [ |
| 24 | "TextleyCore", "Textley", .product(name: "MCP", package: "swift-sdk") |
| 25 | ]) |
| 26 | ] |
| 27 | ) |