@noyrax/5d-database-plugin 0.1.14-beta.13 → 0.1.14-beta.14
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/out/models/evidence.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* Evidence grade levels.
|
|
7
7
|
*/
|
|
8
|
-
export type EvidenceGrade = 'FACT' | 'INFERRED' | 'HEURISTIC';
|
|
8
|
+
export type EvidenceGrade = 'FACT' | 'INFERRED' | 'HEURISTIC' | 'CLAIMED';
|
|
9
9
|
/**
|
|
10
10
|
* Evidence source types.
|
|
11
11
|
*/
|
|
@@ -23,6 +23,12 @@ export interface EvidenceSource {
|
|
|
23
23
|
path?: string;
|
|
24
24
|
/** Content hash (if applicable) */
|
|
25
25
|
hash?: string;
|
|
26
|
+
/** Tool that generated this source (e.g., 'query_modules', 'verifyAdrs', 'boundary_report') */
|
|
27
|
+
tool?: string;
|
|
28
|
+
/** Target entity (e.g., file path, symbol ID, ADR number) */
|
|
29
|
+
target?: string;
|
|
30
|
+
/** Query ID (for tracking specific queries) */
|
|
31
|
+
queryId?: string;
|
|
26
32
|
/** Additional metadata */
|
|
27
33
|
metadata?: Record<string, any>;
|
|
28
34
|
}
|
|
@@ -40,7 +46,7 @@ export interface Evidence {
|
|
|
40
46
|
/**
|
|
41
47
|
* Helper function to create an evidence source.
|
|
42
48
|
*/
|
|
43
|
-
export declare function createEvidenceSource(type: EvidenceSourceType, id?: string, path?: string, hash?: string, metadata?: Record<string, any
|
|
49
|
+
export declare function createEvidenceSource(type: EvidenceSourceType, id?: string, path?: string, hash?: string, metadata?: Record<string, any>, tool?: string, target?: string, queryId?: string): EvidenceSource;
|
|
44
50
|
/**
|
|
45
51
|
* Helper function to create evidence.
|
|
46
52
|
*/
|
|
@@ -57,6 +63,11 @@ export declare function createInferredEvidence(sources: EvidenceSource[], descri
|
|
|
57
63
|
* Helper function to create HEURISTIC evidence.
|
|
58
64
|
*/
|
|
59
65
|
export declare function createHeuristicEvidence(sources: EvidenceSource[], description?: string): Evidence;
|
|
66
|
+
/**
|
|
67
|
+
* Helper function to create CLAIMED evidence.
|
|
68
|
+
* Used for ADR/documentation claims that have not been verified yet.
|
|
69
|
+
*/
|
|
70
|
+
export declare function createClaimedEvidence(sources: EvidenceSource[], description?: string): Evidence;
|
|
60
71
|
/**
|
|
61
72
|
* Validates that evidence has sources (for FACT and INFERRED).
|
|
62
73
|
* HEURISTIC may have empty sources.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"evidence.d.ts","sourceRoot":"","sources":["../../src/models/evidence.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,UAAU,GAAG,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"evidence.d.ts","sourceRoot":"","sources":["../../src/models/evidence.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,UAAU,GAAG,WAAW,GAAG,SAAS,CAAC;AAE1E;;GAEG;AACH,MAAM,MAAM,kBAAkB,GACxB,KAAK,GACL,QAAQ,GACR,QAAQ,GACR,YAAY,GACZ,UAAU,GACV,cAAc,GACd,UAAU,GACV,cAAc,GACd,iBAAiB,GACjB,WAAW,CAAC;AAElB;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC3B,qBAAqB;IACrB,IAAI,EAAE,kBAAkB,CAAC;IAEzB,+CAA+C;IAC/C,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,gCAAgC;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,mCAAmC;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,+FAA+F;IAC/F,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,6DAA6D;IAC7D,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,+CAA+C;IAC/C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;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,GAAG;IAAE,KAAK,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAqCvF"}
|
package/out/models/evidence.js
CHANGED
|
@@ -9,16 +9,20 @@ exports.createEvidence = createEvidence;
|
|
|
9
9
|
exports.createFactEvidence = createFactEvidence;
|
|
10
10
|
exports.createInferredEvidence = createInferredEvidence;
|
|
11
11
|
exports.createHeuristicEvidence = createHeuristicEvidence;
|
|
12
|
+
exports.createClaimedEvidence = createClaimedEvidence;
|
|
12
13
|
exports.validateEvidence = validateEvidence;
|
|
13
14
|
/**
|
|
14
15
|
* Helper function to create an evidence source.
|
|
15
16
|
*/
|
|
16
|
-
function createEvidenceSource(type, id, path, hash, metadata) {
|
|
17
|
+
function createEvidenceSource(type, id, path, hash, metadata, tool, target, queryId) {
|
|
17
18
|
return {
|
|
18
19
|
type,
|
|
19
20
|
id,
|
|
20
21
|
path,
|
|
21
22
|
hash,
|
|
23
|
+
tool,
|
|
24
|
+
target,
|
|
25
|
+
queryId,
|
|
22
26
|
metadata
|
|
23
27
|
};
|
|
24
28
|
}
|
|
@@ -50,6 +54,13 @@ function createInferredEvidence(sources, description) {
|
|
|
50
54
|
function createHeuristicEvidence(sources, description) {
|
|
51
55
|
return createEvidence('HEURISTIC', sources, description);
|
|
52
56
|
}
|
|
57
|
+
/**
|
|
58
|
+
* Helper function to create CLAIMED evidence.
|
|
59
|
+
* Used for ADR/documentation claims that have not been verified yet.
|
|
60
|
+
*/
|
|
61
|
+
function createClaimedEvidence(sources, description) {
|
|
62
|
+
return createEvidence('CLAIMED', sources, description);
|
|
63
|
+
}
|
|
53
64
|
/**
|
|
54
65
|
* Validates that evidence has sources (for FACT and INFERRED).
|
|
55
66
|
* HEURISTIC may have empty sources.
|
|
@@ -67,7 +78,7 @@ function validateEvidence(evidence) {
|
|
|
67
78
|
error: 'Evidence must have sources'
|
|
68
79
|
};
|
|
69
80
|
}
|
|
70
|
-
if (evidence.grade === 'FACT' || evidence.grade === 'INFERRED') {
|
|
81
|
+
if (evidence.grade === 'FACT' || evidence.grade === 'INFERRED' || evidence.grade === 'CLAIMED') {
|
|
71
82
|
if (!Array.isArray(evidence.sources) || evidence.sources.length === 0) {
|
|
72
83
|
return {
|
|
73
84
|
valid: false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"evidence.js","sourceRoot":"","sources":["../../src/models/evidence.ts"],"names":[],"mappings":";AAAA;;;GAGG;;
|
|
1
|
+
{"version":3,"file":"evidence.js","sourceRoot":"","sources":["../../src/models/evidence.ts"],"names":[],"mappings":";AAAA;;;GAGG;;AAqEH,oDAoBC;AAKD,wCAUC;AAKD,gDAKC;AAKD,wDAKC;AAKD,0DAKC;AAMD,sDAKC;AAMD,4CAqCC;AA1HD;;GAEG;AACH,SAAgB,oBAAoB,CAChC,IAAwB,EACxB,EAAW,EACX,IAAa,EACb,IAAa,EACb,QAA8B,EAC9B,IAAa,EACb,MAAe,EACf,OAAgB;IAEhB,OAAO;QACH,IAAI;QACJ,EAAE;QACF,IAAI;QACJ,IAAI;QACJ,IAAI;QACJ,MAAM;QACN,OAAO;QACP,QAAQ;KACX,CAAC;AACN,CAAC;AAED;;GAEG;AACH,SAAgB,cAAc,CAC1B,KAAoB,EACpB,OAAyB,EACzB,WAAoB;IAEpB,OAAO;QACH,KAAK;QACL,OAAO;QACP,WAAW;KACd,CAAC;AACN,CAAC;AAED;;GAEG;AACH,SAAgB,kBAAkB,CAC9B,OAAyB,EACzB,WAAoB;IAEpB,OAAO,cAAc,CAAC,MAAM,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC;AACxD,CAAC;AAED;;GAEG;AACH,SAAgB,sBAAsB,CAClC,OAAyB,EACzB,WAAoB;IAEpB,OAAO,cAAc,CAAC,UAAU,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC;AAC5D,CAAC;AAED;;GAEG;AACH,SAAgB,uBAAuB,CAC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AC;YACN,CAAC;QACL,CAAC;IACL,CAAC;IAED,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC3B,CAAC"}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@noyrax/5d-database-plugin",
|
|
3
3
|
"displayName": "5D Database Plugin",
|
|
4
4
|
"description": "5-dimensional database layer for documentation system with semantic brain integration. Provides SQLite databases for modules, symbols, dependencies, ADRs, and changes. Includes semantic search and MCP server integration for AI agents.",
|
|
5
|
-
"version": "0.1.14-beta.
|
|
5
|
+
"version": "0.1.14-beta.14",
|
|
6
6
|
"publisher": "noyrax",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"repository": {
|