Build Information
Failed to build AIGitNarrator, reference 1.0.0 (908189
), with Swift 6.0 for Linux on 10 Jun 2025 03:55:36 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/pmusolino/AI-Git-Narrator.git
Reference: 1.0.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/pmusolino/AI-Git-Narrator
* tag 1.0.0 -> FETCH_HEAD
HEAD is now at 908189e Refactor: Move LLM services to a dedicated "Services" directory
Cloned https://github.com/pmusolino/AI-Git-Narrator.git
Revision (git rev-parse @):
908189e1967ee739e751d76783aa634a4223cc35
SUCCESS checkout https://github.com/pmusolino/AI-Git-Narrator.git at 1.0.0
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/pmusolino/AI-Git-Narrator.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:eaa733228b13fb63f7b48fc0ae9a4552a427b7215d37e5caded5aa10021734d9
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/apple/swift-argument-parser
[1/15380] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser from cache (0.79s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.5.1 (0.54s)
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.5.1
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/10] Write sources
[4/10] Write swift-version-24593BA9C3E375BF.txt
[6/12] Compiling ArgumentParserToolInfo ToolInfo.swift
[7/12] Emitting module ArgumentParserToolInfo
[8/13] Wrapping AST for ArgumentParserToolInfo for debugging
[10/51] Compiling ArgumentParser OptionGroup.swift
[11/51] Compiling ArgumentParser AsyncParsableCommand.swift
[12/51] Compiling ArgumentParser CommandConfiguration.swift
[13/51] Compiling ArgumentParser CommandGroup.swift
[14/51] Compiling ArgumentParser EnumerableFlag.swift
[15/56] Emitting module ArgumentParser
[16/56] Compiling ArgumentParser Name.swift
[17/56] Compiling ArgumentParser Parsed.swift
[18/56] Compiling ArgumentParser ParsedValues.swift
[19/56] Compiling ArgumentParser ParserError.swift
[20/56] Compiling ArgumentParser SplitArguments.swift
[21/56] Compiling ArgumentParser ExpressibleByArgument.swift
[22/56] Compiling ArgumentParser ParsableArguments.swift
[23/56] Compiling ArgumentParser ParsableArgumentsValidation.swift
[24/56] Compiling ArgumentParser ParsableCommand.swift
[25/56] Compiling ArgumentParser ArgumentDecoder.swift
[26/56] Compiling ArgumentParser BashCompletionsGenerator.swift
[27/56] Compiling ArgumentParser CompletionsGenerator.swift
[28/56] Compiling ArgumentParser FishCompletionsGenerator.swift
[29/56] Compiling ArgumentParser ZshCompletionsGenerator.swift
[30/56] Compiling ArgumentParser Argument.swift
[31/56] Compiling ArgumentParser ArgumentHelp.swift
[32/56] Compiling ArgumentParser CollectionExtensions.swift
[33/56] Compiling ArgumentParser Platform.swift
[34/56] Compiling ArgumentParser SequenceExtensions.swift
[35/56] Compiling ArgumentParser StringExtensions.swift
[36/56] Compiling ArgumentParser Tree.swift
[37/56] Compiling ArgumentParser ArgumentDefinition.swift
[38/56] Compiling ArgumentParser ArgumentSet.swift
[39/56] Compiling ArgumentParser CommandParser.swift
[40/56] Compiling ArgumentParser InputKey.swift
[41/56] Compiling ArgumentParser InputOrigin.swift
[42/56] Compiling ArgumentParser DumpHelpGenerator.swift
[43/56] Compiling ArgumentParser HelpCommand.swift
[44/56] Compiling ArgumentParser HelpGenerator.swift
[45/56] Compiling ArgumentParser MessageInfo.swift
[46/56] Compiling ArgumentParser UsageGenerator.swift
[47/56] Compiling ArgumentParser ArgumentVisibility.swift
[48/56] Compiling ArgumentParser CompletionKind.swift
[49/56] Compiling ArgumentParser Errors.swift
[50/56] Compiling ArgumentParser Flag.swift
[51/56] Compiling ArgumentParser NameSpecification.swift
[52/56] Compiling ArgumentParser Option.swift
[53/57] Wrapping AST for ArgumentParser for debugging
[55/69] Compiling AIGitNarrator OllamaService.swift
/host/spi-builder-workspace/Sources/LLMs/Services/OllamaService.swift:19:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | private let baseURL: String
18 | private let timeoutInterval: TimeInterval
19 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | init(apiKey: String, model: String, maxTokens: Int?, temperature: Double?, timeout: TimeInterval?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/LLMs/Services/OllamaService.swift:19:17: error: stored property 'urlSession' of 'Sendable'-conforming class 'OllamaService' has non-sendable type 'URLSession' (aka 'AnyObject')
17 | private let baseURL: String
18 | private let timeoutInterval: TimeInterval
19 | private let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming class 'OllamaService' has non-sendable type 'URLSession' (aka 'AnyObject')
20 |
21 | init(apiKey: String, model: String, maxTokens: Int?, temperature: Double?, timeout: TimeInterval?) {
/host/spi-builder-workspace/Sources/LLMs/Services/OllamaService.swift:30:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
28 | self.timeoutInterval = timeout ?? 120
29 |
30 | let config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
31 | config.timeoutIntervalForRequest = self.timeoutInterval
32 | config.timeoutIntervalForResource = self.timeoutInterval
/host/spi-builder-workspace/Sources/LLMs/Services/OllamaService.swift:33:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
31 | config.timeoutIntervalForRequest = self.timeoutInterval
32 | config.timeoutIntervalForResource = self.timeoutInterval
33 | self.urlSession = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
34 | }
35 |
/host/spi-builder-workspace/Sources/LLMs/Services/OllamaService.swift:45:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
43 | self.timeoutInterval = timeout ?? 120
44 |
45 | let config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
46 | config.timeoutIntervalForRequest = self.timeoutInterval
47 | config.timeoutIntervalForResource = self.timeoutInterval
/host/spi-builder-workspace/Sources/LLMs/Services/OllamaService.swift:48:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
46 | config.timeoutIntervalForRequest = self.timeoutInterval
47 | config.timeoutIntervalForResource = self.timeoutInterval
48 | self.urlSession = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
49 | }
50 |
/host/spi-builder-workspace/Sources/LLMs/Services/OllamaService.swift:56:23: error: cannot find 'URLRequest' in scope
54 | }
55 |
56 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
57 | request.httpMethod = "POST"
58 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/LLMs/Services/OllamaService.swift:83:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
81 |
82 | do {
83 | let (data, response) = try await urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
84 |
85 | guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/LLMs/Services/OllamaService.swift:98:53: error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
96 | }
97 |
98 | return response.trimmingCharacters(in: .whitespacesAndNewlines)
| `- error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
99 | } catch let error as LanguageModelError {
100 | throw error // Re-throw known errors
/host/spi-builder-workspace/Sources/LLMs/Services/OpenAIService.swift:18:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | private let temperature: Double
17 | private let timeoutInterval: TimeInterval
18 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | init(apiKey: String, model: String, maxTokens: Int?, temperature: Double?, timeout: TimeInterval?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/LLMs/Services/OpenAIService.swift:18:17: error: stored property 'urlSession' of 'Sendable'-conforming class 'OpenAIService' has non-sendable type 'URLSession' (aka 'AnyObject')
16 | private let temperature: Double
17 | private let timeoutInterval: TimeInterval
18 | private let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming class 'OpenAIService' has non-sendable type 'URLSession' (aka 'AnyObject')
19 |
20 | init(apiKey: String, model: String, maxTokens: Int?, temperature: Double?, timeout: TimeInterval?) {
/host/spi-builder-workspace/Sources/LLMs/Services/OpenAIService.swift:27:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
25 | self.timeoutInterval = timeout ?? 120
26 |
27 | let config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
28 | config.timeoutIntervalForRequest = self.timeoutInterval
29 | config.timeoutIntervalForResource = self.timeoutInterval
/host/spi-builder-workspace/Sources/LLMs/Services/OpenAIService.swift:30:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
28 | config.timeoutIntervalForRequest = self.timeoutInterval
29 | config.timeoutIntervalForResource = self.timeoutInterval
30 | self.urlSession = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
31 | }
32 |
/host/spi-builder-workspace/Sources/LLMs/Services/OpenAIService.swift:38:23: error: cannot find 'URLRequest' in scope
36 | }
37 |
38 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
39 | request.httpMethod = "POST"
40 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/LLMs/Services/OpenAIService.swift:57:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
55 |
56 | do {
57 | let (data, response) = try await urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
58 |
59 | guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/LLMs/Services/OpenAIService.swift:74:52: error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
72 | throw LanguageModelError.parsingError("Failed to parse content from OpenAI response")
73 | }
74 | return content.trimmingCharacters(in: .whitespacesAndNewlines)
| `- error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
75 | } catch let error as LanguageModelError {
76 | throw error // Re-throw known errors
[56/69] Compiling AIGitNarrator OpenAIService.swift
/host/spi-builder-workspace/Sources/LLMs/Services/OllamaService.swift:19:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | private let baseURL: String
18 | private let timeoutInterval: TimeInterval
19 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | init(apiKey: String, model: String, maxTokens: Int?, temperature: Double?, timeout: TimeInterval?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/LLMs/Services/OllamaService.swift:19:17: error: stored property 'urlSession' of 'Sendable'-conforming class 'OllamaService' has non-sendable type 'URLSession' (aka 'AnyObject')
17 | private let baseURL: String
18 | private let timeoutInterval: TimeInterval
19 | private let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming class 'OllamaService' has non-sendable type 'URLSession' (aka 'AnyObject')
20 |
21 | init(apiKey: String, model: String, maxTokens: Int?, temperature: Double?, timeout: TimeInterval?) {
/host/spi-builder-workspace/Sources/LLMs/Services/OllamaService.swift:30:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
28 | self.timeoutInterval = timeout ?? 120
29 |
30 | let config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
31 | config.timeoutIntervalForRequest = self.timeoutInterval
32 | config.timeoutIntervalForResource = self.timeoutInterval
/host/spi-builder-workspace/Sources/LLMs/Services/OllamaService.swift:33:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
31 | config.timeoutIntervalForRequest = self.timeoutInterval
32 | config.timeoutIntervalForResource = self.timeoutInterval
33 | self.urlSession = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
34 | }
35 |
/host/spi-builder-workspace/Sources/LLMs/Services/OllamaService.swift:45:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
43 | self.timeoutInterval = timeout ?? 120
44 |
45 | let config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
46 | config.timeoutIntervalForRequest = self.timeoutInterval
47 | config.timeoutIntervalForResource = self.timeoutInterval
/host/spi-builder-workspace/Sources/LLMs/Services/OllamaService.swift:48:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
46 | config.timeoutIntervalForRequest = self.timeoutInterval
47 | config.timeoutIntervalForResource = self.timeoutInterval
48 | self.urlSession = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
49 | }
50 |
/host/spi-builder-workspace/Sources/LLMs/Services/OllamaService.swift:56:23: error: cannot find 'URLRequest' in scope
54 | }
55 |
56 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
57 | request.httpMethod = "POST"
58 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/LLMs/Services/OllamaService.swift:83:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
81 |
82 | do {
83 | let (data, response) = try await urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
84 |
85 | guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/LLMs/Services/OllamaService.swift:98:53: error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
96 | }
97 |
98 | return response.trimmingCharacters(in: .whitespacesAndNewlines)
| `- error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
99 | } catch let error as LanguageModelError {
100 | throw error // Re-throw known errors
/host/spi-builder-workspace/Sources/LLMs/Services/OpenAIService.swift:18:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | private let temperature: Double
17 | private let timeoutInterval: TimeInterval
18 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | init(apiKey: String, model: String, maxTokens: Int?, temperature: Double?, timeout: TimeInterval?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/LLMs/Services/OpenAIService.swift:18:17: error: stored property 'urlSession' of 'Sendable'-conforming class 'OpenAIService' has non-sendable type 'URLSession' (aka 'AnyObject')
16 | private let temperature: Double
17 | private let timeoutInterval: TimeInterval
18 | private let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming class 'OpenAIService' has non-sendable type 'URLSession' (aka 'AnyObject')
19 |
20 | init(apiKey: String, model: String, maxTokens: Int?, temperature: Double?, timeout: TimeInterval?) {
/host/spi-builder-workspace/Sources/LLMs/Services/OpenAIService.swift:27:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
25 | self.timeoutInterval = timeout ?? 120
26 |
27 | let config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
28 | config.timeoutIntervalForRequest = self.timeoutInterval
29 | config.timeoutIntervalForResource = self.timeoutInterval
/host/spi-builder-workspace/Sources/LLMs/Services/OpenAIService.swift:30:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
28 | config.timeoutIntervalForRequest = self.timeoutInterval
29 | config.timeoutIntervalForResource = self.timeoutInterval
30 | self.urlSession = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
31 | }
32 |
/host/spi-builder-workspace/Sources/LLMs/Services/OpenAIService.swift:38:23: error: cannot find 'URLRequest' in scope
36 | }
37 |
38 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
39 | request.httpMethod = "POST"
40 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/LLMs/Services/OpenAIService.swift:57:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
55 |
56 | do {
57 | let (data, response) = try await urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
58 |
59 | guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/LLMs/Services/OpenAIService.swift:74:52: error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
72 | throw LanguageModelError.parsingError("Failed to parse content from OpenAI response")
73 | }
74 | return content.trimmingCharacters(in: .whitespacesAndNewlines)
| `- error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
75 | } catch let error as LanguageModelError {
76 | throw error // Re-throw known errors
[57/70] Compiling AIGitNarrator GitCommit.swift
[58/70] Compiling AIGitNarrator GitDiff.swift
[59/70] Compiling AIGitNarrator LanguageModelError.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[60/70] Compiling AIGitNarrator LanguageModelFactory.swift
[61/70] Compiling AIGitNarrator LanguageModelService.swift
[62/70] Emitting module AIGitNarrator
/host/spi-builder-workspace/Sources/LLMs/Services/GeminiService.swift:19:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | private let temperature: Double?
18 | private let timeoutInterval: TimeInterval
19 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | init(apiKey: String, model: String, maxTokens: Int?, temperature: Double?, timeout: TimeInterval?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/LLMs/Services/GeminiService.swift:19:17: error: stored property 'urlSession' of 'Sendable'-conforming class 'GeminiService' has non-sendable type 'URLSession' (aka 'AnyObject')
17 | private let temperature: Double?
18 | private let timeoutInterval: TimeInterval
19 | private let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming class 'GeminiService' has non-sendable type 'URLSession' (aka 'AnyObject')
20 |
21 | init(apiKey: String, model: String, maxTokens: Int?, temperature: Double?, timeout: TimeInterval?) {
/host/spi-builder-workspace/Sources/LLMs/Services/OllamaService.swift:19:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | private let baseURL: String
18 | private let timeoutInterval: TimeInterval
19 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | init(apiKey: String, model: String, maxTokens: Int?, temperature: Double?, timeout: TimeInterval?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/LLMs/Services/OllamaService.swift:19:17: error: stored property 'urlSession' of 'Sendable'-conforming class 'OllamaService' has non-sendable type 'URLSession' (aka 'AnyObject')
17 | private let baseURL: String
18 | private let timeoutInterval: TimeInterval
19 | private let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming class 'OllamaService' has non-sendable type 'URLSession' (aka 'AnyObject')
20 |
21 | init(apiKey: String, model: String, maxTokens: Int?, temperature: Double?, timeout: TimeInterval?) {
/host/spi-builder-workspace/Sources/LLMs/Services/OpenAIService.swift:18:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | private let temperature: Double
17 | private let timeoutInterval: TimeInterval
18 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | init(apiKey: String, model: String, maxTokens: Int?, temperature: Double?, timeout: TimeInterval?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/LLMs/Services/OpenAIService.swift:18:17: error: stored property 'urlSession' of 'Sendable'-conforming class 'OpenAIService' has non-sendable type 'URLSession' (aka 'AnyObject')
16 | private let temperature: Double
17 | private let timeoutInterval: TimeInterval
18 | private let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming class 'OpenAIService' has non-sendable type 'URLSession' (aka 'AnyObject')
19 |
20 | init(apiKey: String, model: String, maxTokens: Int?, temperature: Double?, timeout: TimeInterval?) {
[63/70] Compiling AIGitNarrator PromptBuilder.swift
/host/spi-builder-workspace/Sources/LLMs/Services/GeminiService.swift:19:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | private let temperature: Double?
18 | private let timeoutInterval: TimeInterval
19 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | init(apiKey: String, model: String, maxTokens: Int?, temperature: Double?, timeout: TimeInterval?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/LLMs/Services/GeminiService.swift:19:17: error: stored property 'urlSession' of 'Sendable'-conforming class 'GeminiService' has non-sendable type 'URLSession' (aka 'AnyObject')
17 | private let temperature: Double?
18 | private let timeoutInterval: TimeInterval
19 | private let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming class 'GeminiService' has non-sendable type 'URLSession' (aka 'AnyObject')
20 |
21 | init(apiKey: String, model: String, maxTokens: Int?, temperature: Double?, timeout: TimeInterval?) {
/host/spi-builder-workspace/Sources/LLMs/Services/GeminiService.swift:28:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
26 | self.timeoutInterval = timeout ?? 120
27 |
28 | let config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
29 | config.timeoutIntervalForRequest = self.timeoutInterval
30 | config.timeoutIntervalForResource = self.timeoutInterval
/host/spi-builder-workspace/Sources/LLMs/Services/GeminiService.swift:31:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
29 | config.timeoutIntervalForRequest = self.timeoutInterval
30 | config.timeoutIntervalForResource = self.timeoutInterval
31 | self.urlSession = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
32 | }
33 |
/host/spi-builder-workspace/Sources/LLMs/Services/GeminiService.swift:39:23: error: cannot find 'URLRequest' in scope
37 | }
38 |
39 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
40 | request.httpMethod = "POST"
41 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/LLMs/Services/GeminiService.swift:69:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
67 |
68 | do {
69 | let (data, response) = try await urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
70 |
71 | guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/LLMs/Services/GeminiService.swift:98:49: error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
96 | throw LanguageModelError.parsingError("Failed to parse content from Gemini response. Check response structure.")
97 | }
98 | return text.trimmingCharacters(in: .whitespacesAndNewlines)
| `- error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
99 | } catch let error as LanguageModelError {
100 | throw error // Re-throw known errors
[64/70] Compiling AIGitNarrator GeminiService.swift
/host/spi-builder-workspace/Sources/LLMs/Services/GeminiService.swift:19:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | private let temperature: Double?
18 | private let timeoutInterval: TimeInterval
19 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | init(apiKey: String, model: String, maxTokens: Int?, temperature: Double?, timeout: TimeInterval?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/LLMs/Services/GeminiService.swift:19:17: error: stored property 'urlSession' of 'Sendable'-conforming class 'GeminiService' has non-sendable type 'URLSession' (aka 'AnyObject')
17 | private let temperature: Double?
18 | private let timeoutInterval: TimeInterval
19 | private let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming class 'GeminiService' has non-sendable type 'URLSession' (aka 'AnyObject')
20 |
21 | init(apiKey: String, model: String, maxTokens: Int?, temperature: Double?, timeout: TimeInterval?) {
/host/spi-builder-workspace/Sources/LLMs/Services/GeminiService.swift:28:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
26 | self.timeoutInterval = timeout ?? 120
27 |
28 | let config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
29 | config.timeoutIntervalForRequest = self.timeoutInterval
30 | config.timeoutIntervalForResource = self.timeoutInterval
/host/spi-builder-workspace/Sources/LLMs/Services/GeminiService.swift:31:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
29 | config.timeoutIntervalForRequest = self.timeoutInterval
30 | config.timeoutIntervalForResource = self.timeoutInterval
31 | self.urlSession = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
32 | }
33 |
/host/spi-builder-workspace/Sources/LLMs/Services/GeminiService.swift:39:23: error: cannot find 'URLRequest' in scope
37 | }
38 |
39 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
40 | request.httpMethod = "POST"
41 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/LLMs/Services/GeminiService.swift:69:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
67 |
68 | do {
69 | let (data, response) = try await urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
70 |
71 | guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/LLMs/Services/GeminiService.swift:98:49: error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
96 | throw LanguageModelError.parsingError("Failed to parse content from Gemini response. Check response structure.")
97 | }
98 | return text.trimmingCharacters(in: .whitespacesAndNewlines)
| `- error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
99 | } catch let error as LanguageModelError {
100 | throw error // Re-throw known errors
[65/70] Compiling AIGitNarrator GitHelper.swift
[66/70] Compiling AIGitNarrator LLMProvider.swift
[67/70] Compiling AIGitNarrator main.swift
BUILD FAILURE 6.0 linux