forked from Spectral-Finance/lux
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmix.exs
130 lines (121 loc) · 3.75 KB
/
mix.exs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
defmodule Lux.MixProject do
use Mix.Project
def project do
[
app: :lux,
version: "0.5.0",
elixir: "~> 1.18",
start_permanent: Mix.env() == :prod,
deps: deps(),
dialyzer: [plt_add_apps: [:mix]],
elixirc_paths: elixirc_paths(Mix.env()),
aliases: aliases(),
# Package
description:
"A framework for building and orchestrating LLM-powered agent workflows in Elixir",
package: package(),
# Docs
name: "Lux",
source_url: "https://github.com/Spectral-Finance/lux",
homepage_url: "https://lux.spectrallbas.xyz",
docs: &docs/0
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
mod: {Lux.Application, []},
extra_applications: extra_applications(Mix.env())
]
end
defp extra_applications(:dev), do: [:logger, :crypto, :wx, :observer, :runtime_tools]
defp extra_applications(_), do: [:logger, :crypto]
defp elixirc_paths(:test), do: ["lib", "test/"]
defp elixirc_paths(_), do: ["lib"]
defp aliases do
[
"test.unit": "test --include unit",
"test.integration": "test --include integration"
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:bandit, "~> 1.0"},
{:req, "~> 0.5.0"},
{:venomous, "~> 0.7.5"},
{:crontab, "~> 1.1"},
{:ex_json_schema, "~> 0.10.2"},
{:nodejs, "~> 2.0"},
{:ethers, "~> 0.6.4"},
{:ex_secp256k1, "~> 0.7.4"},
{:yaml_elixir, "~> 2.9"},
# test and dev dependencies
{:ex_doc, "~> 0.34", only: :dev, runtime: false},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.4.5", only: :dev, runtime: false},
{:dotenvy, "~> 0.8.0", only: [:dev, :test]},
{:mock, "~> 0.3.0", only: [:test]},
{:stream_data, "~> 1.0", only: [:test]},
{:styler, "~> 1.3", only: [:dev, :test], runtime: false}
]
end
def cli do
[
preferred_envs: [
"test.integration": :test,
"test.unit": :test
]
]
end
def package do
[
name: "lux",
description:
"Lux is a powerful framework for building and orchestrating LLM-powered agent workflows. It provides a robust set of tools for creating, managing, and coordinating AI agents in complex business processes.",
licenses: ["MIT"],
links: %{
"GitHub" => "https://github.com/Spectral-Finance/lux",
"Changelog" => "https://github.com/Spectral-Finance/lux/blob/main/CHANGELOG.md"
},
files:
~w(lib priv/python/lux/*.py priv/python/hyperliquid_utils/*.py priv/python/*.py priv/python/*.toml priv/node/*.json priv/node/*.mjs .formatter.exs mix.exs README.md LICENSE CHANGELOG.md)
]
end
defp docs do
[
main: "readme",
extras: [
"README.md",
"guides/agents.livemd",
"guides/beams.livemd",
"guides/prisms.livemd",
"guides/signals.livemd",
"guides/lenses.livemd",
"guides/language_support.md",
"guides/language_support/python.livemd",
"guides/language_support/nodejs.livemd",
"guides/multi_agent_collaboration.livemd",
"guides/trading_system.livemd",
"guides/testing.md",
"guides/cursor_development.md",
"guides/contributing.md",
"guides/troubleshooting.md",
"CHANGELOG.md",
"LICENSE"
],
groups_for_extras: [
Guides: Path.wildcard("guides/*.livemd"),
"Language Support": [
"guides/language_support.md",
"guides/language_support/python.livemd",
"guides/language_support/nodejs.livemd"
],
Setup: [
"guides/troubleshooting.md",
"guides/contributing.md"
]
]
]
end
end