Skip to content

Commit 57856af

Browse files
committed
Move Terminal to Tool
1 parent 1cd60d1 commit 57856af

File tree

4 files changed

+24
-25
lines changed

4 files changed

+24
-25
lines changed

Copilot for Xcode.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 0 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Core/Package.swift

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ let package = Package(
4747
),
4848
],
4949
dependencies: [
50+
.package(path: "../Tool"),
5051
.package(url: "https://github.com/ChimeHQ/LanguageClient", from: "0.3.1"),
5152
.package(url: "https://github.com/apple/swift-async-algorithms", from: "0.1.0"),
5253
.package(url: "https://github.com/raspu/Highlightr", from: "2.1.0"),
@@ -184,7 +185,11 @@ let package = Package(
184185
),
185186
.target(
186187
name: "ChatPlugins",
187-
dependencies: ["OpenAIService", "Environment", "Terminal"]
188+
dependencies: [
189+
"OpenAIService",
190+
"Environment",
191+
.product(name: "Terminal", package: "Tool"),
192+
]
188193
),
189194
.target(
190195
name: "ChatContextCollector",
@@ -226,12 +231,11 @@ let package = Package(
226231
.target(name: "DisplayLink"),
227232
.target(name: "ActiveApplicationMonitor"),
228233
.target(name: "AXNotificationStream"),
229-
.target(name: "Terminal"),
230234
.target(
231235
name: "UpdateChecker",
232236
dependencies: [
233237
"Logger",
234-
"Sparkle"
238+
"Sparkle",
235239
]
236240
),
237241
.target(name: "AXExtension"),
@@ -260,7 +264,7 @@ let package = Package(
260264
"SuggestionModel",
261265
"XPCShared",
262266
"Preferences",
263-
"Terminal",
267+
.product(name: "Terminal", package: "Tool"),
264268
]
265269
),
266270
.testTarget(
@@ -293,7 +297,7 @@ let package = Package(
293297
"SuggestionModel",
294298
"Preferences",
295299
"KeychainAccess",
296-
"Terminal",
300+
.product(name: "Terminal", package: "Tool"),
297301
"Configs",
298302
]
299303
),

Tool/Package.swift

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,30 @@
1-
// swift-tools-version: 5.8
1+
// swift-tools-version: 5.7
22
// The swift-tools-version declares the minimum version of Swift required to build this package.
33

44
import PackageDescription
55

66
let package = Package(
77
name: "Tool",
8+
platforms: [.macOS(.v12)],
89
products: [
9-
.library(
10-
name: "Tool",
11-
targets: ["LangChainService"]
12-
),
13-
],
14-
dependencies: [
15-
.package(url: "https://github.com/pvieito/PythonKit.git", from: "0.3.1"),
10+
.library(name: "Terminal", targets: ["Terminal"]),
11+
.library(name: "LangChainService", targets: ["LangChainService"]),
1612
],
13+
dependencies: [],
1714
targets: [
15+
// MARK: - Helpers
16+
17+
.target(name: "Terminal"),
18+
19+
// MARK: - Services
20+
1821
.target(
1922
name: "LangChainService",
20-
dependencies: [
21-
"PythonKit",
22-
]
23+
dependencies: []
2324
),
25+
26+
// MARK: - Tests
27+
2428
.testTarget(
2529
name: "LangChainServiceTests",
2630
dependencies: ["LangChainService"]

0 commit comments

Comments
 (0)