@aroman22/codegraph-vba 1.3.5 → 1.4.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.
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { SqliteDatabase } from '../db';
|
|
2
|
+
/**
|
|
3
|
+
* VBA Handler Backtrace Helper Functions
|
|
4
|
+
*/
|
|
5
|
+
export interface VariableInfo {
|
|
6
|
+
name: string;
|
|
7
|
+
type: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Parses parameters from a VBA subroutine/function signature,
|
|
11
|
+
* extracting parameters of custom types (filtering out primitive types).
|
|
12
|
+
*/
|
|
13
|
+
export declare function parseSignatureParams(signature: string): VariableInfo[];
|
|
14
|
+
/**
|
|
15
|
+
* Reconstructs a multiline SQL query string concatenated using VBA line continuation
|
|
16
|
+
* and string concatenation operators. Accumulates up to a limit of 200 characters.
|
|
17
|
+
*/
|
|
18
|
+
export declare function reconstructSQL(lines: string[]): string;
|
|
19
|
+
export interface TraversalNode {
|
|
20
|
+
id: string;
|
|
21
|
+
name: string;
|
|
22
|
+
kind: string;
|
|
23
|
+
children: TraversalNode[];
|
|
24
|
+
}
|
|
25
|
+
export interface TraversalResult {
|
|
26
|
+
tree: TraversalNode | null;
|
|
27
|
+
cycle_detected: boolean;
|
|
28
|
+
warnings: string[];
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Traverses VBA call/relationship graphs starting from a specific node ID,
|
|
32
|
+
* tracking cycles and capping search depth.
|
|
33
|
+
*/
|
|
34
|
+
export declare function traverseGraph(db: SqliteDatabase, startNodeId: string, maxDepth?: number): TraversalResult;
|
|
35
|
+
//# sourceMappingURL=backtrace-helpers.d.ts.map
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Interface representing the extracted bindings of a VBA form or report layout.
|
|
3
|
+
*/
|
|
4
|
+
export interface FormBindings {
|
|
5
|
+
recordSource?: string;
|
|
6
|
+
rowSources: Array<{
|
|
7
|
+
control: string;
|
|
8
|
+
target: string;
|
|
9
|
+
}>;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Interface representing the SQL lineage analysis result.
|
|
13
|
+
*/
|
|
14
|
+
export interface SqlLineage {
|
|
15
|
+
tables: string[];
|
|
16
|
+
lineage: Array<{
|
|
17
|
+
source: string;
|
|
18
|
+
resolved: string;
|
|
19
|
+
}>;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Traces references to the target query name inside a VBA module's content.
|
|
23
|
+
* Returns 1-based line numbers where references are found.
|
|
24
|
+
*/
|
|
25
|
+
export declare function traceVbaCallers(content: string, queryName: string): number[];
|
|
26
|
+
/**
|
|
27
|
+
* Parses a VBA form definition (.form.txt/.report.txt) and extracts RecordSource and RowSource bindings.
|
|
28
|
+
*/
|
|
29
|
+
export declare function extractFormBindings(content: string): FormBindings;
|
|
30
|
+
/**
|
|
31
|
+
* Resolves table and column aliases from a SQL string to build a column-level lineage.
|
|
32
|
+
*/
|
|
33
|
+
export declare function resolveSqlLineage(sql: string): SqlLineage;
|
|
34
|
+
/**
|
|
35
|
+
* Runs a combined database and file-level downstream impact analysis.
|
|
36
|
+
*/
|
|
37
|
+
export declare function runImpactAnalysis(db: any, workspaceDir: string, queryName: string): any;
|
|
38
|
+
//# sourceMappingURL=sql-impact-helpers.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aroman22/codegraph-vba",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "Local-first code intelligence for AI agents (MCP). Self-contained — bundles its own runtime.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"codegraph-vba": "npm-shim.js"
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
"./package.json": "./package.json"
|
|
16
16
|
},
|
|
17
17
|
"optionalDependencies": {
|
|
18
|
-
"@aroman22/codegraph-vba-darwin-arm64": "1.
|
|
19
|
-
"@aroman22/codegraph-vba-darwin-x64": "1.
|
|
20
|
-
"@aroman22/codegraph-vba-linux-arm64": "1.
|
|
21
|
-
"@aroman22/codegraph-vba-linux-x64": "1.
|
|
22
|
-
"@aroman22/codegraph-vba-win32-arm64": "1.
|
|
23
|
-
"@aroman22/codegraph-vba-win32-x64": "1.
|
|
18
|
+
"@aroman22/codegraph-vba-darwin-arm64": "1.4.0",
|
|
19
|
+
"@aroman22/codegraph-vba-darwin-x64": "1.4.0",
|
|
20
|
+
"@aroman22/codegraph-vba-linux-arm64": "1.4.0",
|
|
21
|
+
"@aroman22/codegraph-vba-linux-x64": "1.4.0",
|
|
22
|
+
"@aroman22/codegraph-vba-win32-arm64": "1.4.0",
|
|
23
|
+
"@aroman22/codegraph-vba-win32-x64": "1.4.0"
|
|
24
24
|
},
|
|
25
25
|
"files": [
|
|
26
26
|
"npm-shim.js",
|