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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +48 -1
- data/README.md +4 -2
- data/docs/architecture.md +2 -2
- data/docs/cli.md +59 -24
- data/docs/configuration.md +5 -5
- data/docs/internals/background-tasks.md +1 -1
- data/docs/internals/bridge.md +8 -0
- data/docs/internals/bundles.md +42 -14
- data/docs/internals/objectives.md +7 -2
- data/docs/internals/web-frontend.md +1 -1
- data/docs/internals/web-push.md +2 -2
- data/docs/internals/working-set.md +5 -2
- data/docs/memory.md +47 -9
- data/docs/plugins.md +7 -1
- data/docs/sessions.md +5 -4
- data/docs/testing.md +5 -0
- data/lib/samagotchi/atomic_file.rb +3 -0
- data/lib/samagotchi/bootstrap_command.rb +5 -2
- data/lib/samagotchi/bridge/card_store.rb +52 -7
- data/lib/samagotchi/bridge.rb +1 -1
- data/lib/samagotchi/bundle_command.rb +91 -68
- data/lib/samagotchi/bundler_env.rb +24 -0
- data/lib/samagotchi/bundles/dev/manifest.yml +2 -2
- data/lib/samagotchi/bundles/github-pr/manifest.yml +3 -3
- data/lib/samagotchi/bundles/github-pr/plugin.rb +2 -1
- data/lib/samagotchi/bundles/known-names/hooks/known_names.rb +3 -1
- data/lib/samagotchi/bundles/known-names/manifest.yml +3 -2
- data/lib/samagotchi/bundles/source-links/hooks/source_links.rb +2 -2
- data/lib/samagotchi/bundles/source-links/manifest.yml +3 -3
- data/lib/samagotchi/bundles/system/manifest.yml +3 -3
- data/lib/samagotchi/bundles/system/memory_guide.md +5 -5
- data/lib/samagotchi/bundles/system/self_map.md +1 -1
- data/lib/samagotchi/chi_home.rb +4 -2
- data/lib/samagotchi/chi_shim.rb +2 -1
- data/lib/samagotchi/child_env.rb +10 -3
- data/lib/samagotchi/engine.rb +1 -1
- data/lib/samagotchi/git_env.rb +43 -0
- data/lib/samagotchi/guardrails/context.rb +2 -0
- data/lib/samagotchi/guardrails/targets.rb +4 -1
- data/lib/samagotchi/memory_bundle/asset_installer.rb +16 -2
- data/lib/samagotchi/memory_bundle/file_standing.rb +167 -0
- data/lib/samagotchi/memory_bundle/installed_bundle.rb +62 -1
- data/lib/samagotchi/memory_bundle/installer.rb +161 -52
- data/lib/samagotchi/memory_bundle/listing.rb +4 -3
- data/lib/samagotchi/memory_bundle/merger.rb +209 -8
- data/lib/samagotchi/memory_bundle/placeholder.rb +2 -1
- data/lib/samagotchi/memory_bundle/profile.rb +7 -3
- data/lib/samagotchi/memory_bundle/provenance.rb +178 -20
- data/lib/samagotchi/memory_bundle/remerge.rb +167 -0
- data/lib/samagotchi/memory_bundle/shipped_history.rb +79 -0
- data/lib/samagotchi/memory_bundle/shipped_update.rb +89 -24
- data/lib/samagotchi/memory_bundle/source.rb +3 -3
- data/lib/samagotchi/memory_bundle/status.rb +21 -3
- data/lib/samagotchi/memory_bundle/system_bundle.rb +98 -33
- data/lib/samagotchi/memory_bundle/text_merge.rb +399 -0
- data/lib/samagotchi/memory_bundle/trash.rb +58 -2
- data/lib/samagotchi/memory_bundle/uninstaller.rb +26 -6
- data/lib/samagotchi/objectives_check.rb +37 -7
- data/lib/samagotchi/project_env.rb +3 -2
- data/lib/samagotchi/self_report.rb +2 -0
- data/lib/samagotchi/testing/boundary.rb +1 -0
- data/lib/samagotchi/testing/minitest.rb +3 -0
- data/lib/samagotchi/testing/rspec.rb +3 -0
- data/lib/samagotchi/testing/sandbox.rb +3 -1
- data/lib/samagotchi/tools/delegate.rb +2 -1
- data/lib/samagotchi/tools/task_runtime.rb +13 -10
- data/lib/samagotchi/turn_flow.rb +3 -1
- data/lib/samagotchi/update_command.rb +76 -28
- data/lib/samagotchi/update_hint.rb +4 -1
- data/lib/samagotchi/version.rb +1 -1
- data/lib/samagotchi/web/auto_update.rb +8 -8
- data/lib/samagotchi/web/auto_update_record.rb +6 -4
- data/lib/samagotchi/web/participant_view.rb +1 -1
- data/lib/samagotchi/web/public/app.js +5 -3
- data/lib/samagotchi/web/public/block_open.js +13 -0
- data/lib/samagotchi/web/public/bubbles.js +4 -2
- data/lib/samagotchi/web/public/cards_place.js +10 -5
- data/lib/samagotchi/web/public/details_motion.js +2 -1
- data/lib/samagotchi/web/public/index.html +18 -14
- data/lib/samagotchi/web/public/stage_model.js +5 -6
- data/lib/samagotchi/web/public/stage_view.js +8 -7
- data/lib/samagotchi/web/public/turn_block.js +34 -19
- data/lib/samagotchi/web/public/turn_model.js +1 -1
- data/lib/samagotchi/web/public/update_sheet.js +8 -3
- data/lib/samagotchi/web/public/working_set_view.js +10 -7
- data/lib/samagotchi/web/push/notifier.rb +7 -9
- data/lib/samagotchi/web/session_hub.rb +2 -1
- data/lib/samagotchi/web/update_ops.rb +2 -1
- 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
|
-
|
|
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.
|
|
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
|