@devflow-tools/database 0.8.2 → 0.8.3

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/dist/database.js CHANGED
@@ -366,13 +366,12 @@ class DevFlowDatabase {
366
366
  }
367
367
  // ---- MCP Compliance ----
368
368
  getMcpCompliance() {
369
- // Overall compliance
369
+ // Overall compliance (include all executions, not just completed)
370
370
  const overallRow = this.db.prepare(`
371
371
  SELECT
372
372
  SUM(mcp_tool_calls) as mcp_calls,
373
373
  SUM(total_tool_calls) as total_calls
374
374
  FROM skill_executions
375
- WHERE status = 'completed'
376
375
  `).get();
377
376
  const overall = overallRow?.total_calls > 0
378
377
  ? Math.round((overallRow.mcp_calls / overallRow.total_calls) * 10000) / 100
@@ -384,7 +383,6 @@ class DevFlowDatabase {
384
383
  SUM(mcp_tool_calls) as mcp_calls,
385
384
  SUM(total_tool_calls) as total_calls
386
385
  FROM skill_executions
387
- WHERE status = 'completed'
388
386
  GROUP BY skill_name
389
387
  `).all();
390
388
  const bySkill = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devflow-tools/database",
3
- "version": "0.8.2",
3
+ "version": "0.8.3",
4
4
  "description": "DevFlow SQLite database package",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/database.ts CHANGED
@@ -487,13 +487,12 @@ export class DevFlowDatabase {
487
487
  bySkill: Record<string, number>;
488
488
  missedTools: string[];
489
489
  } {
490
- // Overall compliance
490
+ // Overall compliance (include all executions, not just completed)
491
491
  const overallRow = this.db.prepare(`
492
492
  SELECT
493
493
  SUM(mcp_tool_calls) as mcp_calls,
494
494
  SUM(total_tool_calls) as total_calls
495
495
  FROM skill_executions
496
- WHERE status = 'completed'
497
496
  `).get() as any;
498
497
 
499
498
  const overall = overallRow?.total_calls > 0
@@ -507,7 +506,6 @@ export class DevFlowDatabase {
507
506
  SUM(mcp_tool_calls) as mcp_calls,
508
507
  SUM(total_tool_calls) as total_calls
509
508
  FROM skill_executions
510
- WHERE status = 'completed'
511
509
  GROUP BY skill_name
512
510
  `).all() as any[];
513
511