Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mix.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"cowboy": {:hex, :cowboy, "2.14.2", "4008be1df6ade45e4f2a4e9e2d22b36d0b5aba4e20b0a0d7049e28d124e34847", [:make, :rebar3], [{:cowlib, ">= 2.16.0 and < 3.0.0", [hex: :cowlib, repo: "hexpm", optional: false]}, {:ranch, ">= 1.8.0 and < 3.0.0", [hex: :ranch, repo: "hexpm", optional: false]}], "hexpm", "569081da046e7b41b5df36aa359be71a0c8874e5b9cff6f747073fc57baf1ab9"},
"cowboy_telemetry": {:hex, :cowboy_telemetry, "0.4.0", "f239f68b588efa7707abce16a84d0d2acf3a0f50571f8bb7f56a15865aae820c", [:rebar3], [{:cowboy, "~> 2.7", [hex: :cowboy, repo: "hexpm", optional: false]}, {:telemetry, "~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "7d98bac1ee4565d31b62d59f8823dfd8356a169e7fcbb83831b8a5397404c9de"},
"cowlib": {:hex, :cowlib, "2.16.0", "54592074ebbbb92ee4746c8a8846e5605052f29309d3a873468d76cdf932076f", [:make, :rebar3], [], "hexpm", "7f478d80d66b747344f0ea7708c187645cfcc08b11aa424632f78e25bf05db51"},
"credo": {:hex, :credo, "1.7.13", "126a0697df6b7b71cd18c81bc92335297839a806b6f62b61d417500d1070ff4e", [:mix], [{:bunt, "~> 0.2.1 or ~> 1.0", [hex: :bunt, repo: "hexpm", optional: false]}, {:file_system, "~> 0.2 or ~> 1.0", [hex: :file_system, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "47641e6d2bbff1e241e87695b29f617f1a8f912adea34296fb10ecc3d7e9e84f"},
"credo": {:hex, :credo, "1.7.14", "c7e75216cea8d978ba8c60ed9dede4cc79a1c99a266c34b3600dd2c33b96bc92", [:mix], [{:bunt, "~> 0.2.1 or ~> 1.0", [hex: :bunt, repo: "hexpm", optional: false]}, {:file_system, "~> 0.2 or ~> 1.0", [hex: :file_system, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "12a97d6bb98c277e4fb1dff45aaf5c137287416009d214fb46e68147bd9e0203"},
"dialyxir": {:hex, :dialyxir, "1.4.7", "dda948fcee52962e4b6c5b4b16b2d8fa7d50d8645bbae8b8685c3f9ecb7f5f4d", [:mix], [{:erlex, ">= 0.2.8", [hex: :erlex, repo: "hexpm", optional: false]}], "hexpm", "b34527202e6eb8cee198efec110996c25c5898f43a4094df157f8d28f27d9efe"},
"earmark_parser": {:hex, :earmark_parser, "1.4.44", "f20830dd6b5c77afe2b063777ddbbff09f9759396500cdbe7523efd58d7a339c", [:mix], [], "hexpm", "4778ac752b4701a5599215f7030989c989ffdc4f6df457c5f36938cc2d2a2750"},
"erlex": {:hex, :erlex, "0.2.8", "cd8116f20f3c0afe376d1e8d1f0ae2452337729f68be016ea544a72f767d9c12", [:mix], [], "hexpm", "9d66ff9fedf69e49dc3fd12831e12a8a37b76f8651dd21cd45fcf5561a8a7590"},
Expand Down
2 changes: 1 addition & 1 deletion test/anubis/client/base_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -1511,7 +1511,7 @@ defmodule Anubis.Client.BaseTest do
assert error.reason == :parse_error
assert error.data[:tool] == "get_weather"
assert is_list(error.data[:errors])
assert length(error.data[:errors]) > 0
refute Enum.empty?(error.data[:errors])
end

test "handles tools with complex outputSchema", %{client: client} do
Expand Down
4 changes: 2 additions & 2 deletions test/anubis/server/component/schema_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -770,10 +770,10 @@ defmodule Anubis.Server.Component.SchemaTest do
assert {:ok, _} = validator.(%{email: "test@example.com", age: 25})

assert {:error, errors} = validator.(%{age: 25})
assert length(errors) > 0
refute Enum.empty?(errors)

assert {:error, errors} = validator.(%{email: "test@example.com", age: 200})
assert length(errors) > 0
refute Enum.empty?(errors)
end
end

Expand Down
4 changes: 2 additions & 2 deletions test/anubis/transport/stdio_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ defmodule Anubis.Transport.STDIOTest do
Process.sleep(100)

messages = StubClient.get_messages()
assert length(messages) > 0
refute Enum.empty?(messages)
end
end

Expand Down Expand Up @@ -165,7 +165,7 @@ defmodule Anubis.Transport.STDIOTest do
Process.sleep(100)

messages = StubClient.get_messages()
assert length(messages) > 0
refute Enum.empty?(messages)

safe_stop(pid)
end
Expand Down
4 changes: 2 additions & 2 deletions test/anubis/transport/streamable_http_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ defmodule Anubis.Transport.StreamableHTTPTest do
Process.sleep(100)

messages = StubClient.get_messages()
assert length(messages) > 0
refute Enum.empty?(messages)
assert List.first(messages) =~ "result"

StreamableHTTP.shutdown(transport)
Expand Down Expand Up @@ -160,7 +160,7 @@ defmodule Anubis.Transport.StreamableHTTPTest do
Process.sleep(200)

messages = StubClient.get_messages()
assert length(messages) > 0
refute Enum.empty?(messages)

StreamableHTTP.shutdown(transport)
StubClient.clear_messages()
Expand Down