samagotchi 0.11.0 → 0.13.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/CHANGELOG.md +90 -1
- data/README.md +20 -7
- data/bin/chi +10 -4
- data/docs/architecture.md +8 -6
- data/docs/cli.md +59 -11
- data/docs/configuration.md +29 -8
- data/docs/desktop.md +34 -8
- data/docs/guardrails.md +73 -7
- data/docs/hooks.md +13 -9
- data/docs/memory.md +5 -3
- data/docs/plugins.md +4 -4
- data/docs/sessions.md +9 -6
- data/docs/sub-agent.md +128 -0
- data/lib/samagotchi/answer_command.rb +220 -0
- data/lib/samagotchi/bridge.rb +15 -5
- data/lib/samagotchi/bridge_client.rb +8 -3
- data/lib/samagotchi/bundle_command.rb +18 -10
- data/lib/samagotchi/bundles/guardrails/guardrails/rules.yml +19 -0
- data/lib/samagotchi/bundles/guardrails/manifest.yml +2 -2
- data/lib/samagotchi/bundles/system/config_modification_protocol.md +5 -5
- data/lib/samagotchi/bundles/system/manifest.yml +2 -2
- data/lib/samagotchi/cli/command.rb +3 -2
- data/lib/samagotchi/cli/exit.rb +23 -0
- data/lib/samagotchi/cli/parent_wait.rb +82 -0
- data/lib/samagotchi/config.rb +50 -18
- data/lib/samagotchi/desktop/macos/App.swift +5 -1
- data/lib/samagotchi/desktop/macos/ChiRunner.swift +19 -0
- data/lib/samagotchi/desktop/macos/Models.swift +238 -0
- data/lib/samagotchi/desktop/macos/Panel.swift +301 -42
- data/lib/samagotchi/desktop_command.rb +5 -3
- data/lib/samagotchi/engine.rb +480 -491
- data/lib/samagotchi/guardrails/parent_approvals.rb +155 -0
- data/lib/samagotchi/hooks/bundle_loader.rb +10 -3
- data/lib/samagotchi/host_registry.rb +26 -3
- data/lib/samagotchi/idle_reminders.rb +13 -36
- data/lib/samagotchi/kernel_loop.rb +82 -120
- data/lib/samagotchi/llm/chat_loop.rb +17 -38
- data/lib/samagotchi/llm/model_result.rb +14 -20
- data/lib/samagotchi/llm/native_backend.rb +3 -21
- data/lib/samagotchi/llm/openai_chat.rb +10 -2
- data/lib/samagotchi/llm/turn_settings.rb +19 -0
- data/lib/samagotchi/llm/usage.rb +2 -57
- data/lib/samagotchi/memory_bundle/installer.rb +13 -1
- data/lib/samagotchi/memory_bundle/status.rb +9 -1
- data/lib/samagotchi/memory_paths.rb +8 -0
- data/lib/samagotchi/model_catalog.rb +101 -0
- data/lib/samagotchi/model_profile.rb +31 -17
- data/lib/samagotchi/models_command.rb +112 -0
- data/lib/samagotchi/parent_report.rb +213 -0
- data/lib/samagotchi/plugin/api.rb +15 -2
- data/lib/samagotchi/prompt_literal_guard.rb +4 -2
- data/lib/samagotchi/question_desk.rb +29 -2
- data/lib/samagotchi/recap_setup.rb +15 -5
- data/lib/samagotchi/reminder_queue.rb +73 -0
- data/lib/samagotchi/reminder_store.rb +3 -3
- data/lib/samagotchi/reply_wait.rb +5 -1
- data/lib/samagotchi/self_report.rb +8 -1
- data/lib/samagotchi/send_command.rb +51 -76
- data/lib/samagotchi/session.rb +15 -0
- data/lib/samagotchi/session_commands.rb +5 -5
- data/lib/samagotchi/session_manager.rb +36 -13
- data/lib/samagotchi/sessions_command.rb +13 -3
- data/lib/samagotchi/system_prompt.rb +10 -2
- data/lib/samagotchi/terminal_ui/attach_launcher.rb +33 -5
- data/lib/samagotchi/terminal_ui/attached_loop.rb +17 -5
- data/lib/samagotchi/terminal_ui.rb +23 -29
- data/lib/samagotchi/thinking.rb +1 -1
- data/lib/samagotchi/thought_stream_splitter.rb +4 -4
- data/lib/samagotchi/tool_call_parser.rb +5 -6
- data/lib/samagotchi/tool_runner.rb +4 -6
- data/lib/samagotchi/tools/builtin_calls.rb +14 -3
- data/lib/samagotchi/tools/builtins.rb +15 -3
- data/lib/samagotchi/tools/delegate_wait.rb +17 -5
- data/lib/samagotchi/tools/execute.rb +8 -8
- data/lib/samagotchi/tools/task_create.rb +3 -2
- data/lib/samagotchi/tools/task_runtime.rb +7 -2
- data/lib/samagotchi/turn_flow.rb +4 -4
- data/lib/samagotchi/turn_state.rb +126 -0
- data/lib/samagotchi/used_memories.rb +88 -0
- data/lib/samagotchi/version.rb +1 -1
- data/lib/samagotchi/vision_support.rb +4 -4
- data/lib/samagotchi/web/app.rb +17 -35
- data/lib/samagotchi/web/message_parts.rb +2 -1
- data/lib/samagotchi/web/server.rb +2 -1
- data/lib/samagotchi/web/session_hub.rb +0 -4
- data/lib/samagotchi/web/session_summary.rb +8 -16
- data/lib/samagotchi/worker.rb +1 -1
- metadata +14 -1
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: samagotchi
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.13.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dmitry Dedov
|
|
@@ -136,7 +136,9 @@ files:
|
|
|
136
136
|
- docs/plugins.md
|
|
137
137
|
- docs/releasing.md
|
|
138
138
|
- docs/sessions.md
|
|
139
|
+
- docs/sub-agent.md
|
|
139
140
|
- lib/samagotchi.rb
|
|
141
|
+
- lib/samagotchi/answer_command.rb
|
|
140
142
|
- lib/samagotchi/answer_display.rb
|
|
141
143
|
- lib/samagotchi/archive_store.rb
|
|
142
144
|
- lib/samagotchi/atomic_file.rb
|
|
@@ -188,7 +190,9 @@ files:
|
|
|
188
190
|
- lib/samagotchi/bundles/system/self_map.md
|
|
189
191
|
- lib/samagotchi/cancellation_controller.rb
|
|
190
192
|
- lib/samagotchi/cli/command.rb
|
|
193
|
+
- lib/samagotchi/cli/exit.rb
|
|
191
194
|
- lib/samagotchi/cli/flags.rb
|
|
195
|
+
- lib/samagotchi/cli/parent_wait.rb
|
|
192
196
|
- lib/samagotchi/client.rb
|
|
193
197
|
- lib/samagotchi/commands/registry.rb
|
|
194
198
|
- lib/samagotchi/config.rb
|
|
@@ -207,6 +211,7 @@ files:
|
|
|
207
211
|
- lib/samagotchi/desktop/macos/Images.swift
|
|
208
212
|
- lib/samagotchi/desktop/macos/Info.plist.erb
|
|
209
213
|
- lib/samagotchi/desktop/macos/Kitty.swift
|
|
214
|
+
- lib/samagotchi/desktop/macos/Models.swift
|
|
210
215
|
- lib/samagotchi/desktop/macos/Panel.swift
|
|
211
216
|
- lib/samagotchi/desktop/macos/ProcessRunner.swift
|
|
212
217
|
- lib/samagotchi/desktop_command.rb
|
|
@@ -223,6 +228,7 @@ files:
|
|
|
223
228
|
- lib/samagotchi/guardrails/gate.rb
|
|
224
229
|
- lib/samagotchi/guardrails/load_failures.rb
|
|
225
230
|
- lib/samagotchi/guardrails/model_size.rb
|
|
231
|
+
- lib/samagotchi/guardrails/parent_approvals.rb
|
|
226
232
|
- lib/samagotchi/guardrails/protected_paths.rb
|
|
227
233
|
- lib/samagotchi/guardrails/rules.rb
|
|
228
234
|
- lib/samagotchi/guardrails/scratch_writes.rb
|
|
@@ -252,6 +258,7 @@ files:
|
|
|
252
258
|
- lib/samagotchi/llm/native_backend.rb
|
|
253
259
|
- lib/samagotchi/llm/native_tool_normalizer.rb
|
|
254
260
|
- lib/samagotchi/llm/openai_chat.rb
|
|
261
|
+
- lib/samagotchi/llm/turn_settings.rb
|
|
255
262
|
- lib/samagotchi/llm/usage.rb
|
|
256
263
|
- lib/samagotchi/llm/utf8_scrub.rb
|
|
257
264
|
- lib/samagotchi/log.rb
|
|
@@ -275,13 +282,16 @@ files:
|
|
|
275
282
|
- lib/samagotchi/memory_bundle/system_bundle.rb
|
|
276
283
|
- lib/samagotchi/memory_bundle/uninstaller.rb
|
|
277
284
|
- lib/samagotchi/memory_paths.rb
|
|
285
|
+
- lib/samagotchi/model_catalog.rb
|
|
278
286
|
- lib/samagotchi/model_overlay.rb
|
|
279
287
|
- lib/samagotchi/model_profile.rb
|
|
280
288
|
- lib/samagotchi/model_ref.rb
|
|
289
|
+
- lib/samagotchi/models_command.rb
|
|
281
290
|
- lib/samagotchi/muted_memories.rb
|
|
282
291
|
- lib/samagotchi/note_command.rb
|
|
283
292
|
- lib/samagotchi/output_formatter.rb
|
|
284
293
|
- lib/samagotchi/owner_lock.rb
|
|
294
|
+
- lib/samagotchi/parent_report.rb
|
|
285
295
|
- lib/samagotchi/paths.rb
|
|
286
296
|
- lib/samagotchi/pending_input_queue.rb
|
|
287
297
|
- lib/samagotchi/plugin/api.rb
|
|
@@ -299,6 +309,7 @@ files:
|
|
|
299
309
|
- lib/samagotchi/question_desk.rb
|
|
300
310
|
- lib/samagotchi/recap_setup.rb
|
|
301
311
|
- lib/samagotchi/recap_store.rb
|
|
312
|
+
- lib/samagotchi/reminder_queue.rb
|
|
302
313
|
- lib/samagotchi/reminder_store.rb
|
|
303
314
|
- lib/samagotchi/reply_wait.rb
|
|
304
315
|
- lib/samagotchi/sampling_settings.rb
|
|
@@ -378,9 +389,11 @@ files:
|
|
|
378
389
|
- lib/samagotchi/tools/write.rb
|
|
379
390
|
- lib/samagotchi/turn_flow.rb
|
|
380
391
|
- lib/samagotchi/turn_note.rb
|
|
392
|
+
- lib/samagotchi/turn_state.rb
|
|
381
393
|
- lib/samagotchi/turn_tally.rb
|
|
382
394
|
- lib/samagotchi/update_command.rb
|
|
383
395
|
- lib/samagotchi/update_hint.rb
|
|
396
|
+
- lib/samagotchi/used_memories.rb
|
|
384
397
|
- lib/samagotchi/version.rb
|
|
385
398
|
- lib/samagotchi/vision_context.rb
|
|
386
399
|
- lib/samagotchi/vision_support.rb
|