forked from lalabuy948/jido_code
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmix.exs
More file actions
181 lines (160 loc) · 5.61 KB
/
mix.exs
File metadata and controls
181 lines (160 loc) · 5.61 KB
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
defmodule JidoCode.MixProject do
use Mix.Project
@version "0.1.0"
@source_url "https://github.com/agentjido/jido_code"
def project do
[
app: :jido_code,
version: @version,
elixir: "~> 1.18",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: deps(),
compilers: [:phoenix_live_view] ++ Mix.compilers(),
listeners: [Phoenix.CodeReloader],
consolidate_protocols: Mix.env() != :dev,
docs: docs()
]
end
# Configuration for the OTP application.
#
# Type `mix help compile.app` for more information.
def application do
[
mod: {JidoCode.Application, []},
extra_applications: [:logger, :runtime_tools]
]
end
def cli do
[
preferred_envs: [precommit: :test]
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp docs do
[
main: "readme",
source_ref: "v#{@version}",
source_url: @source_url,
extras: ["README.md", "CHANGELOG.md", "CONTRIBUTING.md"]
]
end
# Specifies your project dependencies.
#
# Type `mix help deps` for examples and options.
defp deps do
[
# Core framework
{:phoenix, "~> 1.8.3"},
{:phoenix_ecto, "~> 4.5"},
{:phoenix_html, "~> 4.1"},
{:phoenix_live_view, "~> 1.1.0"},
{:phoenix_live_dashboard, "~> 0.8.3"},
{:bandit, "~> 1.5"},
# Ash framework and extensions
{:ash, "~> 3.0"},
{:ash_phoenix, "~> 2.0"},
{:ash_postgres, "~> 2.0"},
{:ash_json_api, "~> 1.0"},
{:ash_authentication, "~> 4.0"},
{:ash_authentication_phoenix, "~> 2.0"},
{:ash_admin, "~> 0.13"},
{:ash_archival, "~> 2.0"},
{:ash_paper_trail, "~> 0.5"},
{:ash_cloak, "~> 0.2"},
{:ash_typescript, "~> 0.12"},
{:ash_jido, github: "agentjido/ash_jido", branch: "main"},
# Database
{:ecto_sql, "~> 3.13"},
{:postgrex, ">= 0.0.0"},
# Security & encryption
{:bcrypt_elixir, "~> 3.0"},
{:cloak, "~> 1.0"},
# HTTP & API
{:req, "~> 0.5"},
{:open_api_spex, "~> 3.0"},
{:plug_canonical_host, "~> 2.0"},
# Email
{:swoosh, "~> 1.16"},
# Frontend assets
{:esbuild, "~> 0.10", runtime: Mix.env() == :dev},
{:tailwind, "~> 0.3", runtime: Mix.env() == :dev},
{:heroicons,
github: "tailwindlabs/heroicons", tag: "v2.2.0", sparse: "optimized", app: false, compile: false, depth: 1},
{:phoenix_live_reload, "~> 1.2", only: :dev},
# Observability & monitoring
{:telemetry_metrics, "~> 1.0"},
{:telemetry_poller, "~> 1.0"},
{:dns_cluster, "~> 0.2.0"},
# Jido AI framework
{:jido, "~> 2.0.0-rc"},
{:jido_action, "~> 2.0.0-rc", override: true},
{:jido_signal, "~> 2.0.0-rc"},
{:jido_ai, github: "agentjido/jido_ai", branch: "main", override: true},
{:jido_runic, github: "agentjido/jido_runic", branch: "main"},
{:libgraph, github: "zblanco/libgraph", branch: "zw/multigraph-indexes", override: true},
{:jido_studio, github: "agentjido/jido_studio", branch: "main"},
{:jido_messaging, github: "agentjido/jido_messaging", branch: "main"},
{:req_llm, "~> 1.4", override: true},
{:timex, "~> 3.7", override: true},
{:gettext, "~> 0.26", override: true},
# Cloud Sandboxes
{:sprites, github: "superfly/sprites-ex"},
# Utilities
{:live_toast, "~> 0.8"},
{:jason, "~> 1.2"},
{:picosat_elixir, "~> 0.2"},
{:mdex, "~> 0.4"},
# Development & testing
{:igniter, "~> 0.6", only: [:dev, :test]},
{:sourceror, "~> 1.8", only: [:dev, :test]},
{:lazy_html, ">= 0.1.0"},
{:usage_rules, "~> 1.0", only: [:dev]},
{:tidewave, "~> 0.5", only: [:dev]},
# TODO: re-enable once startup perf is fixed (v0.6.0 adds ~28s to boot)
# {:live_debugger, "~> 0.5", only: [:dev]},
# Quality tools
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.31", only: :dev, runtime: false},
{:doctor, "~> 0.21", only: :dev, runtime: false},
{:excoveralls, "~> 0.18", only: [:dev, :test]},
{:git_hooks, "~> 0.8", only: [:dev, :test], runtime: false},
{:git_ops, "~> 2.9", only: :dev, runtime: false},
# Error handling
{:splode, "~> 0.3"}
]
end
# Aliases are shortcuts or tasks specific to the current project.
# For example, to install project dependencies and perform other setup tasks, run:
#
# $ mix setup
#
# See the documentation for `Mix` for more info on aliases.
defp aliases do
[
setup: ["deps.get", "ash.setup", "assets.setup", "assets.build", "run priv/repo/seeds.exs"],
"ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
"ecto.reset": ["ecto.drop", "ecto.setup"],
test: ["ash.setup --quiet", "test"],
"assets.setup": ["tailwind.install --if-missing", "esbuild.install --if-missing"],
"assets.build": ["compile", "tailwind jido_code", "esbuild jido_code"],
"assets.deploy": [
"tailwind jido_code --minify",
"esbuild jido_code --minify",
"phx.digest"
],
precommit: ["compile --warnings-as-errors", "deps.unlock --unused", "format", "test"],
sync_rules: ["usage_rules.sync AGENTS.md --all --link-to-folder deps --yes"],
quality: [
"compile --warnings-as-errors",
"format --check-formatted",
"credo --strict",
"doctor --raise"
]
]
end
end