samagotchi 0.181.0 → 0.183.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 +93 -1
- data/bin/chi +4 -1
- data/docs/architecture.md +17 -7
- data/docs/bundle-authoring.md +1 -1
- data/docs/bundles.md +103 -4
- data/docs/cli.md +58 -10
- data/docs/configuration.md +3 -1
- data/docs/guardrails.md +16 -1
- data/docs/internals/block-renderers.md +172 -3
- data/docs/internals/bridge.md +23 -5
- data/docs/internals/bundles.md +21 -4
- data/docs/internals/engine.md +29 -8
- data/docs/internals/inline-widgets.md +3 -1
- data/docs/internals/prompt-caching.md +9 -1
- data/docs/internals/remote-sessions.md +38 -7
- data/docs/internals/web-frontend.md +116 -26
- data/docs/internals/working-set.md +1 -1
- data/docs/mcp-server.md +80 -0
- data/docs/plugins.md +308 -21
- data/docs/sessions.md +7 -4
- data/docs/sub-agent.md +9 -0
- data/docs/testing.md +3 -1
- data/docs/thin-clients.md +146 -0
- data/lib/samagotchi/answer_display.rb +3 -2
- data/lib/samagotchi/block_fix/stamp.rb +49 -0
- data/lib/samagotchi/block_fix.rb +220 -0
- data/lib/samagotchi/bridge/block_fix_route.rb +30 -0
- data/lib/samagotchi/bridge/pending_card.rb +4 -3
- data/lib/samagotchi/bridge/sse_writer.rb +16 -15
- data/lib/samagotchi/bridge/turn_drawings.rb +19 -0
- data/lib/samagotchi/bridge.rb +69 -69
- data/lib/samagotchi/bridge_client.rb +9 -0
- data/lib/samagotchi/bundle_command/api_calls.rb +1 -1
- data/lib/samagotchi/bundle_command/check.rb +36 -19
- data/lib/samagotchi/bundle_command.rb +50 -21
- data/lib/samagotchi/bundle_manifest.rb +101 -4
- data/lib/samagotchi/bundles/dev/manifest.yml +2 -2
- data/lib/samagotchi/bundles/mcp/client.rb +260 -0
- data/lib/samagotchi/bundles/mcp/content.rb +107 -0
- data/lib/samagotchi/bundles/mcp/http_client.rb +407 -0
- data/lib/samagotchi/bundles/mcp/manifest.yml +13 -5
- data/lib/samagotchi/bundles/mcp/oauth.rb +814 -0
- data/lib/samagotchi/bundles/mcp/plugin.rb +556 -574
- data/lib/samagotchi/bundles/mcp/tools.rb +232 -0
- data/lib/samagotchi/bundles/system/config_modification_protocol.md +10 -2
- data/lib/samagotchi/bundles/system/manifest.yml +2 -2
- data/lib/samagotchi/cli/parent_wait.rb +5 -3
- data/lib/samagotchi/command_intake.rb +7 -0
- data/lib/samagotchi/commands/registry.rb +8 -3
- data/lib/samagotchi/config.rb +3 -0
- data/lib/samagotchi/continue_intent.rb +8 -0
- data/lib/samagotchi/continue_offer.rb +24 -15
- data/lib/samagotchi/engine/block_fix.rb +332 -0
- data/lib/samagotchi/engine/cards.rb +14 -5
- data/lib/samagotchi/engine/events.rb +10 -15
- data/lib/samagotchi/engine/models.rb +1 -1
- data/lib/samagotchi/engine/plugins.rb +3 -0
- data/lib/samagotchi/engine/recap.rb +1 -1
- data/lib/samagotchi/engine/side_requests.rb +8 -6
- data/lib/samagotchi/engine/sign_in.rb +142 -0
- data/lib/samagotchi/engine/turn_end.rb +3 -3
- data/lib/samagotchi/engine.rb +47 -27
- data/lib/samagotchi/engine_snapshots.rb +1 -1
- data/lib/samagotchi/events.rb +1 -0
- data/lib/samagotchi/guardrail_wiring.rb +3 -1
- data/lib/samagotchi/guardrails/protected_paths.rb +51 -2
- data/lib/samagotchi/guardrails/verdict.rb +3 -2
- data/lib/samagotchi/hold_stop.rb +4 -4
- data/lib/samagotchi/idle_client.rb +10 -6
- data/lib/samagotchi/idle_recap.rb +19 -11
- data/lib/samagotchi/idle_reminders.rb +7 -5
- data/lib/samagotchi/idle_scheduler.rb +7 -10
- data/lib/samagotchi/inline_widgets.rb +12 -0
- data/lib/samagotchi/installed_bundles/dir.rb +37 -0
- data/lib/samagotchi/installed_bundles/manifest.rb +7 -1
- data/lib/samagotchi/installed_bundles/plugin_ref.rb +9 -5
- data/lib/samagotchi/installed_bundles/record.rb +3 -2
- data/lib/samagotchi/installed_bundles/standing.rb +3 -1
- data/lib/samagotchi/kernel_loop.rb +7 -5
- data/lib/samagotchi/llm/chat_loop.rb +2 -0
- data/lib/samagotchi/llm/http.rb +96 -5
- data/lib/samagotchi/markdown_parser.rb +28 -0
- data/lib/samagotchi/mcp_command.rb +110 -0
- data/lib/samagotchi/mcp_server/http.rb +112 -0
- data/lib/samagotchi/mcp_server/protocol.rb +244 -0
- data/lib/samagotchi/mcp_server/stdio.rb +92 -0
- data/lib/samagotchi/mcp_server/text.rb +155 -0
- data/lib/samagotchi/mcp_server/tools.rb +245 -0
- data/lib/samagotchi/memory_bundle/asset_installer.rb +40 -12
- data/lib/samagotchi/memory_bundle/builder.rb +20 -2
- data/lib/samagotchi/memory_bundle/installed_copy.rb +1 -1
- data/lib/samagotchi/memory_bundle/installer.rb +16 -3
- data/lib/samagotchi/memory_bundle/provenance.rb +18 -1
- data/lib/samagotchi/memory_bundle/shas.rb +6 -4
- data/lib/samagotchi/memory_bundle/shipped_update.rb +7 -3
- data/lib/samagotchi/memory_bundle/status.rb +15 -6
- data/lib/samagotchi/memory_bundle/uninstaller.rb +9 -4
- data/lib/samagotchi/plugin/api.rb +6 -1
- data/lib/samagotchi/plugin/card.rb +36 -11
- data/lib/samagotchi/plugin/context.rb +63 -6
- data/lib/samagotchi/plugin/http.rb +40 -15
- data/lib/samagotchi/plugin/http_errors.rb +15 -0
- data/lib/samagotchi/plugin/http_stream.rb +86 -0
- data/lib/samagotchi/plugin/http_transport.rb +58 -16
- data/lib/samagotchi/plugin/loader.rb +18 -11
- data/lib/samagotchi/plugin/secrets.rb +266 -0
- data/lib/samagotchi/plugin/sign_in.rb +392 -0
- data/lib/samagotchi/plugin/sse_reader.rb +103 -0
- data/lib/samagotchi/queued_command.rb +28 -4
- data/lib/samagotchi/recap_setup.rb +13 -4
- data/lib/samagotchi/ref.rb +3 -2
- data/lib/samagotchi/relay_verifier.rb +8 -7
- data/lib/samagotchi/relay_watcher.rb +4 -4
- data/lib/samagotchi/run_options.rb +2 -1
- data/lib/samagotchi/send_command.rb +54 -41
- data/lib/samagotchi/session_access/ask.rb +244 -0
- data/lib/samagotchi/session_access/contract.rb +8 -0
- data/lib/samagotchi/session_access/delete_plan.rb +77 -0
- data/lib/samagotchi/session_access/exchange/token.rb +101 -0
- data/lib/samagotchi/session_access/exchange.rb +173 -0
- data/lib/samagotchi/session_access/local.rb +38 -6
- data/lib/samagotchi/session_access/remote.rb +23 -2
- data/lib/samagotchi/session_access.rb +1 -0
- data/lib/samagotchi/session_chain/delete.rb +39 -81
- data/lib/samagotchi/session_chain/delete_preview.rb +55 -19
- data/lib/samagotchi/session_command_catalog.rb +10 -0
- data/lib/samagotchi/session_commands.rb +17 -0
- data/lib/samagotchi/session_config.rb +4 -4
- data/lib/samagotchi/session_delete_command.rb +129 -3
- data/lib/samagotchi/session_manager/delegate_rule.rb +86 -0
- data/lib/samagotchi/session_manager/listing.rb +4 -4
- data/lib/samagotchi/session_manager/removal.rb +38 -12
- data/lib/samagotchi/session_manager/running_tasks.rb +50 -23
- data/lib/samagotchi/session_manager.rb +1 -0
- data/lib/samagotchi/session_observer.rb +27 -0
- data/lib/samagotchi/steer_cut.rb +4 -3
- data/lib/samagotchi/terminal_ui/attached_loop/sending.rb +4 -1
- data/lib/samagotchi/terminal_ui/formatting.rb +15 -0
- data/lib/samagotchi/testing/boundary.rb +4 -0
- data/lib/samagotchi/testing/bundle.rb +48 -2
- data/lib/samagotchi/testing/fake_http.rb +60 -15
- data/lib/samagotchi/testing/host.rb +4 -1
- data/lib/samagotchi/testing/recorder.rb +45 -5
- data/lib/samagotchi/tools/tool_index.rb +14 -3
- data/lib/samagotchi/version.rb +1 -1
- data/lib/samagotchi/web/app.rb +20 -6
- data/lib/samagotchi/web/ask_routes.rb +292 -0
- data/lib/samagotchi/web/block_fix_routes.rb +39 -0
- data/lib/samagotchi/web/markdown_renderer.rb +24 -9
- data/lib/samagotchi/web/mcp_route.rb +88 -0
- data/lib/samagotchi/web/message_display.rb +6 -1
- data/lib/samagotchi/web/participant_view.rb +1 -1
- data/lib/samagotchi/web/public/app.js +7 -8
- data/lib/samagotchi/web/public/block_fix.js +270 -0
- data/lib/samagotchi/web/public/block_fix_note.js +104 -0
- data/lib/samagotchi/web/public/block_frame.js +77 -13
- data/lib/samagotchi/web/public/block_host.js +45 -9
- data/lib/samagotchi/web/public/block_regions.js +126 -0
- data/lib/samagotchi/web/public/block_renderers.css +12 -0
- data/lib/samagotchi/web/public/block_watch.js +16 -2
- data/lib/samagotchi/web/public/card.js +22 -9
- data/lib/samagotchi/web/public/card_actions.js +21 -0
- data/lib/samagotchi/web/public/card_kinds.js +1 -1
- data/lib/samagotchi/web/public/card_registry.js +3 -2
- data/lib/samagotchi/web/public/data.js +15 -12
- data/lib/samagotchi/web/public/delete_sheet.js +222 -162
- data/lib/samagotchi/web/public/diagram_wiring.js +28 -0
- data/lib/samagotchi/web/public/format.js +3 -0
- data/lib/samagotchi/web/public/index.html +52 -7
- data/lib/samagotchi/web/public/inline_widgets.js +1 -1
- data/lib/samagotchi/web/public/more_sheet.js +6 -4
- data/lib/samagotchi/web/public/picture_regions.js +243 -0
- data/lib/samagotchi/web/public/picture_viewer.js +113 -12
- data/lib/samagotchi/web/public/refs.js +5 -3
- data/lib/samagotchi/web/public/region_hit.js +144 -0
- data/lib/samagotchi/web/public/removal_sheet_model.js +275 -0
- data/lib/samagotchi/web/public/running_tasks.js +6 -4
- data/lib/samagotchi/web/public/session_actions.js +105 -100
- data/lib/samagotchi/web/public/stream_handlers.js +5 -1
- data/lib/samagotchi/web/public/turn_block.js +5 -2
- data/lib/samagotchi/web/server.rb +6 -4
- data/lib/samagotchi/web/session_access_routes.rb +14 -11
- data/lib/samagotchi/web/session_control.rb +84 -30
- data/lib/samagotchi/web/session_create.rb +2 -2
- data/lib/samagotchi/worker/block_fixes.rb +22 -0
- data/lib/samagotchi/worker/child_side.rb +3 -2
- data/lib/samagotchi/worker/command_queue.rb +13 -13
- data/lib/samagotchi/worker/leave.rb +3 -3
- data/lib/samagotchi/worker/scratch.rb +6 -6
- data/lib/samagotchi/worker/signal_grace.rb +6 -5
- data/lib/samagotchi/worker/startup.rb +3 -3
- data/lib/samagotchi/worker/wake_turns.rb +4 -4
- data/lib/samagotchi/worker.rb +42 -24
- data/lib/samagotchi/worker_exit_claim.rb +1 -1
- data/lib/samagotchi/worker_idle_exit.rb +18 -9
- data/lib/samagotchi/worker_inbound.rb +12 -7
- data/lib/samagotchi/worker_participant_gate.rb +9 -7
- data/lib/samagotchi/worker_task_wakes.rb +7 -5
- metadata +42 -1
|
@@ -90,18 +90,23 @@ module Samagotchi
|
|
|
90
90
|
false
|
|
91
91
|
end
|
|
92
92
|
|
|
93
|
+
# @param event_log [SessionObserver] the Engine's event log (the context notice)
|
|
94
|
+
# @param turn_state [TurnState] the Engine's turn state (Engine#turn_state):
|
|
95
|
+
# the enqueued-id ledger a taken input claims and finishes on
|
|
93
96
|
# @param wakes [WorkerWakes] the wake budget a context wake asks
|
|
94
97
|
# @param awaiting_continue [#call] whether a continue offer waits
|
|
95
98
|
# @param stopped [#call] whether the session was stopped on disk
|
|
96
99
|
# @param queue_command [#call] (line, client_id, after_file, enqueued_id)
|
|
97
100
|
# queues a session command for the loop's next pass; after_file is the
|
|
98
101
|
# input file it came in, or nil
|
|
99
|
-
def initialize(session:, state_dir:, session_dir:, engine:, context_absorber:, wakes:,
|
|
100
|
-
stopped:, queue_command:)
|
|
102
|
+
def initialize(session:, state_dir:, session_dir:, engine:, event_log:, turn_state:, context_absorber:, wakes:,
|
|
103
|
+
awaiting_continue:, stopped:, queue_command:)
|
|
101
104
|
@session = session
|
|
102
105
|
@state_dir = state_dir
|
|
103
106
|
@session_dir = session_dir
|
|
104
107
|
@engine = engine
|
|
108
|
+
@event_log = event_log
|
|
109
|
+
@turn_state = turn_state
|
|
105
110
|
@context_absorber = context_absorber
|
|
106
111
|
@wakes = wakes
|
|
107
112
|
@awaiting_continue = awaiting_continue
|
|
@@ -271,7 +276,7 @@ module Samagotchi
|
|
|
271
276
|
begin
|
|
272
277
|
input = SessionInbox.read_input(claimed_file)
|
|
273
278
|
enqueued_id = input.origin.enqueued_id
|
|
274
|
-
if SessionInbox.input_taken?(@session_dir, @session, enqueued_id) || !@
|
|
279
|
+
if SessionInbox.input_taken?(@session_dir, @session, enqueued_id) || !@turn_state.claim_enqueued_id(enqueued_id)
|
|
275
280
|
Log.info(:worker, "duplicate_input_dropped", enqueued_id: enqueued_id)
|
|
276
281
|
return
|
|
277
282
|
end
|
|
@@ -282,7 +287,7 @@ module Samagotchi
|
|
|
282
287
|
yield Prompt.new(text: input.prompt, origin: input.origin, no_interrupt: input.no_interrupt, images: input.images,
|
|
283
288
|
delivery: input.delivery, anchors: input.anchors)
|
|
284
289
|
ensure
|
|
285
|
-
@
|
|
290
|
+
@turn_state.finish_enqueued_id(enqueued_id)
|
|
286
291
|
end
|
|
287
292
|
ensure
|
|
288
293
|
FileUtils.rm_f(claimed_file)
|
|
@@ -383,9 +388,9 @@ module Samagotchi
|
|
|
383
388
|
return unless delivery && @wakes.notice_peer_budget!
|
|
384
389
|
|
|
385
390
|
turns = key == ChildRing::MAX_WAKES_KEY ? @wakes.max : @wakes.peer_turns
|
|
386
|
-
@
|
|
387
|
-
|
|
388
|
-
|
|
391
|
+
@event_log.announce(type: :hook_notice, hook: "context", level: :info, between_turns: true,
|
|
392
|
+
text: "#{delivery.peer} answered again; it waits as a note for your next message " \
|
|
393
|
+
"(#{turns} wake turn#{"s" if turns != 1} in a row, #{key})")
|
|
389
394
|
end
|
|
390
395
|
|
|
391
396
|
def context_wakes_on? = Config.get("context.wake") != false
|
|
@@ -34,13 +34,15 @@ module Samagotchi
|
|
|
34
34
|
# (revoked, expired, or the session archived).
|
|
35
35
|
REVOKED_STOP = "%<name>s's link was revoked or expired"
|
|
36
36
|
|
|
37
|
-
# @param engine [Engine]
|
|
38
|
-
#
|
|
37
|
+
# @param engine [Engine] #watch's :participants_changed and its metrics' spend
|
|
38
|
+
# @param event_log [SessionObserver] the Engine's event log: announces the
|
|
39
|
+
# cap notice and :turn_dequeued
|
|
39
40
|
# @param session [Session] the worker's (its participants source, its
|
|
40
41
|
# Verify fresh)
|
|
41
42
|
# @param hook [String] the cap notice's hook name (Engine::PARTICIPANTS_HOOK)
|
|
42
|
-
def initialize(engine:, session:, session_id:, state_dir:, session_dir:, hook:)
|
|
43
|
+
def initialize(engine:, event_log:, session:, session_id:, state_dir:, session_dir:, hook:)
|
|
43
44
|
@engine = engine
|
|
45
|
+
@event_log = event_log
|
|
44
46
|
@session = session
|
|
45
47
|
@session_id = session_id
|
|
46
48
|
@state_dir = state_dir
|
|
@@ -99,7 +101,7 @@ module Samagotchi
|
|
|
99
101
|
TurnCheckpoint.record_refused(@session_dir, origin.enqueued_id, reason: reason, author: origin.participant_author)
|
|
100
102
|
Participants.log(source_id, :turn, state_dir: @state_dir, participant: origin.participant_id,
|
|
101
103
|
enqueued_id: origin.enqueued_id, status: "refused", reason: reason)
|
|
102
|
-
@
|
|
104
|
+
@event_log.announce(type: :turn_dequeued, enqueued_id: origin.enqueued_id, client_id: origin.client_id)
|
|
103
105
|
nil
|
|
104
106
|
end
|
|
105
107
|
|
|
@@ -148,9 +150,9 @@ module Samagotchi
|
|
|
148
150
|
|
|
149
151
|
@cap_noticed << key
|
|
150
152
|
id = Steer.participant_id(author)
|
|
151
|
-
@
|
|
152
|
-
|
|
153
|
-
|
|
153
|
+
@event_log.announce(type: :hook_notice, hook: @hook, level: :warn, between_turns: true,
|
|
154
|
+
text: format(CAP_NOTICE, name: label(author, entry.name), cap: cap,
|
|
155
|
+
session: source_id[0, 8], id: id))
|
|
154
156
|
end
|
|
155
157
|
end
|
|
156
158
|
end
|
|
@@ -22,13 +22,15 @@ module Samagotchi
|
|
|
22
22
|
# @return [TaskWatch]
|
|
23
23
|
attr_reader :watch
|
|
24
24
|
|
|
25
|
+
# @param event_log [SessionObserver] the Engine's event log (the task notice)
|
|
25
26
|
# @param wakes [WorkerWakes] the wake budget a task's wake asks
|
|
26
27
|
# @param awaiting_continue [#call] whether a continue offer waits
|
|
27
28
|
# @param idle [#call] nothing queued and no exit asked for: a finish
|
|
28
29
|
# may start a turn
|
|
29
30
|
# @param save [#call] saves the session (a failure is the callee's to log)
|
|
30
|
-
def initialize(engine:, session:, wakes:, awaiting_continue:, idle:, save:)
|
|
31
|
+
def initialize(engine:, event_log:, session:, wakes:, awaiting_continue:, idle:, save:)
|
|
31
32
|
@engine = engine
|
|
33
|
+
@event_log = event_log
|
|
32
34
|
@session = session
|
|
33
35
|
@wakes = wakes
|
|
34
36
|
@awaiting_continue = awaiting_continue
|
|
@@ -151,10 +153,10 @@ module Samagotchi
|
|
|
151
153
|
def budget_notice(count)
|
|
152
154
|
return unless count.positive? && @wakes.notice_budget!
|
|
153
155
|
|
|
154
|
-
@
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
156
|
+
@event_log.announce(type: :hook_notice, hook: "task", level: :info, between_turns: true,
|
|
157
|
+
text: "#{count} finished background task#{"s" if count != 1} noted; the model reads " \
|
|
158
|
+
"#{count == 1 ? "it" : "them"} with your next message " \
|
|
159
|
+
"(#{@wakes.max} wake turn#{"s" if @wakes.max != 1} in a row, #{ChildRing::MAX_WAKES_KEY})")
|
|
158
160
|
end
|
|
159
161
|
end
|
|
160
162
|
end
|
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.183.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dmitry Dedov
|
|
@@ -174,6 +174,7 @@ files:
|
|
|
174
174
|
- docs/internals/web-frontend.md
|
|
175
175
|
- docs/internals/web-push.md
|
|
176
176
|
- docs/internals/working-set.md
|
|
177
|
+
- docs/mcp-server.md
|
|
177
178
|
- docs/memory.md
|
|
178
179
|
- docs/plugins.md
|
|
179
180
|
- docs/releasing.md
|
|
@@ -182,6 +183,7 @@ files:
|
|
|
182
183
|
- docs/sub-agent.md
|
|
183
184
|
- docs/system-one.md
|
|
184
185
|
- docs/testing.md
|
|
186
|
+
- docs/thin-clients.md
|
|
185
187
|
- lib/samagotchi.rb
|
|
186
188
|
- lib/samagotchi/analytics_file.rb
|
|
187
189
|
- lib/samagotchi/answer_command.rb
|
|
@@ -191,12 +193,15 @@ files:
|
|
|
191
193
|
- lib/samagotchi/answer_text.rb
|
|
192
194
|
- lib/samagotchi/archive_store.rb
|
|
193
195
|
- lib/samagotchi/atomic_file.rb
|
|
196
|
+
- lib/samagotchi/block_fix.rb
|
|
197
|
+
- lib/samagotchi/block_fix/stamp.rb
|
|
194
198
|
- lib/samagotchi/block_renderers.rb
|
|
195
199
|
- lib/samagotchi/bootstrap/bundles.rb
|
|
196
200
|
- lib/samagotchi/bootstrap/config_writer.rb
|
|
197
201
|
- lib/samagotchi/bootstrap/probe.rb
|
|
198
202
|
- lib/samagotchi/bootstrap_command.rb
|
|
199
203
|
- lib/samagotchi/bridge.rb
|
|
204
|
+
- lib/samagotchi/bridge/block_fix_route.rb
|
|
200
205
|
- lib/samagotchi/bridge/bounded_queue.rb
|
|
201
206
|
- lib/samagotchi/bridge/card_places.rb
|
|
202
207
|
- lib/samagotchi/bridge/card_store.rb
|
|
@@ -279,8 +284,13 @@ files:
|
|
|
279
284
|
- lib/samagotchi/bundles/known-names/plugin.rb
|
|
280
285
|
- lib/samagotchi/bundles/loop-guard/manifest.yml
|
|
281
286
|
- lib/samagotchi/bundles/loop-guard/plugin.rb
|
|
287
|
+
- lib/samagotchi/bundles/mcp/client.rb
|
|
288
|
+
- lib/samagotchi/bundles/mcp/content.rb
|
|
289
|
+
- lib/samagotchi/bundles/mcp/http_client.rb
|
|
282
290
|
- lib/samagotchi/bundles/mcp/manifest.yml
|
|
291
|
+
- lib/samagotchi/bundles/mcp/oauth.rb
|
|
283
292
|
- lib/samagotchi/bundles/mcp/plugin.rb
|
|
293
|
+
- lib/samagotchi/bundles/mcp/tools.rb
|
|
284
294
|
- lib/samagotchi/bundles/model-notes/manifest.yml
|
|
285
295
|
- lib/samagotchi/bundles/model-notes/model_notes_deepseek.md
|
|
286
296
|
- lib/samagotchi/bundles/model-notes/model_notes_tone.md
|
|
@@ -374,6 +384,7 @@ files:
|
|
|
374
384
|
- lib/samagotchi/empty_answer_error.rb
|
|
375
385
|
- lib/samagotchi/empty_answer_retry.rb
|
|
376
386
|
- lib/samagotchi/engine.rb
|
|
387
|
+
- lib/samagotchi/engine/block_fix.rb
|
|
377
388
|
- lib/samagotchi/engine/cards.rb
|
|
378
389
|
- lib/samagotchi/engine/context_judge.rb
|
|
379
390
|
- lib/samagotchi/engine/events.rb
|
|
@@ -389,6 +400,7 @@ files:
|
|
|
389
400
|
- lib/samagotchi/engine/recap.rb
|
|
390
401
|
- lib/samagotchi/engine/session.rb
|
|
391
402
|
- lib/samagotchi/engine/side_requests.rb
|
|
403
|
+
- lib/samagotchi/engine/sign_in.rb
|
|
392
404
|
- lib/samagotchi/engine/steering.rb
|
|
393
405
|
- lib/samagotchi/engine/toolkit.rb
|
|
394
406
|
- lib/samagotchi/engine/turn_end.rb
|
|
@@ -521,6 +533,13 @@ files:
|
|
|
521
533
|
- lib/samagotchi/log_line.rb
|
|
522
534
|
- lib/samagotchi/log_path.rb
|
|
523
535
|
- lib/samagotchi/log_subscriber.rb
|
|
536
|
+
- lib/samagotchi/markdown_parser.rb
|
|
537
|
+
- lib/samagotchi/mcp_command.rb
|
|
538
|
+
- lib/samagotchi/mcp_server/http.rb
|
|
539
|
+
- lib/samagotchi/mcp_server/protocol.rb
|
|
540
|
+
- lib/samagotchi/mcp_server/stdio.rb
|
|
541
|
+
- lib/samagotchi/mcp_server/text.rb
|
|
542
|
+
- lib/samagotchi/mcp_server/tools.rb
|
|
524
543
|
- lib/samagotchi/memory_bundle.rb
|
|
525
544
|
- lib/samagotchi/memory_bundle/asset_installer.rb
|
|
526
545
|
- lib/samagotchi/memory_bundle/asset_state.rb
|
|
@@ -604,14 +623,19 @@ files:
|
|
|
604
623
|
- lib/samagotchi/plugin/card.rb
|
|
605
624
|
- lib/samagotchi/plugin/context.rb
|
|
606
625
|
- lib/samagotchi/plugin/http.rb
|
|
626
|
+
- lib/samagotchi/plugin/http_errors.rb
|
|
627
|
+
- lib/samagotchi/plugin/http_stream.rb
|
|
607
628
|
- lib/samagotchi/plugin/http_transport.rb
|
|
608
629
|
- lib/samagotchi/plugin/judgments.rb
|
|
609
630
|
- lib/samagotchi/plugin/loader.rb
|
|
610
631
|
- lib/samagotchi/plugin/peer.rb
|
|
611
632
|
- lib/samagotchi/plugin/prompt_sections.rb
|
|
633
|
+
- lib/samagotchi/plugin/secrets.rb
|
|
612
634
|
- lib/samagotchi/plugin/service.rb
|
|
613
635
|
- lib/samagotchi/plugin/sessions.rb
|
|
614
636
|
- lib/samagotchi/plugin/side_question.rb
|
|
637
|
+
- lib/samagotchi/plugin/sign_in.rb
|
|
638
|
+
- lib/samagotchi/plugin/sse_reader.rb
|
|
615
639
|
- lib/samagotchi/plugin/tool_result.rb
|
|
616
640
|
- lib/samagotchi/plugin/tool_spec.rb
|
|
617
641
|
- lib/samagotchi/plugin_session_state.rb
|
|
@@ -677,8 +701,12 @@ files:
|
|
|
677
701
|
- lib/samagotchi/served_model.rb
|
|
678
702
|
- lib/samagotchi/session.rb
|
|
679
703
|
- lib/samagotchi/session_access.rb
|
|
704
|
+
- lib/samagotchi/session_access/ask.rb
|
|
680
705
|
- lib/samagotchi/session_access/contract.rb
|
|
706
|
+
- lib/samagotchi/session_access/delete_plan.rb
|
|
681
707
|
- lib/samagotchi/session_access/dispatch.rb
|
|
708
|
+
- lib/samagotchi/session_access/exchange.rb
|
|
709
|
+
- lib/samagotchi/session_access/exchange/token.rb
|
|
682
710
|
- lib/samagotchi/session_access/http_transport.rb
|
|
683
711
|
- lib/samagotchi/session_access/local.rb
|
|
684
712
|
- lib/samagotchi/session_access/remote.rb
|
|
@@ -701,6 +729,7 @@ files:
|
|
|
701
729
|
- lib/samagotchi/session_lifecycle/canonical.rb
|
|
702
730
|
- lib/samagotchi/session_lifecycle/reading.rb
|
|
703
731
|
- lib/samagotchi/session_manager.rb
|
|
732
|
+
- lib/samagotchi/session_manager/delegate_rule.rb
|
|
704
733
|
- lib/samagotchi/session_manager/delivery.rb
|
|
705
734
|
- lib/samagotchi/session_manager/emptiness.rb
|
|
706
735
|
- lib/samagotchi/session_manager/lifecycle.rb
|
|
@@ -915,8 +944,10 @@ files:
|
|
|
915
944
|
- lib/samagotchi/vision_support.rb
|
|
916
945
|
- lib/samagotchi/waiting_steer.rb
|
|
917
946
|
- lib/samagotchi/web/app.rb
|
|
947
|
+
- lib/samagotchi/web/ask_routes.rb
|
|
918
948
|
- lib/samagotchi/web/auto_update.rb
|
|
919
949
|
- lib/samagotchi/web/auto_update_record.rb
|
|
950
|
+
- lib/samagotchi/web/block_fix_routes.rb
|
|
920
951
|
- lib/samagotchi/web/block_renderer_routes.rb
|
|
921
952
|
- lib/samagotchi/web/capabilities.rb
|
|
922
953
|
- lib/samagotchi/web/editor.rb
|
|
@@ -924,6 +955,7 @@ files:
|
|
|
924
955
|
- lib/samagotchi/web/lan.rb
|
|
925
956
|
- lib/samagotchi/web/link_codes.rb
|
|
926
957
|
- lib/samagotchi/web/markdown_renderer.rb
|
|
958
|
+
- lib/samagotchi/web/mcp_route.rb
|
|
927
959
|
- lib/samagotchi/web/message_display.rb
|
|
928
960
|
- lib/samagotchi/web/participant_access.rb
|
|
929
961
|
- lib/samagotchi/web/participant_history.rb
|
|
@@ -948,14 +980,18 @@ files:
|
|
|
948
980
|
- lib/samagotchi/web/public/apple-touch-icon.png
|
|
949
981
|
- lib/samagotchi/web/public/auth_lost.js
|
|
950
982
|
- lib/samagotchi/web/public/bar_fold.js
|
|
983
|
+
- lib/samagotchi/web/public/block_fix.js
|
|
984
|
+
- lib/samagotchi/web/public/block_fix_note.js
|
|
951
985
|
- lib/samagotchi/web/public/block_frame.js
|
|
952
986
|
- lib/samagotchi/web/public/block_host.js
|
|
953
987
|
- lib/samagotchi/web/public/block_open.js
|
|
988
|
+
- lib/samagotchi/web/public/block_regions.js
|
|
954
989
|
- lib/samagotchi/web/public/block_renderers.css
|
|
955
990
|
- lib/samagotchi/web/public/block_source.js
|
|
956
991
|
- lib/samagotchi/web/public/block_watch.js
|
|
957
992
|
- lib/samagotchi/web/public/bubbles.js
|
|
958
993
|
- lib/samagotchi/web/public/card.js
|
|
994
|
+
- lib/samagotchi/web/public/card_actions.js
|
|
959
995
|
- lib/samagotchi/web/public/card_kinds.js
|
|
960
996
|
- lib/samagotchi/web/public/card_registry.js
|
|
961
997
|
- lib/samagotchi/web/public/card_stamps.js
|
|
@@ -983,6 +1019,7 @@ files:
|
|
|
983
1019
|
- lib/samagotchi/web/public/delete_sheet.js
|
|
984
1020
|
- lib/samagotchi/web/public/delivery_line.js
|
|
985
1021
|
- lib/samagotchi/web/public/details_motion.js
|
|
1022
|
+
- lib/samagotchi/web/public/diagram_wiring.js
|
|
986
1023
|
- lib/samagotchi/web/public/diff_view.js
|
|
987
1024
|
- lib/samagotchi/web/public/dock_reserve.js
|
|
988
1025
|
- lib/samagotchi/web/public/families_view.js
|
|
@@ -1045,6 +1082,7 @@ files:
|
|
|
1045
1082
|
- lib/samagotchi/web/public/peer_exchange.js
|
|
1046
1083
|
- lib/samagotchi/web/public/peer_links.js
|
|
1047
1084
|
- lib/samagotchi/web/public/peer_note.js
|
|
1085
|
+
- lib/samagotchi/web/public/picture_regions.js
|
|
1048
1086
|
- lib/samagotchi/web/public/picture_viewer.js
|
|
1049
1087
|
- lib/samagotchi/web/public/plain_line.js
|
|
1050
1088
|
- lib/samagotchi/web/public/popover_modal.js
|
|
@@ -1060,7 +1098,9 @@ files:
|
|
|
1060
1098
|
- lib/samagotchi/web/public/ref_menu.js
|
|
1061
1099
|
- lib/samagotchi/web/public/ref_scan.js
|
|
1062
1100
|
- lib/samagotchi/web/public/refs.js
|
|
1101
|
+
- lib/samagotchi/web/public/region_hit.js
|
|
1063
1102
|
- lib/samagotchi/web/public/reload_check.js
|
|
1103
|
+
- lib/samagotchi/web/public/removal_sheet_model.js
|
|
1064
1104
|
- lib/samagotchi/web/public/restore.js
|
|
1065
1105
|
- lib/samagotchi/web/public/resync_reach.js
|
|
1066
1106
|
- lib/samagotchi/web/public/revise_stack.js
|
|
@@ -1202,6 +1242,7 @@ files:
|
|
|
1202
1242
|
- lib/samagotchi/web/viewer.rb
|
|
1203
1243
|
- lib/samagotchi/web/working_set_routes.rb
|
|
1204
1244
|
- lib/samagotchi/worker.rb
|
|
1245
|
+
- lib/samagotchi/worker/block_fixes.rb
|
|
1205
1246
|
- lib/samagotchi/worker/child_side.rb
|
|
1206
1247
|
- lib/samagotchi/worker/command_queue.rb
|
|
1207
1248
|
- lib/samagotchi/worker/leave.rb
|