samagotchi 0.11.0 → 0.12.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.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +29 -1
  3. data/bin/chi +5 -2
  4. data/docs/architecture.md +4 -4
  5. data/docs/cli.md +25 -1
  6. data/docs/desktop.md +24 -2
  7. data/lib/samagotchi/bridge.rb +4 -4
  8. data/lib/samagotchi/bundles/system/manifest.yml +1 -1
  9. data/lib/samagotchi/desktop/macos/App.swift +5 -1
  10. data/lib/samagotchi/desktop/macos/ChiRunner.swift +19 -0
  11. data/lib/samagotchi/desktop/macos/Models.swift +238 -0
  12. data/lib/samagotchi/desktop/macos/Panel.swift +301 -42
  13. data/lib/samagotchi/engine.rb +445 -482
  14. data/lib/samagotchi/host_registry.rb +26 -2
  15. data/lib/samagotchi/idle_reminders.rb +13 -36
  16. data/lib/samagotchi/kernel_loop.rb +82 -120
  17. data/lib/samagotchi/llm/chat_loop.rb +17 -38
  18. data/lib/samagotchi/llm/model_result.rb +14 -20
  19. data/lib/samagotchi/llm/native_backend.rb +3 -21
  20. data/lib/samagotchi/llm/openai_chat.rb +1 -1
  21. data/lib/samagotchi/llm/turn_settings.rb +19 -0
  22. data/lib/samagotchi/llm/usage.rb +2 -57
  23. data/lib/samagotchi/memory_bundle/installer.rb +1 -1
  24. data/lib/samagotchi/model_catalog.rb +101 -0
  25. data/lib/samagotchi/model_profile.rb +1 -1
  26. data/lib/samagotchi/models_command.rb +112 -0
  27. data/lib/samagotchi/reminder_queue.rb +73 -0
  28. data/lib/samagotchi/reminder_store.rb +3 -3
  29. data/lib/samagotchi/self_report.rb +8 -1
  30. data/lib/samagotchi/send_command.rb +1 -1
  31. data/lib/samagotchi/session_commands.rb +5 -5
  32. data/lib/samagotchi/session_manager.rb +2 -6
  33. data/lib/samagotchi/terminal_ui.rb +8 -28
  34. data/lib/samagotchi/thinking.rb +1 -1
  35. data/lib/samagotchi/tool_runner.rb +4 -6
  36. data/lib/samagotchi/tools/builtins.rb +1 -1
  37. data/lib/samagotchi/tools/delegate_wait.rb +1 -1
  38. data/lib/samagotchi/turn_flow.rb +4 -4
  39. data/lib/samagotchi/turn_state.rb +126 -0
  40. data/lib/samagotchi/used_memories.rb +88 -0
  41. data/lib/samagotchi/version.rb +1 -1
  42. data/lib/samagotchi/vision_support.rb +4 -4
  43. data/lib/samagotchi/web/app.rb +14 -33
  44. data/lib/samagotchi/web/session_hub.rb +0 -4
  45. data/lib/samagotchi/web/session_summary.rb +6 -6
  46. data/lib/samagotchi/worker.rb +1 -1
  47. metadata +8 -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.11.0
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Dedov
@@ -207,6 +207,7 @@ files:
207
207
  - lib/samagotchi/desktop/macos/Images.swift
208
208
  - lib/samagotchi/desktop/macos/Info.plist.erb
209
209
  - lib/samagotchi/desktop/macos/Kitty.swift
210
+ - lib/samagotchi/desktop/macos/Models.swift
210
211
  - lib/samagotchi/desktop/macos/Panel.swift
211
212
  - lib/samagotchi/desktop/macos/ProcessRunner.swift
212
213
  - lib/samagotchi/desktop_command.rb
@@ -252,6 +253,7 @@ files:
252
253
  - lib/samagotchi/llm/native_backend.rb
253
254
  - lib/samagotchi/llm/native_tool_normalizer.rb
254
255
  - lib/samagotchi/llm/openai_chat.rb
256
+ - lib/samagotchi/llm/turn_settings.rb
255
257
  - lib/samagotchi/llm/usage.rb
256
258
  - lib/samagotchi/llm/utf8_scrub.rb
257
259
  - lib/samagotchi/log.rb
@@ -275,9 +277,11 @@ files:
275
277
  - lib/samagotchi/memory_bundle/system_bundle.rb
276
278
  - lib/samagotchi/memory_bundle/uninstaller.rb
277
279
  - lib/samagotchi/memory_paths.rb
280
+ - lib/samagotchi/model_catalog.rb
278
281
  - lib/samagotchi/model_overlay.rb
279
282
  - lib/samagotchi/model_profile.rb
280
283
  - lib/samagotchi/model_ref.rb
284
+ - lib/samagotchi/models_command.rb
281
285
  - lib/samagotchi/muted_memories.rb
282
286
  - lib/samagotchi/note_command.rb
283
287
  - lib/samagotchi/output_formatter.rb
@@ -299,6 +303,7 @@ files:
299
303
  - lib/samagotchi/question_desk.rb
300
304
  - lib/samagotchi/recap_setup.rb
301
305
  - lib/samagotchi/recap_store.rb
306
+ - lib/samagotchi/reminder_queue.rb
302
307
  - lib/samagotchi/reminder_store.rb
303
308
  - lib/samagotchi/reply_wait.rb
304
309
  - lib/samagotchi/sampling_settings.rb
@@ -378,9 +383,11 @@ files:
378
383
  - lib/samagotchi/tools/write.rb
379
384
  - lib/samagotchi/turn_flow.rb
380
385
  - lib/samagotchi/turn_note.rb
386
+ - lib/samagotchi/turn_state.rb
381
387
  - lib/samagotchi/turn_tally.rb
382
388
  - lib/samagotchi/update_command.rb
383
389
  - lib/samagotchi/update_hint.rb
390
+ - lib/samagotchi/used_memories.rb
384
391
  - lib/samagotchi/version.rb
385
392
  - lib/samagotchi/vision_context.rb
386
393
  - lib/samagotchi/vision_support.rb