@@ -51,6 +51,10 @@ let package = Package(
5151 . package ( url: " https://github.com/kishikawakatsumi/KeychainAccess " , from: " 4.2.2 " ) ,
5252 . package ( url: " https://github.com/pvieito/PythonKit.git " , branch: " master " ) ,
5353 . package ( url: " https://github.com/pointfreeco/swift-parsing " , from: " 0.12.1 " ) ,
54+ . package (
55+ url: " https://github.com/pointfreeco/swift-composable-architecture " ,
56+ from: " 0.55.0 "
57+ ) ,
5458 ] ,
5559 targets: [
5660 // MARK: - Main
@@ -83,6 +87,7 @@ let package = Package(
8387 " PromptToCodeService " ,
8488 " ServiceUpdateMigration " ,
8589 " UserDefaultsObserver " ,
90+ " ChatTab " ,
8691 . product( name: " Logger " , package : " Tool " ) ,
8792 . product( name: " PythonHelper " , package : " Tool " ) ,
8893 . product( name: " OpenAIService " , package : " Tool " ) ,
@@ -185,10 +190,10 @@ let package = Package(
185190 " MathChatPlugin " ,
186191 " SearchChatPlugin " ,
187192 " ShortcutChatPlugin " ,
188-
193+
189194 // context collectors
190195 " WebChatContextCollector " ,
191-
196+
192197 . product( name: " Parsing " , package : " swift-parsing " ) ,
193198 . product( name: " OpenAIService " , package : " Tool " ) ,
194199 . product( name: " Preferences " , package : " Tool " ) ,
@@ -215,21 +220,41 @@ let package = Package(
215220 ]
216221 ) ,
217222
223+ . target(
224+ name: " ChatTab " ,
225+ dependencies: [
226+ " SharedUIComponents " ,
227+ . product( name: " OpenAIService " , package : " Tool " ) ,
228+ . product( name: " Logger " , package : " Tool " ) ,
229+ . product( name: " MarkdownUI " , package : " swift-markdown-ui " ) ,
230+ ]
231+ ) ,
232+
218233 // MARK: - UI
219234
235+ . target(
236+ name: " SharedUIComponents " ,
237+ dependencies: [
238+ " Highlightr " ,
239+ " Splash " ,
240+ . product( name: " Preferences " , package : " Tool " ) ,
241+ ]
242+ ) ,
243+
220244 . target(
221245 name: " SuggestionWidget " ,
222246 dependencies: [
247+ " ChatTab " ,
223248 " ActiveApplicationMonitor " ,
224249 " AXNotificationStream " ,
225250 " Environment " ,
226- " Highlightr " ,
227- " Splash " ,
228251 " UserDefaultsObserver " ,
229252 " XcodeInspector " ,
253+ " SharedUIComponents " ,
230254 . product( name: " Logger " , package : " Tool " ) ,
231255 . product( name: " AsyncAlgorithms " , package : " swift-async-algorithms " ) ,
232256 . product( name: " MarkdownUI " , package : " swift-markdown-ui " ) ,
257+ . product( name: " ComposableArchitecture " , package : " swift-composable-architecture " ) ,
233258 ]
234259 ) ,
235260 . testTarget( name: " SuggestionWidgetTests " , dependencies: [ " SuggestionWidget " ] ) ,
@@ -335,9 +360,9 @@ let package = Package(
335360 ] ,
336361 path: " Sources/ChatPlugins/ShortcutChatPlugin "
337362 ) ,
338-
363+
339364 // MAKR: - Chat Context Collector
340-
365+
341366 . target(
342367 name: " WebChatContextCollector " ,
343368 dependencies: [
@@ -348,7 +373,7 @@ let package = Package(
348373 . product( name: " Preferences " , package : " Tool " ) ,
349374 ] ,
350375 path: " Sources/ChatContextCollectors/WebChatContextCollector "
351- )
376+ ) ,
352377 ]
353378)
354379
0 commit comments