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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5d114209ba5bb5fa541f65747389b48c4b074bf947482697e9438994a2fca193
4
- data.tar.gz: 27bac72f974e0af3397d8a6da864f8672a6f8a5535c7bc5a8eb34821cd23cf2c
3
+ metadata.gz: 37233b40fcc6dcd5c506ccb0b6c5eae1f8aac74ffb5fc89efc87c62e7acc5c7a
4
+ data.tar.gz: 66649718f7ecae38626b6d94ad871b9dd6bc914e8ba03e7a3f020d344c24d383
5
5
  SHA512:
6
- metadata.gz: bffe986b41fb2150493f5164ed1ad64bfbd5bf573cfc546d46ad88a4008b818502b60ddbb294ab7e327b088998ae8636452ec6b67b44b1e792dec7364da59340
7
- data.tar.gz: 84e6552d826c7abe0b72300764cd7cdd1c1ada144b0148f26117ca225f16117fd9b0cff9032b42c9cba12c56dbffd97fe9eb804efef1ab04912fcd452231926b
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
- MCP::Tool::Response.new([{
56
- type: 'text',
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 }], is_error: true)
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
- type: 'text',
86
- text: "Stealth mode disabled for session '#{session}'"
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 }], is_error: true)
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
- type: 'text',
120
- text: JSON.pretty_generate(status)
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 }], is_error: true)
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
- type: 'text',
158
- text: "Stealth profile set to '#{profile}' for session '#{session}'"
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 }], is_error: true)
159
+ MCP::Tool::Response.new([{ type: 'text', text: e.message }], error: true)
162
160
  end
163
161
  end
164
162
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Crucible
4
- VERSION = '0.1.5'
4
+ VERSION = '0.1.6'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crucible
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Frye