@taoeffects/crush 0.70.0-taoeffect.1 → 0.70.0-taoeffect.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -134
- package/package.json +17 -17
package/README.md
CHANGED
|
@@ -23,147 +23,24 @@
|
|
|
23
23
|
|
|
24
24
|
## Installation
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
Install the Tao Effect fork from npm:
|
|
27
27
|
|
|
28
28
|
```bash
|
|
29
|
-
|
|
30
|
-
brew install charmbracelet/tap/crush
|
|
31
|
-
|
|
32
|
-
# NPM
|
|
33
|
-
npm install -g @charmland/crush
|
|
34
|
-
|
|
35
|
-
# Arch Linux (btw)
|
|
36
|
-
yay -S crush-bin
|
|
37
|
-
|
|
38
|
-
# Nix
|
|
39
|
-
nix run github:numtide/nix-ai-tools#crush
|
|
40
|
-
|
|
41
|
-
# FreeBSD
|
|
42
|
-
pkg install crush
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
Windows users:
|
|
46
|
-
|
|
47
|
-
```bash
|
|
48
|
-
# Winget
|
|
49
|
-
winget install charmbracelet.crush
|
|
50
|
-
|
|
51
|
-
# Scoop
|
|
52
|
-
scoop bucket add charm https://github.com/charmbracelet/scoop-bucket.git
|
|
53
|
-
scoop install crush
|
|
29
|
+
npm install -g @taoeffects/crush@taoeffect
|
|
54
30
|
```
|
|
55
31
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
32
|
+
The `@taoeffects/crush` package is published under the `taoeffect` npm dist-tag
|
|
33
|
+
because fork releases use prerelease versions such as `0.70.0-taoeffect.1`:
|
|
34
|
+
`0.70.0` identifies the upstream Crush release, and `taoeffect.1` identifies the
|
|
35
|
+
fork release iteration.
|
|
60
36
|
|
|
61
|
-
|
|
37
|
+
Or just install it with Go from a clone:
|
|
62
38
|
|
|
63
39
|
```bash
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
# Get Crush in a Nix shell.
|
|
69
|
-
nix-shell -p '(import <nur> { pkgs = import <nixpkgs> {}; }).repos.charmbracelet.crush'
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
### NixOS & Home Manager Module Usage via NUR
|
|
73
|
-
|
|
74
|
-
Crush provides NixOS and Home Manager modules via NUR.
|
|
75
|
-
You can use these modules directly in your flake by importing them from NUR. Since it auto detects whether its a home manager or nixos context you can use the import the exact same way :)
|
|
76
|
-
|
|
77
|
-
```nix
|
|
78
|
-
{
|
|
79
|
-
inputs = {
|
|
80
|
-
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
81
|
-
nur.url = "github:nix-community/NUR";
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
outputs = { self, nixpkgs, nur, ... }: {
|
|
85
|
-
nixosConfigurations.your-hostname = nixpkgs.lib.nixosSystem {
|
|
86
|
-
system = "x86_64-linux";
|
|
87
|
-
modules = [
|
|
88
|
-
nur.modules.nixos.default
|
|
89
|
-
nur.repos.charmbracelet.modules.crush
|
|
90
|
-
{
|
|
91
|
-
programs.crush = {
|
|
92
|
-
enable = true;
|
|
93
|
-
settings = {
|
|
94
|
-
providers = {
|
|
95
|
-
openai = {
|
|
96
|
-
id = "openai";
|
|
97
|
-
name = "OpenAI";
|
|
98
|
-
base_url = "https://api.openai.com/v1";
|
|
99
|
-
type = "openai";
|
|
100
|
-
api_key = "sk-fake123456789abcdef...";
|
|
101
|
-
models = [
|
|
102
|
-
{
|
|
103
|
-
id = "gpt-4";
|
|
104
|
-
name = "GPT-4";
|
|
105
|
-
}
|
|
106
|
-
];
|
|
107
|
-
};
|
|
108
|
-
};
|
|
109
|
-
lsp = {
|
|
110
|
-
go = { command = "gopls"; enabled = true; };
|
|
111
|
-
nix = { command = "nil"; enabled = true; };
|
|
112
|
-
};
|
|
113
|
-
options = {
|
|
114
|
-
context_paths = [ "/etc/nixos/configuration.nix" ];
|
|
115
|
-
tui = { compact_mode = true; };
|
|
116
|
-
debug = false;
|
|
117
|
-
};
|
|
118
|
-
};
|
|
119
|
-
};
|
|
120
|
-
}
|
|
121
|
-
];
|
|
122
|
-
};
|
|
123
|
-
};
|
|
124
|
-
}
|
|
125
|
-
```
|
|
126
|
-
|
|
127
|
-
</details>
|
|
128
|
-
|
|
129
|
-
<details>
|
|
130
|
-
<summary><strong>Debian/Ubuntu</strong></summary>
|
|
131
|
-
|
|
132
|
-
```bash
|
|
133
|
-
sudo mkdir -p /etc/apt/keyrings
|
|
134
|
-
curl -fsSL https://repo.charm.sh/apt/gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/charm.gpg
|
|
135
|
-
echo "deb [signed-by=/etc/apt/keyrings/charm.gpg] https://repo.charm.sh/apt/ * *" | sudo tee /etc/apt/sources.list.d/charm.list
|
|
136
|
-
sudo apt update && sudo apt install crush
|
|
137
|
-
```
|
|
138
|
-
|
|
139
|
-
</details>
|
|
140
|
-
|
|
141
|
-
<details>
|
|
142
|
-
<summary><strong>Fedora/RHEL</strong></summary>
|
|
143
|
-
|
|
144
|
-
```bash
|
|
145
|
-
echo '[charm]
|
|
146
|
-
name=Charm
|
|
147
|
-
baseurl=https://repo.charm.sh/yum/
|
|
148
|
-
enabled=1
|
|
149
|
-
gpgcheck=1
|
|
150
|
-
gpgkey=https://repo.charm.sh/yum/gpg.key' | sudo tee /etc/yum.repos.d/charm.repo
|
|
151
|
-
sudo yum install crush
|
|
152
|
-
```
|
|
153
|
-
|
|
154
|
-
</details>
|
|
155
|
-
|
|
156
|
-
Or, download it:
|
|
157
|
-
|
|
158
|
-
- [Packages][releases] are available in Debian and RPM formats
|
|
159
|
-
- [Binaries][releases] are available for Linux, macOS, Windows, FreeBSD, OpenBSD, and NetBSD
|
|
160
|
-
|
|
161
|
-
[releases]: https://github.com/charmbracelet/crush/releases
|
|
162
|
-
|
|
163
|
-
Or just install it with Go:
|
|
164
|
-
|
|
165
|
-
```
|
|
166
|
-
go install github.com/charmbracelet/crush@latest
|
|
40
|
+
git clone https://github.com/taoeffect/crush.git
|
|
41
|
+
cd crush
|
|
42
|
+
git checkout taoeffect
|
|
43
|
+
go install .
|
|
167
44
|
```
|
|
168
45
|
|
|
169
46
|
> [!WARNING]
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taoeffects/crush",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.70.0-taoeffect.
|
|
4
|
+
"version": "0.70.0-taoeffect.2",
|
|
5
5
|
"description": "A terminal-based AI coding assistant forked from Charm Crush.",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"postinstall": "node install.js",
|
|
@@ -33,43 +33,43 @@
|
|
|
33
33
|
"repo": "taoeffect/crush",
|
|
34
34
|
"archives": {
|
|
35
35
|
"linux-x64": {
|
|
36
|
-
"name": "crush_0.70.0-taoeffect.
|
|
37
|
-
"url": "https://github.com/taoeffect/crush/releases/download/v0.70.0-taoeffect.
|
|
36
|
+
"name": "crush_0.70.0-taoeffect.2_Linux_x86_64.tar.gz",
|
|
37
|
+
"url": "https://github.com/taoeffect/crush/releases/download/v0.70.0-taoeffect.2/crush_0.70.0-taoeffect.2_Linux_x86_64.tar.gz",
|
|
38
38
|
"checksum": {
|
|
39
39
|
"algorithm": "sha256",
|
|
40
|
-
"digest": "
|
|
40
|
+
"digest": "cf906be49bb348b5750970748212e34e7d3b987187e18c6b791f05c4649b3129"
|
|
41
41
|
},
|
|
42
|
-
"wrappedIn": "crush_0.70.0-taoeffect.
|
|
42
|
+
"wrappedIn": "crush_0.70.0-taoeffect.2_Linux_x86_64",
|
|
43
43
|
"bin": "crush"
|
|
44
44
|
},
|
|
45
45
|
"linux-arm64": {
|
|
46
|
-
"name": "crush_0.70.0-taoeffect.
|
|
47
|
-
"url": "https://github.com/taoeffect/crush/releases/download/v0.70.0-taoeffect.
|
|
46
|
+
"name": "crush_0.70.0-taoeffect.2_Linux_arm64.tar.gz",
|
|
47
|
+
"url": "https://github.com/taoeffect/crush/releases/download/v0.70.0-taoeffect.2/crush_0.70.0-taoeffect.2_Linux_arm64.tar.gz",
|
|
48
48
|
"checksum": {
|
|
49
49
|
"algorithm": "sha256",
|
|
50
|
-
"digest": "
|
|
50
|
+
"digest": "29e775ddd9e66ff842eb47da74c3fae91311c117c3adfd341018e8ae84a5e4b4"
|
|
51
51
|
},
|
|
52
|
-
"wrappedIn": "crush_0.70.0-taoeffect.
|
|
52
|
+
"wrappedIn": "crush_0.70.0-taoeffect.2_Linux_arm64",
|
|
53
53
|
"bin": "crush"
|
|
54
54
|
},
|
|
55
55
|
"darwin-x64": {
|
|
56
|
-
"name": "crush_0.70.0-taoeffect.
|
|
57
|
-
"url": "https://github.com/taoeffect/crush/releases/download/v0.70.0-taoeffect.
|
|
56
|
+
"name": "crush_0.70.0-taoeffect.2_Darwin_x86_64.tar.gz",
|
|
57
|
+
"url": "https://github.com/taoeffect/crush/releases/download/v0.70.0-taoeffect.2/crush_0.70.0-taoeffect.2_Darwin_x86_64.tar.gz",
|
|
58
58
|
"checksum": {
|
|
59
59
|
"algorithm": "sha256",
|
|
60
|
-
"digest": "
|
|
60
|
+
"digest": "781ae090cd6ca63a19ae7e5e20fcad73f9dc6aaf0c3c868c2633de3ac490fb6f"
|
|
61
61
|
},
|
|
62
|
-
"wrappedIn": "crush_0.70.0-taoeffect.
|
|
62
|
+
"wrappedIn": "crush_0.70.0-taoeffect.2_Darwin_x86_64",
|
|
63
63
|
"bin": "crush"
|
|
64
64
|
},
|
|
65
65
|
"darwin-arm64": {
|
|
66
|
-
"name": "crush_0.70.0-taoeffect.
|
|
67
|
-
"url": "https://github.com/taoeffect/crush/releases/download/v0.70.0-taoeffect.
|
|
66
|
+
"name": "crush_0.70.0-taoeffect.2_Darwin_arm64.tar.gz",
|
|
67
|
+
"url": "https://github.com/taoeffect/crush/releases/download/v0.70.0-taoeffect.2/crush_0.70.0-taoeffect.2_Darwin_arm64.tar.gz",
|
|
68
68
|
"checksum": {
|
|
69
69
|
"algorithm": "sha256",
|
|
70
|
-
"digest": "
|
|
70
|
+
"digest": "a637ffd34ba1b5f7b3ef88f2ba2875993f5deb52c5c71f2d723f80b2da83306f"
|
|
71
71
|
},
|
|
72
|
-
"wrappedIn": "crush_0.70.0-taoeffect.
|
|
72
|
+
"wrappedIn": "crush_0.70.0-taoeffect.2_Darwin_arm64",
|
|
73
73
|
"bin": "crush"
|
|
74
74
|
}
|
|
75
75
|
}
|