WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit d163a9e

Browse files
committed
let's go!
0 parents  commit d163a9e

File tree

12 files changed

+513
-0
lines changed

12 files changed

+513
-0
lines changed

.envrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
use flake

.github/workflows/test.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: test
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- main
8+
pull_request:
9+
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: erlef/setup-beam@v1
16+
with:
17+
otp-version: "26.0.2"
18+
gleam-version: "1.5.1"
19+
rebar3-version: "3"
20+
# elixir-version: "1.15.4"
21+
- run: gleam deps download
22+
- run: gleam test
23+
- run: gleam format --check src test

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.direnv
2+
3+
*.beam
4+
*.ez
5+
/build
6+
erl_crash.dump

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# unchained
2+
3+
[![Package Version](https://img.shields.io/hexpm/v/unchained)](https://hex.pm/packages/unchained)
4+
[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/unchained/)
5+
6+
```sh
7+
gleam add unchained@1
8+
```
9+
```gleam
10+
import unchained
11+
12+
pub fn main() {
13+
// TODO: An example of the project in use
14+
}
15+
```
16+
17+
Further documentation can be found at <https://hexdocs.pm/unchained>.
18+
19+
## Development
20+
21+
```sh
22+
gleam run # Run the project
23+
gleam test # Run the tests
24+
```

flake.lock

Lines changed: 61 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
description = "Gleam deve environment ⭐";
3+
4+
inputs = {
5+
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
6+
flake-utils.url = "github:numtide/flake-utils";
7+
};
8+
outputs = {
9+
self,
10+
nixpkgs,
11+
flake-utils,
12+
...
13+
}:
14+
flake-utils.lib.eachDefaultSystem
15+
(
16+
system: let
17+
pkgs = import nixpkgs {
18+
inherit system;
19+
overlays = [
20+
(
21+
final: prev: {erlang = final.erlang_27;}
22+
)
23+
];
24+
};
25+
in {
26+
devShells.default = pkgs.mkShell {
27+
buildInputs = with pkgs; [
28+
gleam
29+
erlang
30+
rebar3
31+
];
32+
33+
shellHook = ''
34+
echo "⭐ environment is ready!"
35+
'';
36+
};
37+
}
38+
);
39+
}

gleam.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name = "unchained"
2+
version = "0.0.1"
3+
4+
description = "A framework for developing applications powered by large language models (LLMs) in Gleam"
5+
licences = ["MIT"]
6+
repository = { type = "github", user = "lostbean", repo = "unchained" }
7+
8+
[dependencies]
9+
gleam_stdlib = ">= 0.34.0 and < 2.0.0"
10+
birl = ">= 1.7.1 and < 2.0.0"
11+
gleam_http = ">= 3.7.0 and < 4.0.0"
12+
gleam_json = ">= 1.0.1 and < 2.0.0"
13+
handles = ">= 4.0.1 and < 5.0.0"
14+
gleam_httpc = ">= 3.0.0 and < 4.0.0"
15+
16+
[dev-dependencies]
17+
gleeunit = ">= 1.0.0 and < 2.0.0"

manifest.toml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# This file was generated by Gleam
2+
# You typically do not need to edit this file
3+
4+
packages = [
5+
{ name = "birl", version = "1.7.1", build_tools = ["gleam"], requirements = ["gleam_stdlib", "ranger"], otp_app = "birl", source = "hex", outer_checksum = "5C66647D62BCB11FE327E7A6024907C4A17954EF22865FE0940B54A852446D01" },
6+
{ name = "gleam_erlang", version = "0.28.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleam_erlang", source = "hex", outer_checksum = "BE551521F708DCE5CB954AFBBDF08519C1C44986521FD40753608825F48FFA9E" },
7+
{ name = "gleam_http", version = "3.7.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleam_http", source = "hex", outer_checksum = "EA66440C2269F7CED0F6845E5BD0DB68095775D627FA709A841CA78A398D6D56" },
8+
{ name = "gleam_httpc", version = "3.0.0", build_tools = ["gleam"], requirements = ["gleam_erlang", "gleam_http", "gleam_stdlib"], otp_app = "gleam_httpc", source = "hex", outer_checksum = "091CDD2BEC8092E82707BEA03FB5205A2BBBDE4A2F551E3C069E13B8BC0C428E" },
9+
{ name = "gleam_json", version = "1.0.1", build_tools = ["gleam"], requirements = ["gleam_stdlib", "thoas"], otp_app = "gleam_json", source = "hex", outer_checksum = "9063D14D25406326C0255BDA0021541E797D8A7A12573D849462CAFED459F6EB" },
10+
{ name = "gleam_stdlib", version = "0.41.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "1B2F80CB1B66B027E3198A2FF71EF3F2F31DF89ED97AD606F25FD387A4C3C1EF" },
11+
{ name = "gleeunit", version = "1.2.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "F7A7228925D3EE7D0813C922E062BFD6D7E9310F0BEE585D3A42F3307E3CFD13" },
12+
{ name = "handles", version = "4.0.1", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "handles", source = "hex", outer_checksum = "FC90BCA2AC655508CEA20834834E383642972AC9C31CD7C52ABF04541895A004" },
13+
{ name = "ranger", version = "1.2.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "ranger", source = "hex", outer_checksum = "1566C272B1D141B3BBA38B25CB761EF56E312E79EC0E2DFD4D3C19FB0CC1F98C" },
14+
{ name = "thoas", version = "1.2.1", build_tools = ["rebar3"], requirements = [], otp_app = "thoas", source = "hex", outer_checksum = "E38697EDFFD6E91BD12CEA41B155115282630075C2A727E7A6B2947F5408B86A" },
15+
]
16+
17+
[requirements]
18+
birl = { version = ">= 1.7.1 and < 2.0.0" }
19+
gleam_http = { version = ">= 3.7.0 and < 4.0.0" }
20+
gleam_httpc = { version = ">= 3.0.0 and < 4.0.0" }
21+
gleam_json = { version = ">= 1.0.1 and < 2.0.0" }
22+
gleam_stdlib = { version = ">= 0.34.0 and < 2.0.0" }
23+
gleeunit = { version = ">= 1.0.0 and < 2.0.0" }
24+
handles = { version = ">= 4.0.1 and < 5.0.0" }

0 commit comments

Comments
 (0)