@devflow-tools/database 0.8.2 → 0.8.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.
- package/CHANGELOG.md +28 -0
- package/dist/database.js +1 -3
- package/package.json +1 -1
- package/src/database.ts +1 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,34 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.8.6](https://github.com/shilongfeicool/dev-flow/compare/v0.3.2...v0.8.6) (2026-07-09)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **database:** parameterize LIMIT clause in listSkillExecutions ([d85a440](https://github.com/shilongfeicool/dev-flow/commit/d85a440e727434bd8df2ab0cb0d408183f006731))
|
|
12
|
+
* replace lerna publish from-package with per-package npm publish ([e27463e](https://github.com/shilongfeicool/dev-flow/commit/e27463e379ee5860341b3c4ae121de3f2da3d010))
|
|
13
|
+
* **server:** persist activeProjectRoot to SQLite + add POST /projects/switch ([7cbe96e](https://github.com/shilongfeicool/dev-flow/commit/7cbe96e0f92d60b54261d61df1fb0ad18eacc4a1))
|
|
14
|
+
* update PreToolUse hook output to modern hookSpecificOutput format ([08e4704](https://github.com/shilongfeicool/dev-flow/commit/08e47047445ba2b8112669608264af9971627138))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* 实现新一代本地向量内存存储系统并修复多项配套问题 ([39eea1d](https://github.com/shilongfeicool/dev-flow/commit/39eea1d2532f44d83a929c5623c216ffd25bed97))
|
|
20
|
+
* **database:** add database abstraction layer with node:sqlite adapter ([4765e98](https://github.com/shilongfeicool/dev-flow/commit/4765e98fd675a64f191486df50b7b3030f1e2512))
|
|
21
|
+
* **database:** add database package skeleton ([ac3d554](https://github.com/shilongfeicool/dev-flow/commit/ac3d5546031e0986e57d8fddff397667fe4da667))
|
|
22
|
+
* **database:** add getMcpCompliance query for MCP enforcement metrics ([0f61aef](https://github.com/shilongfeicool/dev-flow/commit/0f61aef1ca06b186df136388b898b323aaf3f993))
|
|
23
|
+
* **database:** add skill_executions and tool_call_events tables ([5906f0f](https://github.com/shilongfeicool/dev-flow/commit/5906f0f6c28b1f0539f643f0b04b55c7bdf29a8d))
|
|
24
|
+
* **database:** implement run_steps table CRUD ([90eb7b3](https://github.com/shilongfeicool/dev-flow/commit/90eb7b34f4d9688a61452481bc6fb8f17586f98b))
|
|
25
|
+
* **database:** implement runs table CRUD ([4ef9d60](https://github.com/shilongfeicool/dev-flow/commit/4ef9d60b3d8b028ac2b22aefcb5aef24a802ecf9))
|
|
26
|
+
* **database:** implement schema initialization ([3236e49](https://github.com/shilongfeicool/dev-flow/commit/3236e49d4537dcb46e0721fa8fc7d8c2413c3bf6))
|
|
27
|
+
* **database:** implement telemetry_events and project_stats CRUD ([8c2e76e](https://github.com/shilongfeicool/dev-flow/commit/8c2e76e6e6db7f1a4d9c35789f2ce154c6282cda))
|
|
28
|
+
* **telemetry:** integrate database for persistence ([1956d7f](https://github.com/shilongfeicool/dev-flow/commit/1956d7f060b23dca9224969784c324c60e79a36b))
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
6
34
|
## [0.8.2](https://github.com/shilongfeicool/dev-flow/compare/v0.3.2...v0.8.2) (2026-07-08)
|
|
7
35
|
|
|
8
36
|
|
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
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
|
|