samagotchi 0.195.0 → 0.196.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 (97) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +41 -1
  3. data/docs/architecture.md +2 -1
  4. data/docs/bundle-authoring.md +23 -23
  5. data/docs/bundles.md +11 -3
  6. data/docs/cli.md +4 -0
  7. data/docs/context.md +13 -3
  8. data/docs/guardrails.md +6 -4
  9. data/docs/hooks.md +3 -1
  10. data/docs/internals/block-renderers.md +4 -1
  11. data/docs/internals/engine.md +2 -1
  12. data/docs/internals/knowledge.md +15 -5
  13. data/docs/internals/participants.md +15 -3
  14. data/docs/internals/peers.md +12 -8
  15. data/docs/internals/session-lifecycle.md +26 -12
  16. data/docs/internals/web-frontend.md +64 -27
  17. data/docs/pages.md +1 -1
  18. data/docs/peers.md +1 -1
  19. data/docs/plugins.md +73 -3
  20. data/docs/sessions.md +1 -1
  21. data/docs/system-one.md +3 -1
  22. data/lib/samagotchi/bundle_manifest.rb +30 -5
  23. data/lib/samagotchi/bundles/core/manifest.yml +2 -2
  24. data/lib/samagotchi/bundles/cost-cap/manifest.yml +4 -4
  25. data/lib/samagotchi/bundles/cost-cap/plugin.rb +54 -3
  26. data/lib/samagotchi/bundles/dev/manifest.yml +2 -2
  27. data/lib/samagotchi/bundles/github-pr/manifest.yml +4 -2
  28. data/lib/samagotchi/bundles/knowledge/chi_adapters.rb +43 -25
  29. data/lib/samagotchi/bundles/knowledge/manifest.yml +6 -4
  30. data/lib/samagotchi/bundles/knowledge/plugin.rb +37 -18
  31. data/lib/samagotchi/bundles/system/manifest.yml +1 -1
  32. data/lib/samagotchi/context_change.rb +44 -0
  33. data/lib/samagotchi/context_note.rb +1 -1
  34. data/lib/samagotchi/context_providers.rb +14 -0
  35. data/lib/samagotchi/context_sources.rb +3 -25
  36. data/lib/samagotchi/engine/plugins.rb +21 -0
  37. data/lib/samagotchi/events.rb +1 -0
  38. data/lib/samagotchi/guardrails/pair_boundary.rb +12 -4
  39. data/lib/samagotchi/guardrails/targets.rb +24 -2
  40. data/lib/samagotchi/installed_bundles/manifest.rb +7 -1
  41. data/lib/samagotchi/memory_bundle/builder.rb +2 -1
  42. data/lib/samagotchi/memory_bundle/installed_copy.rb +2 -1
  43. data/lib/samagotchi/participants.rb +17 -6
  44. data/lib/samagotchi/peer_exchanges.rb +1 -2
  45. data/lib/samagotchi/peer_note.rb +38 -5
  46. data/lib/samagotchi/peer_presence.rb +20 -7
  47. data/lib/samagotchi/plugin/api.rb +5 -1
  48. data/lib/samagotchi/plugin/chips.rb +125 -0
  49. data/lib/samagotchi/plugin/context.rb +19 -1
  50. data/lib/samagotchi/plugin/peer_pairing.rb +2 -2
  51. data/lib/samagotchi/plugin/peer_start.rb +1 -1
  52. data/lib/samagotchi/plugin/peers.rb +5 -2
  53. data/lib/samagotchi/plugin/tool_spec.rb +19 -9
  54. data/lib/samagotchi/schedules.rb +8 -2
  55. data/lib/samagotchi/session_access/local.rb +34 -33
  56. data/lib/samagotchi/session_chain/sharing.rb +79 -0
  57. data/lib/samagotchi/session_chain/successor.rb +4 -2
  58. data/lib/samagotchi/session_chips.rb +133 -0
  59. data/lib/samagotchi/session_inbox_delivery.rb +11 -11
  60. data/lib/samagotchi/session_manager/emptiness.rb +4 -1
  61. data/lib/samagotchi/session_observer.rb +1 -1
  62. data/lib/samagotchi/session_stats.rb +5 -4
  63. data/lib/samagotchi/session_stores.rb +3 -0
  64. data/lib/samagotchi/speaker.rb +228 -0
  65. data/lib/samagotchi/steer.rb +36 -132
  66. data/lib/samagotchi/testing/bundle.rb +5 -0
  67. data/lib/samagotchi/testing/host.rb +1 -0
  68. data/lib/samagotchi/testing/recorder.rb +10 -0
  69. data/lib/samagotchi/tools/registry.rb +8 -3
  70. data/lib/samagotchi/turn_excerpts.rb +8 -4
  71. data/lib/samagotchi/version.rb +1 -1
  72. data/lib/samagotchi/web/app.rb +21 -10
  73. data/lib/samagotchi/web/participant_view.rb +1 -1
  74. data/lib/samagotchi/web/peer_routes.rb +5 -2
  75. data/lib/samagotchi/web/plugin_chip_rows.rb +39 -0
  76. data/lib/samagotchi/web/public/agent_rows.js +1 -0
  77. data/lib/samagotchi/web/public/app.js +17 -25
  78. data/lib/samagotchi/web/public/chains.js +0 -26
  79. data/lib/samagotchi/web/public/command_list.js +2 -3
  80. data/lib/samagotchi/web/public/composer.js +2 -3
  81. data/lib/samagotchi/web/public/composer_mount.js +3 -6
  82. data/lib/samagotchi/web/public/context_chips.js +240 -93
  83. data/lib/samagotchi/web/public/context_groups.js +84 -0
  84. data/lib/samagotchi/web/public/draft_follow.js +33 -0
  85. data/lib/samagotchi/web/public/drafts.js +26 -22
  86. data/lib/samagotchi/web/public/index.html +32 -0
  87. data/lib/samagotchi/web/public/peer_chip_kind.js +49 -0
  88. data/lib/samagotchi/web/public/peer_note.js +2 -2
  89. data/lib/samagotchi/web/public/peer_row.js +10 -5
  90. data/lib/samagotchi/web/public/peer_wait.js +4 -2
  91. data/lib/samagotchi/web/public/plugin_chip.js +55 -0
  92. data/lib/samagotchi/web/public/plugin_chip_kind.js +48 -0
  93. data/lib/samagotchi/web/public/send_turn.js +8 -21
  94. data/lib/samagotchi/web/public/session_actions.js +10 -23
  95. data/lib/samagotchi/web/public/session_view.js +7 -3
  96. data/lib/samagotchi/web/public/stream_handlers.js +2 -0
  97. metadata +12 -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.195.0
4
+ version: 0.196.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Dedov
@@ -369,6 +369,7 @@ files:
369
369
  - lib/samagotchi/context_candidate_choice.rb
370
370
  - lib/samagotchi/context_candidates.rb
371
371
  - lib/samagotchi/context_candidates_log.rb
372
+ - lib/samagotchi/context_change.rb
372
373
  - lib/samagotchi/context_command.rb
373
374
  - lib/samagotchi/context_fetch.rb
374
375
  - lib/samagotchi/context_judge.rb
@@ -675,6 +676,7 @@ files:
675
676
  - lib/samagotchi/plugin/api.rb
676
677
  - lib/samagotchi/plugin/attached_context.rb
677
678
  - lib/samagotchi/plugin/card.rb
679
+ - lib/samagotchi/plugin/chips.rb
678
680
  - lib/samagotchi/plugin/context.rb
679
681
  - lib/samagotchi/plugin/http.rb
680
682
  - lib/samagotchi/plugin/http_errors.rb
@@ -791,7 +793,9 @@ files:
791
793
  - lib/samagotchi/session_chain/delete.rb
792
794
  - lib/samagotchi/session_chain/delete_preview.rb
793
795
  - lib/samagotchi/session_chain/links.rb
796
+ - lib/samagotchi/session_chain/sharing.rb
794
797
  - lib/samagotchi/session_chain/successor.rb
798
+ - lib/samagotchi/session_chips.rb
795
799
  - lib/samagotchi/session_command_catalog.rb
796
800
  - lib/samagotchi/session_commands.rb
797
801
  - lib/samagotchi/session_config.rb
@@ -841,6 +845,7 @@ files:
841
845
  - lib/samagotchi/side_judgments.rb
842
846
  - lib/samagotchi/side_usage.rb
843
847
  - lib/samagotchi/spawn_env.rb
848
+ - lib/samagotchi/speaker.rb
844
849
  - lib/samagotchi/starting_marker.rb
845
850
  - lib/samagotchi/state_format.rb
846
851
  - lib/samagotchi/steer.rb
@@ -1055,6 +1060,7 @@ files:
1055
1060
  - lib/samagotchi/web/participant_view.rb
1056
1061
  - lib/samagotchi/web/participants_admin.rb
1057
1062
  - lib/samagotchi/web/peer_routes.rb
1063
+ - lib/samagotchi/web/plugin_chip_rows.rb
1058
1064
  - lib/samagotchi/web/principal.rb
1059
1065
  - lib/samagotchi/web/project_list.rb
1060
1066
  - lib/samagotchi/web/proxy_gate.rb
@@ -1105,6 +1111,7 @@ files:
1105
1111
  - lib/samagotchi/web/public/composer_mount.js
1106
1112
  - lib/samagotchi/web/public/composer_size.js
1107
1113
  - lib/samagotchi/web/public/context_chips.js
1114
+ - lib/samagotchi/web/public/context_groups.js
1108
1115
  - lib/samagotchi/web/public/copy.js
1109
1116
  - lib/samagotchi/web/public/ctx.js
1110
1117
  - lib/samagotchi/web/public/ctx_tokens.js
@@ -1115,6 +1122,7 @@ files:
1115
1122
  - lib/samagotchi/web/public/diagram_wiring.js
1116
1123
  - lib/samagotchi/web/public/diff_view.js
1117
1124
  - lib/samagotchi/web/public/dock_reserve.js
1125
+ - lib/samagotchi/web/public/draft_follow.js
1118
1126
  - lib/samagotchi/web/public/draft_keys.js
1119
1127
  - lib/samagotchi/web/public/drafts.js
1120
1128
  - lib/samagotchi/web/public/families_view.js
@@ -1184,6 +1192,7 @@ files:
1184
1192
  - lib/samagotchi/web/public/participant_revise.js
1185
1193
  - lib/samagotchi/web/public/participants_panel.js
1186
1194
  - lib/samagotchi/web/public/peer_chip.js
1195
+ - lib/samagotchi/web/public/peer_chip_kind.js
1187
1196
  - lib/samagotchi/web/public/peer_data.js
1188
1197
  - lib/samagotchi/web/public/peer_exchange.js
1189
1198
  - lib/samagotchi/web/public/peer_links.js
@@ -1195,6 +1204,8 @@ files:
1195
1204
  - lib/samagotchi/web/public/picture_regions.js
1196
1205
  - lib/samagotchi/web/public/picture_viewer.js
1197
1206
  - lib/samagotchi/web/public/plain_line.js
1207
+ - lib/samagotchi/web/public/plugin_chip.js
1208
+ - lib/samagotchi/web/public/plugin_chip_kind.js
1198
1209
  - lib/samagotchi/web/public/popover_modal.js
1199
1210
  - lib/samagotchi/web/public/project_picker.js
1200
1211
  - lib/samagotchi/web/public/prompt_history.js