forked from intitni/CopilotForXcode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
78 lines (63 loc) · 2.25 KB
/
Package.swift
File metadata and controls
78 lines (63 loc) · 2.25 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
// swift-tools-version: 5.7
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "Tool",
platforms: [.macOS(.v12)],
products: [
.library(name: "Terminal", targets: ["Terminal"]),
.library(name: "LangChain", targets: ["LangChain", "PythonHelper", "BingSearchService"]),
.library(name: "Preferences", targets: ["Preferences", "Configs"]),
.library(name: "Logger", targets: ["Logger"]),
.library(name: "OpenAIService", targets: ["OpenAIService"]),
],
dependencies: [
.package(url: "https://github.com/pvieito/PythonKit.git", branch: "master"),
.package(url: "https://github.com/alfianlosari/GPTEncoder", from: "1.0.4"),
.package(url: "https://github.com/apple/swift-async-algorithms", from: "0.1.0"),
.package(url: "https://github.com/pointfreeco/swift-parsing", from: "0.12.1")
],
targets: [
// MARK: - Helpers
.target(name: "Configs"),
.target(name: "Preferences", dependencies: ["Configs"]),
.target(name: "Terminal"),
.target(name: "Logger"),
// MARK: - Services
.target(
name: "LangChain",
dependencies: [
"PythonHelper",
"OpenAIService",
.product(name: "Parsing", package: "swift-parsing"),
.product(name: "PythonKit", package: "PythonKit"),
]
),
.target(name: "BingSearchService"),
.target(
name: "PythonHelper",
dependencies: [
.product(name: "PythonKit", package: "PythonKit"),
]
),
// MARK: - OpenAI
.target(
name: "OpenAIService",
dependencies: [
"GPTEncoder",
"Logger",
"Preferences",
.product(name: "AsyncAlgorithms", package: "swift-async-algorithms"),
]
),
.testTarget(
name: "OpenAIServiceTests",
dependencies: ["OpenAIService"]
),
// MARK: - Tests
.testTarget(
name: "LangChainTests",
dependencies: ["LangChain"]
),
]
)