@charmland/crush 0.16.0 → 0.17.0
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 +53 -50
- package/package.json +25 -25
package/README.md
CHANGED
|
@@ -345,64 +345,19 @@ it creates. You can customize this behavior with the `attribution` option:
|
|
|
345
345
|
"$schema": "https://charm.land/crush.json",
|
|
346
346
|
"options": {
|
|
347
347
|
"attribution": {
|
|
348
|
-
"
|
|
348
|
+
"trailer_style": "co-authored-by",
|
|
349
349
|
"generated_with": true
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
353
|
```
|
|
354
354
|
|
|
355
|
-
- `
|
|
355
|
+
- `trailer_style`: Controls the attribution trailer added to commit messages (default: `co-authored-by`)
|
|
356
|
+
- `co-authored-by`: Adds `Co-Authored-By: Crush <crush@charm.land>`
|
|
357
|
+
- `assisted-by`: Adds `Assisted-by: [Model Name] via Crush` (includes the model name)
|
|
358
|
+
- `none`: No attribution trailer
|
|
356
359
|
- `generated_with`: When true (default), adds `💘 Generated with Crush` line to commit messages and PR descriptions
|
|
357
360
|
|
|
358
|
-
### Local Models
|
|
359
|
-
|
|
360
|
-
Local models can also be configured via OpenAI-compatible API. Here are two common examples:
|
|
361
|
-
|
|
362
|
-
#### Ollama
|
|
363
|
-
|
|
364
|
-
```json
|
|
365
|
-
{
|
|
366
|
-
"providers": {
|
|
367
|
-
"ollama": {
|
|
368
|
-
"name": "Ollama",
|
|
369
|
-
"base_url": "http://localhost:11434/v1/",
|
|
370
|
-
"type": "openai-compat",
|
|
371
|
-
"models": [
|
|
372
|
-
{
|
|
373
|
-
"name": "Qwen 3 30B",
|
|
374
|
-
"id": "qwen3:30b",
|
|
375
|
-
"context_window": 256000,
|
|
376
|
-
"default_max_tokens": 20000
|
|
377
|
-
}
|
|
378
|
-
]
|
|
379
|
-
}
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
```
|
|
383
|
-
|
|
384
|
-
#### LM Studio
|
|
385
|
-
|
|
386
|
-
```json
|
|
387
|
-
{
|
|
388
|
-
"providers": {
|
|
389
|
-
"lmstudio": {
|
|
390
|
-
"name": "LM Studio",
|
|
391
|
-
"base_url": "http://localhost:1234/v1/",
|
|
392
|
-
"type": "openai-compat",
|
|
393
|
-
"models": [
|
|
394
|
-
{
|
|
395
|
-
"name": "Qwen 3 30B",
|
|
396
|
-
"id": "qwen/qwen3-30b-a3b-2507",
|
|
397
|
-
"context_window": 256000,
|
|
398
|
-
"default_max_tokens": 20000
|
|
399
|
-
}
|
|
400
|
-
]
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
}
|
|
404
|
-
```
|
|
405
|
-
|
|
406
361
|
### Custom Providers
|
|
407
362
|
|
|
408
363
|
Crush supports custom provider configurations for both OpenAI-compatible and
|
|
@@ -521,6 +476,54 @@ To add specific models to the configuration, configure as such:
|
|
|
521
476
|
}
|
|
522
477
|
```
|
|
523
478
|
|
|
479
|
+
### Local Models
|
|
480
|
+
|
|
481
|
+
Local models can also be configured via OpenAI-compatible API. Here are two common examples:
|
|
482
|
+
|
|
483
|
+
#### Ollama
|
|
484
|
+
|
|
485
|
+
```json
|
|
486
|
+
{
|
|
487
|
+
"providers": {
|
|
488
|
+
"ollama": {
|
|
489
|
+
"name": "Ollama",
|
|
490
|
+
"base_url": "http://localhost:11434/v1/",
|
|
491
|
+
"type": "openai-compat",
|
|
492
|
+
"models": [
|
|
493
|
+
{
|
|
494
|
+
"name": "Qwen 3 30B",
|
|
495
|
+
"id": "qwen3:30b",
|
|
496
|
+
"context_window": 256000,
|
|
497
|
+
"default_max_tokens": 20000
|
|
498
|
+
}
|
|
499
|
+
]
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
```
|
|
504
|
+
|
|
505
|
+
#### LM Studio
|
|
506
|
+
|
|
507
|
+
```json
|
|
508
|
+
{
|
|
509
|
+
"providers": {
|
|
510
|
+
"lmstudio": {
|
|
511
|
+
"name": "LM Studio",
|
|
512
|
+
"base_url": "http://localhost:1234/v1/",
|
|
513
|
+
"type": "openai-compat",
|
|
514
|
+
"models": [
|
|
515
|
+
{
|
|
516
|
+
"name": "Qwen 3 30B",
|
|
517
|
+
"id": "qwen/qwen3-30b-a3b-2507",
|
|
518
|
+
"context_window": 256000,
|
|
519
|
+
"default_max_tokens": 20000
|
|
520
|
+
}
|
|
521
|
+
]
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
```
|
|
526
|
+
|
|
524
527
|
## Logging
|
|
525
528
|
|
|
526
529
|
Sometimes you need to look at logs. Luckily, Crush logs all sorts of
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@charmland/crush",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"description": "A powerful terminal-based AI assistant for developers, providing intelligent coding assistance directly in your terminal.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"postinstall": "node install.js",
|
|
@@ -27,82 +27,82 @@
|
|
|
27
27
|
},
|
|
28
28
|
"archives": {
|
|
29
29
|
"darwin-arm64": {
|
|
30
|
-
"name": "crush_0.
|
|
31
|
-
"url": "https://github.com/charmbracelet/crush/releases/download/v0.
|
|
30
|
+
"name": "crush_0.17.0_Darwin_arm64.tar.gz",
|
|
31
|
+
"url": "https://github.com/charmbracelet/crush/releases/download/v0.17.0/crush_0.17.0_Darwin_arm64.tar.gz",
|
|
32
32
|
"bins": [
|
|
33
33
|
"crush"
|
|
34
34
|
],
|
|
35
35
|
"format": "tar.gz",
|
|
36
36
|
"checksum": {
|
|
37
37
|
"algorithm": "sha256",
|
|
38
|
-
"digest": "
|
|
38
|
+
"digest": "d0fca8a05a7b56368d8637c51dcf3cc5623cdeee1aaad0d1077bebead5dfcba3"
|
|
39
39
|
},
|
|
40
|
-
"wrappedIn": "crush_0.
|
|
40
|
+
"wrappedIn": "crush_0.17.0_Darwin_arm64"
|
|
41
41
|
},
|
|
42
42
|
"darwin-x64": {
|
|
43
|
-
"name": "crush_0.
|
|
44
|
-
"url": "https://github.com/charmbracelet/crush/releases/download/v0.
|
|
43
|
+
"name": "crush_0.17.0_Darwin_x86_64.tar.gz",
|
|
44
|
+
"url": "https://github.com/charmbracelet/crush/releases/download/v0.17.0/crush_0.17.0_Darwin_x86_64.tar.gz",
|
|
45
45
|
"bins": [
|
|
46
46
|
"crush"
|
|
47
47
|
],
|
|
48
48
|
"format": "tar.gz",
|
|
49
49
|
"checksum": {
|
|
50
50
|
"algorithm": "sha256",
|
|
51
|
-
"digest": "
|
|
51
|
+
"digest": "901e03a3b43e5b3a18041c232cc606d96a978b2e5f8350292fd547e9a903b394"
|
|
52
52
|
},
|
|
53
|
-
"wrappedIn": "crush_0.
|
|
53
|
+
"wrappedIn": "crush_0.17.0_Darwin_x86_64"
|
|
54
54
|
},
|
|
55
55
|
"linux-arm64": {
|
|
56
|
-
"name": "crush_0.
|
|
57
|
-
"url": "https://github.com/charmbracelet/crush/releases/download/v0.
|
|
56
|
+
"name": "crush_0.17.0_Linux_arm64.tar.gz",
|
|
57
|
+
"url": "https://github.com/charmbracelet/crush/releases/download/v0.17.0/crush_0.17.0_Linux_arm64.tar.gz",
|
|
58
58
|
"bins": [
|
|
59
59
|
"crush"
|
|
60
60
|
],
|
|
61
61
|
"format": "tar.gz",
|
|
62
62
|
"checksum": {
|
|
63
63
|
"algorithm": "sha256",
|
|
64
|
-
"digest": "
|
|
64
|
+
"digest": "d78e64b1597576b45220acc88f79991e0f305e3f6ff81a78d2386a91494284e7"
|
|
65
65
|
},
|
|
66
|
-
"wrappedIn": "crush_0.
|
|
66
|
+
"wrappedIn": "crush_0.17.0_Linux_arm64"
|
|
67
67
|
},
|
|
68
68
|
"linux-x64": {
|
|
69
|
-
"name": "crush_0.
|
|
70
|
-
"url": "https://github.com/charmbracelet/crush/releases/download/v0.
|
|
69
|
+
"name": "crush_0.17.0_Linux_x86_64.tar.gz",
|
|
70
|
+
"url": "https://github.com/charmbracelet/crush/releases/download/v0.17.0/crush_0.17.0_Linux_x86_64.tar.gz",
|
|
71
71
|
"bins": [
|
|
72
72
|
"crush"
|
|
73
73
|
],
|
|
74
74
|
"format": "tar.gz",
|
|
75
75
|
"checksum": {
|
|
76
76
|
"algorithm": "sha256",
|
|
77
|
-
"digest": "
|
|
77
|
+
"digest": "2b42d68f5fb467bdc9065c6cfce61280e620e975552ac9a2860da348bc5f5260"
|
|
78
78
|
},
|
|
79
|
-
"wrappedIn": "crush_0.
|
|
79
|
+
"wrappedIn": "crush_0.17.0_Linux_x86_64"
|
|
80
80
|
},
|
|
81
81
|
"win32-arm64": {
|
|
82
|
-
"name": "crush_0.
|
|
83
|
-
"url": "https://github.com/charmbracelet/crush/releases/download/v0.
|
|
82
|
+
"name": "crush_0.17.0_Windows_arm64.zip",
|
|
83
|
+
"url": "https://github.com/charmbracelet/crush/releases/download/v0.17.0/crush_0.17.0_Windows_arm64.zip",
|
|
84
84
|
"bins": [
|
|
85
85
|
"crush.exe"
|
|
86
86
|
],
|
|
87
87
|
"format": "zip",
|
|
88
88
|
"checksum": {
|
|
89
89
|
"algorithm": "sha256",
|
|
90
|
-
"digest": "
|
|
90
|
+
"digest": "8fff0da9adce01b354a1f58218dbc8c700d95aa45d0d5ecc4e83de6f6a71ce5c"
|
|
91
91
|
},
|
|
92
|
-
"wrappedIn": "crush_0.
|
|
92
|
+
"wrappedIn": "crush_0.17.0_Windows_arm64"
|
|
93
93
|
},
|
|
94
94
|
"win32-x64": {
|
|
95
|
-
"name": "crush_0.
|
|
96
|
-
"url": "https://github.com/charmbracelet/crush/releases/download/v0.
|
|
95
|
+
"name": "crush_0.17.0_Windows_x86_64.zip",
|
|
96
|
+
"url": "https://github.com/charmbracelet/crush/releases/download/v0.17.0/crush_0.17.0_Windows_x86_64.zip",
|
|
97
97
|
"bins": [
|
|
98
98
|
"crush.exe"
|
|
99
99
|
],
|
|
100
100
|
"format": "zip",
|
|
101
101
|
"checksum": {
|
|
102
102
|
"algorithm": "sha256",
|
|
103
|
-
"digest": "
|
|
103
|
+
"digest": "ac3a224487182a6bb468c8bad842c6d98dab788b5a8829f32cd84f8d94c2e97f"
|
|
104
104
|
},
|
|
105
|
-
"wrappedIn": "crush_0.
|
|
105
|
+
"wrappedIn": "crush_0.17.0_Windows_x86_64"
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
}
|