-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
116 lines (114 loc) · 3.13 KB
/
Package.swift
File metadata and controls
116 lines (114 loc) · 3.13 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
// swift-tools-version: 6.2
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "TalkToMeKit",
platforms: [
.macOS(.v15),
],
products: [
.executable(
name: "TTMServer",
targets: [ "TTMServer" ]
),
.library(
name: "TTMService",
targets: [ "TTMService" ]
),
.executable(
name: "ttm-cli",
targets: [ "TTMCli" ]
),
],
dependencies: [
.package(url: "https://github.com/apple/swift-openapi-generator.git", from: "1.10.0"),
.package(url: "https://github.com/apple/swift-openapi-runtime.git", from: "1.9.0"),
.package(url: "https://github.com/hummingbird-project/hummingbird.git", from: "2.0.0"),
.package(url: "https://github.com/hummingbird-project/swift-openapi-hummingbird.git", from: "2.0.0"),
.package(url: "https://github.com/swift-server/swift-service-lifecycle.git", from: "2.10.0"),
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.7.0"),
],
targets: [
.target(
name: "TTMOpenAPI",
dependencies: [
.product(name: "OpenAPIRuntime", package: "swift-openapi-runtime"),
],
plugins: [
.plugin(name: "OpenAPIGenerator", package: "swift-openapi-generator"),
]
),
.executableTarget(
name: "TTMServer",
dependencies: [
.product(name: "Hummingbird", package: "hummingbird"),
.product(name: "OpenAPIHummingbird", package: "swift-openapi-hummingbird"),
.product(name: "ArgumentParser", package: "swift-argument-parser"),
.target(name: "TTMOpenAPI"),
.target(name: "TTMService"),
]
),
.target(
name: "TTMService",
dependencies: [
.product(name: "ServiceLifecycle", package: "swift-service-lifecycle"),
.target(name: "TTMPythonRuntimeBundle"),
],
resources: [
.process("Resources"),
]
),
.executableTarget(
name: "TTMCli",
dependencies: [
.product(name: "ArgumentParser", package: "swift-argument-parser"),
]
),
.testTarget(
name: "TTMServiceTests",
dependencies: [
.target(name: "TTMService"),
.target(name: "TTMPythonRuntimeBundle"),
]
),
.testTarget(
name: "TTMCliTests",
dependencies: [
.target(name: "TTMCli"),
]
),
.testTarget(
name: "TTMServerTests",
dependencies: [
.target(name: "TTMServer"),
.target(name: "TTMOpenAPI"),
.target(name: "TTMService"),
]
),
.testTarget(
name: "TTMServerArtifactIntegrationTests"
),
.target(
name: "TTMPythonRuntimeBundle",
resources: [
.copy("Resources/Runtime"),
]
),
.plugin(
name: "StagePythonRuntimePlugin",
capability: .command(
intent: .custom(
verb: "stage-python-runtime",
description: "Stage local Python runtime/model assets for TalkToMeKit development."
),
permissions: [
.allowNetworkConnections(
scope: .all(),
reason: "Download Python packages and optional Qwen model assets during runtime staging."
),
.writeToPackageDirectory(reason: "Stage runtime assets under Sources/TTMPythonRuntimeBundle/Resources/Runtime/current."),
]
)
),
]
)