The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Kiosk, reference main (32ca5b), with Swift 6.3 for Wasm on 18 Aug 2026 15:33:29 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886770-0":/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

Build Log

========================================
RunAll
========================================
Builder version: 5.0.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/eliseyOzerov/kiosk-swift.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/eliseyOzerov/kiosk-swift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 32ca5b9 Add generated WebSocket routes
Cloned https://github.com/eliseyOzerov/kiosk-swift.git
Revision (git rev-parse @):
32ca5b94ace5fa46237068dafe9cb60114ef2cbc
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/eliseyOzerov/kiosk-swift.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/eliseyOzerov/kiosk-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886770-0":/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:e92e38b97676c18adb57b57429ddfb766786102cb50cb918e0d9e8055d05b35d
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/76506] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax.git from cache (2.88s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 601.0.1 (3.86s)
Creating working copy for https://github.com/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at 601.0.1
Building for debugging...
[0/37] Write sources
[17/37] Compiling _SwiftSyntaxCShims dummy.c
[18/37] Write swift-version-24593BA9C3E375BF.txt
[20/45] Emitting module SwiftSyntax509
[21/45] Emitting module SwiftSyntax510
[22/45] Compiling SwiftSyntax510 Empty.swift
[23/46] Wrapping AST for SwiftSyntax510 for debugging
[25/46] Compiling SwiftSyntax509 Empty.swift
[26/47] Compiling SwiftSyntax601 Empty.swift
[27/47] Emitting module SwiftSyntax601
[29/48] Emitting module SwiftSyntax600
[30/48] Compiling SwiftSyntax600 Empty.swift
[32/49] Wrapping AST for SwiftSyntax509 for debugging
[33/49] Wrapping AST for SwiftSyntax601 for debugging
[34/49] Wrapping AST for SwiftSyntax600 for debugging
[36/113] Compiling SwiftSyntax AbsolutePosition.swift
[37/113] Compiling SwiftSyntax AbsoluteRawSyntax.swift
[38/113] Compiling SwiftSyntax AbsoluteSyntaxInfo.swift
[39/113] Compiling SwiftSyntax Assert.swift
[40/113] Compiling SwiftSyntax BumpPtrAllocator.swift
[41/113] Compiling SwiftSyntax CommonAncestor.swift
[42/113] Compiling SwiftSyntax Convenience.swift
[43/113] Compiling SwiftSyntax CustomTraits.swift
[44/113] Compiling SwiftSyntax EditorPlaceholder.swift
[45/122] Compiling SwiftSyntax SyntaxIdentifier.swift
[46/122] Compiling SwiftSyntax SyntaxNodeFactory.swift
[47/122] Compiling SwiftSyntax SyntaxNodeStructure.swift
[48/122] Compiling SwiftSyntax SyntaxProtocol.swift
[49/122] Compiling SwiftSyntax SyntaxText.swift
[50/122] Compiling SwiftSyntax SyntaxTreeViewMode.swift
[51/122] Compiling SwiftSyntax TokenDiagnostic.swift
[52/122] Compiling SwiftSyntax TokenSequence.swift
[53/122] Compiling SwiftSyntax TokenSyntax.swift
[54/122] Compiling SwiftSyntax SourceLocation.swift
[55/122] Compiling SwiftSyntax SourcePresence.swift
[56/122] Compiling SwiftSyntax SwiftSyntaxCompatibility.swift
[57/122] Compiling SwiftSyntax Syntax.swift
[58/122] Compiling SwiftSyntax SyntaxArena.swift
[59/122] Compiling SwiftSyntax SyntaxArenaAllocatedBuffer.swift
[60/122] Compiling SwiftSyntax SyntaxChildren.swift
[61/122] Compiling SwiftSyntax SyntaxCollection.swift
[62/122] Compiling SwiftSyntax SyntaxHashable.swift
[63/122] Emitting module SwiftSyntax
[64/122] Compiling SwiftSyntax Identifier.swift
[65/122] Compiling SwiftSyntax MemoryLayout.swift
[66/122] Compiling SwiftSyntax MissingNodeInitializers.swift
[67/122] Compiling SwiftSyntax RawSyntax.swift
[68/122] Compiling SwiftSyntax RawSyntaxLayoutView.swift
[69/122] Compiling SwiftSyntax RawSyntaxNodeProtocol.swift
[70/122] Compiling SwiftSyntax RawSyntaxTokenView.swift
[71/122] Compiling SwiftSyntax SourceEdit.swift
[72/122] Compiling SwiftSyntax SourceLength.swift
[73/122] Compiling SwiftSyntax SyntaxEnum.swift
[74/122] Compiling SwiftSyntax SyntaxKind.swift
[75/122] Compiling SwiftSyntax SyntaxRewriter.swift
[76/122] Compiling SwiftSyntax SyntaxTraits.swift
[77/122] Compiling SwiftSyntax SyntaxVisitor.swift
[78/122] Compiling SwiftSyntax TokenKind.swift
[79/122] Compiling SwiftSyntax Tokens.swift
[80/122] Compiling SwiftSyntax TriviaPieces.swift
[81/122] Compiling SwiftSyntax RawSyntaxNodesAB.swift
[82/122] Compiling SwiftSyntax RawSyntaxNodesC.swift
[83/122] Compiling SwiftSyntax RawSyntaxNodesD.swift
[84/122] Compiling SwiftSyntax RawSyntaxNodesEF.swift
[85/122] Compiling SwiftSyntax RawSyntaxNodesGHI.swift
[86/122] Compiling SwiftSyntax RawSyntaxNodesJKLMN.swift
[87/122] Compiling SwiftSyntax RawSyntaxNodesOP.swift
[88/122] Compiling SwiftSyntax RawSyntaxNodesQRS.swift
[89/122] Compiling SwiftSyntax RawSyntaxNodesTUVWXYZ.swift
[90/122] Compiling SwiftSyntax RawSyntaxValidation.swift
[91/122] Compiling SwiftSyntax Trivia.swift
[92/122] Compiling SwiftSyntax Utils.swift
[93/122] Compiling SwiftSyntax ChildNameForKeyPath.swift
[94/122] Compiling SwiftSyntax Keyword.swift
[95/122] Compiling SwiftSyntax RenamedChildrenCompatibility.swift
[96/122] Compiling SwiftSyntax RenamedNodesCompatibility.swift
[97/122] Compiling SwiftSyntax SyntaxAnyVisitor.swift
[98/122] Compiling SwiftSyntax SyntaxBaseNodes.swift
[99/122] Compiling SwiftSyntax SyntaxCollections.swift
[100/122] Compiling SwiftSyntax SyntaxNodesAB.swift
[101/122] Compiling SwiftSyntax SyntaxNodesC.swift
[102/122] Compiling SwiftSyntax SyntaxNodesD.swift
[103/122] Compiling SwiftSyntax SyntaxNodesEF.swift
[104/122] Compiling SwiftSyntax SyntaxNodesGHI.swift
[105/122] Compiling SwiftSyntax SyntaxNodesJKLMN.swift
[106/122] Compiling SwiftSyntax SyntaxNodesOP.swift
[107/122] Compiling SwiftSyntax SyntaxNodesQRS.swift
[108/122] Compiling SwiftSyntax SyntaxNodesTUVWXYZ.swift
[109/140] Wrapping AST for SwiftSyntax for debugging
[111/181] Compiling SwiftBasicFormat Syntax+Extensions.swift
[112/181] Compiling SwiftDiagnostics Message.swift
[113/182] Compiling SwiftBasicFormat SyntaxProtocol+Formatted.swift
[114/182] Compiling SwiftBasicFormat Trivia+FormatExtensions.swift
[115/182] Compiling SwiftDiagnostics Note.swift
[116/182] Compiling SwiftBasicFormat InferIndentation.swift
[117/182] Compiling SwiftDiagnostics FixIt.swift
[118/182] Compiling SwiftDiagnostics GroupedDiagnostics.swift
[119/182] Compiling SwiftDiagnostics DiagnosticDecorator.swift
[120/182] Compiling SwiftParser Nominals.swift
[121/182] Compiling SwiftParser Parameters.swift
[122/182] Compiling SwiftParser Modifiers.swift
[123/182] Compiling SwiftParser Names.swift
[124/182] Compiling SwiftDiagnostics DiagnosticsFormatter.swift
[125/182] Emitting module SwiftDiagnostics
[127/183] Compiling SwiftBasicFormat BasicFormat.swift
[128/183] Compiling SwiftBasicFormat Indenter.swift
[129/183] Emitting module SwiftBasicFormat
[130/184] Wrapping AST for SwiftDiagnostics for debugging
[131/184] Wrapping AST for SwiftBasicFormat for debugging
[137/184] Compiling SwiftParser ParseSourceFile.swift
[138/184] Compiling SwiftParser Parser.swift
[139/189] Compiling SwiftParser LexemeSequence.swift
[140/189] Compiling SwiftParser Lexer.swift
[141/189] Compiling SwiftParser RegexLiteralLexer.swift
[142/189] Compiling SwiftParser UnicodeScalarExtensions.swift
[143/189] Compiling SwiftParser Lookahead.swift
[144/189] Compiling SwiftParser LoopProgressCondition.swift
[145/189] Emitting module SwiftParser
[146/189] Compiling SwiftParser TokenSpec.swift
[147/189] Compiling SwiftParser TokenSpecSet.swift
[148/189] Compiling SwiftParser TopLevel.swift
[149/189] Compiling SwiftParser TriviaParser.swift
[150/189] Compiling SwiftParser Types.swift
[151/189] Compiling SwiftParser SwiftParserCompatibility.swift
[152/189] Compiling SwiftParser SwiftVersion.swift
[153/189] Compiling SwiftParser SyntaxUtils.swift
[154/189] Compiling SwiftParser TokenConsumer.swift
[155/189] Compiling SwiftParser TokenPrecedence.swift
[156/189] Compiling SwiftParser Attributes.swift
[157/189] Compiling SwiftParser Availability.swift
[158/189] Compiling SwiftParser CharacterInfo.swift
[159/189] Compiling SwiftParser CollectionNodes+Parsable.swift
[160/189] Compiling SwiftParser Declarations.swift
[161/189] Compiling SwiftParser Directives.swift
[162/189] Compiling SwiftParser ExpressionInterpretedAsVersionTuple.swift
[163/189] Compiling SwiftParser Expressions.swift
[164/189] Compiling SwiftParser IncrementalParseTransition.swift
[165/189] Compiling SwiftParser IsValidIdentifier.swift
[166/189] Compiling SwiftParser Cursor.swift
[167/189] Compiling SwiftParser Lexeme.swift
[168/189] Compiling SwiftParser Patterns.swift
[169/189] Compiling SwiftParser Recovery.swift
[170/189] Compiling SwiftParser Specifiers.swift
[171/189] Compiling SwiftParser Statements.swift
[172/189] Compiling SwiftParser StringLiteralRepresentedLiteralValue.swift
[173/189] Compiling SwiftParser StringLiterals.swift
[174/189] Compiling SwiftParser ExperimentalFeatures.swift
[175/189] Compiling SwiftParser IsLexerClassified.swift
[176/189] Compiling SwiftParser LayoutNodes+Parsable.swift
[177/189] Compiling SwiftParser Parser+TokenSpecSet.swift
[178/189] Compiling SwiftParser TokenSpecStaticMembers.swift
[179/190] Wrapping AST for SwiftParser for debugging
[181/213] Compiling SwiftParserDiagnostics SyntaxKindNameForDiagnostics.swift
[182/214] Compiling SwiftOperators PrecedenceGroup.swift
[183/215] Compiling SwiftOperators PrecedenceGraph.swift
[184/215] Compiling SwiftParserDiagnostics TokenNameForDiagnostics.swift
[185/215] Compiling SwiftOperators OperatorTable.swift
[186/215] Compiling SwiftOperators OperatorTable+Semantics.swift
[187/215] Compiling SwiftOperators SyntaxSynthesis.swift
[188/215] Compiling SwiftOperators OperatorTable+Folding.swift
[189/215] Compiling SwiftParserDiagnostics DiagnosticExtensions.swift
[190/215] Compiling SwiftParserDiagnostics LexerDiagnosticMessages.swift
[191/215] Compiling SwiftParserDiagnostics MultiLineStringLiteralDiagnosticsGenerator.swift
[192/215] Compiling SwiftParserDiagnostics ParseDiagnosticsGenerator.swift
[193/215] Emitting module SwiftOperators
[194/216] Wrapping AST for SwiftOperators for debugging
[196/216] Compiling SwiftParserDiagnostics ChildNameForDiagnostics.swift
[197/216] Compiling SwiftParserDiagnostics SyntaxExtensions.swift
[198/216] Compiling SwiftParserDiagnostics Utils.swift
[199/216] Emitting module SwiftParserDiagnostics
[202/216] Compiling SwiftParserDiagnostics ParserDiagnosticMessages.swift
[203/216] Compiling SwiftParserDiagnostics PresenceUtils.swift
[204/216] Compiling SwiftParserDiagnostics MissingNodesError.swift
[205/216] Compiling SwiftParserDiagnostics MissingTokenError.swift
[208/217] Wrapping AST for SwiftParserDiagnostics for debugging
[210/232] Compiling SwiftSyntaxBuilder SyntaxParsable+ExpressibleByStringInterpolation.swift
[211/232] Compiling SwiftSyntaxBuilder ValidatingSyntaxNodes.swift
[212/233] Compiling SwiftSyntaxBuilder SyntaxExpressibleByStringInterpolationConformances.swift
[213/233] Compiling SwiftSyntaxBuilder Indenter.swift
[214/233] Compiling SwiftSyntaxBuilder ListBuilder.swift
[215/233] Compiling SwiftSyntaxBuilder Syntax+StringInterpolation.swift
[216/233] Compiling SwiftSyntaxBuilder SyntaxNodeWithBody.swift
[217/233] Emitting module SwiftSyntaxBuilder
[218/233] Compiling SwiftSyntaxBuilder ConvenienceInitializers.swift
[219/233] Compiling SwiftSyntaxBuilder DeclSyntaxParseable.swift
[220/233] Compiling SwiftSyntaxBuilder ResultBuilderExtensions.swift
[221/233] Compiling SwiftSyntaxBuilder SwiftSyntaxBuilderCompatibility.swift
[222/233] Compiling SwiftSyntaxBuilder WithTrailingCommaSyntax+EnsuringTrailingComma.swift
[223/233] Compiling SwiftSyntaxBuilder BuildableNodes.swift
[224/233] Compiling SwiftSyntaxBuilder RenamedChildrenBuilderCompatibility.swift
[225/233] Compiling SwiftSyntaxBuilder ResultBuilders.swift
[226/234] Wrapping AST for SwiftSyntaxBuilder for debugging
[228/251] Compiling SwiftSyntaxMacros ExpressionMacro.swift
[229/251] Compiling SwiftSyntaxMacros ExtensionMacro.swift
[230/253] Compiling SwiftSyntaxMacros Macro.swift
[231/253] Compiling SwiftSyntaxMacros MemberAttributeMacro.swift
[232/253] Compiling SwiftSyntaxMacros AccessorMacro.swift
[233/253] Compiling SwiftSyntaxMacros AttachedMacro.swift
[234/253] Compiling SwiftSyntaxMacros BodyMacro.swift
[235/253] Compiling SwiftSyntaxMacros CodeItemMacro.swift
[236/253] Compiling SwiftSyntaxMacros DeclarationMacro.swift
[237/253] Compiling SwiftSyntaxMacros MemberMacro.swift
[238/253] Compiling SwiftSyntaxMacros PeerMacro.swift
[239/253] Compiling SwiftSyntaxMacros FreestandingMacro.swift
[240/253] Compiling SwiftSyntaxMacros Macro+Format.swift
[241/253] Emitting module SwiftSyntaxMacros
[242/253] Compiling SwiftSyntaxMacros PreambleMacro.swift
[243/253] Compiling SwiftSyntaxMacros Syntax+LexicalContext.swift
[244/253] Compiling SwiftSyntaxMacros AbstractSourceLocation.swift
[245/253] Compiling SwiftSyntaxMacros MacroExpansionContext.swift
[246/253] Compiling SwiftSyntaxMacros MacroExpansionDiagnosticMessages.swift
[247/254] Wrapping AST for SwiftSyntaxMacros for debugging
[249/263] Compiling SwiftSyntaxMacroExpansion MacroSpec.swift
[250/264] Emitting module SwiftSyntaxMacroExpansion
[251/264] Compiling SwiftSyntaxMacroExpansion BasicMacroExpansionContext.swift
[252/264] Compiling SwiftSyntaxMacroExpansion FunctionParameterUtils.swift
[253/264] Compiling SwiftSyntaxMacroExpansion MacroExpansionDiagnosticMessages.swift
[254/264] Compiling SwiftSyntaxMacroExpansion MacroReplacement.swift
[255/264] Compiling SwiftSyntaxMacroExpansion IndentationUtils.swift
[256/264] Compiling SwiftSyntaxMacroExpansion MacroExpansion.swift
[257/264] Compiling SwiftSyntaxMacroExpansion MacroArgument.swift
[258/264] Compiling SwiftSyntaxMacroExpansion MacroSystem.swift
[259/265] Wrapping AST for SwiftSyntaxMacroExpansion for debugging
[261/277] Compiling SwiftCompilerPluginMessageHandling PluginMessageCompatibility.swift
[262/278] Compiling SwiftCompilerPluginMessageHandling PluginMacroExpansionContext.swift
[263/278] Compiling SwiftCompilerPluginMessageHandling LRUCache.swift
[264/278] Compiling SwiftCompilerPluginMessageHandling Macros.swift
[265/278] Compiling SwiftCompilerPluginMessageHandling StandardIOMessageConnection.swift
[266/278] Compiling SwiftCompilerPluginMessageHandling CompilerPluginMessageHandler.swift
[267/278] Compiling SwiftCompilerPluginMessageHandling Diagnostics.swift
[268/278] Emitting module SwiftCompilerPluginMessageHandling
[269/278] Compiling SwiftCompilerPluginMessageHandling PluginMessages.swift
[270/278] Compiling SwiftCompilerPluginMessageHandling CodingUtilities.swift
[271/278] Compiling SwiftCompilerPluginMessageHandling JSON.swift
[272/278] Compiling SwiftCompilerPluginMessageHandling JSONDecoding.swift
[273/278] Compiling SwiftCompilerPluginMessageHandling JSONEncoding.swift
[274/279] Wrapping AST for SwiftCompilerPluginMessageHandling for debugging
[276/281] Emitting module SwiftCompilerPlugin
[277/281] Compiling SwiftCompilerPlugin CompilerPlugin.swift
[278/282] Wrapping AST for SwiftCompilerPlugin for debugging
[280/316] Emitting module KioskMacros
[281/320] Compiling KioskMacros ParamMacro.swift
[282/320] Compiling KioskMacros RouteMacro.swift
[283/320] Compiling KioskMacros CodecMacro.swift
[284/320] Compiling KioskMacros DefaultMacro.swift
[285/320] Compiling KioskMacros FieldMacro.swift
[286/320] Compiling KioskMacros JsonMacro.swift
[287/320] Compiling KioskMacros LerpMacro.swift
[288/320] Compiling KioskMacros MapMacro.swift
[289/320] Compiling KioskMacros MergeMacro.swift
[290/320] Compiling KioskMacros QueryMacro.swift
[291/320] Compiling KioskMacros ResponseMacro.swift
[292/320] Compiling KioskMacros SocketMacro.swift
[293/320] Compiling KioskMacros TimeoutMacro.swift
[294/320] Compiling KioskMacros WrapperMacro.swift
[295/320] Compiling KioskMacros Plugin.swift
[296/320] Compiling KioskMacros SnapMacro.swift
[297/320] Compiling KioskMacros StringMacro.swift
[298/320] Compiling KioskMacros StyleMacro.swift
[299/320] Compiling KioskMacros DataMacro.swift
[300/320] Compiling KioskMacros KeyMacro.swift
[301/320] Compiling KioskMacros ErasedMacro.swift
[302/320] Compiling KioskMacros InitMacro.swift
[303/320] Compiling KioskMacros HTTPMethodBody.swift
[304/320] Compiling KioskMacros HeaderMacro.swift
[305/320] Compiling KioskMacros PatchMacro.swift
[306/320] Compiling KioskMacros PostMacro.swift
[307/320] Compiling KioskMacros PutMacro.swift
[308/320] Compiling KioskMacros FormatMacro.swift
[309/320] Compiling KioskMacros RenameMacro.swift
[310/320] Compiling KioskMacros WireMacro.swift
[311/320] Compiling KioskMacros WireModel.swift
[312/320] Compiling KioskMacros CopyMacro.swift
[313/320] Compiling KioskMacros MacroSyntaxSupport.swift
[314/320] Compiling KioskMacros ContentMacro.swift
[315/320] Compiling KioskMacros DeleteMacro.swift
[316/320] Compiling KioskMacros EndpointContractWire.swift
[317/320] Compiling KioskMacros GetMacro.swift
[318/321] Wrapping AST for KioskMacros for debugging
[319/321] Write Objects.LinkFileList
[320/321] Linking KioskMacros-tool
error: emit-module command failed with exit code 1 (use -v to see invocation)
[322/333] Emitting module Kiosk
/host/spi-builder-workspace/Sources/Kiosk/Common/UrlBuilder.swift:327:47: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
325 |   }
326 |
327 |   public func http(tls: Bool = true, session: URLSession = .shared) -> HttpContext {
    |                                               `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
328 |     HttpContext(session: session, url: scheme(tls ? .https : .http))
329 |   }
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/Kiosk/Common/UrlBuilder.swift:327:61: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
325 |   }
326 |
327 |   public func http(tls: Bool = true, session: URLSession = .shared) -> HttpContext {
    |                                                             `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
328 |     HttpContext(session: session, url: scheme(tls ? .https : .http))
329 |   }
/host/spi-builder-workspace/Sources/Kiosk/Common/UrlBuilder.swift:327:61: error: value of type '_' expected to be instance of class or class-constrained type
325 |   }
326 |
327 |   public func http(tls: Bool = true, session: URLSession = .shared) -> HttpContext {
    |                                                             `- error: value of type '_' expected to be instance of class or class-constrained type
328 |     HttpContext(session: session, url: scheme(tls ? .https : .http))
329 |   }
/host/spi-builder-workspace/Sources/Kiosk/Common/UrlBuilder.swift:331:45: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
329 |   }
330 |
331 |   public func ws(tls: Bool = true, session: URLSession = .shared) -> WsContext {
    |                                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
332 |     WsContext(session: session, url: scheme(tls ? .wss : .ws))
333 |   }
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/Kiosk/Common/UrlBuilder.swift:331:59: error: value of type '_' expected to be instance of class or class-constrained type
329 |   }
330 |
331 |   public func ws(tls: Bool = true, session: URLSession = .shared) -> WsContext {
    |                                                           `- error: value of type '_' expected to be instance of class or class-constrained type
332 |     WsContext(session: session, url: scheme(tls ? .wss : .ws))
333 |   }
/host/spi-builder-workspace/Sources/Kiosk/Common/UrlBuilder.swift:331:59: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
329 |   }
330 |
331 |   public func ws(tls: Bool = true, session: URLSession = .shared) -> WsContext {
    |                                                           `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
332 |     WsContext(session: session, url: scheme(tls ? .wss : .ws))
333 |   }
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:7:23: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
   5 | /// Resolved HTTP context snapshot produced by folding a context node with its parents.
   6 | public struct ResolvedHttpContext: Sendable {
   7 |   public var session: URLSession
     |                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
   8 |   public var url: UrlBuilder
   9 |   public var headers: HttpHeaderStorage
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/Kiosk/HTTP/HttpContext.swift:20:14: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  18 |
  19 |   public init(
  20 |     session: URLSession = .shared,
     |              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  21 |     url: UrlBuilder = .init(),
  22 |     headers: HttpHeaderStorage = .init(),
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/Kiosk/HTTP/HttpContext.swift:20:28: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  18 |
  19 |   public init(
  20 |     session: URLSession = .shared,
     |                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  21 |     url: UrlBuilder = .init(),
  22 |     headers: HttpHeaderStorage = .init(),
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:20:28: error: value of type '_' expected to be instance of class or class-constrained type
  18 |
  19 |   public init(
  20 |     session: URLSession = .shared,
     |                            `- error: value of type '_' expected to be instance of class or class-constrained type
  21 |     url: UrlBuilder = .init(),
  22 |     headers: HttpHeaderStorage = .init(),
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:509:18: error: cannot find type 'URLRequest' in scope
 507 |   /// Creates request-specific overrides. Nil values inherit URLSession defaults.
 508 |   public init(
 509 |     cachePolicy: URLRequest.CachePolicy? = nil,
     |                  `- error: cannot find type 'URLRequest' in scope
 510 |     timeoutInterval: TimeInterval? = nil,
 511 |     allowsCellularAccess: Bool? = nil,
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:490:27: error: cannot find type 'URLRequest' in scope
 488 | public struct HttpOptions: Sendable {
 489 |   /// Overrides how this request interacts with URL caching.
 490 |   public var cachePolicy: URLRequest.CachePolicy?
     |                           `- error: cannot find type 'URLRequest' in scope
 491 |
 492 |   /// Overrides the idle timeout for this request.
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:7:14: error: stored property 'session' of 'Sendable'-conforming struct 'ResolvedHttpContext' has non-Sendable type 'AnyObject'
   5 | /// Resolved HTTP context snapshot produced by folding a context node with its parents.
   6 | public struct ResolvedHttpContext: Sendable {
   7 |   public var session: URLSession
     |              `- error: stored property 'session' of 'Sendable'-conforming struct 'ResolvedHttpContext' has non-Sendable type 'AnyObject'
   8 |   public var url: UrlBuilder
   9 |   public var headers: HttpHeaderStorage
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:51:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  49 |   public let parent: HttpContext?
  50 |
  51 |   private var sessionOverride: URLSession?
     |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  52 |   private var schemeOverride: UrlScheme?
  53 |   private var hostOverride: String??
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/Kiosk/HTTP/HttpContext.swift:76:23: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  74 |
  75 |   /// The base session.
  76 |   public var session: URLSession {
     |                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  77 |     get { fold().session }
  78 |     set { sessionOverride = newValue }
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/Kiosk/HTTP/HttpContext.swift:154:14: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 152 |   public init(
 153 |     parent: HttpContext? = nil,
 154 |     session: URLSession? = nil,
     |              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 155 |     url: UrlBuilder = .init(),
 156 |     headers: HttpHeaderStorage = .init(),
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/Kiosk/HTTP/HttpContext.swift:273:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 271 |     case missingHost
 272 |     case invalidURL
 273 |     case invalidResponse(URLResponse)
     |                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 274 |     case unsuccessfulStatus(HTTPStatusCode, Data, HTTPURLResponse)
 275 |     case unexpectedStatus(HTTPStatusCode, Data)
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:274:51: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 272 |     case invalidURL
 273 |     case invalidResponse(URLResponse)
 274 |     case unsuccessfulStatus(HTTPStatusCode, Data, HTTPURLResponse)
     |                                                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 275 |     case unexpectedStatus(HTTPStatusCode, Data)
 276 |     case unsupportedContentType(HTTPContentType)
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/Kiosk/HTTP/HttpContext.swift:273:10: warning: associated value 'invalidResponse' of 'Sendable'-conforming enum 'Error' has non-Sendable type 'AnyObject'
 271 |     case missingHost
 272 |     case invalidURL
 273 |     case invalidResponse(URLResponse)
     |          `- warning: associated value 'invalidResponse' of 'Sendable'-conforming enum 'Error' has non-Sendable type 'AnyObject'
 274 |     case unsuccessfulStatus(HTTPStatusCode, Data, HTTPURLResponse)
 275 |     case unexpectedStatus(HTTPStatusCode, Data)
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:274:10: warning: associated value 'unsuccessfulStatus' of 'Sendable'-conforming enum 'Error' contains non-Sendable type 'AnyObject'
 272 |     case invalidURL
 273 |     case invalidResponse(URLResponse)
 274 |     case unsuccessfulStatus(HTTPStatusCode, Data, HTTPURLResponse)
     |          `- warning: associated value 'unsuccessfulStatus' of 'Sendable'-conforming enum 'Error' contains non-Sendable type 'AnyObject'
 275 |     case unexpectedStatus(HTTPStatusCode, Data)
 276 |     case unsupportedContentType(HTTPContentType)
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:437:15: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 435 |     statusCode: HTTPStatusCode,
 436 |     data: Data,
 437 |     response: HTTPURLResponse,
     |               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 438 |     wire: WireSpec
 439 |   ) throws -> (any Swift.Error)? {
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/Kiosk/HTTP/HttpContext.swift:459:22: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 457 | public struct HttpErrorDecoder: Sendable {
 458 |   private let decodeError:
 459 |     @Sendable (Data, HTTPURLResponse, WireSpec) throws -> any Swift.Error
     |                      `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 460 |
 461 |   public init<Payload: Decodable & Sendable>(_ payload: Payload.Type) {
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/Kiosk/HTTP/HttpContext.swift:473:34: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 471 |   public init(
 472 |     _ decodeError:
 473 |       @escaping @Sendable (Data, HTTPURLResponse, WireSpec) throws -> any Swift.Error
     |                                  `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 474 |   ) {
 475 |     self.decodeError = decodeError
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/Kiosk/HTTP/HttpContext.swift:480:17: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 478 |   public func decode(
 479 |     _ data: Data,
 480 |     _ response: HTTPURLResponse,
     |                 `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 481 |     _ wire: WireSpec
 482 |   ) throws -> any Swift.Error {
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/Kiosk/HTTP/HttpContext.swift:826:34: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 824 |   }
 825 |
 826 |   public func session(_ session: URLSession) -> HttpContext {
     |                                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 827 |     sessionOverride = session
 828 |     return self
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/Kiosk/HTTP/HttpContext.swift:1363:44: error: cannot find type 'URLRequest' in scope
1361 |
1362 | extension HttpOptions {
1363 |   fileprivate func apply(to request: inout URLRequest) {
     |                                            `- error: cannot find type 'URLRequest' in scope
1364 |     if let cachePolicy {
1365 |       request.cachePolicy = cachePolicy
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:1385:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
1383 | }
1384 |
1385 | extension HTTPURLResponse {
     | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
1386 |   fileprivate var httpHeaders: [AnyHttpHeader] {
1387 |     allHeaderFields.map { key, value in
/host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift:43:11: error: cannot find type 'URLSessionWebSocketTask' in scope
 41 |
 42 |   public func close(
 43 |     code: URLSessionWebSocketTask.CloseCode = .normalClosure,
    |           `- error: cannot find type 'URLSessionWebSocketTask' in scope
 44 |     reason: Data? = nil
 45 |   ) {
/host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift:57:11: error: cannot find type 'URLSessionWebSocketTask' in scope
 55 |
 56 |   private static func receive(
 57 |     task: URLSessionWebSocketTask,
    |           `- error: cannot find type 'URLSessionWebSocketTask' in scope
 58 |     wire: WireSpec,
 59 |     state: SocketConnectionState<Output>
/host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift:75:8: error: cannot find type 'URLSessionWebSocketTask' in scope
 73 |
 74 |   private static func encode(_ input: Input, wire: WireSpec) throws
 75 |     -> URLSessionWebSocketTask.Message
    |        `- error: cannot find type 'URLSessionWebSocketTask' in scope
 76 |   {
 77 |     guard wire.codec == .json else {
/host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift:94:19: error: cannot find type 'URLSessionWebSocketTask' in scope
 92 |   private static func decode(
 93 |     _ output: Output.Type,
 94 |     from message: URLSessionWebSocketTask.Message,
    |                   `- error: cannot find type 'URLSessionWebSocketTask' in scope
 95 |     wire: WireSpec
 96 |   ) throws -> Output {
/host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift:127:21: error: cannot find type 'URLSessionWebSocketTask' in scope
125 | private final class SocketConnectionState<Output>: @unchecked Sendable {
126 |   private let lock = NSLock()
127 |   private var task: URLSessionWebSocketTask?
    |                     `- error: cannot find type 'URLSessionWebSocketTask' in scope
128 |   private var wire: WireSpec?
129 |   private var receiveTask: Task<Void, Never>?
/host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift:163:19: error: cannot find type 'URLSessionWebSocketTask' in scope
161 |   }
162 |
163 |   func open(task: URLSessionWebSocketTask, receiveTask: Task<Void, Never>, wire: WireSpec) {
    |                   `- error: cannot find type 'URLSessionWebSocketTask' in scope
164 |     lock.lock()
165 |     isOpening = false
/host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift:178:30: error: cannot find type 'URLSessionWebSocketTask' in scope
176 |   }
177 |
178 |   func openTask() throws -> (URLSessionWebSocketTask, WireSpec) {
    |                              `- error: cannot find type 'URLSessionWebSocketTask' in scope
179 |     lock.lock()
180 |     defer { lock.unlock() }
/host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift:213:20: error: cannot find type 'URLSessionWebSocketTask' in scope
211 |   }
212 |
213 |   func close(code: URLSessionWebSocketTask.CloseCode, reason: Data?) {
    |                    `- error: cannot find type 'URLSessionWebSocketTask' in scope
214 |     lock.lock()
215 |     let task = task
/host/spi-builder-workspace/Sources/Kiosk/WS/StreamTransport.swift:5:23: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 3 | /// Request data used to open a long-lived stream transport.
 4 | public struct StreamRequest: Sendable {
 5 |   public var session: URLSession
   |                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 |   public var url: UrlBuilder
 7 |   public var headers: HttpHeaderStorage
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/Kiosk/WS/StreamTransport.swift:12:14: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |
11 |   public init(
12 |     session: URLSession = .shared,
   |              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |     url: UrlBuilder = .init(scheme: .wss),
14 |     headers: HttpHeaderStorage = .init(),
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/Kiosk/WS/StreamTransport.swift:12:28: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
10 |
11 |   public init(
12 |     session: URLSession = .shared,
   |                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
13 |     url: UrlBuilder = .init(scheme: .wss),
14 |     headers: HttpHeaderStorage = .init(),
/host/spi-builder-workspace/Sources/Kiosk/WS/StreamTransport.swift:12:28: error: value of type '_' expected to be instance of class or class-constrained type
10 |
11 |   public init(
12 |     session: URLSession = .shared,
   |                            `- error: value of type '_' expected to be instance of class or class-constrained type
13 |     url: UrlBuilder = .init(scheme: .wss),
14 |     headers: HttpHeaderStorage = .init(),
/host/spi-builder-workspace/Sources/Kiosk/WS/StreamTransport.swift:5:14: error: stored property 'session' of 'Sendable'-conforming struct 'StreamRequest' has non-Sendable type 'AnyObject'
 3 | /// Request data used to open a long-lived stream transport.
 4 | public struct StreamRequest: Sendable {
 5 |   public var session: URLSession
   |              `- error: stored property 'session' of 'Sendable'-conforming struct 'StreamRequest' has non-Sendable type 'AnyObject'
 6 |   public var url: UrlBuilder
 7 |   public var headers: HttpHeaderStorage
/host/spi-builder-workspace/Sources/Kiosk/WS/WsContext.swift:5:23: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  3 | /// Fluent WebSocket context that builds and starts URLSessionWebSocketTask requests.
  4 | public struct WsContext: RequestContext {
  5 |   public var session: URLSession
    |                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  6 |   public var url: UrlBuilder
  7 |   public var headers: HttpHeaderStorage
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/Kiosk/WS/WsContext.swift:11:14: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 |
 10 |   public init(
 11 |     session: URLSession = .shared,
    |              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |     url: UrlBuilder = .init(scheme: .wss),
 13 |     headers: HttpHeaderStorage = .init(),
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/Kiosk/WS/WsContext.swift:11:28: error: value of type '_' expected to be instance of class or class-constrained type
  9 |
 10 |   public init(
 11 |     session: URLSession = .shared,
    |                            `- error: value of type '_' expected to be instance of class or class-constrained type
 12 |     url: UrlBuilder = .init(scheme: .wss),
 13 |     headers: HttpHeaderStorage = .init(),
/host/spi-builder-workspace/Sources/Kiosk/WS/WsContext.swift:11:28: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  9 |
 10 |   public init(
 11 |     session: URLSession = .shared,
    |                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 12 |     url: UrlBuilder = .init(scheme: .wss),
 13 |     headers: HttpHeaderStorage = .init(),
/host/spi-builder-workspace/Sources/Kiosk/WS/WsContext.swift:43:34: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |   }
 42 |
 43 |   public func session(_ session: URLSession) -> WsContext {
    |                                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |     var context = self
 45 |     context.session = session
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/Kiosk/WS/WsContext.swift:49:35: error: cannot find type 'URLSessionWebSocketTask' in scope
 47 |   }
 48 |
 49 |   public func connect() throws -> URLSessionWebSocketTask {
    |                                   `- error: cannot find type 'URLSessionWebSocketTask' in scope
 50 |     let request = try makeRequest()
 51 |     let task = session.webSocketTask(with: request)
/host/spi-builder-workspace/Sources/Kiosk/WS/WsContext.swift:60:39: error: cannot find type 'URLRequest' in scope
 58 |   }
 59 |
 60 |   public func makeRequest() throws -> URLRequest {
    |                                       `- error: cannot find type 'URLRequest' in scope
 61 |     var request = URLRequest(url: try makeURL())
 62 |     options.apply(to: &request)
/host/spi-builder-workspace/Sources/Kiosk/WS/WsContext.swift:129:44: error: cannot find type 'URLRequest' in scope
127 |
128 | extension WsOptions {
129 |   fileprivate func apply(to request: inout URLRequest) {
    |                                            `- error: cannot find type 'URLRequest' in scope
130 |     if let timeoutInterval {
131 |       request.timeoutInterval = timeoutInterval
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[323/334] Compiling Kiosk SocketConnection.swift
/host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift:43:11: error: cannot find type 'URLSessionWebSocketTask' in scope
 41 |
 42 |   public func close(
 43 |     code: URLSessionWebSocketTask.CloseCode = .normalClosure,
    |           `- error: cannot find type 'URLSessionWebSocketTask' in scope
 44 |     reason: Data? = nil
 45 |   ) {
/host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift:57:11: error: cannot find type 'URLSessionWebSocketTask' in scope
 55 |
 56 |   private static func receive(
 57 |     task: URLSessionWebSocketTask,
    |           `- error: cannot find type 'URLSessionWebSocketTask' in scope
 58 |     wire: WireSpec,
 59 |     state: SocketConnectionState<Output>
/host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift:75:8: error: cannot find type 'URLSessionWebSocketTask' in scope
 73 |
 74 |   private static func encode(_ input: Input, wire: WireSpec) throws
 75 |     -> URLSessionWebSocketTask.Message
    |        `- error: cannot find type 'URLSessionWebSocketTask' in scope
 76 |   {
 77 |     guard wire.codec == .json else {
/host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift:94:19: error: cannot find type 'URLSessionWebSocketTask' in scope
 92 |   private static func decode(
 93 |     _ output: Output.Type,
 94 |     from message: URLSessionWebSocketTask.Message,
    |                   `- error: cannot find type 'URLSessionWebSocketTask' in scope
 95 |     wire: WireSpec
 96 |   ) throws -> Output {
/host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift:127:21: error: cannot find type 'URLSessionWebSocketTask' in scope
125 | private final class SocketConnectionState<Output>: @unchecked Sendable {
126 |   private let lock = NSLock()
127 |   private var task: URLSessionWebSocketTask?
    |                     `- error: cannot find type 'URLSessionWebSocketTask' in scope
128 |   private var wire: WireSpec?
129 |   private var receiveTask: Task<Void, Never>?
/host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift:163:19: error: cannot find type 'URLSessionWebSocketTask' in scope
161 |   }
162 |
163 |   func open(task: URLSessionWebSocketTask, receiveTask: Task<Void, Never>, wire: WireSpec) {
    |                   `- error: cannot find type 'URLSessionWebSocketTask' in scope
164 |     lock.lock()
165 |     isOpening = false
/host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift:178:30: error: cannot find type 'URLSessionWebSocketTask' in scope
176 |   }
177 |
178 |   func openTask() throws -> (URLSessionWebSocketTask, WireSpec) {
    |                              `- error: cannot find type 'URLSessionWebSocketTask' in scope
179 |     lock.lock()
180 |     defer { lock.unlock() }
/host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift:213:20: error: cannot find type 'URLSessionWebSocketTask' in scope
211 |   }
212 |
213 |   func close(code: URLSessionWebSocketTask.CloseCode, reason: Data?) {
    |                    `- error: cannot find type 'URLSessionWebSocketTask' in scope
214 |     lock.lock()
215 |     let task = task
/host/spi-builder-workspace/Sources/Kiosk/WS/WsContext.swift:49:35: error: cannot find type 'URLSessionWebSocketTask' in scope
 47 |   }
 48 |
 49 |   public func connect() throws -> URLSessionWebSocketTask {
    |                                   `- error: cannot find type 'URLSessionWebSocketTask' in scope
 50 |     let request = try makeRequest()
 51 |     let task = session.webSocketTask(with: request)
/host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift:39:18: error: argument passed to call that takes no arguments
 37 |   /// Closes the current WebSocket task, if one is open.
 38 |   public func close() {
 39 |     close(code: .normalClosure)
    |                  `- error: argument passed to call that takes no arguments
 40 |   }
 41 |
/host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift:39:18: error: cannot infer contextual base in reference to member 'normalClosure'
 37 |   /// Closes the current WebSocket task, if one is open.
 38 |   public func close() {
 39 |     close(code: .normalClosure)
    |                  `- error: cannot infer contextual base in reference to member 'normalClosure'
 40 |   }
 41 |
[324/334] Compiling Kiosk StreamTransport.swift
/host/spi-builder-workspace/Sources/Kiosk/WS/StreamTransport.swift:5:23: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 3 | /// Request data used to open a long-lived stream transport.
 4 | public struct StreamRequest: Sendable {
 5 |   public var session: URLSession
   |                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 |   public var url: UrlBuilder
 7 |   public var headers: HttpHeaderStorage
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/Kiosk/WS/StreamTransport.swift:12:14: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |
11 |   public init(
12 |     session: URLSession = .shared,
   |              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |     url: UrlBuilder = .init(scheme: .wss),
14 |     headers: HttpHeaderStorage = .init(),
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/Kiosk/WS/StreamTransport.swift:12:28: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
10 |
11 |   public init(
12 |     session: URLSession = .shared,
   |                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
13 |     url: UrlBuilder = .init(scheme: .wss),
14 |     headers: HttpHeaderStorage = .init(),
/host/spi-builder-workspace/Sources/Kiosk/WS/StreamTransport.swift:12:28: error: value of type '_' expected to be instance of class or class-constrained type
10 |
11 |   public init(
12 |     session: URLSession = .shared,
   |                            `- error: value of type '_' expected to be instance of class or class-constrained type
13 |     url: UrlBuilder = .init(scheme: .wss),
14 |     headers: HttpHeaderStorage = .init(),
/host/spi-builder-workspace/Sources/Kiosk/WS/StreamTransport.swift:5:14: error: stored property 'session' of 'Sendable'-conforming struct 'StreamRequest' has non-Sendable type 'AnyObject'
 3 | /// Request data used to open a long-lived stream transport.
 4 | public struct StreamRequest: Sendable {
 5 |   public var session: URLSession
   |              `- error: stored property 'session' of 'Sendable'-conforming struct 'StreamRequest' has non-Sendable type 'AnyObject'
 6 |   public var url: UrlBuilder
 7 |   public var headers: HttpHeaderStorage
[325/334] Compiling Kiosk WsContext.swift
/host/spi-builder-workspace/Sources/Kiosk/WS/WsContext.swift:5:23: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  3 | /// Fluent WebSocket context that builds and starts URLSessionWebSocketTask requests.
  4 | public struct WsContext: RequestContext {
  5 |   public var session: URLSession
    |                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  6 |   public var url: UrlBuilder
  7 |   public var headers: HttpHeaderStorage
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/Kiosk/WS/WsContext.swift:11:14: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 |
 10 |   public init(
 11 |     session: URLSession = .shared,
    |              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |     url: UrlBuilder = .init(scheme: .wss),
 13 |     headers: HttpHeaderStorage = .init(),
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/Kiosk/WS/WsContext.swift:11:28: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  9 |
 10 |   public init(
 11 |     session: URLSession = .shared,
    |                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 12 |     url: UrlBuilder = .init(scheme: .wss),
 13 |     headers: HttpHeaderStorage = .init(),
/host/spi-builder-workspace/Sources/Kiosk/WS/WsContext.swift:11:28: error: value of type '_' expected to be instance of class or class-constrained type
  9 |
 10 |   public init(
 11 |     session: URLSession = .shared,
    |                            `- error: value of type '_' expected to be instance of class or class-constrained type
 12 |     url: UrlBuilder = .init(scheme: .wss),
 13 |     headers: HttpHeaderStorage = .init(),
/host/spi-builder-workspace/Sources/Kiosk/WS/WsContext.swift:43:34: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |   }
 42 |
 43 |   public func session(_ session: URLSession) -> WsContext {
    |                                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |     var context = self
 45 |     context.session = session
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/Kiosk/WS/WsContext.swift:49:35: error: cannot find type 'URLSessionWebSocketTask' in scope
 47 |   }
 48 |
 49 |   public func connect() throws -> URLSessionWebSocketTask {
    |                                   `- error: cannot find type 'URLSessionWebSocketTask' in scope
 50 |     let request = try makeRequest()
 51 |     let task = session.webSocketTask(with: request)
/host/spi-builder-workspace/Sources/Kiosk/WS/WsContext.swift:60:39: error: cannot find type 'URLRequest' in scope
 58 |   }
 59 |
 60 |   public func makeRequest() throws -> URLRequest {
    |                                       `- error: cannot find type 'URLRequest' in scope
 61 |     var request = URLRequest(url: try makeURL())
 62 |     options.apply(to: &request)
/host/spi-builder-workspace/Sources/Kiosk/WS/WsContext.swift:129:44: error: cannot find type 'URLRequest' in scope
127 |
128 | extension WsOptions {
129 |   fileprivate func apply(to request: inout URLRequest) {
    |                                            `- error: cannot find type 'URLRequest' in scope
130 |     if let timeoutInterval {
131 |       request.timeoutInterval = timeoutInterval
/host/spi-builder-workspace/Sources/Kiosk/WS/WsContext.swift:51:24: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
 49 |   public func connect() throws -> URLSessionWebSocketTask {
 50 |     let request = try makeRequest()
 51 |     let task = session.webSocketTask(with: request)
    |                        `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
 52 |     if let maximumMessageSize = options.maximumMessageSize {
 53 |       task.maximumMessageSize = maximumMessageSize
/host/spi-builder-workspace/Sources/Kiosk/WS/WsContext.swift:61:19: error: cannot find 'URLRequest' in scope
 59 |
 60 |   public func makeRequest() throws -> URLRequest {
 61 |     var request = URLRequest(url: try makeURL())
    |                   `- error: cannot find 'URLRequest' in scope
 62 |     options.apply(to: &request)
 63 |
[326/334] Compiling Kiosk APIParameters.swift
[327/334] Compiling Kiosk HttpHeaderEncoder.swift
[328/334] Compiling Kiosk RequestContext.swift
/host/spi-builder-workspace/Sources/Kiosk/Common/UrlBuilder.swift:327:47: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
325 |   }
326 |
327 |   public func http(tls: Bool = true, session: URLSession = .shared) -> HttpContext {
    |                                               `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
328 |     HttpContext(session: session, url: scheme(tls ? .https : .http))
329 |   }
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/Kiosk/Common/UrlBuilder.swift:327:61: error: value of type '_' expected to be instance of class or class-constrained type
325 |   }
326 |
327 |   public func http(tls: Bool = true, session: URLSession = .shared) -> HttpContext {
    |                                                             `- error: value of type '_' expected to be instance of class or class-constrained type
328 |     HttpContext(session: session, url: scheme(tls ? .https : .http))
329 |   }
/host/spi-builder-workspace/Sources/Kiosk/Common/UrlBuilder.swift:327:61: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
325 |   }
326 |
327 |   public func http(tls: Bool = true, session: URLSession = .shared) -> HttpContext {
    |                                                             `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
328 |     HttpContext(session: session, url: scheme(tls ? .https : .http))
329 |   }
/host/spi-builder-workspace/Sources/Kiosk/Common/UrlBuilder.swift:331:45: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
329 |   }
330 |
331 |   public func ws(tls: Bool = true, session: URLSession = .shared) -> WsContext {
    |                                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
332 |     WsContext(session: session, url: scheme(tls ? .wss : .ws))
333 |   }
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/Kiosk/Common/UrlBuilder.swift:331:59: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
329 |   }
330 |
331 |   public func ws(tls: Bool = true, session: URLSession = .shared) -> WsContext {
    |                                                           `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
332 |     WsContext(session: session, url: scheme(tls ? .wss : .ws))
333 |   }
/host/spi-builder-workspace/Sources/Kiosk/Common/UrlBuilder.swift:331:59: error: value of type '_' expected to be instance of class or class-constrained type
329 |   }
330 |
331 |   public func ws(tls: Bool = true, session: URLSession = .shared) -> WsContext {
    |                                                           `- error: value of type '_' expected to be instance of class or class-constrained type
332 |     WsContext(session: session, url: scheme(tls ? .wss : .ws))
333 |   }
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:509:18: error: cannot find type 'URLRequest' in scope
 507 |   /// Creates request-specific overrides. Nil values inherit URLSession defaults.
 508 |   public init(
 509 |     cachePolicy: URLRequest.CachePolicy? = nil,
     |                  `- error: cannot find type 'URLRequest' in scope
 510 |     timeoutInterval: TimeInterval? = nil,
 511 |     allowsCellularAccess: Bool? = nil,
[329/334] Compiling Kiosk UrlBuilder.swift
/host/spi-builder-workspace/Sources/Kiosk/Common/UrlBuilder.swift:327:47: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
325 |   }
326 |
327 |   public func http(tls: Bool = true, session: URLSession = .shared) -> HttpContext {
    |                                               `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
328 |     HttpContext(session: session, url: scheme(tls ? .https : .http))
329 |   }
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/Kiosk/Common/UrlBuilder.swift:327:61: error: value of type '_' expected to be instance of class or class-constrained type
325 |   }
326 |
327 |   public func http(tls: Bool = true, session: URLSession = .shared) -> HttpContext {
    |                                                             `- error: value of type '_' expected to be instance of class or class-constrained type
328 |     HttpContext(session: session, url: scheme(tls ? .https : .http))
329 |   }
/host/spi-builder-workspace/Sources/Kiosk/Common/UrlBuilder.swift:327:61: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
325 |   }
326 |
327 |   public func http(tls: Bool = true, session: URLSession = .shared) -> HttpContext {
    |                                                             `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
328 |     HttpContext(session: session, url: scheme(tls ? .https : .http))
329 |   }
/host/spi-builder-workspace/Sources/Kiosk/Common/UrlBuilder.swift:331:45: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
329 |   }
330 |
331 |   public func ws(tls: Bool = true, session: URLSession = .shared) -> WsContext {
    |                                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
332 |     WsContext(session: session, url: scheme(tls ? .wss : .ws))
333 |   }
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/Kiosk/Common/UrlBuilder.swift:331:59: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
329 |   }
330 |
331 |   public func ws(tls: Bool = true, session: URLSession = .shared) -> WsContext {
    |                                                           `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
332 |     WsContext(session: session, url: scheme(tls ? .wss : .ws))
333 |   }
/host/spi-builder-workspace/Sources/Kiosk/Common/UrlBuilder.swift:331:59: error: value of type '_' expected to be instance of class or class-constrained type
329 |   }
330 |
331 |   public func ws(tls: Bool = true, session: URLSession = .shared) -> WsContext {
    |                                                           `- error: value of type '_' expected to be instance of class or class-constrained type
332 |     WsContext(session: session, url: scheme(tls ? .wss : .ws))
333 |   }
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:509:18: error: cannot find type 'URLRequest' in scope
 507 |   /// Creates request-specific overrides. Nil values inherit URLSession defaults.
 508 |   public init(
 509 |     cachePolicy: URLRequest.CachePolicy? = nil,
     |                  `- error: cannot find type 'URLRequest' in scope
 510 |     timeoutInterval: TimeInterval? = nil,
 511 |     allowsCellularAccess: Bool? = nil,
[330/334] Compiling Kiosk HttpTypes.swift
[331/334] Compiling Kiosk Macros.swift
[332/334] Compiling Kiosk UrlQueryEncoder.swift
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:7:23: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
   5 | /// Resolved HTTP context snapshot produced by folding a context node with its parents.
   6 | public struct ResolvedHttpContext: Sendable {
   7 |   public var session: URLSession
     |                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
   8 |   public var url: UrlBuilder
   9 |   public var headers: HttpHeaderStorage
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/Kiosk/HTTP/HttpContext.swift:20:14: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  18 |
  19 |   public init(
  20 |     session: URLSession = .shared,
     |              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  21 |     url: UrlBuilder = .init(),
  22 |     headers: HttpHeaderStorage = .init(),
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/Kiosk/HTTP/HttpContext.swift:20:28: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  18 |
  19 |   public init(
  20 |     session: URLSession = .shared,
     |                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  21 |     url: UrlBuilder = .init(),
  22 |     headers: HttpHeaderStorage = .init(),
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:20:28: error: value of type '_' expected to be instance of class or class-constrained type
  18 |
  19 |   public init(
  20 |     session: URLSession = .shared,
     |                            `- error: value of type '_' expected to be instance of class or class-constrained type
  21 |     url: UrlBuilder = .init(),
  22 |     headers: HttpHeaderStorage = .init(),
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:509:18: error: cannot find type 'URLRequest' in scope
 507 |   /// Creates request-specific overrides. Nil values inherit URLSession defaults.
 508 |   public init(
 509 |     cachePolicy: URLRequest.CachePolicy? = nil,
     |                  `- error: cannot find type 'URLRequest' in scope
 510 |     timeoutInterval: TimeInterval? = nil,
 511 |     allowsCellularAccess: Bool? = nil,
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:490:27: error: cannot find type 'URLRequest' in scope
 488 | public struct HttpOptions: Sendable {
 489 |   /// Overrides how this request interacts with URL caching.
 490 |   public var cachePolicy: URLRequest.CachePolicy?
     |                           `- error: cannot find type 'URLRequest' in scope
 491 |
 492 |   /// Overrides the idle timeout for this request.
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:7:14: error: stored property 'session' of 'Sendable'-conforming struct 'ResolvedHttpContext' has non-Sendable type 'AnyObject'
   5 | /// Resolved HTTP context snapshot produced by folding a context node with its parents.
   6 | public struct ResolvedHttpContext: Sendable {
   7 |   public var session: URLSession
     |              `- error: stored property 'session' of 'Sendable'-conforming struct 'ResolvedHttpContext' has non-Sendable type 'AnyObject'
   8 |   public var url: UrlBuilder
   9 |   public var headers: HttpHeaderStorage
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:51:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  49 |   public let parent: HttpContext?
  50 |
  51 |   private var sessionOverride: URLSession?
     |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  52 |   private var schemeOverride: UrlScheme?
  53 |   private var hostOverride: String??
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/Kiosk/HTTP/HttpContext.swift:76:23: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  74 |
  75 |   /// The base session.
  76 |   public var session: URLSession {
     |                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  77 |     get { fold().session }
  78 |     set { sessionOverride = newValue }
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/Kiosk/HTTP/HttpContext.swift:154:14: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 152 |   public init(
 153 |     parent: HttpContext? = nil,
 154 |     session: URLSession? = nil,
     |              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 155 |     url: UrlBuilder = .init(),
 156 |     headers: HttpHeaderStorage = .init(),
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/Kiosk/HTTP/HttpContext.swift:273:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 271 |     case missingHost
 272 |     case invalidURL
 273 |     case invalidResponse(URLResponse)
     |                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 274 |     case unsuccessfulStatus(HTTPStatusCode, Data, HTTPURLResponse)
 275 |     case unexpectedStatus(HTTPStatusCode, Data)
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:274:51: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 272 |     case invalidURL
 273 |     case invalidResponse(URLResponse)
 274 |     case unsuccessfulStatus(HTTPStatusCode, Data, HTTPURLResponse)
     |                                                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 275 |     case unexpectedStatus(HTTPStatusCode, Data)
 276 |     case unsupportedContentType(HTTPContentType)
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/Kiosk/HTTP/HttpContext.swift:273:10: warning: associated value 'invalidResponse' of 'Sendable'-conforming enum 'Error' has non-Sendable type 'AnyObject'
 271 |     case missingHost
 272 |     case invalidURL
 273 |     case invalidResponse(URLResponse)
     |          `- warning: associated value 'invalidResponse' of 'Sendable'-conforming enum 'Error' has non-Sendable type 'AnyObject'
 274 |     case unsuccessfulStatus(HTTPStatusCode, Data, HTTPURLResponse)
 275 |     case unexpectedStatus(HTTPStatusCode, Data)
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:274:10: warning: associated value 'unsuccessfulStatus' of 'Sendable'-conforming enum 'Error' contains non-Sendable type 'AnyObject'
 272 |     case invalidURL
 273 |     case invalidResponse(URLResponse)
 274 |     case unsuccessfulStatus(HTTPStatusCode, Data, HTTPURLResponse)
     |          `- warning: associated value 'unsuccessfulStatus' of 'Sendable'-conforming enum 'Error' contains non-Sendable type 'AnyObject'
 275 |     case unexpectedStatus(HTTPStatusCode, Data)
 276 |     case unsupportedContentType(HTTPContentType)
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:437:15: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 435 |     statusCode: HTTPStatusCode,
 436 |     data: Data,
 437 |     response: HTTPURLResponse,
     |               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 438 |     wire: WireSpec
 439 |   ) throws -> (any Swift.Error)? {
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/Kiosk/HTTP/HttpContext.swift:459:22: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 457 | public struct HttpErrorDecoder: Sendable {
 458 |   private let decodeError:
 459 |     @Sendable (Data, HTTPURLResponse, WireSpec) throws -> any Swift.Error
     |                      `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 460 |
 461 |   public init<Payload: Decodable & Sendable>(_ payload: Payload.Type) {
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/Kiosk/HTTP/HttpContext.swift:473:34: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 471 |   public init(
 472 |     _ decodeError:
 473 |       @escaping @Sendable (Data, HTTPURLResponse, WireSpec) throws -> any Swift.Error
     |                                  `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 474 |   ) {
 475 |     self.decodeError = decodeError
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/Kiosk/HTTP/HttpContext.swift:480:17: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 478 |   public func decode(
 479 |     _ data: Data,
 480 |     _ response: HTTPURLResponse,
     |                 `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 481 |     _ wire: WireSpec
 482 |   ) throws -> any Swift.Error {
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/Kiosk/HTTP/HttpContext.swift:826:34: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 824 |   }
 825 |
 826 |   public func session(_ session: URLSession) -> HttpContext {
     |                                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 827 |     sessionOverride = session
 828 |     return self
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/Kiosk/HTTP/HttpContext.swift:1363:44: error: cannot find type 'URLRequest' in scope
1361 |
1362 | extension HttpOptions {
1363 |   fileprivate func apply(to request: inout URLRequest) {
     |                                            `- error: cannot find type 'URLRequest' in scope
1364 |     if let cachePolicy {
1365 |       request.cachePolicy = cachePolicy
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:1385:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
1383 | }
1384 |
1385 | extension HTTPURLResponse {
     | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
1386 |   fileprivate var httpHeaders: [AnyHttpHeader] {
1387 |     allHeaderFields.map { key, value in
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:198:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 196 |   public func fold() -> ResolvedHttpContext {
 197 |     var resolved = parent?.fold() ?? ResolvedHttpContext(
 198 |       session: sessionOverride ?? .shared
     |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 199 |     )
 200 |
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:467:54: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 465 |       let payload = try decoder.decode(Payload.self, from: data)
 466 |       let message = try? decoder.decode(HttpErrorMessage.self, from: data).message
 467 |       return HttpError(code: HTTPStatusCode(response.statusCode), message: message, payload: payload)
     |                                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 468 |     }
 469 |   }
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:1250:22: error: cannot find 'URLRequest' in scope
1248 |     validatesStatus: Bool
1249 |   ) async throws -> Response<Data> {
1250 |     var urlRequest = URLRequest(url: try makeURL(from: request.url))
     |                      `- error: cannot find 'URLRequest' in scope
1251 |     urlRequest.httpMethod = request.method.rawValue
1252 |     urlRequest.httpBody = request.body
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:1266:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
1264 |     }
1265 |
1266 |     let (data, response) = try await context.session.data(for: urlRequest)
     |                                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
1267 |
1268 |     guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:1321:24: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
1319 |     let url = response.url ?? (try? makeURL(from: context.url)) ?? URL(string: "https://kiosk.local")!
1320 |     let headerFields = Dictionary(uniqueKeysWithValues: response.headers.map { ($0.name, $0.value) })
1321 |     let httpResponse = HTTPURLResponse(
     |                        `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
1322 |       url: url,
1323 |       statusCode: response.status.rawValue,
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:1324:20: error: 'nil' requires a contextual type
1322 |       url: url,
1323 |       statusCode: response.status.rawValue,
1324 |       httpVersion: nil,
     |                    `- error: 'nil' requires a contextual type
1325 |       headerFields: headerFields
1326 |     )!
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[333/334] Compiling Kiosk HttpContext.swift
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:7:23: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
   5 | /// Resolved HTTP context snapshot produced by folding a context node with its parents.
   6 | public struct ResolvedHttpContext: Sendable {
   7 |   public var session: URLSession
     |                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
   8 |   public var url: UrlBuilder
   9 |   public var headers: HttpHeaderStorage
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/Kiosk/HTTP/HttpContext.swift:20:14: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  18 |
  19 |   public init(
  20 |     session: URLSession = .shared,
     |              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  21 |     url: UrlBuilder = .init(),
  22 |     headers: HttpHeaderStorage = .init(),
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/Kiosk/HTTP/HttpContext.swift:20:28: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  18 |
  19 |   public init(
  20 |     session: URLSession = .shared,
     |                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  21 |     url: UrlBuilder = .init(),
  22 |     headers: HttpHeaderStorage = .init(),
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:20:28: error: value of type '_' expected to be instance of class or class-constrained type
  18 |
  19 |   public init(
  20 |     session: URLSession = .shared,
     |                            `- error: value of type '_' expected to be instance of class or class-constrained type
  21 |     url: UrlBuilder = .init(),
  22 |     headers: HttpHeaderStorage = .init(),
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:509:18: error: cannot find type 'URLRequest' in scope
 507 |   /// Creates request-specific overrides. Nil values inherit URLSession defaults.
 508 |   public init(
 509 |     cachePolicy: URLRequest.CachePolicy? = nil,
     |                  `- error: cannot find type 'URLRequest' in scope
 510 |     timeoutInterval: TimeInterval? = nil,
 511 |     allowsCellularAccess: Bool? = nil,
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:490:27: error: cannot find type 'URLRequest' in scope
 488 | public struct HttpOptions: Sendable {
 489 |   /// Overrides how this request interacts with URL caching.
 490 |   public var cachePolicy: URLRequest.CachePolicy?
     |                           `- error: cannot find type 'URLRequest' in scope
 491 |
 492 |   /// Overrides the idle timeout for this request.
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:7:14: error: stored property 'session' of 'Sendable'-conforming struct 'ResolvedHttpContext' has non-Sendable type 'AnyObject'
   5 | /// Resolved HTTP context snapshot produced by folding a context node with its parents.
   6 | public struct ResolvedHttpContext: Sendable {
   7 |   public var session: URLSession
     |              `- error: stored property 'session' of 'Sendable'-conforming struct 'ResolvedHttpContext' has non-Sendable type 'AnyObject'
   8 |   public var url: UrlBuilder
   9 |   public var headers: HttpHeaderStorage
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:51:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  49 |   public let parent: HttpContext?
  50 |
  51 |   private var sessionOverride: URLSession?
     |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  52 |   private var schemeOverride: UrlScheme?
  53 |   private var hostOverride: String??
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/Kiosk/HTTP/HttpContext.swift:76:23: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  74 |
  75 |   /// The base session.
  76 |   public var session: URLSession {
     |                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  77 |     get { fold().session }
  78 |     set { sessionOverride = newValue }
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/Kiosk/HTTP/HttpContext.swift:154:14: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 152 |   public init(
 153 |     parent: HttpContext? = nil,
 154 |     session: URLSession? = nil,
     |              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 155 |     url: UrlBuilder = .init(),
 156 |     headers: HttpHeaderStorage = .init(),
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/Kiosk/HTTP/HttpContext.swift:273:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 271 |     case missingHost
 272 |     case invalidURL
 273 |     case invalidResponse(URLResponse)
     |                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 274 |     case unsuccessfulStatus(HTTPStatusCode, Data, HTTPURLResponse)
 275 |     case unexpectedStatus(HTTPStatusCode, Data)
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:274:51: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 272 |     case invalidURL
 273 |     case invalidResponse(URLResponse)
 274 |     case unsuccessfulStatus(HTTPStatusCode, Data, HTTPURLResponse)
     |                                                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 275 |     case unexpectedStatus(HTTPStatusCode, Data)
 276 |     case unsupportedContentType(HTTPContentType)
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/Kiosk/HTTP/HttpContext.swift:273:10: warning: associated value 'invalidResponse' of 'Sendable'-conforming enum 'Error' has non-Sendable type 'AnyObject'
 271 |     case missingHost
 272 |     case invalidURL
 273 |     case invalidResponse(URLResponse)
     |          `- warning: associated value 'invalidResponse' of 'Sendable'-conforming enum 'Error' has non-Sendable type 'AnyObject'
 274 |     case unsuccessfulStatus(HTTPStatusCode, Data, HTTPURLResponse)
 275 |     case unexpectedStatus(HTTPStatusCode, Data)
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:274:10: warning: associated value 'unsuccessfulStatus' of 'Sendable'-conforming enum 'Error' contains non-Sendable type 'AnyObject'
 272 |     case invalidURL
 273 |     case invalidResponse(URLResponse)
 274 |     case unsuccessfulStatus(HTTPStatusCode, Data, HTTPURLResponse)
     |          `- warning: associated value 'unsuccessfulStatus' of 'Sendable'-conforming enum 'Error' contains non-Sendable type 'AnyObject'
 275 |     case unexpectedStatus(HTTPStatusCode, Data)
 276 |     case unsupportedContentType(HTTPContentType)
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:437:15: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 435 |     statusCode: HTTPStatusCode,
 436 |     data: Data,
 437 |     response: HTTPURLResponse,
     |               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 438 |     wire: WireSpec
 439 |   ) throws -> (any Swift.Error)? {
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/Kiosk/HTTP/HttpContext.swift:459:22: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 457 | public struct HttpErrorDecoder: Sendable {
 458 |   private let decodeError:
 459 |     @Sendable (Data, HTTPURLResponse, WireSpec) throws -> any Swift.Error
     |                      `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 460 |
 461 |   public init<Payload: Decodable & Sendable>(_ payload: Payload.Type) {
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/Kiosk/HTTP/HttpContext.swift:473:34: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 471 |   public init(
 472 |     _ decodeError:
 473 |       @escaping @Sendable (Data, HTTPURLResponse, WireSpec) throws -> any Swift.Error
     |                                  `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 474 |   ) {
 475 |     self.decodeError = decodeError
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/Kiosk/HTTP/HttpContext.swift:480:17: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 478 |   public func decode(
 479 |     _ data: Data,
 480 |     _ response: HTTPURLResponse,
     |                 `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 481 |     _ wire: WireSpec
 482 |   ) throws -> any Swift.Error {
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/Kiosk/HTTP/HttpContext.swift:826:34: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 824 |   }
 825 |
 826 |   public func session(_ session: URLSession) -> HttpContext {
     |                                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 827 |     sessionOverride = session
 828 |     return self
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/Kiosk/HTTP/HttpContext.swift:1363:44: error: cannot find type 'URLRequest' in scope
1361 |
1362 | extension HttpOptions {
1363 |   fileprivate func apply(to request: inout URLRequest) {
     |                                            `- error: cannot find type 'URLRequest' in scope
1364 |     if let cachePolicy {
1365 |       request.cachePolicy = cachePolicy
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:1385:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
1383 | }
1384 |
1385 | extension HTTPURLResponse {
     | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
1386 |   fileprivate var httpHeaders: [AnyHttpHeader] {
1387 |     allHeaderFields.map { key, value in
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:198:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 196 |   public func fold() -> ResolvedHttpContext {
 197 |     var resolved = parent?.fold() ?? ResolvedHttpContext(
 198 |       session: sessionOverride ?? .shared
     |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 199 |     )
 200 |
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:467:54: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 465 |       let payload = try decoder.decode(Payload.self, from: data)
 466 |       let message = try? decoder.decode(HttpErrorMessage.self, from: data).message
 467 |       return HttpError(code: HTTPStatusCode(response.statusCode), message: message, payload: payload)
     |                                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 468 |     }
 469 |   }
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:1250:22: error: cannot find 'URLRequest' in scope
1248 |     validatesStatus: Bool
1249 |   ) async throws -> Response<Data> {
1250 |     var urlRequest = URLRequest(url: try makeURL(from: request.url))
     |                      `- error: cannot find 'URLRequest' in scope
1251 |     urlRequest.httpMethod = request.method.rawValue
1252 |     urlRequest.httpBody = request.body
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:1266:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
1264 |     }
1265 |
1266 |     let (data, response) = try await context.session.data(for: urlRequest)
     |                                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
1267 |
1268 |     guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:1321:24: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
1319 |     let url = response.url ?? (try? makeURL(from: context.url)) ?? URL(string: "https://kiosk.local")!
1320 |     let headerFields = Dictionary(uniqueKeysWithValues: response.headers.map { ($0.name, $0.value) })
1321 |     let httpResponse = HTTPURLResponse(
     |                        `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
1322 |       url: url,
1323 |       statusCode: response.status.rawValue,
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:1324:20: error: 'nil' requires a contextual type
1322 |       url: url,
1323 |       statusCode: response.status.rawValue,
1324 |       httpVersion: nil,
     |                    `- error: 'nil' requires a contextual type
1325 |       headerFields: headerFields
1326 |     )!
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[334/334] Compiling Kiosk Wire.swift
BUILD FAILURE 6.3 wasm