defmodule Syntropy.MixProject do use Mix.Project def project do [ app: :syntropy, version: "0.2.0", elixir: "~> 1.17", elixirc_paths: elixirc_paths(Mix.env()), start_permanent: Mix.env() == :prod, # Enforced floor at the current baseline; ratchet toward the 80% target. # Persistence schemas only run under `mix test --only persistence`. # ClusterPeer is the :peer test harness — it only executes under # `mix test --include cluster`, so it would read as 0% here. test_coverage: [summary: [threshold: 75], ignore_modules: [Syntropy.ClusterPeer]], deps: deps(), listeners: [Phoenix.CodeReloader], aliases: aliases(), releases: releases(), description: description(), package: package() ] end def application do [ mod: {Syntropy.Application, []}, extra_applications: [:logger, :runtime_tools] ] end defp elixirc_paths(:test), do: ["lib", "test/support"] defp elixirc_paths(_env), do: ["lib"] defp deps do [ {:phoenix, "~> 1.8.0"}, {:phoenix_html, "~> 4.2"}, {:phoenix_live_view, "~> 1.1"}, {:phoenix_live_reload, "~> 1.6", only: :dev}, {:plug_cowboy, "~> 2.7"}, {:jason, "~> 1.4"}, {:req, "~> 0.5"}, {:ecto_sql, "~> 3.13"}, {:postgrex, "~> 0.19"}, {:libcluster, "~> 3.4"}, {:telemetry_metrics, "~> 1.1"}, {:telemetry_poller, "~> 1.1"}, {:telemetry_metrics_prometheus_core, "~> 1.2"}, {:lazy_html, ">= 0.1.0", only: :test}, {:credo, "~> 1.7", only: [:dev, :test], runtime: false}, {:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false}, {:ex_doc, "~> 0.38", only: :dev, runtime: false}, {:stream_data, "~> 1.2", only: :test} ] end defp aliases do [ setup: ["deps.get"], "db.setup": ["ecto.create", "ecto.migrate"], "db.migrate": ["ecto.migrate"], "db.reset": ["ecto.drop", "ecto.create", "ecto.migrate"] ] end defp releases do [ syntropy: [ include_executables_for: [:unix], applications: [runtime_tools: :permanent] ] ] end defp description do "A fair source multi-agent AI framework where agents are organized on a mathematical lattice." end defp package do [ licenses: ["BUSL-1.1"], links: %{ "GitHub" => "https://github.com/syntropy-os/syntropy", "Website" => "https://syntropyos.dev" } ] end end