@bryan-thompson/inspector-assessment-cli 1.5.0 → 1.6.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.
- package/build/cli.js +10 -1
- package/package.json +1 -1
package/build/cli.js
CHANGED
|
@@ -46,6 +46,10 @@ async function runWebClient(args) {
|
|
|
46
46
|
if (args.serverUrl) {
|
|
47
47
|
startArgs.push("--server-url", args.serverUrl);
|
|
48
48
|
}
|
|
49
|
+
// Pass Claude Code flag if enabled
|
|
50
|
+
if (args.claudeEnabled) {
|
|
51
|
+
startArgs.push("--claude-enabled");
|
|
52
|
+
}
|
|
49
53
|
// Pass command and args (using -- to separate them)
|
|
50
54
|
if (args.command) {
|
|
51
55
|
startArgs.push("--", args.command, ...args.args);
|
|
@@ -171,7 +175,8 @@ function parseArgs() {
|
|
|
171
175
|
.option("--cli", "enable CLI mode")
|
|
172
176
|
.option("--transport <type>", "transport type (stdio, sse, http)")
|
|
173
177
|
.option("--server-url <url>", "server URL for SSE/HTTP transport")
|
|
174
|
-
.option("--header <headers...>", 'HTTP headers as "HeaderName: Value" pairs (for HTTP/SSE transports)', parseHeaderPair, {})
|
|
178
|
+
.option("--header <headers...>", 'HTTP headers as "HeaderName: Value" pairs (for HTTP/SSE transports)', parseHeaderPair, {})
|
|
179
|
+
.option("--claude-enabled", "enable Claude Code integration for intelligent analysis (requires Claude CLI)");
|
|
175
180
|
// Parse only the arguments before --
|
|
176
181
|
program.parse(preArgs);
|
|
177
182
|
const options = program.opts();
|
|
@@ -214,6 +219,7 @@ function parseArgs() {
|
|
|
214
219
|
cli: options.cli || false,
|
|
215
220
|
transport: "stdio",
|
|
216
221
|
headers: options.header,
|
|
222
|
+
claudeEnabled: options.claudeEnabled || false,
|
|
217
223
|
};
|
|
218
224
|
}
|
|
219
225
|
else if (config.type === "sse" || config.type === "streamable-http") {
|
|
@@ -225,6 +231,7 @@ function parseArgs() {
|
|
|
225
231
|
transport: config.type,
|
|
226
232
|
serverUrl: config.url,
|
|
227
233
|
headers: options.header,
|
|
234
|
+
claudeEnabled: options.claudeEnabled || false,
|
|
228
235
|
};
|
|
229
236
|
}
|
|
230
237
|
else {
|
|
@@ -236,6 +243,7 @@ function parseArgs() {
|
|
|
236
243
|
cli: options.cli || false,
|
|
237
244
|
transport: "stdio",
|
|
238
245
|
headers: options.header,
|
|
246
|
+
claudeEnabled: options.claudeEnabled || false,
|
|
239
247
|
};
|
|
240
248
|
}
|
|
241
249
|
}
|
|
@@ -255,6 +263,7 @@ function parseArgs() {
|
|
|
255
263
|
transport: transport,
|
|
256
264
|
serverUrl: options.serverUrl,
|
|
257
265
|
headers: options.header,
|
|
266
|
+
claudeEnabled: options.claudeEnabled || false,
|
|
258
267
|
};
|
|
259
268
|
}
|
|
260
269
|
async function main() {
|
package/package.json
CHANGED