Build Information
Failed to build swift-ai, reference main (06dc4f), with Swift 6.3 for Wasm on 19 Apr 2026 02:42:00 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ohitslaurence/swift-ai-sdk.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/ohitslaurence/swift-ai-sdk
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 06dc4f1 Improve repo quality and contributor experience (#17)
Cloned https://github.com/ohitslaurence/swift-ai-sdk.git
Revision (git rev-parse @):
06dc4f18b25297f3171bca5366ae0b7f38b769e2
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/ohitslaurence/swift-ai-sdk.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.3
Building package at path: $PWD
https://github.com/ohitslaurence/swift-ai-sdk.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Building for debugging...
[0/14] Write sources
[7/14] Write swift-version-24593BA9C3E375BF.txt
[9/61] Compiling AICore AIImage.swift
[10/61] Compiling AICore AIMessage.swift
[11/61] Compiling AICore AIRole.swift
[12/61] Compiling AICore AIMiddleware.swift
[13/61] Compiling AICore DefaultSettingsMiddleware.swift
[14/61] Compiling AICore LoggingMiddleware.swift
[15/61] Compiling AICore MiddlewareProvider.swift
[16/61] Compiling AICore Agent.swift
[17/61] Compiling AICore AIEmbedding.swift
[18/61] Compiling AICore AIEmbeddingRequest.swift
[19/61] Compiling AICore AIEmbeddingResponse.swift
[20/61] Compiling AICore AIError.swift
[21/61] Compiling AICore AIContent.swift
[22/61] Compiling AICore AIDocument.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[23/61] Emitting module AICore
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:9:28: error: cannot find type 'URLRequest' in scope
7 | /// An abstraction over HTTP transport used by providers.
8 | public protocol AIHTTPTransport: Sendable {
9 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
10 | func stream(for request: URLRequest) async throws -> AIHTTPStreamResponse
11 | }
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:9:63: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | /// An abstraction over HTTP transport used by providers.
8 | public protocol AIHTTPTransport: Sendable {
9 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | func stream(for request: URLRequest) async throws -> AIHTTPStreamResponse
11 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:10:30: error: cannot find type 'URLRequest' in scope
8 | public protocol AIHTTPTransport: Sendable {
9 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
10 | func stream(for request: URLRequest) async throws -> AIHTTPStreamResponse
| `- error: cannot find type 'URLRequest' in scope
11 | }
12 |
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:15:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | /// A streaming HTTP response.
14 | public struct AIHTTPStreamResponse: Sendable {
15 | public let response: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | /// The raw transport stream.
17 | ///
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:24:27: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | public let body: AsyncThrowingStream<Data, any Error>
23 |
24 | public init(response: HTTPURLResponse, body: AsyncThrowingStream<Data, any Error>) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | self.response = response
26 | self.body = body
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:15:16: error: stored property 'response' of 'Sendable'-conforming struct 'AIHTTPStreamResponse' has non-Sendable type 'AnyObject'
13 | /// A streaming HTTP response.
14 | public struct AIHTTPStreamResponse: Sendable {
15 | public let response: HTTPURLResponse
| `- error: stored property 'response' of 'Sendable'-conforming struct 'AIHTTPStreamResponse' has non-Sendable type 'AnyObject'
16 | /// The raw transport stream.
17 | ///
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:32:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | /// The default URLSession-backed transport scaffold.
31 | public struct URLSessionTransport: AIHTTPTransport, Sendable {
32 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |
34 | public init(session: URLSession = .shared) {
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/AICore/Transport/AIHTTPTransport.swift:34:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | private let session: URLSession
33 |
34 | public init(session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | self.session = session
36 | }
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/AICore/Transport/AIHTTPTransport.swift:34:40: error: value of type '_' expected to be instance of class or class-constrained type
32 | private let session: URLSession
33 |
34 | public init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
35 | self.session = session
36 | }
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:34:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
32 | private let session: URLSession
33 |
34 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
35 | self.session = session
36 | }
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:38:35: error: cannot find type 'URLRequest' in scope
36 | }
37 |
38 | public func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
39 | try Task.checkCancellation()
40 |
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:38:70: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | }
37 |
38 | public func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | try Task.checkCancellation()
40 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:59:37: error: cannot find type 'URLRequest' in scope
57 | }
58 |
59 | public func stream(for request: URLRequest) async throws -> AIHTTPStreamResponse {
| `- error: cannot find type 'URLRequest' in scope
60 | try Task.checkCancellation()
61 |
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:32:17: error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-Sendable type 'AnyObject'
30 | /// The default URLSession-backed transport scaffold.
31 | public struct URLSessionTransport: AIHTTPTransport, Sendable {
32 | private let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-Sendable type 'AnyObject'
33 |
34 | public init(session: URLSession = .shared) {
[24/67] Compiling AICore StructuredOutputGenerator.swift
[25/67] Compiling AICore StructuredOutputRepair.swift
[26/67] Compiling AICore AITimeout.swift
[27/67] Compiling AICore AITool.swift
[28/67] Compiling AICore AIToolChoice.swift
[29/67] Compiling AICore AIToolExecution.swift
[30/67] Compiling AICore AIModel.swift
[31/67] Compiling AICore AIAccounting.swift
[32/67] Compiling AICore AITelemetry.swift
[33/67] Compiling AICore AITelemetryEvent.swift
[34/67] Compiling AICore AITelemetryMetrics.swift
[35/67] Compiling AICore AITelemetryRedaction.swift
[36/67] Compiling AICore AIProvider+ToolExecution.swift
[37/67] Compiling AICore SmoothStreaming.swift
[38/67] Compiling AICore AIJSONSchema.swift
[39/67] Compiling AICore AIJSONSchemaGenerator.swift
[40/67] Compiling AICore AIProvider+StructuredOutput.swift
[41/67] Compiling AICore AIStructured.swift
[42/67] Compiling AICore AIStructuredResponse.swift
[43/67] Compiling AICore AIUsageAccumulator.swift
[44/67] Compiling AICore RetryExecutor.swift
[45/67] Compiling AICore RetryPolicy.swift
[46/67] Compiling AICore AIStream.swift
[47/67] Compiling AICore AIStreamDelta.swift
[48/67] Compiling AICore AIStreamEvent.swift
[49/67] Compiling AICore AIProvider.swift
[50/67] Compiling AICore AIProviderCapabilities.swift
[51/67] Compiling AICore AIRequest.swift
[52/67] Compiling AICore AIResponseFormat.swift
[53/67] Compiling AICore AIProviderWarning.swift
[54/67] Compiling AICore AIResponse.swift
[55/67] Compiling AICore AIUsage.swift
[56/67] Compiling AICore AIToolResponse.swift
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:9:28: error: cannot find type 'URLRequest' in scope
7 | /// An abstraction over HTTP transport used by providers.
8 | public protocol AIHTTPTransport: Sendable {
9 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
10 | func stream(for request: URLRequest) async throws -> AIHTTPStreamResponse
11 | }
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:9:63: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | /// An abstraction over HTTP transport used by providers.
8 | public protocol AIHTTPTransport: Sendable {
9 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | func stream(for request: URLRequest) async throws -> AIHTTPStreamResponse
11 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:10:30: error: cannot find type 'URLRequest' in scope
8 | public protocol AIHTTPTransport: Sendable {
9 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
10 | func stream(for request: URLRequest) async throws -> AIHTTPStreamResponse
| `- error: cannot find type 'URLRequest' in scope
11 | }
12 |
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:15:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | /// A streaming HTTP response.
14 | public struct AIHTTPStreamResponse: Sendable {
15 | public let response: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | /// The raw transport stream.
17 | ///
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:24:27: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | public let body: AsyncThrowingStream<Data, any Error>
23 |
24 | public init(response: HTTPURLResponse, body: AsyncThrowingStream<Data, any Error>) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | self.response = response
26 | self.body = body
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:15:16: error: stored property 'response' of 'Sendable'-conforming struct 'AIHTTPStreamResponse' has non-Sendable type 'AnyObject'
13 | /// A streaming HTTP response.
14 | public struct AIHTTPStreamResponse: Sendable {
15 | public let response: HTTPURLResponse
| `- error: stored property 'response' of 'Sendable'-conforming struct 'AIHTTPStreamResponse' has non-Sendable type 'AnyObject'
16 | /// The raw transport stream.
17 | ///
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:32:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | /// The default URLSession-backed transport scaffold.
31 | public struct URLSessionTransport: AIHTTPTransport, Sendable {
32 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |
34 | public init(session: URLSession = .shared) {
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/AICore/Transport/AIHTTPTransport.swift:34:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | private let session: URLSession
33 |
34 | public init(session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | self.session = session
36 | }
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/AICore/Transport/AIHTTPTransport.swift:34:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
32 | private let session: URLSession
33 |
34 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
35 | self.session = session
36 | }
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:34:40: error: value of type '_' expected to be instance of class or class-constrained type
32 | private let session: URLSession
33 |
34 | public init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
35 | self.session = session
36 | }
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:38:35: error: cannot find type 'URLRequest' in scope
36 | }
37 |
38 | public func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
39 | try Task.checkCancellation()
40 |
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:38:70: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | }
37 |
38 | public func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | try Task.checkCancellation()
40 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:59:37: error: cannot find type 'URLRequest' in scope
57 | }
58 |
59 | public func stream(for request: URLRequest) async throws -> AIHTTPStreamResponse {
| `- error: cannot find type 'URLRequest' in scope
60 | try Task.checkCancellation()
61 |
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:32:17: error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-Sendable type 'AnyObject'
30 | /// The default URLSession-backed transport scaffold.
31 | public struct URLSessionTransport: AIHTTPTransport, Sendable {
32 | private let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-Sendable type 'AnyObject'
33 |
34 | public init(session: URLSession = .shared) {
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:42:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
40 |
41 | do {
42 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
43 | guard let httpResponse = response as? HTTPURLResponse else {
44 | throw AIError.networkError(
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:63:55: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
61 |
62 | do {
63 | let (bytes, response) = try await session.bytes(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
64 | guard let httpResponse = response as? HTTPURLResponse else {
65 | throw AIError.networkError(
[57/67] Compiling AICore AIToolResult.swift
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:9:28: error: cannot find type 'URLRequest' in scope
7 | /// An abstraction over HTTP transport used by providers.
8 | public protocol AIHTTPTransport: Sendable {
9 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
10 | func stream(for request: URLRequest) async throws -> AIHTTPStreamResponse
11 | }
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:9:63: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | /// An abstraction over HTTP transport used by providers.
8 | public protocol AIHTTPTransport: Sendable {
9 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | func stream(for request: URLRequest) async throws -> AIHTTPStreamResponse
11 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:10:30: error: cannot find type 'URLRequest' in scope
8 | public protocol AIHTTPTransport: Sendable {
9 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
10 | func stream(for request: URLRequest) async throws -> AIHTTPStreamResponse
| `- error: cannot find type 'URLRequest' in scope
11 | }
12 |
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:15:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | /// A streaming HTTP response.
14 | public struct AIHTTPStreamResponse: Sendable {
15 | public let response: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | /// The raw transport stream.
17 | ///
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:24:27: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | public let body: AsyncThrowingStream<Data, any Error>
23 |
24 | public init(response: HTTPURLResponse, body: AsyncThrowingStream<Data, any Error>) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | self.response = response
26 | self.body = body
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:15:16: error: stored property 'response' of 'Sendable'-conforming struct 'AIHTTPStreamResponse' has non-Sendable type 'AnyObject'
13 | /// A streaming HTTP response.
14 | public struct AIHTTPStreamResponse: Sendable {
15 | public let response: HTTPURLResponse
| `- error: stored property 'response' of 'Sendable'-conforming struct 'AIHTTPStreamResponse' has non-Sendable type 'AnyObject'
16 | /// The raw transport stream.
17 | ///
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:32:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | /// The default URLSession-backed transport scaffold.
31 | public struct URLSessionTransport: AIHTTPTransport, Sendable {
32 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |
34 | public init(session: URLSession = .shared) {
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/AICore/Transport/AIHTTPTransport.swift:34:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | private let session: URLSession
33 |
34 | public init(session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | self.session = session
36 | }
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/AICore/Transport/AIHTTPTransport.swift:34:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
32 | private let session: URLSession
33 |
34 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
35 | self.session = session
36 | }
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:34:40: error: value of type '_' expected to be instance of class or class-constrained type
32 | private let session: URLSession
33 |
34 | public init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
35 | self.session = session
36 | }
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:38:35: error: cannot find type 'URLRequest' in scope
36 | }
37 |
38 | public func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
39 | try Task.checkCancellation()
40 |
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:38:70: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | }
37 |
38 | public func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | try Task.checkCancellation()
40 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:59:37: error: cannot find type 'URLRequest' in scope
57 | }
58 |
59 | public func stream(for request: URLRequest) async throws -> AIHTTPStreamResponse {
| `- error: cannot find type 'URLRequest' in scope
60 | try Task.checkCancellation()
61 |
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:32:17: error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-Sendable type 'AnyObject'
30 | /// The default URLSession-backed transport scaffold.
31 | public struct URLSessionTransport: AIHTTPTransport, Sendable {
32 | private let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-Sendable type 'AnyObject'
33 |
34 | public init(session: URLSession = .shared) {
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:42:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
40 |
41 | do {
42 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
43 | guard let httpResponse = response as? HTTPURLResponse else {
44 | throw AIError.networkError(
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:63:55: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
61 |
62 | do {
63 | let (bytes, response) = try await session.bytes(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
64 | guard let httpResponse = response as? HTTPURLResponse else {
65 | throw AIError.networkError(
[58/67] Compiling AICore AIToolStream.swift
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:9:28: error: cannot find type 'URLRequest' in scope
7 | /// An abstraction over HTTP transport used by providers.
8 | public protocol AIHTTPTransport: Sendable {
9 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
10 | func stream(for request: URLRequest) async throws -> AIHTTPStreamResponse
11 | }
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:9:63: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | /// An abstraction over HTTP transport used by providers.
8 | public protocol AIHTTPTransport: Sendable {
9 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | func stream(for request: URLRequest) async throws -> AIHTTPStreamResponse
11 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:10:30: error: cannot find type 'URLRequest' in scope
8 | public protocol AIHTTPTransport: Sendable {
9 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
10 | func stream(for request: URLRequest) async throws -> AIHTTPStreamResponse
| `- error: cannot find type 'URLRequest' in scope
11 | }
12 |
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:15:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | /// A streaming HTTP response.
14 | public struct AIHTTPStreamResponse: Sendable {
15 | public let response: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | /// The raw transport stream.
17 | ///
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:24:27: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | public let body: AsyncThrowingStream<Data, any Error>
23 |
24 | public init(response: HTTPURLResponse, body: AsyncThrowingStream<Data, any Error>) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | self.response = response
26 | self.body = body
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:15:16: error: stored property 'response' of 'Sendable'-conforming struct 'AIHTTPStreamResponse' has non-Sendable type 'AnyObject'
13 | /// A streaming HTTP response.
14 | public struct AIHTTPStreamResponse: Sendable {
15 | public let response: HTTPURLResponse
| `- error: stored property 'response' of 'Sendable'-conforming struct 'AIHTTPStreamResponse' has non-Sendable type 'AnyObject'
16 | /// The raw transport stream.
17 | ///
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:32:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | /// The default URLSession-backed transport scaffold.
31 | public struct URLSessionTransport: AIHTTPTransport, Sendable {
32 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |
34 | public init(session: URLSession = .shared) {
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/AICore/Transport/AIHTTPTransport.swift:34:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | private let session: URLSession
33 |
34 | public init(session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | self.session = session
36 | }
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/AICore/Transport/AIHTTPTransport.swift:34:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
32 | private let session: URLSession
33 |
34 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
35 | self.session = session
36 | }
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:34:40: error: value of type '_' expected to be instance of class or class-constrained type
32 | private let session: URLSession
33 |
34 | public init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
35 | self.session = session
36 | }
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:38:35: error: cannot find type 'URLRequest' in scope
36 | }
37 |
38 | public func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
39 | try Task.checkCancellation()
40 |
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:38:70: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | }
37 |
38 | public func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | try Task.checkCancellation()
40 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:59:37: error: cannot find type 'URLRequest' in scope
57 | }
58 |
59 | public func stream(for request: URLRequest) async throws -> AIHTTPStreamResponse {
| `- error: cannot find type 'URLRequest' in scope
60 | try Task.checkCancellation()
61 |
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:32:17: error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-Sendable type 'AnyObject'
30 | /// The default URLSession-backed transport scaffold.
31 | public struct URLSessionTransport: AIHTTPTransport, Sendable {
32 | private let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-Sendable type 'AnyObject'
33 |
34 | public init(session: URLSession = .shared) {
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:42:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
40 |
41 | do {
42 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
43 | guard let httpResponse = response as? HTTPURLResponse else {
44 | throw AIError.networkError(
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:63:55: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
61 |
62 | do {
63 | let (bytes, response) = try await session.bytes(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
64 | guard let httpResponse = response as? HTTPURLResponse else {
65 | throw AIError.networkError(
[59/67] Compiling AICore AIToolUse.swift
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:9:28: error: cannot find type 'URLRequest' in scope
7 | /// An abstraction over HTTP transport used by providers.
8 | public protocol AIHTTPTransport: Sendable {
9 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
10 | func stream(for request: URLRequest) async throws -> AIHTTPStreamResponse
11 | }
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:9:63: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | /// An abstraction over HTTP transport used by providers.
8 | public protocol AIHTTPTransport: Sendable {
9 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | func stream(for request: URLRequest) async throws -> AIHTTPStreamResponse
11 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:10:30: error: cannot find type 'URLRequest' in scope
8 | public protocol AIHTTPTransport: Sendable {
9 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
10 | func stream(for request: URLRequest) async throws -> AIHTTPStreamResponse
| `- error: cannot find type 'URLRequest' in scope
11 | }
12 |
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:15:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | /// A streaming HTTP response.
14 | public struct AIHTTPStreamResponse: Sendable {
15 | public let response: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | /// The raw transport stream.
17 | ///
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:24:27: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | public let body: AsyncThrowingStream<Data, any Error>
23 |
24 | public init(response: HTTPURLResponse, body: AsyncThrowingStream<Data, any Error>) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | self.response = response
26 | self.body = body
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:15:16: error: stored property 'response' of 'Sendable'-conforming struct 'AIHTTPStreamResponse' has non-Sendable type 'AnyObject'
13 | /// A streaming HTTP response.
14 | public struct AIHTTPStreamResponse: Sendable {
15 | public let response: HTTPURLResponse
| `- error: stored property 'response' of 'Sendable'-conforming struct 'AIHTTPStreamResponse' has non-Sendable type 'AnyObject'
16 | /// The raw transport stream.
17 | ///
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:32:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | /// The default URLSession-backed transport scaffold.
31 | public struct URLSessionTransport: AIHTTPTransport, Sendable {
32 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |
34 | public init(session: URLSession = .shared) {
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/AICore/Transport/AIHTTPTransport.swift:34:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | private let session: URLSession
33 |
34 | public init(session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | self.session = session
36 | }
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/AICore/Transport/AIHTTPTransport.swift:34:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
32 | private let session: URLSession
33 |
34 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
35 | self.session = session
36 | }
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:34:40: error: value of type '_' expected to be instance of class or class-constrained type
32 | private let session: URLSession
33 |
34 | public init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
35 | self.session = session
36 | }
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:38:35: error: cannot find type 'URLRequest' in scope
36 | }
37 |
38 | public func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
39 | try Task.checkCancellation()
40 |
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:38:70: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | }
37 |
38 | public func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | try Task.checkCancellation()
40 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:59:37: error: cannot find type 'URLRequest' in scope
57 | }
58 |
59 | public func stream(for request: URLRequest) async throws -> AIHTTPStreamResponse {
| `- error: cannot find type 'URLRequest' in scope
60 | try Task.checkCancellation()
61 |
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:32:17: error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-Sendable type 'AnyObject'
30 | /// The default URLSession-backed transport scaffold.
31 | public struct URLSessionTransport: AIHTTPTransport, Sendable {
32 | private let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-Sendable type 'AnyObject'
33 |
34 | public init(session: URLSession = .shared) {
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:42:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
40 |
41 | do {
42 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
43 | guard let httpResponse = response as? HTTPURLResponse else {
44 | throw AIError.networkError(
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:63:55: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
61 |
62 | do {
63 | let (bytes, response) = try await session.bytes(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
64 | guard let httpResponse = response as? HTTPURLResponse else {
65 | throw AIError.networkError(
[60/67] Compiling AICore StopCondition.swift
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:9:28: error: cannot find type 'URLRequest' in scope
7 | /// An abstraction over HTTP transport used by providers.
8 | public protocol AIHTTPTransport: Sendable {
9 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
10 | func stream(for request: URLRequest) async throws -> AIHTTPStreamResponse
11 | }
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:9:63: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | /// An abstraction over HTTP transport used by providers.
8 | public protocol AIHTTPTransport: Sendable {
9 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | func stream(for request: URLRequest) async throws -> AIHTTPStreamResponse
11 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:10:30: error: cannot find type 'URLRequest' in scope
8 | public protocol AIHTTPTransport: Sendable {
9 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
10 | func stream(for request: URLRequest) async throws -> AIHTTPStreamResponse
| `- error: cannot find type 'URLRequest' in scope
11 | }
12 |
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:15:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | /// A streaming HTTP response.
14 | public struct AIHTTPStreamResponse: Sendable {
15 | public let response: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | /// The raw transport stream.
17 | ///
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:24:27: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | public let body: AsyncThrowingStream<Data, any Error>
23 |
24 | public init(response: HTTPURLResponse, body: AsyncThrowingStream<Data, any Error>) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | self.response = response
26 | self.body = body
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:15:16: error: stored property 'response' of 'Sendable'-conforming struct 'AIHTTPStreamResponse' has non-Sendable type 'AnyObject'
13 | /// A streaming HTTP response.
14 | public struct AIHTTPStreamResponse: Sendable {
15 | public let response: HTTPURLResponse
| `- error: stored property 'response' of 'Sendable'-conforming struct 'AIHTTPStreamResponse' has non-Sendable type 'AnyObject'
16 | /// The raw transport stream.
17 | ///
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:32:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | /// The default URLSession-backed transport scaffold.
31 | public struct URLSessionTransport: AIHTTPTransport, Sendable {
32 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |
34 | public init(session: URLSession = .shared) {
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/AICore/Transport/AIHTTPTransport.swift:34:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | private let session: URLSession
33 |
34 | public init(session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | self.session = session
36 | }
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/AICore/Transport/AIHTTPTransport.swift:34:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
32 | private let session: URLSession
33 |
34 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
35 | self.session = session
36 | }
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:34:40: error: value of type '_' expected to be instance of class or class-constrained type
32 | private let session: URLSession
33 |
34 | public init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
35 | self.session = session
36 | }
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:38:35: error: cannot find type 'URLRequest' in scope
36 | }
37 |
38 | public func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
39 | try Task.checkCancellation()
40 |
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:38:70: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | }
37 |
38 | public func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | try Task.checkCancellation()
40 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:59:37: error: cannot find type 'URLRequest' in scope
57 | }
58 |
59 | public func stream(for request: URLRequest) async throws -> AIHTTPStreamResponse {
| `- error: cannot find type 'URLRequest' in scope
60 | try Task.checkCancellation()
61 |
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:32:17: error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-Sendable type 'AnyObject'
30 | /// The default URLSession-backed transport scaffold.
31 | public struct URLSessionTransport: AIHTTPTransport, Sendable {
32 | private let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-Sendable type 'AnyObject'
33 |
34 | public init(session: URLSession = .shared) {
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:42:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
40 |
41 | do {
42 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
43 | guard let httpResponse = response as? HTTPURLResponse else {
44 | throw AIError.networkError(
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:63:55: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
61 |
62 | do {
63 | let (bytes, response) = try await session.bytes(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
64 | guard let httpResponse = response as? HTTPURLResponse else {
65 | throw AIError.networkError(
[61/67] Compiling AICore AIHTTPTransport.swift
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:9:28: error: cannot find type 'URLRequest' in scope
7 | /// An abstraction over HTTP transport used by providers.
8 | public protocol AIHTTPTransport: Sendable {
9 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
10 | func stream(for request: URLRequest) async throws -> AIHTTPStreamResponse
11 | }
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:9:63: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | /// An abstraction over HTTP transport used by providers.
8 | public protocol AIHTTPTransport: Sendable {
9 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | func stream(for request: URLRequest) async throws -> AIHTTPStreamResponse
11 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:10:30: error: cannot find type 'URLRequest' in scope
8 | public protocol AIHTTPTransport: Sendable {
9 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
10 | func stream(for request: URLRequest) async throws -> AIHTTPStreamResponse
| `- error: cannot find type 'URLRequest' in scope
11 | }
12 |
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:15:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | /// A streaming HTTP response.
14 | public struct AIHTTPStreamResponse: Sendable {
15 | public let response: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | /// The raw transport stream.
17 | ///
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:24:27: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | public let body: AsyncThrowingStream<Data, any Error>
23 |
24 | public init(response: HTTPURLResponse, body: AsyncThrowingStream<Data, any Error>) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | self.response = response
26 | self.body = body
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:15:16: error: stored property 'response' of 'Sendable'-conforming struct 'AIHTTPStreamResponse' has non-Sendable type 'AnyObject'
13 | /// A streaming HTTP response.
14 | public struct AIHTTPStreamResponse: Sendable {
15 | public let response: HTTPURLResponse
| `- error: stored property 'response' of 'Sendable'-conforming struct 'AIHTTPStreamResponse' has non-Sendable type 'AnyObject'
16 | /// The raw transport stream.
17 | ///
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:32:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | /// The default URLSession-backed transport scaffold.
31 | public struct URLSessionTransport: AIHTTPTransport, Sendable {
32 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |
34 | public init(session: URLSession = .shared) {
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/AICore/Transport/AIHTTPTransport.swift:34:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | private let session: URLSession
33 |
34 | public init(session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | self.session = session
36 | }
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/AICore/Transport/AIHTTPTransport.swift:34:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
32 | private let session: URLSession
33 |
34 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
35 | self.session = session
36 | }
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:34:40: error: value of type '_' expected to be instance of class or class-constrained type
32 | private let session: URLSession
33 |
34 | public init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
35 | self.session = session
36 | }
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:38:35: error: cannot find type 'URLRequest' in scope
36 | }
37 |
38 | public func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
39 | try Task.checkCancellation()
40 |
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:38:70: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | }
37 |
38 | public func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | try Task.checkCancellation()
40 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:59:37: error: cannot find type 'URLRequest' in scope
57 | }
58 |
59 | public func stream(for request: URLRequest) async throws -> AIHTTPStreamResponse {
| `- error: cannot find type 'URLRequest' in scope
60 | try Task.checkCancellation()
61 |
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:32:17: error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-Sendable type 'AnyObject'
30 | /// The default URLSession-backed transport scaffold.
31 | public struct URLSessionTransport: AIHTTPTransport, Sendable {
32 | private let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-Sendable type 'AnyObject'
33 |
34 | public init(session: URLSession = .shared) {
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:42:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
40 |
41 | do {
42 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
43 | guard let httpResponse = response as? HTTPURLResponse else {
44 | throw AIError.networkError(
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:63:55: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
61 |
62 | do {
63 | let (bytes, response) = try await session.bytes(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
64 | guard let httpResponse = response as? HTTPURLResponse else {
65 | throw AIError.networkError(
BUILD FAILURE 6.3 wasm