monadic-chat 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.rspec +3 -0
- data/CHANGELOG.md +9 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +172 -0
- data/LICENSE.txt +21 -0
- data/README.md +652 -0
- data/Rakefile +12 -0
- data/apps/chat/chat.json +4 -0
- data/apps/chat/chat.md +42 -0
- data/apps/chat/chat.rb +79 -0
- data/apps/code/code.json +4 -0
- data/apps/code/code.md +42 -0
- data/apps/code/code.rb +77 -0
- data/apps/novel/novel.json +4 -0
- data/apps/novel/novel.md +36 -0
- data/apps/novel/novel.rb +77 -0
- data/apps/translate/translate.json +4 -0
- data/apps/translate/translate.md +37 -0
- data/apps/translate/translate.rb +81 -0
- data/assets/github.css +1036 -0
- data/assets/pigments-default.css +69 -0
- data/bin/monadic-chat +122 -0
- data/doc/img/code-example-time-html.png +0 -0
- data/doc/img/code-example-time.png +0 -0
- data/doc/img/example-translation.png +0 -0
- data/doc/img/how-research-mode-works.svg +1 -0
- data/doc/img/input-acess-token.png +0 -0
- data/doc/img/langacker-2001.svg +41 -0
- data/doc/img/linguistic-html.png +0 -0
- data/doc/img/monadic-chat-main-menu.png +0 -0
- data/doc/img/monadic-chat.svg +13 -0
- data/doc/img/readme-example-beatles-html.png +0 -0
- data/doc/img/readme-example-beatles.png +0 -0
- data/doc/img/research-mode-template.svg +198 -0
- data/doc/img/select-app-menu.png +0 -0
- data/doc/img/select-feature-menu.png +0 -0
- data/doc/img/state-monad.svg +154 -0
- data/doc/img/syntree-sample.png +0 -0
- data/lib/monadic_app.rb +115 -0
- data/lib/monadic_chat/console.rb +29 -0
- data/lib/monadic_chat/formatting.rb +110 -0
- data/lib/monadic_chat/helper.rb +72 -0
- data/lib/monadic_chat/interaction.rb +41 -0
- data/lib/monadic_chat/internals.rb +269 -0
- data/lib/monadic_chat/menu.rb +189 -0
- data/lib/monadic_chat/open_ai.rb +150 -0
- data/lib/monadic_chat/parameters.rb +109 -0
- data/lib/monadic_chat/version.rb +5 -0
- data/lib/monadic_chat.rb +190 -0
- data/monadic_chat.gemspec +54 -0
- data/samples/linguistic/linguistic.json +17 -0
- data/samples/linguistic/linguistic.md +39 -0
- data/samples/linguistic/linguistic.rb +74 -0
- metadata +343 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 5ce3030e71a68706d7fe8784f46f2dc940c6a3e08d81ef58bd8d28f60a149063
|
4
|
+
data.tar.gz: 8ab88aedccb49df837c5d853822d756e6df7b759266e5798bc3791bf31b43452
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 52544a1343d7ca4cd10bbaa489e17596238510c635861d1701e62038e5482a1ad24af732a06ed09d13551af9331039488085518017013798d387982ec74adcaa
|
7
|
+
data.tar.gz: 0c67f03002b7aec1eede094b0a0a96ca342c7a417ca7c8cd09f4f99058afb126e74911edf78c2d9170eac7f201fd2d4401ad2d31a9f8ae7426cb7b275dc5cc87
|
data/.rspec
ADDED
data/CHANGELOG.md
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,172 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
monadic-chat (0.1.0)
|
5
|
+
http
|
6
|
+
kramdown
|
7
|
+
launchy
|
8
|
+
oj
|
9
|
+
parallel
|
10
|
+
pastel
|
11
|
+
rouge
|
12
|
+
tty-box
|
13
|
+
tty-cursor
|
14
|
+
tty-markdown
|
15
|
+
tty-progressbar
|
16
|
+
tty-prompt
|
17
|
+
tty-reader
|
18
|
+
tty-screen
|
19
|
+
tty-spinner
|
20
|
+
|
21
|
+
GEM
|
22
|
+
remote: https://rubygems.org/
|
23
|
+
specs:
|
24
|
+
addressable (2.8.1)
|
25
|
+
public_suffix (>= 2.0.2, < 6.0)
|
26
|
+
ast (2.4.2)
|
27
|
+
backport (1.2.0)
|
28
|
+
benchmark (0.2.1)
|
29
|
+
diff-lcs (1.5.0)
|
30
|
+
domain_name (0.5.20190701)
|
31
|
+
unf (>= 0.0.5, < 1.0.0)
|
32
|
+
e2mmap (0.1.0)
|
33
|
+
ffi (1.15.5)
|
34
|
+
ffi-compiler (1.0.1)
|
35
|
+
ffi (>= 1.0.0)
|
36
|
+
rake
|
37
|
+
http (5.1.1)
|
38
|
+
addressable (~> 2.8)
|
39
|
+
http-cookie (~> 1.0)
|
40
|
+
http-form_data (~> 2.2)
|
41
|
+
llhttp-ffi (~> 0.4.0)
|
42
|
+
http-cookie (1.0.5)
|
43
|
+
domain_name (~> 0.5)
|
44
|
+
http-form_data (2.3.0)
|
45
|
+
jaro_winkler (1.5.4)
|
46
|
+
json (2.6.3)
|
47
|
+
kramdown (2.4.0)
|
48
|
+
rexml
|
49
|
+
kramdown-parser-gfm (1.1.0)
|
50
|
+
kramdown (~> 2.0)
|
51
|
+
launchy (2.5.2)
|
52
|
+
addressable (~> 2.8)
|
53
|
+
llhttp-ffi (0.4.0)
|
54
|
+
ffi-compiler (~> 1.0)
|
55
|
+
rake (~> 13.0)
|
56
|
+
mini_portile2 (2.8.1)
|
57
|
+
nokogiri (1.14.2)
|
58
|
+
mini_portile2 (~> 2.8.0)
|
59
|
+
racc (~> 1.4)
|
60
|
+
oj (3.14.2)
|
61
|
+
parallel (1.22.1)
|
62
|
+
parser (3.2.1.1)
|
63
|
+
ast (~> 2.4.1)
|
64
|
+
pastel (0.8.0)
|
65
|
+
tty-color (~> 0.5)
|
66
|
+
public_suffix (5.0.1)
|
67
|
+
racc (1.6.2)
|
68
|
+
rainbow (3.1.1)
|
69
|
+
rake (13.0.6)
|
70
|
+
regexp_parser (2.7.0)
|
71
|
+
reverse_markdown (2.1.1)
|
72
|
+
nokogiri
|
73
|
+
rexml (3.2.5)
|
74
|
+
rouge (3.30.0)
|
75
|
+
rspec (3.12.0)
|
76
|
+
rspec-core (~> 3.12.0)
|
77
|
+
rspec-expectations (~> 3.12.0)
|
78
|
+
rspec-mocks (~> 3.12.0)
|
79
|
+
rspec-core (3.12.1)
|
80
|
+
rspec-support (~> 3.12.0)
|
81
|
+
rspec-expectations (3.12.2)
|
82
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
83
|
+
rspec-support (~> 3.12.0)
|
84
|
+
rspec-mocks (3.12.3)
|
85
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
86
|
+
rspec-support (~> 3.12.0)
|
87
|
+
rspec-support (3.12.0)
|
88
|
+
rubocop (1.48.0)
|
89
|
+
json (~> 2.3)
|
90
|
+
parallel (~> 1.10)
|
91
|
+
parser (>= 3.2.0.0)
|
92
|
+
rainbow (>= 2.2.2, < 4.0)
|
93
|
+
regexp_parser (>= 1.8, < 3.0)
|
94
|
+
rexml (>= 3.2.5, < 4.0)
|
95
|
+
rubocop-ast (>= 1.26.0, < 2.0)
|
96
|
+
ruby-progressbar (~> 1.7)
|
97
|
+
unicode-display_width (>= 2.4.0, < 3.0)
|
98
|
+
rubocop-ast (1.27.0)
|
99
|
+
parser (>= 3.2.1.0)
|
100
|
+
ruby-progressbar (1.13.0)
|
101
|
+
solargraph (0.48.0)
|
102
|
+
backport (~> 1.2)
|
103
|
+
benchmark
|
104
|
+
bundler (>= 1.17.2)
|
105
|
+
diff-lcs (~> 1.4)
|
106
|
+
e2mmap
|
107
|
+
jaro_winkler (~> 1.5)
|
108
|
+
kramdown (~> 2.3)
|
109
|
+
kramdown-parser-gfm (~> 1.1)
|
110
|
+
parser (~> 3.0)
|
111
|
+
reverse_markdown (>= 1.0.5, < 3)
|
112
|
+
rubocop (>= 0.52)
|
113
|
+
thor (~> 1.0)
|
114
|
+
tilt (~> 2.0)
|
115
|
+
yard (~> 0.9, >= 0.9.24)
|
116
|
+
strings (0.2.1)
|
117
|
+
strings-ansi (~> 0.2)
|
118
|
+
unicode-display_width (>= 1.5, < 3.0)
|
119
|
+
unicode_utils (~> 1.4)
|
120
|
+
strings-ansi (0.2.0)
|
121
|
+
thor (1.2.1)
|
122
|
+
tilt (2.1.0)
|
123
|
+
tty-box (0.7.0)
|
124
|
+
pastel (~> 0.8)
|
125
|
+
strings (~> 0.2.0)
|
126
|
+
tty-cursor (~> 0.7)
|
127
|
+
tty-color (0.6.0)
|
128
|
+
tty-cursor (0.7.1)
|
129
|
+
tty-markdown (0.7.1)
|
130
|
+
kramdown (>= 1.16.2, < 3.0)
|
131
|
+
pastel (~> 0.8)
|
132
|
+
rouge (~> 3.14)
|
133
|
+
strings (~> 0.2.0)
|
134
|
+
tty-color (~> 0.5)
|
135
|
+
tty-screen (~> 0.8)
|
136
|
+
tty-progressbar (0.18.2)
|
137
|
+
strings-ansi (~> 0.2)
|
138
|
+
tty-cursor (~> 0.7)
|
139
|
+
tty-screen (~> 0.8)
|
140
|
+
unicode-display_width (>= 1.6, < 3.0)
|
141
|
+
tty-prompt (0.23.1)
|
142
|
+
pastel (~> 0.8)
|
143
|
+
tty-reader (~> 0.8)
|
144
|
+
tty-reader (0.9.0)
|
145
|
+
tty-cursor (~> 0.7)
|
146
|
+
tty-screen (~> 0.8)
|
147
|
+
wisper (~> 2.0)
|
148
|
+
tty-screen (0.8.1)
|
149
|
+
tty-spinner (0.9.3)
|
150
|
+
tty-cursor (~> 0.7)
|
151
|
+
unf (0.1.4)
|
152
|
+
unf_ext
|
153
|
+
unf_ext (0.0.8.2)
|
154
|
+
unicode-display_width (2.4.2)
|
155
|
+
unicode_utils (1.4.0)
|
156
|
+
webrick (1.7.0)
|
157
|
+
wisper (2.0.1)
|
158
|
+
yard (0.9.28)
|
159
|
+
webrick (~> 1.7.0)
|
160
|
+
|
161
|
+
PLATFORMS
|
162
|
+
ruby
|
163
|
+
|
164
|
+
DEPENDENCIES
|
165
|
+
bundler
|
166
|
+
monadic-chat!
|
167
|
+
rake
|
168
|
+
rspec
|
169
|
+
solargraph
|
170
|
+
|
171
|
+
BUNDLED WITH
|
172
|
+
2.4.2
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2023 Yoichiro Hasebe
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|