crucible 0.1.5 → 0.1.6
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/lib/crucible/tools/stealth.rb +15 -17
- data/lib/crucible/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 37233b40fcc6dcd5c506ccb0b6c5eae1f8aac74ffb5fc89efc87c62e7acc5c7a
|
|
4
|
+
data.tar.gz: 66649718f7ecae38626b6d94ad871b9dd6bc914e8ba03e7a3f020d344c24d383
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 41e84795a4e020770dd4250db87d677382344c372880c35ed598149ae8b118aea218a003c6e92d0faca4bfca93b2dac758a52478d8e7419f8ac03269e6cb3c09
|
|
7
|
+
data.tar.gz: 47365b177c3f720618f44500a8896b40c42d9645ee7096a7786b15beefb613d00cb0a4e310d587ca9c02a065d3fc6fc4b078c9dadcfe483c7fca3d4685d61494
|
|
@@ -52,12 +52,10 @@ module Crucible
|
|
|
52
52
|
sessions.enable_stealth(session, profile: profile_sym)
|
|
53
53
|
|
|
54
54
|
info = sessions.stealth_info(session)
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
text: "Stealth mode enabled for session '#{session}' with profile: #{info[:profile]}"
|
|
58
|
-
}])
|
|
55
|
+
msg = "Stealth mode enabled for session '#{session}' with profile: #{info[:profile]}"
|
|
56
|
+
MCP::Tool::Response.new([{ type: 'text', text: msg }])
|
|
59
57
|
rescue Crucible::SessionNotFoundError, Crucible::Error => e
|
|
60
|
-
MCP::Tool::Response.new([{ type: 'text', text: e.message }],
|
|
58
|
+
MCP::Tool::Response.new([{ type: 'text', text: e.message }], error: true)
|
|
61
59
|
end
|
|
62
60
|
end
|
|
63
61
|
|
|
@@ -82,11 +80,11 @@ module Crucible
|
|
|
82
80
|
sessions.disable_stealth(session)
|
|
83
81
|
|
|
84
82
|
MCP::Tool::Response.new([{
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
83
|
+
type: 'text',
|
|
84
|
+
text: "Stealth mode disabled for session '#{session}'"
|
|
85
|
+
}])
|
|
88
86
|
rescue Crucible::SessionNotFoundError => e
|
|
89
|
-
MCP::Tool::Response.new([{ type: 'text', text: e.message }],
|
|
87
|
+
MCP::Tool::Response.new([{ type: 'text', text: e.message }], error: true)
|
|
90
88
|
end
|
|
91
89
|
end
|
|
92
90
|
|
|
@@ -116,11 +114,11 @@ module Crucible
|
|
|
116
114
|
}
|
|
117
115
|
|
|
118
116
|
MCP::Tool::Response.new([{
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
117
|
+
type: 'text',
|
|
118
|
+
text: JSON.pretty_generate(status)
|
|
119
|
+
}])
|
|
122
120
|
rescue Crucible::SessionNotFoundError => e
|
|
123
|
-
MCP::Tool::Response.new([{ type: 'text', text: e.message }],
|
|
121
|
+
MCP::Tool::Response.new([{ type: 'text', text: e.message }], error: true)
|
|
124
122
|
end
|
|
125
123
|
end
|
|
126
124
|
|
|
@@ -154,11 +152,11 @@ module Crucible
|
|
|
154
152
|
sessions.enable_stealth(session, profile: profile.to_sym)
|
|
155
153
|
|
|
156
154
|
MCP::Tool::Response.new([{
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
155
|
+
type: 'text',
|
|
156
|
+
text: "Stealth profile set to '#{profile}' for session '#{session}'"
|
|
157
|
+
}])
|
|
160
158
|
rescue Crucible::SessionNotFoundError, Crucible::Error => e
|
|
161
|
-
MCP::Tool::Response.new([{ type: 'text', text: e.message }],
|
|
159
|
+
MCP::Tool::Response.new([{ type: 'text', text: e.message }], error: true)
|
|
162
160
|
end
|
|
163
161
|
end
|
|
164
162
|
end
|
data/lib/crucible/version.rb
CHANGED