argusqa-os 9.4.0 → 9.4.1

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/mcp-server.js +19 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "argusqa-os",
3
- "version": "9.4.0",
3
+ "version": "9.4.1",
4
4
  "mcpName": "io.github.ironclawdevs27/argus",
5
5
  "description": "Argus — AI-powered automated dev-testing platform using Chrome DevTools MCP and Claude Code",
6
6
  "keywords": [
package/src/mcp-server.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  /**
3
- * Argus MCP Server (v9.4.0)
3
+ * Argus MCP Server (v9.4.1)
4
4
  *
5
5
  * Exposes Argus as an MCP server so Claude (or any MCP client) can call
6
6
  * argus_audit, argus_audit_full, argus_compare, argus_last_report, and
@@ -138,11 +138,23 @@ async function handleAudit({ url, critical = false, cache = false }) {
138
138
  return { content: [{ type: 'text', text: JSON.stringify({ ...result, _cached: true, _cachedAt: new Date(ts).toISOString() }, null, 2) }] };
139
139
  }
140
140
  return withMcp(async (mcp) => {
141
- const parsed = new URL(url);
142
- const route = { path: parsed.pathname + parsed.search + parsed.hash, name: 'audit', critical };
143
- const findings = await crawlRouteCheap(route, parsed.origin, mcp);
144
- if (cache) cacheAudit(url, findings);
145
- return { content: [{ type: 'text', text: JSON.stringify(findings, null, 2) }] };
141
+ const parsed = new URL(url);
142
+ const route = { path: parsed.pathname + parsed.search + parsed.hash, name: 'audit', critical };
143
+ const raw = await crawlRouteCheap(route, parsed.origin, mcp);
144
+ const findings = Array.isArray(raw.errors) ? raw.errors : [];
145
+ const result = {
146
+ findings,
147
+ summary: {
148
+ critical: findings.filter(f => f.severity === 'critical').length,
149
+ warning: findings.filter(f => f.severity === 'warning').length,
150
+ info: findings.filter(f => f.severity === 'info').length,
151
+ },
152
+ url: raw.url,
153
+ pageTitle: raw.pageTitle,
154
+ screenshot: raw.screenshot,
155
+ };
156
+ if (cache) cacheAudit(url, result);
157
+ return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] };
146
158
  });
147
159
  }
148
160
 
@@ -271,7 +283,7 @@ async function handleLastReport() {
271
283
  // ── Server bootstrap ──────────────────────────────────────────────────────────
272
284
 
273
285
  const server = new Server(
274
- { name: 'argus', version: '9.4.0' },
286
+ { name: 'argus', version: '9.4.1' },
275
287
  { capabilities: { tools: {} } },
276
288
  );
277
289