Build Information
Failed to build AIGitNarrator, reference main (c97fa9), with Swift 6.0 for Linux on 18 Jan 2026 18:37:51 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/pmusolino/AI-Git-Narrator.git
Reference: main
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
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at c97fa9a feat: update commit message prompt instructions for Conventional Commits
Cloned https://github.com/pmusolino/AI-Git-Narrator.git
Revision (git rev-parse @):
c97fa9a778066261c26ed9d6a58bad7b70e5a7e1
SUCCESS checkout https://github.com/pmusolino/AI-Git-Narrator.git at main
========================================
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-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" 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:d60f78d1b94eb114d4ebb72af8c32e902a28db13a75577d0341a88c358a803b4
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/17099] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser from cache (0.66s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.7.0 (0.64s)
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.7.0
[1/1] Compiling plugin GenerateDoccReference
[2/2] Compiling plugin GenerateManual
Building for debugging...
[2/11] Write sources
[5/11] Write swift-version-24593BA9C3E375BF.txt
[7/13] Emitting module ArgumentParserToolInfo
[8/13] Compiling ArgumentParserToolInfo ToolInfo.swift
[9/14] Wrapping AST for ArgumentParserToolInfo for debugging
[11/60] Compiling ArgumentParser ParentCommand.swift
[12/60] Compiling ArgumentParser AsyncParsableCommand.swift
[13/60] Compiling ArgumentParser CommandConfiguration.swift
[14/60] Compiling ArgumentParser CommandGroup.swift
[15/60] Compiling ArgumentParser EnumerableFlag.swift
[16/60] Compiling ArgumentParser ExpressibleByArgument.swift
[17/60] Compiling ArgumentParser ParsableArguments.swift
[18/66] Compiling ArgumentParser Tree.swift
[19/66] Compiling ArgumentParser CodingKeyValidator.swift
[20/66] Compiling ArgumentParser NonsenseFlagsValidator.swift
[21/66] Compiling ArgumentParser ParsableArgumentsValidation.swift
[22/66] Compiling ArgumentParser PositionalArgumentsValidator.swift
[23/66] Compiling ArgumentParser UniqueNamesValidator.swift
[24/66] Compiling ArgumentParser ArgumentVisibility.swift
[25/66] Compiling ArgumentParser CompletionKind.swift
[26/66] Compiling ArgumentParser Errors.swift
[27/66] Compiling ArgumentParser Flag.swift
[28/66] Compiling ArgumentParser NameSpecification.swift
[29/66] Compiling ArgumentParser Option.swift
[30/66] Compiling ArgumentParser OptionGroup.swift
[31/66] Emitting module ArgumentParser
[32/66] Compiling ArgumentParser BashCompletionsGenerator.swift
[33/66] Compiling ArgumentParser CompletionsGenerator.swift
[34/66] Compiling ArgumentParser FishCompletionsGenerator.swift
[35/66] Compiling ArgumentParser ZshCompletionsGenerator.swift
[36/66] Compiling ArgumentParser Argument.swift
[37/66] Compiling ArgumentParser ArgumentDiscussion.swift
[38/66] Compiling ArgumentParser ArgumentHelp.swift
[39/66] Compiling ArgumentParser Foundation.swift
[40/66] Compiling ArgumentParser Mutex.swift
[41/66] Compiling ArgumentParser Platform.swift
[42/66] Compiling ArgumentParser SequenceExtensions.swift
[43/66] Compiling ArgumentParser StringExtensions.swift
[44/66] Compiling ArgumentParser SwiftExtensions.swift
[45/66] Compiling ArgumentParser DumpHelpGenerator.swift
[46/66] Compiling ArgumentParser HelpCommand.swift
[47/66] Compiling ArgumentParser HelpGenerator.swift
[48/66] Compiling ArgumentParser MessageInfo.swift
[49/66] Compiling ArgumentParser UsageGenerator.swift
[50/66] Compiling ArgumentParser CollectionExtensions.swift
[51/66] Compiling ArgumentParser InputOrigin.swift
[52/66] Compiling ArgumentParser Name.swift
[53/66] Compiling ArgumentParser Parsed.swift
[54/66] Compiling ArgumentParser ParsedValues.swift
[55/66] Compiling ArgumentParser ParserError.swift
[56/66] Compiling ArgumentParser SplitArguments.swift
[57/66] Compiling ArgumentParser ParsableCommand.swift
[58/66] Compiling ArgumentParser ArgumentDecoder.swift
[59/66] Compiling ArgumentParser ArgumentDefinition.swift
[60/66] Compiling ArgumentParser ArgumentSet.swift
[61/66] Compiling ArgumentParser CommandParser.swift
[62/66] Compiling ArgumentParser InputKey.swift
[63/67] Wrapping AST for ArgumentParser for debugging
[65/79] Compiling AIGitNarrator LanguageModelError.swift
[66/79] Compiling AIGitNarrator GitDiff.swift
[67/79] Compiling AIGitNarrator GitCommit.swift
[68/80] 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
[69/80] 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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[70/80] Compiling AIGitNarrator LanguageModelFactory.swift
[71/80] Compiling AIGitNarrator LanguageModelService.swift
[72/80] Compiling AIGitNarrator GitHelper.swift
[73/80] Compiling AIGitNarrator LLMProvider.swift
[74/80] 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?) {
[75/80] 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
[76/80] 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
[77/80] Compiling AIGitNarrator main.swift
BUILD FAILURE 6.0 linux