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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 05ce65a24427505768d5edd395ace486c9f7ede88a7abcb42770dce4138a319e
4
- data.tar.gz: 400a1efafd35cddf6993ba3298830f13eaa1e3cb4502540191e638cb17b22b66
3
+ metadata.gz: 7412866b05ae167fe6425d335db66e045a5e46ee02f20c25df41ff025c34d504
4
+ data.tar.gz: af3fb00041f896a6b9a8e98d7cb94be58ad49333e111cd6929233cedce684a80
5
5
  SHA512:
6
- metadata.gz: 8bef68ebcadc6a178a697592e2e92b09d8307d6bd789171a21eedb2b3296b23071fe761caf762dfe6e2e399ed76dcc028d232190ae8ce5652c9387337a9c6a39
7
- data.tar.gz: f43e0362780a85166435f572ad42a38654d62f9acc66401e5c229bfd6f27605d75844ee232d3f334fbb8414a0b2d6686b2164a10eb4ebe4ef90b54a021bbf163
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.
@@ -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-5",
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.minimax.chat/v1",
25
+ "base_url" => "https://api.minimaxi.com/v1",
33
26
  "api" => "openai-completions",
34
- "default_model" => "MiniMax-Text-01",
35
- "models" => ["MiniMax-Text-01", "MiniMax-M2"]
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 for menu mode
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"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Clacky
4
- VERSION = "0.7.2"
4
+ VERSION = "0.7.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openclacky
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - windy