samagotchi 0.149.0 → 0.150.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 (90) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +48 -1
  3. data/README.md +4 -2
  4. data/docs/architecture.md +2 -2
  5. data/docs/cli.md +59 -24
  6. data/docs/configuration.md +5 -5
  7. data/docs/internals/background-tasks.md +1 -1
  8. data/docs/internals/bridge.md +8 -0
  9. data/docs/internals/bundles.md +42 -14
  10. data/docs/internals/objectives.md +7 -2
  11. data/docs/internals/web-frontend.md +1 -1
  12. data/docs/internals/web-push.md +2 -2
  13. data/docs/internals/working-set.md +5 -2
  14. data/docs/memory.md +47 -9
  15. data/docs/plugins.md +7 -1
  16. data/docs/sessions.md +5 -4
  17. data/docs/testing.md +5 -0
  18. data/lib/samagotchi/atomic_file.rb +3 -0
  19. data/lib/samagotchi/bootstrap_command.rb +5 -2
  20. data/lib/samagotchi/bridge/card_store.rb +52 -7
  21. data/lib/samagotchi/bridge.rb +1 -1
  22. data/lib/samagotchi/bundle_command.rb +91 -68
  23. data/lib/samagotchi/bundler_env.rb +24 -0
  24. data/lib/samagotchi/bundles/dev/manifest.yml +2 -2
  25. data/lib/samagotchi/bundles/github-pr/manifest.yml +3 -3
  26. data/lib/samagotchi/bundles/github-pr/plugin.rb +2 -1
  27. data/lib/samagotchi/bundles/known-names/hooks/known_names.rb +3 -1
  28. data/lib/samagotchi/bundles/known-names/manifest.yml +3 -2
  29. data/lib/samagotchi/bundles/source-links/hooks/source_links.rb +2 -2
  30. data/lib/samagotchi/bundles/source-links/manifest.yml +3 -3
  31. data/lib/samagotchi/bundles/system/manifest.yml +3 -3
  32. data/lib/samagotchi/bundles/system/memory_guide.md +5 -5
  33. data/lib/samagotchi/bundles/system/self_map.md +1 -1
  34. data/lib/samagotchi/chi_home.rb +4 -2
  35. data/lib/samagotchi/chi_shim.rb +2 -1
  36. data/lib/samagotchi/child_env.rb +10 -3
  37. data/lib/samagotchi/engine.rb +1 -1
  38. data/lib/samagotchi/git_env.rb +43 -0
  39. data/lib/samagotchi/guardrails/context.rb +2 -0
  40. data/lib/samagotchi/guardrails/targets.rb +4 -1
  41. data/lib/samagotchi/memory_bundle/asset_installer.rb +16 -2
  42. data/lib/samagotchi/memory_bundle/file_standing.rb +167 -0
  43. data/lib/samagotchi/memory_bundle/installed_bundle.rb +62 -1
  44. data/lib/samagotchi/memory_bundle/installer.rb +161 -52
  45. data/lib/samagotchi/memory_bundle/listing.rb +4 -3
  46. data/lib/samagotchi/memory_bundle/merger.rb +209 -8
  47. data/lib/samagotchi/memory_bundle/placeholder.rb +2 -1
  48. data/lib/samagotchi/memory_bundle/profile.rb +7 -3
  49. data/lib/samagotchi/memory_bundle/provenance.rb +178 -20
  50. data/lib/samagotchi/memory_bundle/remerge.rb +167 -0
  51. data/lib/samagotchi/memory_bundle/shipped_history.rb +79 -0
  52. data/lib/samagotchi/memory_bundle/shipped_update.rb +89 -24
  53. data/lib/samagotchi/memory_bundle/source.rb +3 -3
  54. data/lib/samagotchi/memory_bundle/status.rb +21 -3
  55. data/lib/samagotchi/memory_bundle/system_bundle.rb +98 -33
  56. data/lib/samagotchi/memory_bundle/text_merge.rb +399 -0
  57. data/lib/samagotchi/memory_bundle/trash.rb +58 -2
  58. data/lib/samagotchi/memory_bundle/uninstaller.rb +26 -6
  59. data/lib/samagotchi/objectives_check.rb +37 -7
  60. data/lib/samagotchi/project_env.rb +3 -2
  61. data/lib/samagotchi/self_report.rb +2 -0
  62. data/lib/samagotchi/testing/boundary.rb +1 -0
  63. data/lib/samagotchi/testing/minitest.rb +3 -0
  64. data/lib/samagotchi/testing/rspec.rb +3 -0
  65. data/lib/samagotchi/testing/sandbox.rb +3 -1
  66. data/lib/samagotchi/tools/delegate.rb +2 -1
  67. data/lib/samagotchi/tools/task_runtime.rb +13 -10
  68. data/lib/samagotchi/turn_flow.rb +3 -1
  69. data/lib/samagotchi/update_command.rb +76 -28
  70. data/lib/samagotchi/update_hint.rb +4 -1
  71. data/lib/samagotchi/version.rb +1 -1
  72. data/lib/samagotchi/web/auto_update.rb +8 -8
  73. data/lib/samagotchi/web/auto_update_record.rb +6 -4
  74. data/lib/samagotchi/web/participant_view.rb +1 -1
  75. data/lib/samagotchi/web/public/app.js +5 -3
  76. data/lib/samagotchi/web/public/block_open.js +13 -0
  77. data/lib/samagotchi/web/public/bubbles.js +4 -2
  78. data/lib/samagotchi/web/public/cards_place.js +10 -5
  79. data/lib/samagotchi/web/public/details_motion.js +2 -1
  80. data/lib/samagotchi/web/public/index.html +18 -14
  81. data/lib/samagotchi/web/public/stage_model.js +5 -6
  82. data/lib/samagotchi/web/public/stage_view.js +8 -7
  83. data/lib/samagotchi/web/public/turn_block.js +34 -19
  84. data/lib/samagotchi/web/public/turn_model.js +1 -1
  85. data/lib/samagotchi/web/public/update_sheet.js +8 -3
  86. data/lib/samagotchi/web/public/working_set_view.js +10 -7
  87. data/lib/samagotchi/web/push/notifier.rb +7 -9
  88. data/lib/samagotchi/web/session_hub.rb +2 -1
  89. data/lib/samagotchi/web/update_ops.rb +2 -1
  90. metadata +8 -1
@@ -175,7 +175,8 @@ module Samagotchi
175
175
  def perform_install(version, auto)
176
176
  argv = update_argv(version)
177
177
  said = nil
178
- output, success = @runner.call(argv, env: ChildEnv.unbundled,
178
+ env = auto ? ChildEnv.unbundled.merge(ChildEnv::UNATTENDED_UPDATE => "1") : ChildEnv.unbundled
179
+ output, success = @runner.call(argv, env: env,
179
180
  progress: lambda { |line|
180
181
  said = line unless line.strip.empty?
181
182
  @hub.publish_update(state: "running", rows: [], progress: line,
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.149.0
4
+ version: 0.150.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Dedov
@@ -226,6 +226,7 @@ files:
226
226
  - lib/samagotchi/bundle_command/try/trace.rb
227
227
  - lib/samagotchi/bundle_needs.rb
228
228
  - lib/samagotchi/bundle_settings_check.rb
229
+ - lib/samagotchi/bundler_env.rb
229
230
  - lib/samagotchi/bundles/agents-md/manifest.yml
230
231
  - lib/samagotchi/bundles/agents-md/plugin.rb
231
232
  - lib/samagotchi/bundles/btw/manifest.yml
@@ -359,6 +360,7 @@ files:
359
360
  - lib/samagotchi/file_ref.rb
360
361
  - lib/samagotchi/gem_update.rb
361
362
  - lib/samagotchi/generation_phase.rb
363
+ - lib/samagotchi/git_env.rb
362
364
  - lib/samagotchi/git_head.rb
363
365
  - lib/samagotchi/guardrail_wiring.rb
364
366
  - lib/samagotchi/guardrails.rb
@@ -467,6 +469,7 @@ files:
467
469
  - lib/samagotchi/memory_bundle/builder.rb
468
470
  - lib/samagotchi/memory_bundle/bundle_hook.rb
469
471
  - lib/samagotchi/memory_bundle/entry_size.rb
472
+ - lib/samagotchi/memory_bundle/file_standing.rb
470
473
  - lib/samagotchi/memory_bundle/index_size.rb
471
474
  - lib/samagotchi/memory_bundle/index_sync.rb
472
475
  - lib/samagotchi/memory_bundle/index_updater.rb
@@ -481,11 +484,14 @@ files:
481
484
  - lib/samagotchi/memory_bundle/plugin_ref.rb
482
485
  - lib/samagotchi/memory_bundle/profile.rb
483
486
  - lib/samagotchi/memory_bundle/provenance.rb
487
+ - lib/samagotchi/memory_bundle/remerge.rb
484
488
  - lib/samagotchi/memory_bundle/shas.rb
489
+ - lib/samagotchi/memory_bundle/shipped_history.rb
485
490
  - lib/samagotchi/memory_bundle/shipped_update.rb
486
491
  - lib/samagotchi/memory_bundle/source.rb
487
492
  - lib/samagotchi/memory_bundle/status.rb
488
493
  - lib/samagotchi/memory_bundle/system_bundle.rb
494
+ - lib/samagotchi/memory_bundle/text_merge.rb
489
495
  - lib/samagotchi/memory_bundle/trash.rb
490
496
  - lib/samagotchi/memory_bundle/uninstaller.rb
491
497
  - lib/samagotchi/memory_command.rb
@@ -822,6 +828,7 @@ files:
822
828
  - lib/samagotchi/web/public/app.js
823
829
  - lib/samagotchi/web/public/apple-touch-icon.png
824
830
  - lib/samagotchi/web/public/auth_lost.js
831
+ - lib/samagotchi/web/public/block_open.js
825
832
  - lib/samagotchi/web/public/bubbles.js
826
833
  - lib/samagotchi/web/public/card.js
827
834
  - lib/samagotchi/web/public/cards_place.js