vibe-sort 0.3.1 → 0.5.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.
- checksums.yaml +4 -4
- data/.rubocop.yml +25 -0
- data/CHANGELOG.md +38 -0
- data/README.md +167 -19
- data/docs/api_reference.md +76 -16
- data/docs/architecture.md +22 -9
- data/docs/free_model_benchmark_2026-07-12.md +134 -0
- data/docs/v0.4.0_PLAN.md +203 -0
- data/lib/vibe_sort/client.rb +85 -14
- data/lib/vibe_sort/configuration.rb +63 -11
- data/lib/vibe_sort/error.rb +55 -0
- data/lib/vibe_sort/key_detector.rb +31 -0
- data/lib/vibe_sort/provider_resolver.rb +98 -0
- data/lib/vibe_sort/providers/base.rb +15 -1
- data/lib/vibe_sort/providers/jev.rb +72 -0
- data/lib/vibe_sort/providers/open_router.rb +29 -0
- data/lib/vibe_sort/result.rb +37 -0
- data/lib/vibe_sort/settings.rb +79 -0
- data/lib/vibe_sort/sorter.rb +16 -3
- data/lib/vibe_sort/system_one/client.rb +189 -0
- data/lib/vibe_sort/system_one/serializer.rb +118 -0
- data/lib/vibe_sort/system_one/strategies/base.rb +127 -0
- data/lib/vibe_sort/system_one/strategies/bogo_sort.rb +83 -0
- data/lib/vibe_sort/system_one/strategies/choice_sort.rb +113 -0
- data/lib/vibe_sort/system_one/strategies/noul_sort.rb +76 -0
- data/lib/vibe_sort/system_one/strategies/score_sort.rb +128 -0
- data/lib/vibe_sort/version.rb +1 -1
- data/lib/vibe_sort.rb +13 -0
- metadata +21 -5
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vibe-sort
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.5.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chayut Orapinpatipat
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-11-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -26,8 +26,9 @@ dependencies:
|
|
|
26
26
|
version: '2.0'
|
|
27
27
|
description: A proof-of-concept Ruby gem that sorts arrays by leveraging LLM APIs
|
|
28
28
|
(OpenAI Chat Completions, Anthropic Messages, Google Gemini, and the OpenAI-compatible
|
|
29
|
-
Groq
|
|
30
|
-
|
|
29
|
+
Groq, SpaceXAI Grok, and OpenRouter APIs) or TypeSafe's Jev decision model (System
|
|
30
|
+
One, via TypeSafe or OpenRouter). Infers the provider from the API key format. Demonstrates
|
|
31
|
+
how AI can be used for computational tasks.
|
|
31
32
|
email:
|
|
32
33
|
- chayut_o@hotmail.com
|
|
33
34
|
executables: []
|
|
@@ -45,19 +46,34 @@ files:
|
|
|
45
46
|
- docs/api_reference.md
|
|
46
47
|
- docs/architecture.md
|
|
47
48
|
- docs/development.md
|
|
49
|
+
- docs/free_model_benchmark_2026-07-12.md
|
|
48
50
|
- docs/v0.2.0_UPDATE.md
|
|
51
|
+
- docs/v0.4.0_PLAN.md
|
|
49
52
|
- lib/vibe/sort.rb
|
|
50
53
|
- lib/vibe_sort.rb
|
|
51
54
|
- lib/vibe_sort/client.rb
|
|
52
55
|
- lib/vibe_sort/configuration.rb
|
|
53
56
|
- lib/vibe_sort/error.rb
|
|
57
|
+
- lib/vibe_sort/key_detector.rb
|
|
58
|
+
- lib/vibe_sort/provider_resolver.rb
|
|
54
59
|
- lib/vibe_sort/providers/anthropic.rb
|
|
55
60
|
- lib/vibe_sort/providers/base.rb
|
|
56
61
|
- lib/vibe_sort/providers/gemini.rb
|
|
57
62
|
- lib/vibe_sort/providers/groq.rb
|
|
63
|
+
- lib/vibe_sort/providers/jev.rb
|
|
64
|
+
- lib/vibe_sort/providers/open_router.rb
|
|
58
65
|
- lib/vibe_sort/providers/openai.rb
|
|
59
66
|
- lib/vibe_sort/providers/space_x_ai.rb
|
|
67
|
+
- lib/vibe_sort/result.rb
|
|
68
|
+
- lib/vibe_sort/settings.rb
|
|
60
69
|
- lib/vibe_sort/sorter.rb
|
|
70
|
+
- lib/vibe_sort/system_one/client.rb
|
|
71
|
+
- lib/vibe_sort/system_one/serializer.rb
|
|
72
|
+
- lib/vibe_sort/system_one/strategies/base.rb
|
|
73
|
+
- lib/vibe_sort/system_one/strategies/bogo_sort.rb
|
|
74
|
+
- lib/vibe_sort/system_one/strategies/choice_sort.rb
|
|
75
|
+
- lib/vibe_sort/system_one/strategies/noul_sort.rb
|
|
76
|
+
- lib/vibe_sort/system_one/strategies/score_sort.rb
|
|
61
77
|
- lib/vibe_sort/version.rb
|
|
62
78
|
homepage: https://github.com/chayuto/vibe-sort
|
|
63
79
|
licenses:
|
|
@@ -88,5 +104,5 @@ rubygems_version: 3.5.22
|
|
|
88
104
|
signing_key:
|
|
89
105
|
specification_version: 4
|
|
90
106
|
summary: AI-powered array sorting using OpenAI, Anthropic Claude, Google Gemini, Groq,
|
|
91
|
-
or
|
|
107
|
+
SpaceXAI Grok, OpenRouter, or TypeSafe Jev
|
|
92
108
|
test_files: []
|