Code.require_file("../../hex_deps.exs", __DIR__)
defmodule AgentSea.Structured.MixProject do
use Mix.Project
def project do
[
app: :agentsea_structured,
version: "0.1.0",
build_path: "../../_build",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.14",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
description:
"AgentSea structured output: extract validated Ecto structs from an LLM, with validation retry.",
package: [
licenses: ["Apache-2.0"],
maintainers: ["lovekaizen"],
links: %{"GitHub" => "https://github.com/lovekaizen/agentsea-ex"}
],
deps: deps()
] ++ shared_config()
end
# Use the umbrella's shared config when present; otherwise omit config_path
# so Mix falls back to its default (a missing config is skipped). Keeps
# per-app builds (e.g. `mix hex.build`) from hard-failing if the root
# config/config.exs is absent.
defp shared_config do
path = "../../config/config.exs"
if File.exists?(Path.expand(path, __DIR__)), do: [config_path: path], else: []
end
def application do
[
extra_applications: [:logger]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:ex_doc, "~> 0.34", only: :dev, runtime: false},
AgentSea.HexDeps.sibling(:agentsea_core),
# Pinned to the 3.12 line (decimal ~> 2.0) so it co-resolves with bumblebee,
# whose progress_bar requires decimal ~> 2.0. Ecto 3.13+ moved to decimal 3.0.
{:ecto, "~> 3.12.0"},
{:jason, "~> 1.4"},
{:mox, "~> 1.1", only: :test}
]
end
end