deeplyzer 0.0.0-stage → 0.2.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.
Files changed (4) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +125 -3
  3. package/index.js +61 -0
  4. package/package.json +22 -4
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 AreteQA
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,125 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
1
+ ![Deeplyzer Logo](img/logo.png)
2
+ # Deeplyzer
3
+
4
+ ### Deep analysis of software beyond static code analysis.
5
+
6
+ ## The Problem
7
+
8
+ Software failures are rarely limited to bugs in source code.
9
+
10
+ An application can fail for thousands of reasons across its code, infrastructure, dependencies, and runtime environment.
11
+
12
+ Consider a few examples:
13
+
14
+ - **Configuration issues:** Missing environment variables, incorrect configurations, invalid credentials.
15
+ - **Network issues:** Connectivity failures, DNS resolution, firewall restrictions, API timeouts.
16
+ - **Database issues:** Invalid schemas, unexpected data formats, missing tables, permission issues, connection failures.
17
+ - **Infrastructure issues:** Misconfigured cloud resources, insufficient permissions, resource limits, incorrect deployment configurations.
18
+ - **Workflow issues:** Broken execution paths, unexpected dependencies, incorrect assumptions between components.
19
+ - **Integration issues:** Incompatible API responses, third-party service failures, version mismatches.
20
+ - **Runtime issues:** Memory exhaustion, concurrency problems, unhandled exceptions, resource leaks.
21
+
22
+ The possibilities run into thousands.
23
+
24
+ This makes traditional validation approaches insufficient. It is practically impossible to anticipate every failure scenario and build a fixed set of algorithms or rules to validate them all.
25
+
26
+ ## The Solution: Deeplyzer
27
+
28
+ Deeplyzer takes a fundamentally different approach to software analysis.
29
+
30
+ Instead of relying on predefined validation rules, it understands the application, discovers its dependencies, maps its workflows, and autonomously investigates potential failure scenarios.
31
+
32
+ ### How It Works
33
+
34
+ 1. **Builds Code Graphs**
35
+
36
+ Analyzes source code and creates semantic graphs representing classes, functions, variables, dependencies, and relationships across the codebase.
37
+
38
+ 2. **Understands Application Workflows**
39
+
40
+ Connects the graphs to discover how different components interact and maps end-to-end execution workflows.
41
+
42
+ 3. **Analyzes Infrastructure**
43
+
44
+ Discovers and understands the underlying infrastructure, including cloud resources, configurations, permissions, databases, and external dependencies.
45
+
46
+ 4. **Plans Validations Autonomously**
47
+
48
+ Uses its understanding of the application and infrastructure to identify potential failure scenarios and formulate targeted validation plans.
49
+
50
+ 5. **Generates Executable Checks**
51
+
52
+ Generates the necessary code, scripts, and commands to investigate the identified scenarios.
53
+
54
+ 6. **Executes and Evaluates**
55
+
56
+ Executes the generated checks, evaluates the results, and determines whether the application and its underlying infrastructure behave as expected.
57
+
58
+ ## Beyond Static Code Analysis
59
+
60
+ Traditional static analysis examines code against predefined rules and known patterns.
61
+
62
+ Deeplyzer goes further. It understands how the application works, investigates the environment it depends on, and actively validates whether the entire system can operate as expected.
63
+
64
+ **Deeplyzer doesn't just analyze code. It investigates how software can fail.**
65
+
66
+ ## How Deeplyzer Works
67
+
68
+ ![Deeplyzer Workflow](img/workflow.png)
69
+
70
+ ## Installation
71
+
72
+ Install Deeplyzer using npm:
73
+
74
+ ```bash
75
+ npm install deeplyzer
76
+ ```
77
+
78
+ ## Configuration
79
+
80
+ Create a configuration file (e.g. `deeplyzer.json`) in your project root.
81
+
82
+ ```json
83
+ {
84
+ "sources": [],
85
+ "source_exclusions": [],
86
+ "llm": {
87
+ "provider": "openai | gemini | claude",
88
+ "model": "gpt-6.1-sol",
89
+ "apiKey": "<API key goes here>"
90
+ },
91
+ "log_path": "C:\\deeplyzer\\.logs",
92
+ "build_graph": false,
93
+ "deep_analysis": true,
94
+ "static_analysis": false,
95
+ "batch_size": 10
96
+ }
97
+ ```
98
+
99
+ ### Configuration Options
100
+
101
+ | Option | Required | Default | Description |
102
+ |---|---|---|---|
103
+ | `sources` | Yes | `[]` | Source files or directories to analyze. |
104
+ | `source_exclusions` | No | `[]` | Files or directories to exclude from analysis. |
105
+ | `llm.provider` | Yes | - | LLM provider (`openai`, `claude`, `gemini`). |
106
+ | `llm.model` | Yes | - | Model to use for analysis. |
107
+ | `llm.apiKey` | Yes | - | API key for the selected LLM provider. |
108
+ | `build_graph` | No | `true` | Build semantic code graphs. |
109
+ | `deep_analysis` | No | true | Enable deep LLM-based analysis. |
110
+ | `static_analysis` | No | `true` | Enable static code analysis. |
111
+ | `batch_size` | No | `10` | Number of sources processed in each batch. |
112
+ | `log_path` | No | - | Directory where analysis logs are written. |
113
+
114
+ **Note:** `build_graph`, `static_analysis`, and `batch_size` are optional. If omitted, their default values are used.
115
+
116
+ ## Links
117
+
118
+ - **GitHub Repository:** [github.com/areteqa/deeplyzer](https://github.com/areteqa/deeplyzer)
119
+ - **NPM Package:** [npmjs.com/package/deeplyzer](https://www.npmjs.com/package/deeplyzer)
120
+
121
+ ## License
122
+
123
+ Deeplyzer is open-source software licensed under the [MIT License](LICENSE).
124
+
125
+ You are free to use, modify, distribute, and use it commercially, subject to the terms of the license.
package/index.js ADDED
@@ -0,0 +1,61 @@
1
+ const Engine = require("./engine");
2
+ const SessionManager = require("./session/sessionManager");
3
+ const Logger = require('./utils/logger');
4
+ const globals = require("./globals");
5
+ const fs = require("fs");
6
+ const path = require("path");
7
+
8
+ (async () => {
9
+ try {
10
+ const argument = process.argv[2];
11
+
12
+ // Handle commands
13
+ if (argument === "clear-session") {
14
+ SessionManager.clearSession();
15
+ console.log("[INFO] Session cleared successfully.");
16
+ return;
17
+ }
18
+
19
+ // Normal execution
20
+ SessionManager.loadSession();
21
+
22
+ globals.config = _loadConfig(argument);
23
+
24
+ Logger.init();
25
+
26
+ const engine = new Engine();
27
+
28
+ await engine.run();
29
+
30
+ } catch (error) {
31
+ console.error(`[ERROR] ${error.message}`);
32
+ process.exitCode = 1;
33
+ }
34
+ })();
35
+
36
+ function _loadConfig(configPath) {
37
+
38
+ if (!configPath) {
39
+ throw new Error(
40
+ "Configuration file path or command is required.\n" +
41
+ "Usage:\n" +
42
+ " node index.js <config.json>\n" +
43
+ " node index.js clear-session"
44
+ );
45
+ }
46
+
47
+ const resolvedPath = path.resolve(configPath);
48
+
49
+ if (!fs.existsSync(resolvedPath)) {
50
+ throw new Error(`Configuration file not found: ${resolvedPath}`);
51
+ }
52
+
53
+ const configContent = fs.readFileSync(resolvedPath, "utf8");
54
+ const config = JSON.parse(configContent);
55
+
56
+ if (!config || typeof config !== "object" || Array.isArray(config)) {
57
+ throw new Error("Configuration must be a valid JSON object.");
58
+ }
59
+
60
+ return config;
61
+ }
package/package.json CHANGED
@@ -1,6 +1,24 @@
1
1
  {
2
2
  "name": "deeplyzer",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.2.0",
4
+ "description": "Go beyond static code analysis. End-to-end intelligence across code, execution flows, databases, and cloud infrastructure.",
5
+ "main": "index.js",
6
+ "type": "commonjs",
7
+ "scripts": {
8
+ "start": "node index.js"
9
+ },
10
+ "files": [
11
+ "!packages/**"
12
+ ],
13
+ "keywords": [
14
+ "ai",
15
+ "autonomous-testing",
16
+ "software-testing",
17
+ "edge-case-discovery"
18
+ ],
19
+ "author": "AreteQA",
20
+ "license": "MIT",
21
+ "dependencies": {
22
+ "axios": "^1.21.1"
23
+ }
24
+ }