The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftAgent, reference 0.8.0 (48bfda), with Swift 6.1 for Wasm on 15 Jan 2026 19:47:30 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/SwiftedMind/SwiftAgent.git
Reference: 0.8.0
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/SwiftedMind/SwiftAgent
 * tag               0.8.0      -> FETCH_HEAD
HEAD is now at 48bfda9 Update CHANGELOG
Cloned https://github.com/SwiftedMind/SwiftAgent.git
Revision (git rev-parse @):
48bfda9219a5014c117aff3294e7987e17218a9d
SUCCESS checkout https://github.com/SwiftedMind/SwiftAgent.git at 0.8.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/SwiftedMind/SwiftAgent.git
https://github.com/SwiftedMind/SwiftAgent.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-syntax",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "600.0.0",
            "upper_bound" : "603.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/swiftlang/swift-syntax.git"
    },
    {
      "identity" : "openai",
      "requirement" : {
        "branch" : [
          "main"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/MacPaw/OpenAI.git"
    },
    {
      "identity" : "swiftanthropic",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.2.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/jamesrochabrun/SwiftAnthropic.git"
    },
    {
      "identity" : "eventsource",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.2.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/mattt/EventSource"
    },
    {
      "identity" : "swift-macro-testing",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.6.4",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/pointfreeco/swift-macro-testing"
    }
  ],
  "manifest_display_name" : "SwiftAgent",
  "name" : "SwiftAgent",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "26.0"
    },
    {
      "name" : "macos",
      "version" : "26.0"
    }
  ],
  "products" : [
    {
      "name" : "OpenAISession",
      "targets" : [
        "OpenAISession",
        "SimulatedSession",
        "SwiftAgent"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "AnthropicSession",
      "targets" : [
        "AnthropicSession",
        "SimulatedSession",
        "SwiftAgent"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "ExampleCode",
      "targets" : [
        "ExampleCode"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "SwiftAgentMacros",
      "targets" : [
        "SwiftAgentMacros"
      ],
      "type" : {
        "macro" : null
      }
    }
  ],
  "swift_languages_versions" : [
    "6"
  ],
  "targets" : [
    {
      "c99name" : "SwiftAgentTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftAgentTests",
      "path" : "Tests/SwiftAgentTests",
      "product_dependencies" : [
        "SwiftAnthropic"
      ],
      "sources" : [
        "AnthropicSession/AnthropicGenerationOptionsValidationTests.swift",
        "AnthropicSession/AnthropicHTTPErrorMappingTests.swift",
        "AnthropicSession/AnthropicStreamingMultipleToolCallsTests.swift",
        "AnthropicSession/AnthropicStreamingTextTests.swift",
        "AnthropicSession/AnthropicStreamingThinkingRoundtripTests.swift",
        "AnthropicSession/AnthropicStreamingToolCallsNoArgsTests.swift",
        "AnthropicSession/AnthropicStreamingToolCallsTests.swift",
        "AnthropicSession/AnthropicStructuredOutputTests.swift",
        "AnthropicSession/AnthropicTextTests.swift",
        "AnthropicSession/AnthropicThinkingCompatibilityValidationTests.swift",
        "Helpers/ReplayHTTPClient.swift",
        "Networking/HTTPReplayRecorderTests.swift",
        "OpenAISession/OpenAIErrorHandling.swift",
        "OpenAISession/OpenAIGenerationOptionsValidationTests.swift",
        "OpenAISession/OpenAIStreamingErrorHandling.swift",
        "OpenAISession/OpenAIStreamingMalformedToolArgumentsTests.swift",
        "OpenAISession/OpenAIStreamingMultipleToolCallsTests.swift",
        "OpenAISession/OpenAIStreamingStructuredOutputTests.swift",
        "OpenAISession/OpenAIStreamingTextTests.swift",
        "OpenAISession/OpenAIStreamingToolCallsTests.swift",
        "OpenAISession/OpenAIStructuredOutputTests.swift",
        "OpenAISession/OpenAITextTests.swift",
        "OpenAISession/OpenAIToolCallsTests.swift",
        "PromptBuilderTests.swift",
        "Protocols/DecodableToolJSONSchemaTests.swift",
        "SimulatedSession/SimulationMultiTurnExhaustionTests.swift",
        "SimulatedSession/SimulationStreamingTextTests.swift",
        "SimulatedSession/SimulationTextTests.swift",
        "SwiftAgentTests.swift",
        "TranscriptCodableTests.swift"
      ],
      "target_dependencies" : [
        "AnthropicSession",
        "OpenAISession",
        "SwiftAgent",
        "SimulatedSession"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftAgentMacros",
      "module_type" : "SwiftTarget",
      "name" : "SwiftAgentMacros",
      "path" : "Sources/SwiftAgentMacros",
      "product_dependencies" : [
        "SwiftCompilerPlugin",
        "SwiftDiagnostics",
        "SwiftSyntax",
        "SwiftSyntaxMacros",
        "SwiftSyntaxBuilder"
      ],
      "product_memberships" : [
        "OpenAISession",
        "AnthropicSession",
        "ExampleCode",
        "SwiftAgentMacros"
      ],
      "sources" : [
        "MacroHelpers.swift",
        "SessionSchema/SessionSchemaMacro+Extensions.swift",
        "SessionSchema/SessionSchemaMacro+Extraction.swift",
        "SessionSchema/SessionSchemaMacro+Generation.swift",
        "SessionSchema/SessionSchemaMacro+Types.swift",
        "SessionSchema/SessionSchemaMacro.swift",
        "SwiftAgentMacroPlugin.swift"
      ],
      "type" : "macro"
    },
    {
      "c99name" : "SwiftAgentMacroTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftAgentMacroTests",
      "path" : "Tests/SwiftAgentMacroTests",
      "product_dependencies" : [
        "MacroTesting",
        "SwiftSyntaxMacrosTestSupport"
      ],
      "sources" : [
        "SessionSchemaMacroEdgeShapesTests.swift",
        "SessionSchemaMacroTests.swift"
      ],
      "target_dependencies" : [
        "SwiftAgentMacros"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftAgent",
      "module_type" : "SwiftTarget",
      "name" : "SwiftAgent",
      "path" : "Sources/SwiftAgent",
      "product_dependencies" : [
        "EventSource"
      ],
      "product_memberships" : [
        "OpenAISession",
        "AnthropicSession",
        "ExampleCode"
      ],
      "sources" : [
        "Helpers/AgentLog.swift",
        "Helpers/ContentFragmentBuffer.swift",
        "Helpers/GeneratedContent+StableJSON.swift",
        "Helpers/GenerationError+HTTPMapping.swift",
        "Helpers/GenerationError+Pipeline.swift",
        "Helpers/JSONUtilities.swift",
        "Helpers/Logging.swift",
        "Helpers/RejectionReportDetailsExtractor.swift",
        "Helpers/SnakeCaseName.swift",
        "Helpers/TranscriptResolver.swift",
        "Helpers/URLMetadataProvider.swift",
        "LanguageModelProvider/LanguageModelProvider+Respond.swift",
        "LanguageModelProvider/LanguageModelProvider+StreamResponse.swift",
        "LanguageModelProvider/LanguageModelProvider.swift",
        "Macros.swift",
        "Models/AdapterUpdate.swift",
        "Models/AgentResponse.swift",
        "Models/AgentSnapshot.swift",
        "Models/GenerationError.swift",
        "Models/StructuredOutputSnapshot.swift",
        "Models/TokenUsage.swift",
        "Models/ToolRun.swift",
        "Models/ToolRunRejection.swift",
        "Models/Transcript+Resolved.swift",
        "Models/Transcript.swift",
        "Models/TranscriptResolvingError.swift",
        "Models/_SwiftAgentToolWrapper.swift",
        "Networking/AuthorizationContext.swift",
        "Networking/HTTPClient+SSE.swift",
        "Networking/HTTPClient.swift",
        "Networking/HTTPErrorMessageExtractor.swift",
        "Networking/HTTPReplayRecorder.swift",
        "Networking/NetworkLog.swift",
        "Networking/SSEEventTextEncoder.swift",
        "Prompting/PromptBuilder.swift",
        "Prompting/PromptBuiltins.swift",
        "Protocols/Adapter.swift",
        "Protocols/DecodableStructuredOutput.swift",
        "Protocols/DecodableTool.swift",
        "Protocols/LanguageModelSessionSchema.swift",
        "Protocols/StructuredOutput.swift",
        "Protocols/SwiftAgentTool.swift",
        "SwiftAgentConfiguration.swift"
      ],
      "target_dependencies" : [
        "SwiftAgentMacros"
      ],
      "type" : "library"
    },
    {
      "c99name" : "SimulatedSession",
      "module_type" : "SwiftTarget",
      "name" : "SimulatedSession",
      "path" : "Sources/SimulatedSession",
      "product_dependencies" : [
        "OpenAI"
      ],
      "product_memberships" : [
        "OpenAISession",
        "AnthropicSession",
        "ExampleCode"
      ],
      "sources" : [
        "MockableTool.swift",
        "SimulatedGeneration.swift",
        "SimulatedSession.swift",
        "SimulationAdapter.swift",
        "SimulationConfiguration.swift",
        "SimulationExports.swift",
        "SimulationGenerationOptions.swift",
        "SimulationModel.swift"
      ],
      "target_dependencies" : [
        "SwiftAgent"
      ],
      "type" : "library"
    },
    {
      "c99name" : "OpenAISession",
      "module_type" : "SwiftTarget",
      "name" : "OpenAISession",
      "path" : "Sources/OpenAISession",
      "product_dependencies" : [
        "OpenAI",
        "EventSource"
      ],
      "product_memberships" : [
        "OpenAISession",
        "ExampleCode"
      ],
      "sources" : [
        "Helpers/GenerationError+OpenAI.swift",
        "Helpers/GenerationSchema+JSONSchema.swift",
        "Helpers/OpenAIResponseStreamEventDecoder.swift",
        "Helpers/OutputContent+asText.swift",
        "OpenAIAdapter+Streaming.swift",
        "OpenAIAdapter.swift",
        "OpenAIConfiguration.swift",
        "OpenAIExports.swift",
        "OpenAIGenerationOptions.swift",
        "OpenAIGenerationOptionsError.swift",
        "OpenAIModel.swift",
        "OpenAISession.swift"
      ],
      "target_dependencies" : [
        "SwiftAgent",
        "SwiftAgentMacros"
      ],
      "type" : "library"
    },
    {
      "c99name" : "ExampleCode",
      "module_type" : "SwiftTarget",
      "name" : "ExampleCode",
      "path" : "Sources/ExampleCode",
      "product_dependencies" : [
        "SwiftAnthropic"
      ],
      "product_memberships" : [
        "ExampleCode"
      ],
      "sources" : [
        "ReadmeCode.swift"
      ],
      "target_dependencies" : [
        "SwiftAgent",
        "AnthropicSession",
        "OpenAISession",
        "SimulatedSession"
      ],
      "type" : "library"
    },
    {
      "c99name" : "AnthropicSession",
      "module_type" : "SwiftTarget",
      "name" : "AnthropicSession",
      "path" : "Sources/AnthropicSession",
      "product_dependencies" : [
        "SwiftAnthropic",
        "EventSource"
      ],
      "product_memberships" : [
        "AnthropicSession",
        "ExampleCode"
      ],
      "sources" : [
        "AnthropicAdapter+Request.swift",
        "AnthropicAdapter+Streaming.swift",
        "AnthropicAdapter+StreamingHandlers.swift",
        "AnthropicAdapter+StreamingTranscript.swift",
        "AnthropicAdapter+TokenUsage.swift",
        "AnthropicAdapter+ToolExecution.swift",
        "AnthropicAdapter.swift",
        "AnthropicConfiguration.swift",
        "AnthropicExports.swift",
        "AnthropicGenerationOptions.swift",
        "AnthropicGenerationOptionsError.swift",
        "AnthropicModel.swift",
        "AnthropicSession.swift",
        "AnthropicStreamingState.swift",
        "Helpers/AnthropicMessageBuilder.swift",
        "Helpers/AnthropicMessageStreamEventDecoder.swift",
        "Helpers/GenerationError+Anthropic.swift",
        "Helpers/GenerationSchema+AnthropicJSONSchema.swift",
        "Helpers/MessageParameter+Sendable.swift"
      ],
      "target_dependencies" : [
        "SwiftAgent",
        "SwiftAgentMacros"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.2"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:bb5ef85e2f3936cf1d2ae6dee7e011cebd8377061043dcf9368e6726baaf85d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
error: 'spi-builder-workspace': package 'spi-builder-workspace' is using Swift tools version 6.2.0 but the installed version is 6.1.0
error: 'spi-builder-workspace': package 'spi-builder-workspace' is using Swift tools version 6.2.0 but the installed version is 6.1.0
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:bb5ef85e2f3936cf1d2ae6dee7e011cebd8377061043dcf9368e6726baaf85d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
error: 'spi-builder-workspace': package 'spi-builder-workspace' is using Swift tools version 6.2.0 but the installed version is 6.1.0
error: 'spi-builder-workspace': package 'spi-builder-workspace' is using Swift tools version 6.2.0 but the installed version is 6.1.0
BUILD FAILURE 6.1 wasm