ruboty-ai_agent 0.1.0 → 0.2.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 +19 -0
- data/Gemfile +10 -3
- data/Rakefile +2 -0
- data/Steepfile +1 -0
- data/lib/ruboty/ai_agent/actions/add_ai_command.rb +16 -1
- data/lib/ruboty/ai_agent/actions/chat.rb +44 -16
- data/lib/ruboty/ai_agent/actions/list_ai_commands.rb +20 -4
- data/lib/ruboty/ai_agent/actions/remove_ai_command.rb +7 -1
- data/lib/ruboty/ai_agent/actions/show_system_prompt.rb +1 -1
- data/lib/ruboty/ai_agent/chat_message.rb +7 -2
- data/lib/ruboty/ai_agent/chat_thread_messages.rb +40 -0
- data/lib/ruboty/ai_agent/commands/base.rb +11 -14
- data/lib/ruboty/ai_agent/commands/builtin_base.rb +39 -0
- data/lib/ruboty/ai_agent/commands/clear.rb +2 -14
- data/lib/ruboty/ai_agent/commands/compact.rb +4 -47
- data/lib/ruboty/ai_agent/commands/prompt_command.rb +61 -0
- data/lib/ruboty/ai_agent/commands/usage.rb +2 -14
- data/lib/ruboty/ai_agent/commands.rb +3 -1
- data/lib/ruboty/ai_agent/database/query_methods.rb +31 -6
- data/lib/ruboty/ai_agent/database.rb +2 -1
- data/lib/ruboty/ai_agent/http_mcp_client.rb +5 -2
- data/lib/ruboty/ai_agent/llm/openai.rb +5 -5
- data/lib/ruboty/ai_agent/mcp_clients.rb +6 -0
- data/lib/ruboty/ai_agent/mcp_configuration.rb +3 -2
- data/lib/ruboty/ai_agent/prompt_command_definition.rb +17 -0
- data/lib/ruboty/ai_agent/record_set.rb +9 -5
- data/lib/ruboty/ai_agent/recordable.rb +11 -9
- data/lib/ruboty/ai_agent/token_usage.rb +10 -0
- data/lib/ruboty/ai_agent/user.rb +5 -0
- data/lib/ruboty/ai_agent/user_mcp_caches.rb +2 -2
- data/lib/ruboty/ai_agent/user_mcp_client.rb +2 -2
- data/lib/ruboty/ai_agent/user_prompt_command_definitions.rb +17 -0
- data/lib/ruboty/ai_agent/version.rb +1 -1
- data/lib/ruboty/ai_agent.rb +11 -0
- data/lib/ruboty/handlers/ai_agent.rb +27 -15
- data/rbs_collection.yaml +1 -0
- data/ruboty-ai_agent.gemspec +2 -6
- data/script/clean-orphaned-rbs.rb +105 -0
- data/script/generate-concern-rbs.rb +5 -5
- data/script/generate-data-rbs.rb +3 -5
- data/script/generate-memorized-ivar-rbs.rb +6 -11
- data/sig/generated/ruboty/ai_agent/actions/add_ai_command.rbs +4 -0
- data/sig/generated/ruboty/ai_agent/actions/chat.rbs +6 -0
- data/sig/generated/ruboty/ai_agent/chat_message.rbs +5 -2
- data/sig/generated/ruboty/ai_agent/chat_thread_messages.rbs +14 -0
- data/sig/generated/ruboty/ai_agent/commands/base.rbs +8 -20
- data/sig/generated/ruboty/ai_agent/commands/builtin_base.rbs +40 -0
- data/sig/generated/ruboty/ai_agent/commands/clear.rbs +2 -10
- data/sig/generated/ruboty/ai_agent/commands/compact.rbs +2 -20
- data/sig/generated/ruboty/ai_agent/commands/prompt_command.rbs +27 -0
- data/sig/generated/ruboty/ai_agent/commands/usage.rbs +2 -10
- data/sig/generated/ruboty/ai_agent/commands.rbs +2 -2
- data/sig/generated/ruboty/ai_agent/database/query_methods.rbs +18 -12
- data/sig/generated/ruboty/ai_agent/database.rbs +3 -1
- data/sig/generated/ruboty/ai_agent/llm/openai.rbs +3 -3
- data/sig/generated/ruboty/ai_agent/mcp_configuration.rbs +4 -2
- data/sig/generated/ruboty/ai_agent/prompt_command_definition.rbs +23 -0
- data/sig/generated/ruboty/ai_agent/record_set.rbs +11 -9
- data/sig/generated/ruboty/ai_agent/recordable.rbs +6 -6
- data/sig/generated/ruboty/ai_agent/token_usage.rbs +4 -0
- data/sig/generated/ruboty/ai_agent/user.rbs +4 -0
- data/sig/generated/ruboty/ai_agent/user_prompt_command_definitions.rbs +12 -0
- data/sig/generated/ruboty/handlers/ai_agent.rbs +12 -12
- data/sig/generated-by-scripts/concerns.rbs +5 -0
- data/sig/generated-by-scripts/memorized_ivars.rbs +9 -0
- metadata +11 -57
@@ -18,6 +18,11 @@ module Ruboty
|
|
18
18
|
prepend Recordable::PrependMethods
|
19
19
|
end
|
20
20
|
|
21
|
+
class PromptCommandDefinition
|
22
|
+
extend Recordable::ClassMethods
|
23
|
+
prepend Recordable::PrependMethods
|
24
|
+
end
|
25
|
+
|
21
26
|
class TokenUsage
|
22
27
|
extend Recordable::ClassMethods
|
23
28
|
prepend Recordable::PrependMethods
|
@@ -21,6 +21,14 @@ module Ruboty
|
|
21
21
|
end
|
22
22
|
end
|
23
23
|
|
24
|
+
module Ruboty
|
25
|
+
module AiAgent
|
26
|
+
class Database
|
27
|
+
@global_settings: GlobalSettings
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
24
32
|
module Ruboty
|
25
33
|
module AiAgent
|
26
34
|
module LLM
|
@@ -37,6 +45,7 @@ module Ruboty
|
|
37
45
|
@mcp_configurations: UserMcpConfigurations
|
38
46
|
@ai_memories: UserAiMemories
|
39
47
|
@mcp_tools_caches: UserMcpToolsCaches
|
48
|
+
@prompt_command_definitions: UserPromptCommandDefinitions
|
40
49
|
end
|
41
50
|
end
|
42
51
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruboty-ai_agent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tomoya Chiba
|
@@ -9,62 +9,6 @@ bindir: exe
|
|
9
9
|
cert_chain: []
|
10
10
|
date: 1980-01-02 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
|
-
- !ruby/object:Gem::Dependency
|
13
|
-
name: bundler
|
14
|
-
requirement: !ruby/object:Gem::Requirement
|
15
|
-
requirements:
|
16
|
-
- - "~>"
|
17
|
-
- !ruby/object:Gem::Version
|
18
|
-
version: '2'
|
19
|
-
type: :development
|
20
|
-
prerelease: false
|
21
|
-
version_requirements: !ruby/object:Gem::Requirement
|
22
|
-
requirements:
|
23
|
-
- - "~>"
|
24
|
-
- !ruby/object:Gem::Version
|
25
|
-
version: '2'
|
26
|
-
- !ruby/object:Gem::Dependency
|
27
|
-
name: rake
|
28
|
-
requirement: !ruby/object:Gem::Requirement
|
29
|
-
requirements:
|
30
|
-
- - "~>"
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: '13'
|
33
|
-
type: :development
|
34
|
-
prerelease: false
|
35
|
-
version_requirements: !ruby/object:Gem::Requirement
|
36
|
-
requirements:
|
37
|
-
- - "~>"
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: '13'
|
40
|
-
- !ruby/object:Gem::Dependency
|
41
|
-
name: rspec
|
42
|
-
requirement: !ruby/object:Gem::Requirement
|
43
|
-
requirements:
|
44
|
-
- - "~>"
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
version: '3.0'
|
47
|
-
type: :development
|
48
|
-
prerelease: false
|
49
|
-
version_requirements: !ruby/object:Gem::Requirement
|
50
|
-
requirements:
|
51
|
-
- - "~>"
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: '3.0'
|
54
|
-
- !ruby/object:Gem::Dependency
|
55
|
-
name: webmock
|
56
|
-
requirement: !ruby/object:Gem::Requirement
|
57
|
-
requirements:
|
58
|
-
- - "~>"
|
59
|
-
- !ruby/object:Gem::Version
|
60
|
-
version: '3.0'
|
61
|
-
type: :development
|
62
|
-
prerelease: false
|
63
|
-
version_requirements: !ruby/object:Gem::Requirement
|
64
|
-
requirements:
|
65
|
-
- - "~>"
|
66
|
-
- !ruby/object:Gem::Version
|
67
|
-
version: '3.0'
|
68
12
|
- !ruby/object:Gem::Dependency
|
69
13
|
name: event_stream_parser
|
70
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -151,8 +95,10 @@ files:
|
|
151
95
|
- lib/ruboty/ai_agent/chat_thread_messages.rb
|
152
96
|
- lib/ruboty/ai_agent/commands.rb
|
153
97
|
- lib/ruboty/ai_agent/commands/base.rb
|
98
|
+
- lib/ruboty/ai_agent/commands/builtin_base.rb
|
154
99
|
- lib/ruboty/ai_agent/commands/clear.rb
|
155
100
|
- lib/ruboty/ai_agent/commands/compact.rb
|
101
|
+
- lib/ruboty/ai_agent/commands/prompt_command.rb
|
156
102
|
- lib/ruboty/ai_agent/commands/usage.rb
|
157
103
|
- lib/ruboty/ai_agent/database.rb
|
158
104
|
- lib/ruboty/ai_agent/database/query_methods.rb
|
@@ -164,6 +110,7 @@ files:
|
|
164
110
|
- lib/ruboty/ai_agent/llm/response.rb
|
165
111
|
- lib/ruboty/ai_agent/mcp_clients.rb
|
166
112
|
- lib/ruboty/ai_agent/mcp_configuration.rb
|
113
|
+
- lib/ruboty/ai_agent/prompt_command_definition.rb
|
167
114
|
- lib/ruboty/ai_agent/record_set.rb
|
168
115
|
- lib/ruboty/ai_agent/recordable.rb
|
169
116
|
- lib/ruboty/ai_agent/token_usage.rb
|
@@ -175,10 +122,12 @@ files:
|
|
175
122
|
- lib/ruboty/ai_agent/user_mcp_client.rb
|
176
123
|
- lib/ruboty/ai_agent/user_mcp_configurations.rb
|
177
124
|
- lib/ruboty/ai_agent/user_mcp_tools_caches.rb
|
125
|
+
- lib/ruboty/ai_agent/user_prompt_command_definitions.rb
|
178
126
|
- lib/ruboty/ai_agent/version.rb
|
179
127
|
- lib/ruboty/handlers/ai_agent.rb
|
180
128
|
- rbs_collection.yaml
|
181
129
|
- ruboty-ai_agent.gemspec
|
130
|
+
- script/clean-orphaned-rbs.rb
|
182
131
|
- script/generate-concern-rbs.rb
|
183
132
|
- script/generate-data-rbs.rb
|
184
133
|
- script/generate-memorized-ivar-rbs.rb
|
@@ -210,8 +159,10 @@ files:
|
|
210
159
|
- sig/generated/ruboty/ai_agent/chat_thread_messages.rbs
|
211
160
|
- sig/generated/ruboty/ai_agent/commands.rbs
|
212
161
|
- sig/generated/ruboty/ai_agent/commands/base.rbs
|
162
|
+
- sig/generated/ruboty/ai_agent/commands/builtin_base.rbs
|
213
163
|
- sig/generated/ruboty/ai_agent/commands/clear.rbs
|
214
164
|
- sig/generated/ruboty/ai_agent/commands/compact.rbs
|
165
|
+
- sig/generated/ruboty/ai_agent/commands/prompt_command.rbs
|
215
166
|
- sig/generated/ruboty/ai_agent/commands/usage.rbs
|
216
167
|
- sig/generated/ruboty/ai_agent/database.rbs
|
217
168
|
- sig/generated/ruboty/ai_agent/database/query_methods.rbs
|
@@ -223,6 +174,7 @@ files:
|
|
223
174
|
- sig/generated/ruboty/ai_agent/llm/response.rbs
|
224
175
|
- sig/generated/ruboty/ai_agent/mcp_clients.rbs
|
225
176
|
- sig/generated/ruboty/ai_agent/mcp_configuration.rbs
|
177
|
+
- sig/generated/ruboty/ai_agent/prompt_command_definition.rbs
|
226
178
|
- sig/generated/ruboty/ai_agent/record_set.rbs
|
227
179
|
- sig/generated/ruboty/ai_agent/recordable.rbs
|
228
180
|
- sig/generated/ruboty/ai_agent/token_usage.rbs
|
@@ -234,6 +186,7 @@ files:
|
|
234
186
|
- sig/generated/ruboty/ai_agent/user_mcp_client.rbs
|
235
187
|
- sig/generated/ruboty/ai_agent/user_mcp_configurations.rbs
|
236
188
|
- sig/generated/ruboty/ai_agent/user_mcp_tools_caches.rbs
|
189
|
+
- sig/generated/ruboty/ai_agent/user_prompt_command_definitions.rbs
|
237
190
|
- sig/generated/ruboty/ai_agent/version.rbs
|
238
191
|
- sig/generated/ruboty/handlers/ai_agent.rbs
|
239
192
|
homepage: https://github.com/tomoasleep/ruboty-ai_agent
|
@@ -243,6 +196,7 @@ metadata:
|
|
243
196
|
homepage_uri: https://github.com/tomoasleep/ruboty-ai_agent
|
244
197
|
source_code_uri: https://github.com/tomoasleep/ruboty-ai_agent
|
245
198
|
changelog_uri: https://github.com/tomoasleep/ruboty-ai_agent/blob/main/CHANGELOG.md
|
199
|
+
rubygems_mfa_required: 'true'
|
246
200
|
rdoc_options: []
|
247
201
|
require_paths:
|
248
202
|
- lib
|