The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-ai, reference 0.1.4 (b27fe4), with Swift 6.1 for Wasm on 11 Mar 2026 13:14:01 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/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ohitslaurence/swift-ai-sdk.git
Reference: 0.1.4
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
 * tag               0.1.4      -> FETCH_HEAD
HEAD is now at b27fe4b Prepare 0.1.4 release
Cloned https://github.com/ohitslaurence/swift-ai-sdk.git
Revision (git rev-parse @):
b27fe4b55f9961e237ab213beefaa09e6ecc0b29
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/ohitslaurence/swift-ai-sdk.git at 0.1.4
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/ohitslaurence/swift-ai-sdk.git
https://github.com/ohitslaurence/swift-ai-sdk.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "swift-ai",
  "name" : "swift-ai",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "14.0"
    },
    {
      "name" : "ios",
      "version" : "17.0"
    },
    {
      "name" : "tvos",
      "version" : "17.0"
    },
    {
      "name" : "watchos",
      "version" : "10.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "AI",
      "targets" : [
        "AI"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "AICore",
      "targets" : [
        "AICore"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "AIProviderAnthropic",
      "targets" : [
        "AIProviderAnthropic"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "AIProviderOpenAI",
      "targets" : [
        "AIProviderOpenAI"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "AISwiftUI",
      "targets" : [
        "AISwiftUI"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "AIIntegrationTests",
      "targets" : [
        "AIIntegrationTests"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "AITestSupport",
      "module_type" : "SwiftTarget",
      "name" : "AITestSupport",
      "path" : "Tests/AITestSupport",
      "sources" : [
        "MockProvider.swift",
        "MockTransport.swift",
        "MockURLProtocol.swift"
      ],
      "target_dependencies" : [
        "AICore"
      ],
      "type" : "library"
    },
    {
      "c99name" : "AISwiftUITests",
      "module_type" : "SwiftTarget",
      "name" : "AISwiftUITests",
      "path" : "Tests/AISwiftUITests",
      "sources" : [
        "AISwiftUISmokeTests.swift",
        "AISwiftUITests.swift"
      ],
      "target_dependencies" : [
        "AISwiftUI",
        "AITestSupport"
      ],
      "type" : "test"
    },
    {
      "c99name" : "AISwiftUI",
      "module_type" : "SwiftTarget",
      "name" : "AISwiftUI",
      "path" : "Sources/AISwiftUI",
      "product_memberships" : [
        "AI",
        "AISwiftUI"
      ],
      "sources" : [
        "AIConversation.swift",
        "AIMessageList.swift",
        "AIStreamState.swift",
        "MessageBubble.swift",
        "StreamingText.swift"
      ],
      "target_dependencies" : [
        "AICore"
      ],
      "type" : "library"
    },
    {
      "c99name" : "AIProviderOpenAITests",
      "module_type" : "SwiftTarget",
      "name" : "AIProviderOpenAITests",
      "path" : "Tests/AIProviderOpenAITests",
      "sources" : [
        "OpenAIProviderSmokeTests.swift",
        "OpenAIProviderTests.swift"
      ],
      "target_dependencies" : [
        "AIProviderOpenAI",
        "AITestSupport"
      ],
      "type" : "test"
    },
    {
      "c99name" : "AIProviderOpenAI",
      "module_type" : "SwiftTarget",
      "name" : "AIProviderOpenAI",
      "path" : "Sources/AIProviderOpenAI",
      "product_memberships" : [
        "AI",
        "AIProviderOpenAI",
        "AIIntegrationTests"
      ],
      "sources" : [
        "Internal/OpenAIEmbeddingRequestBuilder.swift",
        "Internal/OpenAIEmbeddingResponseParser.swift",
        "Internal/OpenAIErrorMapper.swift",
        "Internal/OpenAIRequestBuilder.swift",
        "Internal/OpenAIResponseParser.swift",
        "Internal/OpenAIStreamParser.swift",
        "OpenAIModels.swift",
        "OpenAIProvider.swift"
      ],
      "target_dependencies" : [
        "AICore"
      ],
      "type" : "library"
    },
    {
      "c99name" : "AIProviderAnthropicTests",
      "module_type" : "SwiftTarget",
      "name" : "AIProviderAnthropicTests",
      "path" : "Tests/AIProviderAnthropicTests",
      "sources" : [
        "AnthropicProviderSmokeTests.swift",
        "AnthropicProviderTransportTests.swift"
      ],
      "target_dependencies" : [
        "AIProviderAnthropic",
        "AITestSupport"
      ],
      "type" : "test"
    },
    {
      "c99name" : "AIProviderAnthropic",
      "module_type" : "SwiftTarget",
      "name" : "AIProviderAnthropic",
      "path" : "Sources/AIProviderAnthropic",
      "product_memberships" : [
        "AI",
        "AIProviderAnthropic",
        "AIIntegrationTests"
      ],
      "sources" : [
        "AnthropicModels.swift",
        "AnthropicProvider.swift",
        "Internal/AnthropicErrorMapper.swift",
        "Internal/AnthropicRequestBuilder.swift",
        "Internal/AnthropicResponseParser.swift",
        "Internal/AnthropicStreamParser.swift"
      ],
      "target_dependencies" : [
        "AICore"
      ],
      "type" : "library"
    },
    {
      "c99name" : "AIIntegrationTests",
      "module_type" : "SwiftTarget",
      "name" : "AIIntegrationTests",
      "path" : "Tools/AIIntegrationTests",
      "product_memberships" : [
        "AIIntegrationTests"
      ],
      "sources" : [
        "LoggingTransport.swift",
        "TestRunner.swift",
        "main.swift"
      ],
      "target_dependencies" : [
        "AICore",
        "AIProviderOpenAI",
        "AIProviderAnthropic"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "AICoreTests",
      "module_type" : "SwiftTarget",
      "name" : "AICoreTests",
      "path" : "Tests/AICoreTests",
      "sources" : [
        "CoreTypesTests.swift",
        "MiddlewareTests.swift",
        "ObservabilityTests.swift",
        "ProviderHelpersAndEmbeddingsTests.swift",
        "ResponseAndErrorTests.swift",
        "RetryAndTimeoutTests.swift",
        "StreamTests.swift",
        "StructuredOutput/StructuredOutputTests.swift",
        "ToolAndSchemaTests.swift",
        "ToolUse/ToolUseTests.swift",
        "TransportAndSupportTests.swift",
        "UsageTests.swift"
      ],
      "target_dependencies" : [
        "AICore",
        "AITestSupport"
      ],
      "type" : "test"
    },
    {
      "c99name" : "AICore",
      "module_type" : "SwiftTarget",
      "name" : "AICore",
      "path" : "Sources/AICore",
      "product_memberships" : [
        "AI",
        "AICore",
        "AIProviderAnthropic",
        "AIProviderOpenAI",
        "AISwiftUI",
        "AIIntegrationTests"
      ],
      "sources" : [
        "Agent/Agent.swift",
        "Embeddings/AIEmbedding.swift",
        "Embeddings/AIEmbeddingRequest.swift",
        "Embeddings/AIEmbeddingResponse.swift",
        "Errors/AIError.swift",
        "Messages/AIContent.swift",
        "Messages/AIDocument.swift",
        "Messages/AIImage.swift",
        "Messages/AIMessage.swift",
        "Messages/AIRole.swift",
        "Middleware/AIMiddleware.swift",
        "Middleware/DefaultSettingsMiddleware.swift",
        "Middleware/LoggingMiddleware.swift",
        "Middleware/MiddlewareProvider.swift",
        "Models/AIModel.swift",
        "Observability/AIAccounting.swift",
        "Observability/AITelemetry.swift",
        "Observability/AITelemetryEvent.swift",
        "Observability/AITelemetryMetrics.swift",
        "Observability/AITelemetryRedaction.swift",
        "Provider/AIProvider+ToolExecution.swift",
        "Provider/AIProvider.swift",
        "Provider/AIProviderCapabilities.swift",
        "Request/AIRequest.swift",
        "Request/AIResponseFormat.swift",
        "Response/AIProviderWarning.swift",
        "Response/AIResponse.swift",
        "Response/AIUsage.swift",
        "Response/AIUsageAccumulator.swift",
        "Retry/RetryExecutor.swift",
        "Retry/RetryPolicy.swift",
        "Streaming/AIStream.swift",
        "Streaming/AIStreamDelta.swift",
        "Streaming/AIStreamEvent.swift",
        "Streaming/SmoothStreaming.swift",
        "StructuredOutput/AIJSONSchema.swift",
        "StructuredOutput/AIJSONSchemaGenerator.swift",
        "StructuredOutput/AIProvider+StructuredOutput.swift",
        "StructuredOutput/AIStructured.swift",
        "StructuredOutput/AIStructuredResponse.swift",
        "StructuredOutput/StructuredOutputGenerator.swift",
        "StructuredOutput/StructuredOutputRepair.swift",
        "Timeout/AITimeout.swift",
        "Tools/AITool.swift",
        "Tools/AIToolChoice.swift",
        "Tools/AIToolExecution.swift",
        "Tools/AIToolResponse.swift",
        "Tools/AIToolResult.swift",
        "Tools/AIToolStream.swift",
        "Tools/AIToolUse.swift",
        "Tools/StopCondition.swift",
        "Transport/AIHTTPTransport.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "AI",
      "module_type" : "SwiftTarget",
      "name" : "AI",
      "path" : "Sources/AI",
      "product_memberships" : [
        "AI"
      ],
      "sources" : [
        "AI.swift"
      ],
      "target_dependencies" : [
        "AICore",
        "AIProviderAnthropic",
        "AIProviderOpenAI",
        "AISwiftUI"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
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/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:58b971189c4d3c564696bb40c86e07506670ed096ab7351a005c7c449525017a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Building for debugging...
[0/14] Write sources
[7/14] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/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 'HTTPURLResponse' (aka '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 'HTTPURLResponse' (aka '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: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 'URLSession' (aka '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 'URLSession' (aka 'AnyObject')
 33 |
 34 |     public init(session: URLSession = .shared) {
[10/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 'HTTPURLResponse' (aka '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 'HTTPURLResponse' (aka '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: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 'URLSession' (aka '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 'URLSession' (aka '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(
[11/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 'HTTPURLResponse' (aka '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 'HTTPURLResponse' (aka '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: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 'URLSession' (aka '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 'URLSession' (aka '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(
[12/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 'HTTPURLResponse' (aka '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 'HTTPURLResponse' (aka '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: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 'URLSession' (aka '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 'URLSession' (aka '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(
[13/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 'HTTPURLResponse' (aka '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 'HTTPURLResponse' (aka '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: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 'URLSession' (aka '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 'URLSession' (aka '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(
[14/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 'HTTPURLResponse' (aka '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 'HTTPURLResponse' (aka '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: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 'URLSession' (aka '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 'URLSession' (aka '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(
[15/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 'HTTPURLResponse' (aka '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 'HTTPURLResponse' (aka '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: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 'URLSession' (aka '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 'URLSession' (aka '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(
[16/67] Compiling AICore AIModel.swift
[17/67] Compiling AICore AIAccounting.swift
[18/67] Compiling AICore AITelemetry.swift
[19/67] Compiling AICore AITelemetryEvent.swift
[20/67] Compiling AICore AITelemetryMetrics.swift
[21/67] Compiling AICore AITelemetryRedaction.swift
[22/67] Compiling AICore AIProvider+ToolExecution.swift
[23/67] Compiling AICore Agent.swift
[24/67] Compiling AICore AIEmbedding.swift
[25/67] Compiling AICore AIEmbeddingRequest.swift
[26/67] Compiling AICore AIEmbeddingResponse.swift
[27/67] Compiling AICore AIError.swift
[28/67] Compiling AICore AIContent.swift
[29/67] Compiling AICore AIDocument.swift
[30/67] Compiling AICore AIImage.swift
[31/67] Compiling AICore AIMessage.swift
[32/67] Compiling AICore AIRole.swift
[33/67] Compiling AICore AIMiddleware.swift
[34/67] Compiling AICore DefaultSettingsMiddleware.swift
[35/67] Compiling AICore LoggingMiddleware.swift
[36/67] Compiling AICore MiddlewareProvider.swift
[37/67] Compiling AICore AIUsageAccumulator.swift
[38/67] Compiling AICore RetryExecutor.swift
[39/67] Compiling AICore RetryPolicy.swift
[40/67] Compiling AICore AIStream.swift
[41/67] Compiling AICore AIStreamDelta.swift
[42/67] Compiling AICore AIStreamEvent.swift
[43/67] Compiling AICore SmoothStreaming.swift
[44/67] Compiling AICore AIJSONSchema.swift
[45/67] Compiling AICore AIJSONSchemaGenerator.swift
[46/67] Compiling AICore AIProvider+StructuredOutput.swift
[47/67] Compiling AICore AIStructured.swift
[48/67] Compiling AICore AIStructuredResponse.swift
[49/67] Compiling AICore StructuredOutputGenerator.swift
[50/67] Compiling AICore StructuredOutputRepair.swift
[51/67] Compiling AICore AITimeout.swift
[52/67] Compiling AICore AITool.swift
[53/67] Compiling AICore AIToolChoice.swift
[54/67] Compiling AICore AIToolExecution.swift
[55/67] Compiling AICore AIProvider.swift
[56/67] Compiling AICore AIProviderCapabilities.swift
[57/67] Compiling AICore AIRequest.swift
[58/67] Compiling AICore AIResponseFormat.swift
[59/67] Compiling AICore AIProviderWarning.swift
[60/67] Compiling AICore AIResponse.swift
[61/67] Compiling AICore AIUsage.swift
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/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:58b971189c4d3c564696bb40c86e07506670ed096ab7351a005c7c449525017a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/7] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/54] 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 'HTTPURLResponse' (aka '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 'HTTPURLResponse' (aka '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: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 'URLSession' (aka '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 'URLSession' (aka 'AnyObject')
 33 |
 34 |     public init(session: URLSession = .shared) {
[3/60] 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 'HTTPURLResponse' (aka '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 'HTTPURLResponse' (aka '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: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 'URLSession' (aka '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 'URLSession' (aka '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(
[4/60] 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 'HTTPURLResponse' (aka '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 'HTTPURLResponse' (aka '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: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 'URLSession' (aka '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 'URLSession' (aka '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(
[5/60] 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 'HTTPURLResponse' (aka '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 'HTTPURLResponse' (aka '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: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 'URLSession' (aka '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 'URLSession' (aka '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(
[6/60] 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 'HTTPURLResponse' (aka '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 'HTTPURLResponse' (aka '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: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 'URLSession' (aka '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 'URLSession' (aka '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(
[7/60] 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 'HTTPURLResponse' (aka '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 'HTTPURLResponse' (aka '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: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 'URLSession' (aka '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 'URLSession' (aka '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(
[8/60] 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 'HTTPURLResponse' (aka '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 'HTTPURLResponse' (aka '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: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 'URLSession' (aka '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 'URLSession' (aka '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(
[9/60] Compiling AICore Agent.swift
[10/60] Compiling AICore AIEmbedding.swift
[11/60] Compiling AICore AIEmbeddingRequest.swift
[12/60] Compiling AICore AIEmbeddingResponse.swift
[13/60] Compiling AICore AIError.swift
[14/60] Compiling AICore AIContent.swift
[15/60] Compiling AICore AIDocument.swift
[16/60] Compiling AICore AIProvider.swift
[17/60] Compiling AICore AIProviderCapabilities.swift
[18/60] Compiling AICore AIRequest.swift
[19/60] Compiling AICore AIResponseFormat.swift
[20/60] Compiling AICore AIProviderWarning.swift
[21/60] Compiling AICore AIResponse.swift
[22/60] Compiling AICore AIUsage.swift
[23/60] Compiling AICore AIModel.swift
[24/60] Compiling AICore AIAccounting.swift
[25/60] Compiling AICore AITelemetry.swift
[26/60] Compiling AICore AITelemetryEvent.swift
[27/60] Compiling AICore AITelemetryMetrics.swift
[28/60] Compiling AICore AITelemetryRedaction.swift
[29/60] Compiling AICore AIProvider+ToolExecution.swift
[30/60] Compiling AICore AIImage.swift
[31/60] Compiling AICore AIMessage.swift
[32/60] Compiling AICore AIRole.swift
[33/60] Compiling AICore AIMiddleware.swift
[34/60] Compiling AICore DefaultSettingsMiddleware.swift
[35/60] Compiling AICore LoggingMiddleware.swift
[36/60] Compiling AICore MiddlewareProvider.swift
[37/60] Compiling AICore AIUsageAccumulator.swift
[38/60] Compiling AICore RetryExecutor.swift
[39/60] Compiling AICore RetryPolicy.swift
[40/60] Compiling AICore AIStream.swift
[41/60] Compiling AICore AIStreamDelta.swift
[42/60] Compiling AICore AIStreamEvent.swift
[43/60] Compiling AICore SmoothStreaming.swift
[44/60] Compiling AICore AIJSONSchema.swift
[45/60] Compiling AICore AIJSONSchemaGenerator.swift
[46/60] Compiling AICore AIProvider+StructuredOutput.swift
[47/60] Compiling AICore AIStructured.swift
[48/60] Compiling AICore AIStructuredResponse.swift
[49/60] Compiling AICore StructuredOutputGenerator.swift
[50/60] Compiling AICore StructuredOutputRepair.swift
[51/60] Compiling AICore AITimeout.swift
[52/60] Compiling AICore AITool.swift
[53/60] Compiling AICore AIToolChoice.swift
[54/60] Compiling AICore AIToolExecution.swift
BUILD FAILURE 6.1 wasm