samagotchi 0.17.0 → 0.18.1
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 +98 -1
- data/bin/chi +5 -2
- data/docs/architecture.md +25 -2
- data/docs/cli.md +41 -9
- data/docs/configuration.md +4 -2
- data/docs/guardrails.md +59 -8
- data/docs/hooks.md +4 -1
- data/docs/memory.md +5 -3
- data/docs/plugins.md +3 -2
- data/docs/sessions.md +6 -5
- data/docs/sub-agent.md +42 -4
- data/lib/samagotchi/answer_command.rb +23 -2
- data/lib/samagotchi/answer_tail.rb +52 -0
- data/lib/samagotchi/bridge.rb +49 -8
- data/lib/samagotchi/bridge_client.rb +18 -3
- data/lib/samagotchi/bundle_command.rb +108 -2
- data/lib/samagotchi/bundles/guardrails/guardrails/rules.yml +18 -3
- data/lib/samagotchi/bundles/guardrails/manifest.yml +4 -4
- data/lib/samagotchi/bundles/system/config_modification_protocol.md +1 -1
- data/lib/samagotchi/bundles/system/manifest.yml +2 -2
- data/lib/samagotchi/client.rb +58 -10
- data/lib/samagotchi/commands/registry.rb +28 -0
- data/lib/samagotchi/config.rb +7 -1
- data/lib/samagotchi/continue_offer.rb +177 -0
- data/lib/samagotchi/engine.rb +68 -22
- data/lib/samagotchi/guardrail_wiring.rb +56 -3
- data/lib/samagotchi/guardrails/outside.rb +46 -0
- data/lib/samagotchi/guardrails/parent_approvals.rb +2 -0
- data/lib/samagotchi/guardrails/parent_continue.rb +43 -0
- data/lib/samagotchi/guardrails/rules.rb +17 -5
- data/lib/samagotchi/guardrails/shell_git_dirs.rb +267 -0
- data/lib/samagotchi/guardrails/targets.rb +30 -13
- data/lib/samagotchi/guardrails.rb +2 -0
- data/lib/samagotchi/iteration_limit.rb +38 -0
- data/lib/samagotchi/kernel_loop.rb +2 -1
- data/lib/samagotchi/llm/backend.rb +2 -1
- data/lib/samagotchi/llm/chat_loop.rb +2 -1
- data/lib/samagotchi/llm/http.rb +9 -3
- data/lib/samagotchi/llm/native_backend.rb +2 -1
- data/lib/samagotchi/memory_bundle/trash.rb +81 -2
- data/lib/samagotchi/model_profile.rb +2 -2
- data/lib/samagotchi/output_formatter.rb +9 -4
- data/lib/samagotchi/parent_report.rb +39 -9
- data/lib/samagotchi/question_desk.rb +205 -46
- data/lib/samagotchi/reply_wait.rb +10 -4
- data/lib/samagotchi/send_command.rb +2 -1
- data/lib/samagotchi/served_model.rb +14 -4
- data/lib/samagotchi/session.rb +3 -2
- data/lib/samagotchi/session_commands.rb +3 -2
- data/lib/samagotchi/session_manager.rb +4 -1
- data/lib/samagotchi/sessions_command.rb +3 -2
- data/lib/samagotchi/system_prompt.rb +1 -1
- data/lib/samagotchi/terminal_ui/attached_loop.rb +33 -8
- data/lib/samagotchi/terminal_ui/one_shot_sink.rb +63 -0
- data/lib/samagotchi/terminal_ui/question_prompt.rb +34 -2
- data/lib/samagotchi/terminal_ui.rb +75 -17
- data/lib/samagotchi/tool_declarations.rb +4 -4
- data/lib/samagotchi/tools/delegate_wait.rb +14 -5
- data/lib/samagotchi/tools/edit.rb +6 -1
- data/lib/samagotchi/tools/execute.rb +102 -23
- data/lib/samagotchi/tools/read.rb +2 -1
- data/lib/samagotchi/turn_flow.rb +8 -7
- data/lib/samagotchi/turn_note.rb +7 -0
- data/lib/samagotchi/version.rb +1 -1
- data/lib/samagotchi/web/app.rb +187 -42
- data/lib/samagotchi/web/public/app.js +122 -25
- data/lib/samagotchi/web/public/data.js +12 -13
- data/lib/samagotchi/web/public/index.html +6 -1
- data/lib/samagotchi/web/public/notify.js +5 -2
- data/lib/samagotchi/web/public/question_card.js +28 -1
- data/lib/samagotchi/web/public/question_cards.js +74 -3
- data/lib/samagotchi/web/public/sessions_list.js +1 -0
- data/lib/samagotchi/web/public/timing.js +41 -0
- data/lib/samagotchi/web/public/turn_events.js +61 -0
- data/lib/samagotchi/web/public/update_notice.js +15 -0
- data/lib/samagotchi/worker.rb +30 -58
- data/lib/samagotchi/worker_sidecar.rb +6 -3
- metadata +9 -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.18.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dmitry Dedov
|
|
@@ -141,6 +141,7 @@ files:
|
|
|
141
141
|
- lib/samagotchi.rb
|
|
142
142
|
- lib/samagotchi/answer_command.rb
|
|
143
143
|
- lib/samagotchi/answer_display.rb
|
|
144
|
+
- lib/samagotchi/answer_tail.rb
|
|
144
145
|
- lib/samagotchi/archive_store.rb
|
|
145
146
|
- lib/samagotchi/atomic_file.rb
|
|
146
147
|
- lib/samagotchi/bootstrap/bundles.rb
|
|
@@ -203,6 +204,7 @@ files:
|
|
|
203
204
|
- lib/samagotchi/context_status.rb
|
|
204
205
|
- lib/samagotchi/context_usage.rb
|
|
205
206
|
- lib/samagotchi/context_window.rb
|
|
207
|
+
- lib/samagotchi/continue_offer.rb
|
|
206
208
|
- lib/samagotchi/debug_log.rb
|
|
207
209
|
- lib/samagotchi/desktop.rb
|
|
208
210
|
- lib/samagotchi/desktop/macos.rb
|
|
@@ -229,10 +231,13 @@ files:
|
|
|
229
231
|
- lib/samagotchi/guardrails/gate.rb
|
|
230
232
|
- lib/samagotchi/guardrails/load_failures.rb
|
|
231
233
|
- lib/samagotchi/guardrails/model_size.rb
|
|
234
|
+
- lib/samagotchi/guardrails/outside.rb
|
|
232
235
|
- lib/samagotchi/guardrails/parent_approvals.rb
|
|
236
|
+
- lib/samagotchi/guardrails/parent_continue.rb
|
|
233
237
|
- lib/samagotchi/guardrails/protected_paths.rb
|
|
234
238
|
- lib/samagotchi/guardrails/rules.rb
|
|
235
239
|
- lib/samagotchi/guardrails/scratch_writes.rb
|
|
240
|
+
- lib/samagotchi/guardrails/shell_git_dirs.rb
|
|
236
241
|
- lib/samagotchi/guardrails/targets.rb
|
|
237
242
|
- lib/samagotchi/guardrails/verdict.rb
|
|
238
243
|
- lib/samagotchi/hooks.rb
|
|
@@ -247,6 +252,7 @@ files:
|
|
|
247
252
|
- lib/samagotchi/idle_scheduler.rb
|
|
248
253
|
- lib/samagotchi/image_store.rb
|
|
249
254
|
- lib/samagotchi/installed_gem.rb
|
|
255
|
+
- lib/samagotchi/iteration_limit.rb
|
|
250
256
|
- lib/samagotchi/kernel_loop.rb
|
|
251
257
|
- lib/samagotchi/launch_mode.rb
|
|
252
258
|
- lib/samagotchi/live_versions.rb
|
|
@@ -346,6 +352,7 @@ files:
|
|
|
346
352
|
- lib/samagotchi/terminal_ui/input_support.rb
|
|
347
353
|
- lib/samagotchi/terminal_ui/line_reader.rb
|
|
348
354
|
- lib/samagotchi/terminal_ui/live_region.rb
|
|
355
|
+
- lib/samagotchi/terminal_ui/one_shot_sink.rb
|
|
349
356
|
- lib/samagotchi/terminal_ui/plain_surface.rb
|
|
350
357
|
- lib/samagotchi/terminal_ui/question_prompt.rb
|
|
351
358
|
- lib/samagotchi/terminal_ui/question_slot.rb
|
|
@@ -452,6 +459,7 @@ files:
|
|
|
452
459
|
- lib/samagotchi/web/public/turn_events.js
|
|
453
460
|
- lib/samagotchi/web/public/turn_model.js
|
|
454
461
|
- lib/samagotchi/web/public/turn_view.js
|
|
462
|
+
- lib/samagotchi/web/public/update_notice.js
|
|
455
463
|
- lib/samagotchi/web/qr.rb
|
|
456
464
|
- lib/samagotchi/web/server.rb
|
|
457
465
|
- lib/samagotchi/web/session_hub.rb
|