openclacky 0.7.2 → 0.7.3
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +26 -0
- data/lib/clacky/providers.rb +13 -11
- data/lib/clacky/ui2/components/modal_component.rb +18 -1
- data/lib/clacky/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7412866b05ae167fe6425d335db66e045a5e46ee02f20c25df41ff025c34d504
|
|
4
|
+
data.tar.gz: af3fb00041f896a6b9a8e98d7cb94be58ad49333e111cd6929233cedce684a80
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 97b3549db52c0f6f8f2b1b5f54f703b45e1aa8619a26909db5bd394bb8dd371972ddce81f61ed2a6047a7105a31be5eeb5e34a7fd1619e57107b363ce805de54
|
|
7
|
+
data.tar.gz: 231fe7e3e095fde2e295dc10d151f231532f44f541c3b623bc9e0efcee054f7a5e32ea58b6734ee6cc0f7e4b137b88d269c1a8a31ac3d6ebcd5c72ee21cd2438
|
data/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,32 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.7.2] - 2026-02-26
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
- Cross-platform auto-install script with mise and WSL support
|
|
14
|
+
- Built-in provider presets for quick model configuration
|
|
15
|
+
- Terminal restart reminder after installation
|
|
16
|
+
- More bin commands for improved CLI experience
|
|
17
|
+
- Shields.io badges to README
|
|
18
|
+
|
|
19
|
+
### Improved
|
|
20
|
+
- Install script robustness and user experience
|
|
21
|
+
- Code-explorer workflow with forked subagent mode explanation
|
|
22
|
+
- README with features, usage scenarios, and comparison table
|
|
23
|
+
- Installation section with clearer instructions
|
|
24
|
+
|
|
25
|
+
### Fixed
|
|
26
|
+
- Binary file detection using magic bytes only (prevents false positives on multibyte text)
|
|
27
|
+
- Display user input before executing callback in handle_submit
|
|
28
|
+
- Install script now uses gem-only approach (removed homebrew dependency)
|
|
29
|
+
|
|
30
|
+
### More
|
|
31
|
+
- Minor formatting fixes in install script and README
|
|
32
|
+
- Removed skill emoji for cleaner UI
|
|
33
|
+
- Removed test-skill
|
|
34
|
+
- Updated install script configuration
|
|
35
|
+
|
|
10
36
|
## [0.7.1] - 2026-02-24
|
|
11
37
|
|
|
12
38
|
This release brings significant user experience improvements, new interaction modes, and enhanced agent capabilities.
|
data/lib/clacky/providers.rb
CHANGED
|
@@ -11,28 +11,21 @@ module Clacky
|
|
|
11
11
|
# - api: API type (anthropic-messages, openai-responses, openai-completions)
|
|
12
12
|
# - default_model: Recommended default model
|
|
13
13
|
PRESETS = {
|
|
14
|
-
"anthropic" => {
|
|
15
|
-
"name" => "Anthropic (Claude)",
|
|
16
|
-
"base_url" => "https://api.anthropic.com",
|
|
17
|
-
"api" => "anthropic-messages",
|
|
18
|
-
"default_model" => "claude-sonnet-4-6",
|
|
19
|
-
"models" => ["claude-opus-4-6", "claude-sonnet-4-6", "claude-haiku-4"]
|
|
20
|
-
}.freeze,
|
|
21
14
|
|
|
22
15
|
"openrouter" => {
|
|
23
16
|
"name" => "OpenRouter",
|
|
24
17
|
"base_url" => "https://openrouter.ai/api/v1",
|
|
25
18
|
"api" => "openai-responses",
|
|
26
|
-
"default_model" => "anthropic/claude-sonnet-4-
|
|
19
|
+
"default_model" => "anthropic/claude-sonnet-4-6",
|
|
27
20
|
"models" => [] # Dynamic - fetched from API
|
|
28
21
|
}.freeze,
|
|
29
22
|
|
|
30
23
|
"minimax" => {
|
|
31
24
|
"name" => "Minimax",
|
|
32
|
-
"base_url" => "https://api.
|
|
25
|
+
"base_url" => "https://api.minimaxi.com/v1",
|
|
33
26
|
"api" => "openai-completions",
|
|
34
|
-
"default_model" => "MiniMax-
|
|
35
|
-
"models" => ["MiniMax-
|
|
27
|
+
"default_model" => "MiniMax-M2.5",
|
|
28
|
+
"models" => ["MiniMax-M2.1", "MiniMax-M2.5"]
|
|
36
29
|
}.freeze,
|
|
37
30
|
|
|
38
31
|
"kimi" => {
|
|
@@ -41,7 +34,16 @@ module Clacky
|
|
|
41
34
|
"api" => "openai-completions",
|
|
42
35
|
"default_model" => "kimi-k2.5",
|
|
43
36
|
"models" => ["kimi-k2.5"]
|
|
37
|
+
}.freeze,
|
|
38
|
+
|
|
39
|
+
"anthropic" => {
|
|
40
|
+
"name" => "Anthropic (Claude)",
|
|
41
|
+
"base_url" => "https://api.anthropic.com",
|
|
42
|
+
"api" => "anthropic-messages",
|
|
43
|
+
"default_model" => "claude-sonnet-4.6",
|
|
44
|
+
"models" => ["claude-opus-4-6", "claude-sonnet-4.6", "claude-haiku-4.5"]
|
|
44
45
|
}.freeze
|
|
46
|
+
|
|
45
47
|
}.freeze
|
|
46
48
|
|
|
47
49
|
class << self
|
|
@@ -45,10 +45,16 @@ module Clacky
|
|
|
45
45
|
@selected_index = @choices.index { |c| !c[:disabled] } || 0
|
|
46
46
|
end
|
|
47
47
|
|
|
48
|
-
# Adjust height
|
|
48
|
+
# Adjust height based on mode
|
|
49
49
|
if @mode == :menu
|
|
50
50
|
visible_items = [@choices.length, 15].min
|
|
51
51
|
@height = visible_items + 4 # +4 for title, borders, and instructions
|
|
52
|
+
else
|
|
53
|
+
# Form mode - adjust height based on number of fields
|
|
54
|
+
# Each field takes 2 rows (label + input)
|
|
55
|
+
# +3 for title and top border
|
|
56
|
+
# +5 for error message area, buttons, and bottom border
|
|
57
|
+
@height = (@fields.length * 2) + 3 + 5
|
|
52
58
|
end
|
|
53
59
|
|
|
54
60
|
# Get terminal size
|
|
@@ -167,6 +173,17 @@ module Clacky
|
|
|
167
173
|
# Clear testing messages
|
|
168
174
|
print "\e[#{testing_row};#{testing_col}H\e[K"
|
|
169
175
|
print "\e[#{testing_row + 1};#{testing_col}H\e[K"
|
|
176
|
+
|
|
177
|
+
if validation_result[:success]
|
|
178
|
+
# Validation passed - hide cursor and return values
|
|
179
|
+
print "\e[?25l"
|
|
180
|
+
return @values
|
|
181
|
+
else
|
|
182
|
+
# Validation failed - show error and loop again to let user correct input
|
|
183
|
+
@error_message = validation_result[:error] || "Validation failed"
|
|
184
|
+
# Don't clear modal - just loop again to redraw with error message
|
|
185
|
+
# This prevents the modal from flickering
|
|
186
|
+
end
|
|
170
187
|
else
|
|
171
188
|
# No validator - return immediately
|
|
172
189
|
print "\e[?25l"
|
data/lib/clacky/version.rb
CHANGED