actionmcp 0.50.7 → 0.50.8
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94384a0f8fcb5f0f77bac5d814fea53addbc8732007a3771b843f2bcca24ab47
|
4
|
+
data.tar.gz: 812125b6acf82b418257610ba5b58b3af4cb01c5b3152ac995a1c614df02a263
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e693c3b47925b0f1babb7d1912605766851b054f764ba6c0b6270f5f6d34739231300654a3dca83cb3d4a12a00cc29f20400bfdd7e93b4358bd296f9b9881ae
|
7
|
+
data.tar.gz: fba759c19cab4145614ac93b7c14866261f663a41f7539d5741712708136f34c29d43fcedbedbe06834f5989ac6c6d9d2aa2aa6b6a3f7e44b46e891a160bc224
|
@@ -332,7 +332,6 @@ module ActionMCP
|
|
332
332
|
data = payload.is_a?(String) ? payload : MultiJson.dump(payload)
|
333
333
|
sse_event = "id: #{event_id}\ndata: #{data}\n\n"
|
334
334
|
sse.write(sse_event)
|
335
|
-
return unless ActionMCP.configuration.enable_sse_resumability
|
336
335
|
|
337
336
|
begin
|
338
337
|
session.store_sse_event(event_id, payload, session.max_stored_sse_events)
|
@@ -343,8 +342,6 @@ module ActionMCP
|
|
343
342
|
|
344
343
|
# Helper to clean up old SSE events for a session
|
345
344
|
def cleanup_old_sse_events(session)
|
346
|
-
return unless ActionMCP.configuration.enable_sse_resumability
|
347
|
-
|
348
345
|
begin
|
349
346
|
retention_period = session.sse_event_retention_period
|
350
347
|
count = session.cleanup_old_sse_events(retention_period)
|
@@ -29,7 +29,6 @@ module ActionMCP
|
|
29
29
|
# --- VibedIgnoreVersion Option ---
|
30
30
|
:vibed_ignore_version,
|
31
31
|
# --- SSE Resumability Options ---
|
32
|
-
:enable_sse_resumability,
|
33
32
|
:sse_event_retention_period,
|
34
33
|
:max_stored_sse_events
|
35
34
|
|
@@ -46,7 +45,6 @@ module ActionMCP
|
|
46
45
|
@vibed_ignore_version = false
|
47
46
|
|
48
47
|
# Resumability defaults
|
49
|
-
@enable_sse_resumability = true
|
50
48
|
@sse_event_retention_period = 15.minutes
|
51
49
|
@max_stored_sse_events = 100
|
52
50
|
end
|
@@ -141,9 +139,6 @@ module ActionMCP
|
|
141
139
|
|
142
140
|
capabilities[:resources] = { subscribe: @resources_subscribe } if filtered_resources.any?
|
143
141
|
|
144
|
-
# Add resumability capability if enabled
|
145
|
-
capabilities[:resumability] = { enabled: @enable_sse_resumability } if @enable_sse_resumability
|
146
|
-
|
147
142
|
capabilities
|
148
143
|
end
|
149
144
|
|
data/lib/action_mcp/version.rb
CHANGED