-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmix.exs
More file actions
143 lines (129 loc) · 3.47 KB
/
mix.exs
File metadata and controls
143 lines (129 loc) · 3.47 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
defmodule Jido.OpenCode.MixProject do
use Mix.Project
@version "0.1.0"
@source_url "https://github.com/agentjido/jido_opencode"
@description "OpenCode CLI adapter for Jido.Harness"
def project do
[
app: :jido_opencode,
version: @version,
elixir: "~> 1.18",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases(),
# Documentation
name: "Jido OpenCode",
description: @description,
source_url: @source_url,
homepage_url: @source_url,
package: package(),
docs: docs(),
# Test Coverage
test_coverage: [
tool: ExCoveralls,
summary: [threshold: 90],
export: "cov"
],
# Dialyzer
dialyzer: [
plt_local_path: "priv/plts/project.plt",
plt_core_path: "priv/plts/core.plt",
plt_add_apps: [:mix]
]
]
end
def cli do
[
preferred_envs: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test,
"coveralls.github": :test
]
]
end
def application do
[
extra_applications: [:logger]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps, do: runtime_deps() ++ dev_test_deps()
defp runtime_deps do
[
{:jason, "~> 1.4"},
{:zoi, "~> 0.17"},
{:splode, ">= 0.2.9 and < 0.4.0"},
{:uniq, "~> 0.6"},
{:jido_harness, github: "agentjido/jido_harness", branch: "main", override: true}
]
end
defp dev_test_deps do
[
{: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},
{:mimic, "~> 2.0", only: :test},
{:stream_data, "~> 1.0", only: [:dev, :test]}
]
end
defp aliases do
[
setup: ["deps.get"],
install_hooks: ["git_hooks.install"],
test: "test --exclude flaky",
q: ["quality"],
quality: [
"format --check-formatted",
"compile --warnings-as-errors",
"credo --min-priority higher",
"dialyzer",
"doctor --raise"
],
docs: "docs -f html"
]
end
defp package do
[
files: ["config", "lib", "mix.exs", "README.md", "LICENSE", "CHANGELOG.md", "CONTRIBUTING.md", "usage-rules.md"],
maintainers: ["Agent Jido Team"],
licenses: ["Apache-2.0"],
links: %{
"Changelog" => "https://github.com/agentjido/jido_opencode/blob/main/CHANGELOG.md",
"Discord" => "https://jido.run/discord",
"Documentation" => "https://hexdocs.pm/jido_opencode",
"GitHub" => @source_url,
"Website" => "https://jido.run"
}
]
end
defp docs do
[
main: "readme",
source_ref: "v#{@version}",
extras: [
"README.md",
"CHANGELOG.md",
"CONTRIBUTING.md",
"LICENSE"
],
groups_for_modules: [
Core: [
Jido.OpenCode,
Jido.OpenCode.Adapter,
Jido.OpenCode.CLI,
Jido.OpenCode.Compatibility,
Jido.OpenCode.Mapper,
Jido.OpenCode.Options
]
]
]
end
end