Build Information
Failed to build DecisionModels, reference main (355da4), with Swift 6.3 for Wasm on 28 Sep 2026 23:20:29 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886770-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/vsekhar/DecisionModels.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/vsekhar/DecisionModels
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 355da43 Bump version to 0.3.0
Cloned https://github.com/vsekhar/DecisionModels.git
Revision (git rev-parse @):
355da4376c79d8c62f6a145e07da5e203e3a0d0d
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/vsekhar/DecisionModels.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.3
Building package at path: $PWD
https://github.com/vsekhar/DecisionModels.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886770-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from saguaro1/spi-images
Digest: sha256:253aad7f5b11d25cf9eaef34120b94cd8a325782929c57fb304a7711494a3f9a
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest
Fetching https://github.com/swiftlang/swift-syntax.git
[1/80070] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax.git from cache (3.62s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 602.0.0 (4.59s)
Creating working copy for https://github.com/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at 602.0.0
Downloading package prebuilt https://download.swift.org/prebuilts/swift-syntax/602.0.0/swift-6.3.2-RELEASE-ubuntu_jammy_x86_64-MacroSupport.tar.gz
Downloaded https://download.swift.org/prebuilts/swift-syntax/602.0.0/swift-6.3.2-RELEASE-ubuntu_jammy_x86_64-MacroSupport.tar.gz (0.19s)
Building for debugging...
[0/50] Write sources
[29/50] Compiling _SwiftSyntaxCShims PlatformMutex.c
[30/50] Write swift-version-24593BA9C3E375BF.txt
[32/60] Emitting module SwiftSyntax509
[33/60] Emitting module SwiftSyntax601
[34/60] Emitting module SwiftSyntax600
[35/60] Emitting module SwiftSyntax602
[36/60] Compiling SwiftSyntax602 Empty.swift
[37/61] Wrapping AST for SwiftSyntax602 for debugging
[39/61] Compiling SwiftSyntax600 Empty.swift
[40/61] Compiling SwiftSyntax510 Empty.swift
[41/61] Emitting module SwiftSyntax510
[43/63] Wrapping AST for SwiftSyntax510 for debugging
[44/63] Wrapping AST for SwiftSyntax600 for debugging
[46/63] Compiling SwiftSyntax601 Empty.swift
[47/64] Compiling SwiftSyntax509 Empty.swift
[49/65] Wrapping AST for SwiftSyntax601 for debugging
[50/65] Wrapping AST for SwiftSyntax509 for debugging
[52/128] Compiling SwiftSyntax AbsolutePosition.swift
[53/128] Compiling SwiftSyntax AbsoluteSyntaxInfo.swift
[54/128] Compiling SwiftSyntax ArenaAllocatedBuffer.swift
[55/128] Compiling SwiftSyntax Assert.swift
[56/128] Compiling SwiftSyntax BumpPtrAllocator.swift
[57/128] Compiling SwiftSyntax CommonAncestor.swift
[58/128] Compiling SwiftSyntax Convenience.swift
[59/128] Compiling SwiftSyntax CustomTraits.swift
[60/128] Compiling SwiftSyntax EditorPlaceholder.swift
[61/136] Compiling SwiftSyntax Identifier.swift
[62/136] Compiling SwiftSyntax MemoryLayout.swift
[63/136] Compiling SwiftSyntax MissingNodeInitializers.swift
[64/136] Compiling SwiftSyntax RawSyntax.swift
[65/136] Compiling SwiftSyntax RawSyntaxArena.swift
[66/136] Compiling SwiftSyntax RawSyntaxLayoutView.swift
[67/136] Compiling SwiftSyntax RawSyntaxNodeProtocol.swift
[68/136] Compiling SwiftSyntax RawSyntaxTokenView.swift
[69/136] Compiling SwiftSyntax SourceEdit.swift
[70/136] Compiling SwiftSyntax SourceLength.swift
[71/136] Compiling SwiftSyntax SourceLocation.swift
[72/136] Compiling SwiftSyntax SourcePresence.swift
[73/136] Compiling SwiftSyntax SwiftSyntaxCompatibility.swift
[74/136] Compiling SwiftSyntax Syntax.swift
[75/136] Compiling SwiftSyntax SyntaxChildren.swift
[76/136] Compiling SwiftSyntax SyntaxCollection.swift
[77/136] Compiling SwiftSyntax SyntaxHashable.swift
[78/136] Compiling SwiftSyntax SyntaxIdentifier.swift
[79/136] Compiling SwiftSyntax SyntaxNodeStructure.swift
[80/136] Compiling SwiftSyntax SyntaxProtocol.swift
[81/136] Compiling SwiftSyntax SyntaxText.swift
[82/136] Compiling SwiftSyntax SyntaxTreeViewMode.swift
[83/136] Compiling SwiftSyntax TokenDiagnostic.swift
[84/136] Compiling SwiftSyntax TokenSequence.swift
[85/136] Compiling SwiftSyntax TokenSyntax.swift
[86/136] Compiling SwiftSyntax Trivia.swift
[87/136] Compiling SwiftSyntax Utils.swift
[88/136] Emitting module SwiftSyntax
[89/136] Compiling SwiftSyntax SyntaxRewriter.swift
[90/136] Compiling SwiftSyntax SyntaxTraits.swift
[91/136] Compiling SwiftSyntax SyntaxVisitor.swift
[92/136] Compiling SwiftSyntax TokenKind.swift
[93/136] Compiling SwiftSyntax Tokens.swift
[94/136] Compiling SwiftSyntax TriviaPieces.swift
[95/136] Compiling SwiftSyntax RawSyntaxNodesAB.swift
[96/136] Compiling SwiftSyntax RawSyntaxNodesC.swift
[97/136] Compiling SwiftSyntax RawSyntaxNodesD.swift
[98/136] Compiling SwiftSyntax RawSyntaxNodesEF.swift
[99/136] Compiling SwiftSyntax RawSyntaxNodesGHI.swift
[100/136] Compiling SwiftSyntax RawSyntaxNodesJKLMN.swift
[101/136] Compiling SwiftSyntax RawSyntaxNodesOP.swift
[102/136] Compiling SwiftSyntax RawSyntaxNodesQRS.swift
[103/136] Compiling SwiftSyntax RawSyntaxNodesTUVWXYZ.swift
[104/136] Compiling SwiftSyntax RawSyntaxValidation.swift
[105/136] Compiling SwiftSyntax SyntaxNodesAB.swift
[106/136] Compiling SwiftSyntax ChildNameForKeyPath.swift
[107/136] Compiling SwiftSyntax Keyword.swift
[108/136] Compiling SwiftSyntax RenamedChildrenCompatibility.swift
[109/136] Compiling SwiftSyntax RenamedNodesCompatibility.swift
[110/136] Compiling SwiftSyntax SyntaxAnyVisitor.swift
[111/136] Compiling SwiftSyntax SyntaxBaseNodes.swift
[112/136] Compiling SwiftSyntax SyntaxCollections.swift
[113/136] Compiling SwiftSyntax SyntaxEnum.swift
[114/136] Compiling SwiftSyntax SyntaxKind.swift
[115/136] Compiling SwiftSyntax SyntaxNodesC.swift
[116/136] Compiling SwiftSyntax SyntaxNodesD.swift
[117/136] Compiling SwiftSyntax SyntaxNodesEF.swift
[118/136] Compiling SwiftSyntax SyntaxNodesGHI.swift
[119/136] Compiling SwiftSyntax SyntaxNodesJKLMN.swift
[120/136] Compiling SwiftSyntax SyntaxNodesOP.swift
[121/136] Compiling SwiftSyntax SyntaxNodesQRS.swift
[122/136] Compiling SwiftSyntax SyntaxNodesTUVWXYZ.swift
[123/138] Wrapping AST for SwiftSyntax for debugging
[125/196] Compiling SwiftDiagnostics Message.swift
[126/196] Compiling SwiftBasicFormat Syntax+Extensions.swift
[127/196] Compiling SwiftBasicFormat SyntaxProtocol+Formatted.swift
[128/196] Compiling SwiftBasicFormat Trivia+FormatExtensions.swift
[129/197] Compiling SwiftParser Directives.swift
[130/197] Compiling SwiftParser ExpressionInterpretedAsVersionTuple.swift
[131/197] Compiling SwiftDiagnostics Note.swift
[132/197] Emitting module SwiftDiagnostics
[133/197] Compiling SwiftParser Expressions.swift
[134/197] Compiling SwiftParser IncrementalParseTransition.swift
[135/197] Compiling SwiftDiagnostics GroupedDiagnostics.swift
[136/197] Compiling SwiftDiagnostics FixIt.swift
[137/197] Compiling SwiftBasicFormat InferIndentation.swift
[138/197] Compiling SwiftBasicFormat Indenter.swift
[139/197] Compiling SwiftDiagnostics DiagnosticDecorator.swift
[140/197] Compiling SwiftDiagnostics DiagnosticsFormatter.swift
[141/198] Wrapping AST for SwiftDiagnostics for debugging
[143/198] Emitting module SwiftBasicFormat
[144/198] Compiling SwiftBasicFormat BasicFormat.swift
[145/199] Wrapping AST for SwiftBasicFormat for debugging
[147/199] Compiling SwiftParser StringLiterals.swift
[148/199] Compiling SwiftParser SwiftParserCompatibility.swift
[149/199] Compiling SwiftParser SwiftVersion.swift
[150/199] Compiling SwiftParser SyntaxUtils.swift
[151/199] Compiling SwiftParser TokenConsumer.swift
[152/199] Compiling SwiftParser TokenPrecedence.swift
[153/204] Compiling SwiftParser LoopProgressCondition.swift
[154/204] Compiling SwiftParser Modifiers.swift
[155/204] Compiling SwiftParser Names.swift
[156/204] Compiling SwiftParser Nominals.swift
[157/204] Compiling SwiftParser Parameters.swift
[158/204] Compiling SwiftParser ParseSourceFile.swift
[159/204] Compiling SwiftParser Lexeme.swift
[160/204] Compiling SwiftParser LexemeSequence.swift
[161/204] Compiling SwiftParser Lexer.swift
[162/204] Compiling SwiftParser RegexLiteralLexer.swift
[163/204] Compiling SwiftParser UnicodeScalarExtensions.swift
[164/204] Compiling SwiftParser Lookahead.swift
[165/204] Emitting module SwiftParser
[166/204] Compiling SwiftParser Attributes.swift
[167/204] Compiling SwiftParser Availability.swift
[168/204] Compiling SwiftParser CharacterInfo.swift
[169/204] Compiling SwiftParser CollectionNodes+Parsable.swift
[170/204] Compiling SwiftParser CompilerFiles.swift
[171/204] Compiling SwiftParser Declarations.swift
[172/204] Compiling SwiftParser TokenSpec.swift
[173/204] Compiling SwiftParser TokenSpecSet.swift
[174/204] Compiling SwiftParser TopLevel.swift
[175/204] Compiling SwiftParser TriviaParser.swift
[176/204] Compiling SwiftParser Types.swift
[177/204] Compiling SwiftParser Parser.swift
[178/204] Compiling SwiftParser Patterns.swift
[179/204] Compiling SwiftParser Recovery.swift
[180/204] Compiling SwiftParser Specifiers.swift
[181/204] Compiling SwiftParser Statements.swift
[182/204] Compiling SwiftParser StringLiteralRepresentedLiteralValue.swift
[187/204] Compiling SwiftParser IsValidIdentifier.swift
[188/204] Compiling SwiftParser Cursor.swift
[189/204] Compiling SwiftParser ExperimentalFeatures.swift
[190/204] Compiling SwiftParser IsLexerClassified.swift
[191/204] Compiling SwiftParser LayoutNodes+Parsable.swift
[192/204] Compiling SwiftParser Parser+TokenSpecSet.swift
[193/204] Compiling SwiftParser TokenSpecStaticMembers.swift
[194/205] Wrapping AST for SwiftParser for debugging
[196/228] Compiling SwiftParserDiagnostics SyntaxKindNameForDiagnostics.swift
[197/229] Compiling SwiftOperators OperatorTable.swift
[198/230] Compiling SwiftOperators PrecedenceGroup.swift
[199/230] Compiling SwiftParserDiagnostics TokenNameForDiagnostics.swift
[200/230] Compiling SwiftOperators SyntaxSynthesis.swift
[201/230] Compiling SwiftOperators PrecedenceGraph.swift
[202/230] Compiling SwiftParserDiagnostics DiagnosticExtensions.swift
[203/230] Compiling SwiftParserDiagnostics LexerDiagnosticMessages.swift
[204/230] Compiling SwiftOperators OperatorTable+Folding.swift
[207/230] Emitting module SwiftOperators
[208/230] Compiling SwiftParserDiagnostics MissingNodesError.swift
[209/230] Compiling SwiftParserDiagnostics MissingTokenError.swift
[210/230] Compiling SwiftOperators OperatorTable+Semantics.swift
[211/231] Wrapping AST for SwiftOperators for debugging
[213/231] Compiling SwiftParserDiagnostics SyntaxExtensions.swift
[214/231] Compiling SwiftParserDiagnostics Utils.swift
[215/231] Compiling SwiftParserDiagnostics ChildNameForDiagnostics.swift
[216/231] Compiling SwiftParserDiagnostics ParserDiagnosticMessages.swift
[217/231] Compiling SwiftParserDiagnostics PresenceUtils.swift
[220/231] Emitting module SwiftParserDiagnostics
[221/231] Compiling SwiftParserDiagnostics MultiLineStringLiteralDiagnosticsGenerator.swift
[222/231] Compiling SwiftParserDiagnostics ParseDiagnosticsGenerator.swift
[223/232] Wrapping AST for SwiftParserDiagnostics for debugging
[225/247] Compiling SwiftSyntaxBuilder SyntaxParsable+ExpressibleByStringInterpolation.swift
[226/247] Compiling SwiftSyntaxBuilder ValidatingSyntaxNodes.swift
[227/248] Compiling SwiftSyntaxBuilder WithTrailingCommaSyntax+EnsuringTrailingComma.swift
[228/248] Compiling SwiftSyntaxBuilder BuildableNodes.swift
[229/248] Compiling SwiftSyntaxBuilder SyntaxExpressibleByStringInterpolationConformances.swift
[230/248] Compiling SwiftSyntaxBuilder ResultBuilderExtensions.swift
[231/248] Compiling SwiftSyntaxBuilder SwiftSyntaxBuilderCompatibility.swift
[232/248] Compiling SwiftSyntaxBuilder Indenter.swift
[233/248] Compiling SwiftSyntaxBuilder ListBuilder.swift
[234/248] Emitting module SwiftSyntaxBuilder
[235/248] Compiling SwiftSyntaxBuilder RenamedChildrenBuilderCompatibility.swift
[236/248] Compiling SwiftSyntaxBuilder ResultBuilders.swift
[237/248] Compiling SwiftSyntaxBuilder Syntax+StringInterpolation.swift
[238/248] Compiling SwiftSyntaxBuilder SyntaxNodeWithBody.swift
[239/248] Compiling SwiftSyntaxBuilder ConvenienceInitializers.swift
[240/248] Compiling SwiftSyntaxBuilder DeclSyntaxParseable.swift
[241/249] Wrapping AST for SwiftSyntaxBuilder for debugging
[243/266] Compiling SwiftSyntaxMacros CodeItemMacro.swift
[244/266] Compiling SwiftSyntaxMacros DeclarationMacro.swift
[245/268] Emitting module SwiftSyntaxMacros
[246/268] Compiling SwiftSyntaxMacros ExpressionMacro.swift
[247/268] Compiling SwiftSyntaxMacros ExtensionMacro.swift
[248/268] Compiling SwiftSyntaxMacros MemberMacro.swift
[249/268] Compiling SwiftSyntaxMacros PeerMacro.swift
[250/268] Compiling SwiftSyntaxMacros Macro.swift
[251/268] Compiling SwiftSyntaxMacros MemberAttributeMacro.swift
[252/268] Compiling SwiftSyntaxMacros FreestandingMacro.swift
[253/268] Compiling SwiftSyntaxMacros Macro+Format.swift
[254/268] Compiling SwiftSyntaxMacros AccessorMacro.swift
[255/268] Compiling SwiftSyntaxMacros AttachedMacro.swift
[256/268] Compiling SwiftSyntaxMacros BodyMacro.swift
[257/268] Compiling SwiftSyntaxMacros AbstractSourceLocation.swift
[258/268] Compiling SwiftSyntaxMacros MacroExpansionContext.swift
[259/268] Compiling SwiftSyntaxMacros MacroExpansionDiagnosticMessages.swift
[260/268] Compiling SwiftSyntaxMacros PreambleMacro.swift
[261/268] Compiling SwiftSyntaxMacros Syntax+LexicalContext.swift
[262/269] Wrapping AST for SwiftSyntaxMacros for debugging
[264/278] Compiling SwiftSyntaxMacroExpansion MacroExpansionDiagnosticMessages.swift
[265/278] Compiling SwiftSyntaxMacroExpansion MacroSpec.swift
[266/279] Emitting module SwiftSyntaxMacroExpansion
[267/279] Compiling SwiftSyntaxMacroExpansion MacroExpansion.swift
[268/279] Compiling SwiftSyntaxMacroExpansion MacroArgument.swift
[269/279] Compiling SwiftSyntaxMacroExpansion IndentationUtils.swift
[270/279] Compiling SwiftSyntaxMacroExpansion BasicMacroExpansionContext.swift
[271/279] Compiling SwiftSyntaxMacroExpansion FunctionParameterUtils.swift
[272/279] Compiling SwiftSyntaxMacroExpansion MacroReplacement.swift
[273/279] Compiling SwiftSyntaxMacroExpansion MacroSystem.swift
[274/280] Wrapping AST for SwiftSyntaxMacroExpansion for debugging
[276/292] Compiling SwiftCompilerPluginMessageHandling PluginMessageCompatibility.swift
[277/293] Compiling SwiftCompilerPluginMessageHandling PluginMacroExpansionContext.swift
[278/293] Compiling SwiftCompilerPluginMessageHandling StandardIOMessageConnection.swift
[279/293] Compiling SwiftCompilerPluginMessageHandling PluginMessages.swift
[280/293] Emitting module SwiftCompilerPluginMessageHandling
[281/293] Compiling SwiftCompilerPluginMessageHandling LRUCache.swift
[282/293] Compiling SwiftCompilerPluginMessageHandling Macros.swift
[283/293] Compiling SwiftCompilerPluginMessageHandling JSONDecoding.swift
[284/293] Compiling SwiftCompilerPluginMessageHandling JSONEncoding.swift
[285/293] Compiling SwiftCompilerPluginMessageHandling CompilerPluginMessageHandler.swift
[286/293] Compiling SwiftCompilerPluginMessageHandling Diagnostics.swift
[287/293] Compiling SwiftCompilerPluginMessageHandling CodingUtilities.swift
[288/293] Compiling SwiftCompilerPluginMessageHandling JSON.swift
[289/294] Wrapping AST for SwiftCompilerPluginMessageHandling for debugging
[291/296] Compiling SwiftCompilerPlugin CompilerPlugin.swift
[292/296] Emitting module SwiftCompilerPlugin
[293/297] Wrapping AST for SwiftCompilerPlugin for debugging
[295/309] Compiling DecisionModelsMacros LevelsMacro.swift
[296/310] Compiling DecisionModelsMacros Plugin.swift
[297/310] Compiling DecisionModelsMacros OptionsMacro.swift
[298/310] Compiling DecisionModelsMacros Support.swift
[299/310] Compiling DecisionModelsMacros Diagnostics.swift
[300/310] Compiling DecisionModelsMacros EnumDiagnostics.swift
[301/310] Compiling DecisionModelsMacros AnswerSpace.swift
[302/310] Compiling DecisionModelsMacros AskMacro.swift
[303/310] Compiling DecisionModelsMacros AskedProperty.swift
[304/310] Compiling DecisionModelsMacros CriterionMacro.swift
[305/310] Emitting module DecisionModelsMacros
[306/310] Compiling DecisionModelsMacros DecisionEnumMacro.swift
[307/310] Compiling DecisionModelsMacros DecisionMacro.swift
[308/311] Wrapping AST for DecisionModelsMacros for debugging
[309/311] Write Objects.LinkFileList
[310/311] Linking DecisionModelsMacros-tool
error: emit-module command failed with exit code 1 (use -v to see invocation)
[312/389] Emitting module DecisionModels
/host/spi-builder-workspace/Sources/DecisionModels/HTTPClient.swift:56:20: error: cannot find type 'URLRequest' in scope
54 | /// travels as `CancellationError`.
55 | package func send(
56 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
57 | timeout: Duration? = nil
58 | ) async throws -> (Data, HTTPURLResponse) {
/host/spi-builder-workspace/Sources/DecisionModels/HTTPClient.swift:58:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | _ request: URLRequest,
57 | timeout: Duration? = nil
58 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
59 | let deadline = timeout.map { now() + $0 }
60 | var retries = 0
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/DecisionModels/HTTPClient.swift:138:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 | /// A date, a negative count, or anything else that is not a number
137 | /// reads as no header.
138 | package static func retryAfter(_ response: HTTPURLResponse) -> Duration? {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
139 | guard let header = response.value(forHTTPHeaderField: "Retry-After") else { return nil }
140 | guard let seconds = Double(header.trimmingCharacters(in: .whitespaces)),
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/DecisionModels/HTTPTransport.swift:13:26: error: cannot find type 'URLRequest' in scope
11 | public protocol HTTPTransport: Sendable {
12 | /// Sends the request and gives back the body with the HTTP reply.
13 | func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
14 | }
15 |
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:13:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | public protocol HTTPTransport: Sendable {
12 | /// Sends the request and gives back the body with the HTTP reply.
13 | func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | }
15 |
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/DecisionModels/HTTPTransport.swift:18:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | /// The transport a provider uses against the live service.
17 | public struct URLSessionTransport: HTTPTransport {
18 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | 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/DecisionModels/HTTPTransport.swift:20:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | private let session: URLSession
19 |
20 | public init(session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | self.session = session
22 | }
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/DecisionModels/HTTPTransport.swift:20:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 | private let session: URLSession
19 |
20 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
21 | self.session = session
22 | }
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:20:40: error: value of type '_' expected to be instance of class or class-constrained type
18 | private let session: URLSession
19 |
20 | public init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
21 | self.session = session
22 | }
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:24:33: error: cannot find type 'URLRequest' in scope
22 | }
23 |
24 | public func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
25 | let (data, response) = try await session.data(for: request)
26 | guard let http = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:24:68: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | }
23 |
24 | public func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | let (data, response) = try await session.data(for: request)
26 | guard let http = response as? HTTPURLResponse else {
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/DecisionModels/HTTPTransport.swift:18:17: error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-Sendable type 'AnyObject'
16 | /// The transport a provider uses against the live service.
17 | public struct URLSessionTransport: HTTPTransport {
18 | private let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-Sendable type 'AnyObject'
19 |
20 | public init(session: URLSession = .shared) {
[313/394] Compiling DecisionModels ProbabilityQuality.swift
[314/394] Compiling DecisionModels Question.swift
[315/394] Compiling DecisionModels QuestionSpec.swift
[316/394] Compiling DecisionModels Questionnaire.swift
[317/394] Compiling DecisionModels Rating.swift
[318/399] Emitting module DecisionModels
[319/399] Compiling DecisionModels DecisionOptions.swift
[320/399] Compiling DecisionModels DecisionRequest.swift
[321/399] Compiling DecisionModels DecisionResponse.swift
[322/399] Compiling DecisionModels DecisionSession.swift
[323/399] Compiling DecisionModels Distribution.swift
[324/399] Compiling DecisionModels Inquiry.swift
[325/399] Compiling DecisionModels Environment.swift
[326/399] Compiling DecisionModels AnswerRecord.swift
[327/399] Compiling DecisionModels Answers.swift
[328/399] Compiling DecisionModels Askable.swift
[329/399] Compiling DecisionModels Capabilities.swift
[330/399] Compiling DecisionModels RetryPolicy.swift
[331/399] Compiling DecisionModels State.swift
[332/399] Compiling DecisionModels StateBuilder.swift
[333/399] Compiling DecisionModels Usage.swift
[334/399] Compiling DecisionModels Verdict.swift
[335/399] Compiling DecisionModels ProbabilityQuality.swift
[336/399] Compiling DecisionModels Question.swift
[337/399] Compiling DecisionModels QuestionSpec.swift
[338/399] Compiling DecisionModels Questionnaire.swift
[339/399] Compiling DecisionModels Rating.swift
[340/399] Compiling DecisionModels Choice.swift
[341/399] Compiling DecisionModels CompositeScore.swift
[342/399] Compiling DecisionModels CachedModel.swift
[343/399] Compiling DecisionModels CascadeModel.swift
[344/399] Compiling DecisionModels ConsensusModel.swift
[345/399] Compiling DecisionModels DecisionCache.swift
[346/399] Compiling DecisionModels ConfidenceMath.swift
[347/399] Compiling DecisionModels Criterion.swift
[348/399] Compiling DecisionModels Decision.swift
[349/399] Compiling DecisionModels DecisionError.swift
[350/399] Compiling DecisionModels DecisionModel.swift
[351/399] Compiling DecisionModels DecisionModelAvailability.swift
[352/399] Compiling DecisionModels Environment.swift
[353/399] Compiling DecisionModels FanOut.swift
[354/399] Compiling DecisionModels HTTPClient.swift
[355/399] Compiling DecisionModels HTTPTransport.swift
[356/399] Compiling DecisionModels Hierarchy.swift
[358/427] Emitting module DecisionModelsApple
[359/427] Compiling DecisionModelsApple SchemaBuilder.swift
[360/427] Compiling DecisionModelsApple ErrorMapping.swift
[361/427] Compiling DecisionModelsApple ResponseMapping.swift
[362/427] Compiling DecisionModelsApple Compatibility.swift
[363/427] Emitting module DecisionModelsTesting
[364/427] Compiling DecisionModelsTesting Calibration.swift
[365/427] Emitting module DecisionModelsOpenRouter
[366/427] Compiling DecisionModelsTesting RecordingModel.swift
[367/427] Compiling DecisionModelsTesting ScriptedModel.swift
[368/427] Compiling DecisionModelsOpenRouter OpenRouterError.swift
[369/427] Compiling DecisionModelsTypeSafe JevError.swift
[370/427] Compiling DecisionModelsTypeSafe JevMapping.swift
[371/427] Compiling DecisionModelsOpenRouter OpenRouterMapping.swift
[378/427] Compiling DecisionModelsOpenRouter OpenRouterAlpha.swift
[379/427] Emitting module DecisionModelsTestSupport
[380/427] Compiling DecisionModelsTestSupport ScriptedTransport.swift
[381/427] Compiling DecisionModelsTestSupport FakeClock.swift
[394/428] Compiling DecisionModelsTesting DecisionRecord.swift
[395/428] Compiling DecisionModelsTesting Evaluation.swift
[396/428] Compiling DecisionModelsTesting ReplayModel.swift
[397/428] Compiling DecisionModelsApple GuidedGenerationModel.swift
[398/428] Compiling DecisionModelsApple PromptBuilder.swift
[401/430] Compiling DecisionModelsOpenRouter OpenRouterWire.swift
[403/431] Compiling DecisionModelsTypeSafe Jev.swift
[404/431] Emitting module DecisionModelsTypeSafe
[405/431] Compiling DecisionModelsTypeSafe JevWire.swift
/host/spi-builder-workspace/Sources/DecisionModels/HTTPClient.swift:56:20: error: cannot find type 'URLRequest' in scope
54 | /// travels as `CancellationError`.
55 | package func send(
56 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
57 | timeout: Duration? = nil
58 | ) async throws -> (Data, HTTPURLResponse) {
/host/spi-builder-workspace/Sources/DecisionModels/HTTPClient.swift:58:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | _ request: URLRequest,
57 | timeout: Duration? = nil
58 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
59 | let deadline = timeout.map { now() + $0 }
60 | var retries = 0
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/DecisionModels/HTTPClient.swift:138:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 | /// A date, a negative count, or anything else that is not a number
137 | /// reads as no header.
138 | package static func retryAfter(_ response: HTTPURLResponse) -> Duration? {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
139 | guard let header = response.value(forHTTPHeaderField: "Retry-After") else { return nil }
140 | guard let seconds = Double(header.trimmingCharacters(in: .whitespaces)),
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/DecisionModels/HTTPTransport.swift:13:26: error: cannot find type 'URLRequest' in scope
11 | public protocol HTTPTransport: Sendable {
12 | /// Sends the request and gives back the body with the HTTP reply.
13 | func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
14 | }
15 |
/host/spi-builder-workspace/Sources/DecisionModels/HTTPClient.swift:139:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
137 | /// reads as no header.
138 | package static func retryAfter(_ response: HTTPURLResponse) -> Duration? {
139 | guard let header = response.value(forHTTPHeaderField: "Retry-After") else { return nil }
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
140 | guard let seconds = Double(header.trimmingCharacters(in: .whitespaces)),
141 | seconds.isFinite, seconds >= 0
/host/spi-builder-workspace/Sources/DecisionModels/HTTPClient.swift:140:67: error: cannot infer contextual base in reference to member 'whitespaces'
138 | package static func retryAfter(_ response: HTTPURLResponse) -> Duration? {
139 | guard let header = response.value(forHTTPHeaderField: "Retry-After") else { return nil }
140 | guard let seconds = Double(header.trimmingCharacters(in: .whitespaces)),
| `- error: cannot infer contextual base in reference to member 'whitespaces'
141 | seconds.isFinite, seconds >= 0
142 | else { return nil }
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:13:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | public protocol HTTPTransport: Sendable {
12 | /// Sends the request and gives back the body with the HTTP reply.
13 | func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | }
15 |
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/DecisionModels/HTTPTransport.swift:18:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | /// The transport a provider uses against the live service.
17 | public struct URLSessionTransport: HTTPTransport {
18 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | 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/DecisionModels/HTTPTransport.swift:20:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | private let session: URLSession
19 |
20 | public init(session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | self.session = session
22 | }
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/DecisionModels/HTTPTransport.swift:20:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 | private let session: URLSession
19 |
20 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
21 | self.session = session
22 | }
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:20:40: error: value of type '_' expected to be instance of class or class-constrained type
18 | private let session: URLSession
19 |
20 | public init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
21 | self.session = session
22 | }
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:24:33: error: cannot find type 'URLRequest' in scope
22 | }
23 |
24 | public func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
25 | let (data, response) = try await session.data(for: request)
26 | guard let http = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:24:68: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | }
23 |
24 | public func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | let (data, response) = try await session.data(for: request)
26 | guard let http = response as? HTTPURLResponse else {
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/DecisionModels/HTTPTransport.swift:18:17: error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-Sendable type 'AnyObject'
16 | /// The transport a provider uses against the live service.
17 | public struct URLSessionTransport: HTTPTransport {
18 | private let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-Sendable type 'AnyObject'
19 |
20 | public init(session: URLSession = .shared) {
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:25:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
23 |
24 | public func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse) {
25 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
26 | guard let http = response as? HTTPURLResponse else {
27 | throw DecisionError.malformedResponse("The reply is not an HTTP response.")
/host/spi-builder-workspace/Sources/DecisionModels/HTTPClient.swift:56:20: error: cannot find type 'URLRequest' in scope
54 | /// travels as `CancellationError`.
55 | package func send(
56 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
57 | timeout: Duration? = nil
58 | ) async throws -> (Data, HTTPURLResponse) {
/host/spi-builder-workspace/Sources/DecisionModels/HTTPClient.swift:58:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | _ request: URLRequest,
57 | timeout: Duration? = nil
58 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
59 | let deadline = timeout.map { now() + $0 }
60 | var retries = 0
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/DecisionModels/HTTPClient.swift:138:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 | /// A date, a negative count, or anything else that is not a number
137 | /// reads as no header.
138 | package static func retryAfter(_ response: HTTPURLResponse) -> Duration? {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
139 | guard let header = response.value(forHTTPHeaderField: "Retry-After") else { return nil }
140 | guard let seconds = Double(header.trimmingCharacters(in: .whitespaces)),
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/DecisionModels/HTTPTransport.swift:13:26: error: cannot find type 'URLRequest' in scope
11 | public protocol HTTPTransport: Sendable {
12 | /// Sends the request and gives back the body with the HTTP reply.
13 | func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
14 | }
15 |
/host/spi-builder-workspace/Sources/DecisionModels/HTTPClient.swift:139:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
137 | /// reads as no header.
138 | package static func retryAfter(_ response: HTTPURLResponse) -> Duration? {
139 | guard let header = response.value(forHTTPHeaderField: "Retry-After") else { return nil }
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
140 | guard let seconds = Double(header.trimmingCharacters(in: .whitespaces)),
141 | seconds.isFinite, seconds >= 0
/host/spi-builder-workspace/Sources/DecisionModels/HTTPClient.swift:140:67: error: cannot infer contextual base in reference to member 'whitespaces'
138 | package static func retryAfter(_ response: HTTPURLResponse) -> Duration? {
139 | guard let header = response.value(forHTTPHeaderField: "Retry-After") else { return nil }
140 | guard let seconds = Double(header.trimmingCharacters(in: .whitespaces)),
| `- error: cannot infer contextual base in reference to member 'whitespaces'
141 | seconds.isFinite, seconds >= 0
142 | else { return nil }
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:13:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | public protocol HTTPTransport: Sendable {
12 | /// Sends the request and gives back the body with the HTTP reply.
13 | func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | }
15 |
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/DecisionModels/HTTPTransport.swift:18:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | /// The transport a provider uses against the live service.
17 | public struct URLSessionTransport: HTTPTransport {
18 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | 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/DecisionModels/HTTPTransport.swift:20:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | private let session: URLSession
19 |
20 | public init(session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | self.session = session
22 | }
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/DecisionModels/HTTPTransport.swift:20:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 | private let session: URLSession
19 |
20 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
21 | self.session = session
22 | }
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:20:40: error: value of type '_' expected to be instance of class or class-constrained type
18 | private let session: URLSession
19 |
20 | public init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
21 | self.session = session
22 | }
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:24:33: error: cannot find type 'URLRequest' in scope
22 | }
23 |
24 | public func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
25 | let (data, response) = try await session.data(for: request)
26 | guard let http = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:24:68: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | }
23 |
24 | public func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | let (data, response) = try await session.data(for: request)
26 | guard let http = response as? HTTPURLResponse else {
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/DecisionModels/HTTPTransport.swift:18:17: error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-Sendable type 'AnyObject'
16 | /// The transport a provider uses against the live service.
17 | public struct URLSessionTransport: HTTPTransport {
18 | private let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-Sendable type 'AnyObject'
19 |
20 | public init(session: URLSession = .shared) {
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:25:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
23 |
24 | public func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse) {
25 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
26 | guard let http = response as? HTTPURLResponse else {
27 | throw DecisionError.malformedResponse("The reply is not an HTTP response.")
/host/spi-builder-workspace/Sources/DecisionModels/HTTPClient.swift:56:20: error: cannot find type 'URLRequest' in scope
54 | /// travels as `CancellationError`.
55 | package func send(
56 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
57 | timeout: Duration? = nil
58 | ) async throws -> (Data, HTTPURLResponse) {
/host/spi-builder-workspace/Sources/DecisionModels/HTTPClient.swift:58:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | _ request: URLRequest,
57 | timeout: Duration? = nil
58 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
59 | let deadline = timeout.map { now() + $0 }
60 | var retries = 0
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/DecisionModels/HTTPClient.swift:138:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 | /// A date, a negative count, or anything else that is not a number
137 | /// reads as no header.
138 | package static func retryAfter(_ response: HTTPURLResponse) -> Duration? {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
139 | guard let header = response.value(forHTTPHeaderField: "Retry-After") else { return nil }
140 | guard let seconds = Double(header.trimmingCharacters(in: .whitespaces)),
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/DecisionModels/HTTPTransport.swift:13:26: error: cannot find type 'URLRequest' in scope
11 | public protocol HTTPTransport: Sendable {
12 | /// Sends the request and gives back the body with the HTTP reply.
13 | func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
14 | }
15 |
/host/spi-builder-workspace/Sources/DecisionModels/HTTPClient.swift:139:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
137 | /// reads as no header.
138 | package static func retryAfter(_ response: HTTPURLResponse) -> Duration? {
139 | guard let header = response.value(forHTTPHeaderField: "Retry-After") else { return nil }
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
140 | guard let seconds = Double(header.trimmingCharacters(in: .whitespaces)),
141 | seconds.isFinite, seconds >= 0
/host/spi-builder-workspace/Sources/DecisionModels/HTTPClient.swift:140:67: error: cannot infer contextual base in reference to member 'whitespaces'
138 | package static func retryAfter(_ response: HTTPURLResponse) -> Duration? {
139 | guard let header = response.value(forHTTPHeaderField: "Retry-After") else { return nil }
140 | guard let seconds = Double(header.trimmingCharacters(in: .whitespaces)),
| `- error: cannot infer contextual base in reference to member 'whitespaces'
141 | seconds.isFinite, seconds >= 0
142 | else { return nil }
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:13:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | public protocol HTTPTransport: Sendable {
12 | /// Sends the request and gives back the body with the HTTP reply.
13 | func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | }
15 |
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/DecisionModels/HTTPTransport.swift:18:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | /// The transport a provider uses against the live service.
17 | public struct URLSessionTransport: HTTPTransport {
18 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | 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/DecisionModels/HTTPTransport.swift:20:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | private let session: URLSession
19 |
20 | public init(session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | self.session = session
22 | }
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/DecisionModels/HTTPTransport.swift:20:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 | private let session: URLSession
19 |
20 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
21 | self.session = session
22 | }
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:20:40: error: value of type '_' expected to be instance of class or class-constrained type
18 | private let session: URLSession
19 |
20 | public init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
21 | self.session = session
22 | }
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:24:33: error: cannot find type 'URLRequest' in scope
22 | }
23 |
24 | public func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
25 | let (data, response) = try await session.data(for: request)
26 | guard let http = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:24:68: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | }
23 |
24 | public func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | let (data, response) = try await session.data(for: request)
26 | guard let http = response as? HTTPURLResponse else {
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/DecisionModels/HTTPTransport.swift:18:17: error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-Sendable type 'AnyObject'
16 | /// The transport a provider uses against the live service.
17 | public struct URLSessionTransport: HTTPTransport {
18 | private let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-Sendable type 'AnyObject'
19 |
20 | public init(session: URLSession = .shared) {
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:25:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
23 |
24 | public func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse) {
25 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
26 | guard let http = response as? HTTPURLResponse else {
27 | throw DecisionError.malformedResponse("The reply is not an HTTP response.")
/host/spi-builder-workspace/Sources/DecisionModels/HTTPClient.swift:56:20: error: cannot find type 'URLRequest' in scope
54 | /// travels as `CancellationError`.
55 | package func send(
56 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
57 | timeout: Duration? = nil
58 | ) async throws -> (Data, HTTPURLResponse) {
/host/spi-builder-workspace/Sources/DecisionModels/HTTPClient.swift:58:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | _ request: URLRequest,
57 | timeout: Duration? = nil
58 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
59 | let deadline = timeout.map { now() + $0 }
60 | var retries = 0
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/DecisionModels/HTTPClient.swift:138:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 | /// A date, a negative count, or anything else that is not a number
137 | /// reads as no header.
138 | package static func retryAfter(_ response: HTTPURLResponse) -> Duration? {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
139 | guard let header = response.value(forHTTPHeaderField: "Retry-After") else { return nil }
140 | guard let seconds = Double(header.trimmingCharacters(in: .whitespaces)),
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/DecisionModels/HTTPTransport.swift:13:26: error: cannot find type 'URLRequest' in scope
11 | public protocol HTTPTransport: Sendable {
12 | /// Sends the request and gives back the body with the HTTP reply.
13 | func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
14 | }
15 |
/host/spi-builder-workspace/Sources/DecisionModels/HTTPClient.swift:139:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
137 | /// reads as no header.
138 | package static func retryAfter(_ response: HTTPURLResponse) -> Duration? {
139 | guard let header = response.value(forHTTPHeaderField: "Retry-After") else { return nil }
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
140 | guard let seconds = Double(header.trimmingCharacters(in: .whitespaces)),
141 | seconds.isFinite, seconds >= 0
/host/spi-builder-workspace/Sources/DecisionModels/HTTPClient.swift:140:67: error: cannot infer contextual base in reference to member 'whitespaces'
138 | package static func retryAfter(_ response: HTTPURLResponse) -> Duration? {
139 | guard let header = response.value(forHTTPHeaderField: "Retry-After") else { return nil }
140 | guard let seconds = Double(header.trimmingCharacters(in: .whitespaces)),
| `- error: cannot infer contextual base in reference to member 'whitespaces'
141 | seconds.isFinite, seconds >= 0
142 | else { return nil }
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:13:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | public protocol HTTPTransport: Sendable {
12 | /// Sends the request and gives back the body with the HTTP reply.
13 | func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | }
15 |
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/DecisionModels/HTTPTransport.swift:18:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | /// The transport a provider uses against the live service.
17 | public struct URLSessionTransport: HTTPTransport {
18 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | 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/DecisionModels/HTTPTransport.swift:20:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | private let session: URLSession
19 |
20 | public init(session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | self.session = session
22 | }
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/DecisionModels/HTTPTransport.swift:20:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 | private let session: URLSession
19 |
20 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
21 | self.session = session
22 | }
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:20:40: error: value of type '_' expected to be instance of class or class-constrained type
18 | private let session: URLSession
19 |
20 | public init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
21 | self.session = session
22 | }
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:24:33: error: cannot find type 'URLRequest' in scope
22 | }
23 |
24 | public func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
25 | let (data, response) = try await session.data(for: request)
26 | guard let http = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:24:68: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | }
23 |
24 | public func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | let (data, response) = try await session.data(for: request)
26 | guard let http = response as? HTTPURLResponse else {
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/DecisionModels/HTTPTransport.swift:18:17: error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-Sendable type 'AnyObject'
16 | /// The transport a provider uses against the live service.
17 | public struct URLSessionTransport: HTTPTransport {
18 | private let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-Sendable type 'AnyObject'
19 |
20 | public init(session: URLSession = .shared) {
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:25:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
23 |
24 | public func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse) {
25 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
26 | guard let http = response as? HTTPURLResponse else {
27 | throw DecisionError.malformedResponse("The reply is not an HTTP response.")
/host/spi-builder-workspace/Sources/DecisionModels/HTTPClient.swift:56:20: error: cannot find type 'URLRequest' in scope
54 | /// travels as `CancellationError`.
55 | package func send(
56 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
57 | timeout: Duration? = nil
58 | ) async throws -> (Data, HTTPURLResponse) {
/host/spi-builder-workspace/Sources/DecisionModels/HTTPClient.swift:58:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | _ request: URLRequest,
57 | timeout: Duration? = nil
58 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
59 | let deadline = timeout.map { now() + $0 }
60 | var retries = 0
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/DecisionModels/HTTPClient.swift:138:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 | /// A date, a negative count, or anything else that is not a number
137 | /// reads as no header.
138 | package static func retryAfter(_ response: HTTPURLResponse) -> Duration? {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
139 | guard let header = response.value(forHTTPHeaderField: "Retry-After") else { return nil }
140 | guard let seconds = Double(header.trimmingCharacters(in: .whitespaces)),
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/DecisionModels/HTTPTransport.swift:13:26: error: cannot find type 'URLRequest' in scope
11 | public protocol HTTPTransport: Sendable {
12 | /// Sends the request and gives back the body with the HTTP reply.
13 | func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
14 | }
15 |
/host/spi-builder-workspace/Sources/DecisionModels/HTTPClient.swift:139:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
137 | /// reads as no header.
138 | package static func retryAfter(_ response: HTTPURLResponse) -> Duration? {
139 | guard let header = response.value(forHTTPHeaderField: "Retry-After") else { return nil }
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
140 | guard let seconds = Double(header.trimmingCharacters(in: .whitespaces)),
141 | seconds.isFinite, seconds >= 0
/host/spi-builder-workspace/Sources/DecisionModels/HTTPClient.swift:140:67: error: cannot infer contextual base in reference to member 'whitespaces'
138 | package static func retryAfter(_ response: HTTPURLResponse) -> Duration? {
139 | guard let header = response.value(forHTTPHeaderField: "Retry-After") else { return nil }
140 | guard let seconds = Double(header.trimmingCharacters(in: .whitespaces)),
| `- error: cannot infer contextual base in reference to member 'whitespaces'
141 | seconds.isFinite, seconds >= 0
142 | else { return nil }
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:13:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | public protocol HTTPTransport: Sendable {
12 | /// Sends the request and gives back the body with the HTTP reply.
13 | func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | }
15 |
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/DecisionModels/HTTPTransport.swift:18:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | /// The transport a provider uses against the live service.
17 | public struct URLSessionTransport: HTTPTransport {
18 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | 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/DecisionModels/HTTPTransport.swift:20:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | private let session: URLSession
19 |
20 | public init(session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | self.session = session
22 | }
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/DecisionModels/HTTPTransport.swift:20:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 | private let session: URLSession
19 |
20 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
21 | self.session = session
22 | }
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:20:40: error: value of type '_' expected to be instance of class or class-constrained type
18 | private let session: URLSession
19 |
20 | public init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
21 | self.session = session
22 | }
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:24:33: error: cannot find type 'URLRequest' in scope
22 | }
23 |
24 | public func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
25 | let (data, response) = try await session.data(for: request)
26 | guard let http = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:24:68: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | }
23 |
24 | public func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | let (data, response) = try await session.data(for: request)
26 | guard let http = response as? HTTPURLResponse else {
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/DecisionModels/HTTPTransport.swift:18:17: error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-Sendable type 'AnyObject'
16 | /// The transport a provider uses against the live service.
17 | public struct URLSessionTransport: HTTPTransport {
18 | private let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-Sendable type 'AnyObject'
19 |
20 | public init(session: URLSession = .shared) {
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:25:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
23 |
24 | public func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse) {
25 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
26 | guard let http = response as? HTTPURLResponse else {
27 | throw DecisionError.malformedResponse("The reply is not an HTTP response.")
BUILD FAILURE 6.3 wasm