crucible 0.1.5 → 0.1.7
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/README.md +4 -7
- 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: 7663272e309f6f9de63f7faee4fd6fb2aefc6482de60d6785dbdafaa6d8929bd
|
|
4
|
+
data.tar.gz: dfe69632fa2df1480fac7524368827d1b407a0dfb588b662817da8bab06bbfb1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ec445d529e92c77f596f6578e42882fc3fcfb469ddb27487efe52cb32d6e9620007a2a52d91f59109f27a7f5be85b34da89062e2f1185c2f2127b74056845a75
|
|
7
|
+
data.tar.gz: 1485d88fe2b7d6109c5e8baeecc635314814c724240d00833f6d23c9119ca5d8a1b1bd7ef9bec75e51b56742f9f336264ad7baddc3bb66c257c3c3dc3c462703
|
data/README.md
CHANGED
|
@@ -22,13 +22,13 @@ bundle install
|
|
|
22
22
|
|
|
23
23
|
```bash
|
|
24
24
|
# Run with defaults (headless, 1280x720 viewport, 30s timeout)
|
|
25
|
-
|
|
25
|
+
crucible
|
|
26
26
|
|
|
27
27
|
# Run with visible browser
|
|
28
|
-
|
|
28
|
+
crucible --no-headless
|
|
29
29
|
|
|
30
30
|
# Full options
|
|
31
|
-
|
|
31
|
+
crucible \
|
|
32
32
|
--no-headless \
|
|
33
33
|
--width 1920 \
|
|
34
34
|
--height 1080 \
|
|
@@ -351,12 +351,9 @@ bundle exec rake server
|
|
|
351
351
|
|
|
352
352
|
```bash
|
|
353
353
|
bin/release 0.2.0
|
|
354
|
-
git push origin main --tags
|
|
355
|
-
gh release create v0.2.0 --generate-notes
|
|
356
|
-
gem push crucible-*.gem
|
|
357
354
|
```
|
|
358
355
|
|
|
359
|
-
|
|
356
|
+
This script bumps the version, commits, tags, pushes, creates a GitHub release, builds the gem, and pushes to RubyGems (you'll handle MFA via browser).
|
|
360
357
|
|
|
361
358
|
## Requirements
|
|
362
359
|
|
|
@@ -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