elixir: scaffold mix project with hex.pm metadata
Swadhin Biswas committed 7 months ago
778bec3
1 parent f389247
commit 778bec3
2 files changed
+79 -0
Showing 2 changed files+79-0
▼ELIXIR/LICENSE
+21-0
| @@ -0,0 +1,21 @@ | ||
1 | +MIT License | |
2 | + | |
3 | +Copyright (c) 2025 Swadhin Biswas | |
4 | + | |
5 | +Permission is hereby granted, free of charge, to any person obtaining a copy | |
6 | +of this software and associated documentation files (the "Software"), to deal | |
7 | +in the Software without restriction, including without limitation the rights | |
8 | +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
9 | +copies of the Software, and to permit persons to whom the Software is | |
10 | +furnished to do so, subject to the following conditions: | |
11 | + | |
12 | +The above copyright notice and this permission notice shall be included in all | |
13 | +copies or substantial portions of the Software. | |
14 | + | |
15 | +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
16 | +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
17 | +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
18 | +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
19 | +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
20 | +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |
21 | +SOFTWARE. | |
0 | 22 | |
▼ELIXIR/mix.exs
+58-0
| @@ -0,0 +1,58 @@ | ||
1 | +defmodule Contexa.MixProject do | |
2 | + use Mix.Project | |
3 | + | |
4 | + @version "0.1.1" | |
5 | + @source_url "https://github.com/swadhinbiswas/contexa" | |
6 | + | |
7 | + def project do | |
8 | + [ | |
9 | + app: :contexa, | |
10 | + version: @version, | |
11 | + elixir: "~> 1.14", | |
12 | + start_permanent: Mix.env() == :prod, | |
13 | + deps: deps(), | |
14 | + description: description(), | |
15 | + package: package(), | |
16 | + source_url: @source_url, | |
17 | + homepage_url: @source_url, | |
18 | + docs: [ | |
19 | + main: "readme", | |
20 | + extras: ["README.md", "LICENSE"] | |
21 | + ] | |
22 | + ] | |
23 | + end | |
24 | + | |
25 | + def application do | |
26 | + [ | |
27 | + extra_applications: [:logger] | |
28 | + ] | |
29 | + end | |
30 | + | |
31 | + defp deps do | |
32 | + [ | |
33 | + {:yaml_elixir, "~> 2.9"}, | |
34 | + {:ex_doc, "~> 0.31", only: :dev, runtime: false} | |
35 | + ] | |
36 | + end | |
37 | + | |
38 | + defp description do | |
39 | + """ | |
40 | + Git-inspired context management for LLM agents — COMMIT, BRANCH, MERGE, | |
41 | + and CONTEXT operations over a persistent versioned memory workspace. | |
42 | + Based on arXiv:2508.00031. | |
43 | + """ | |
44 | + end | |
45 | + | |
46 | + defp package do | |
47 | + [ | |
48 | + name: "contexa", | |
49 | + licenses: ["MIT"], | |
50 | + links: %{ | |
51 | + "GitHub" => @source_url, | |
52 | + "Paper" => "https://arxiv.org/abs/2508.00031" | |
53 | + }, | |
54 | + maintainers: ["Swadhin Biswas"], | |
55 | + files: ~w(lib mix.exs README.md LICENSE) | |
56 | + ] | |
57 | + end | |
58 | +end | |
0 | 59 | |