deeplyzer 0.4.0 → 0.6.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.
- package/analysis/deep/assess/assessAgent.js +24 -0
- package/analysis/deep/env/environmentAgent.js +125 -0
- package/analysis/deep/generate/ganerateAgent.js +30 -0
- package/analysis/deep/orchestratorAgent.js +94 -0
- package/analysis/deep/plan/planAgent.js +26 -0
- package/analysis/static/staticAnalyzer.js +86 -0
- package/engine.js +87 -0
- package/globals.js +9 -0
- package/img/logo.png +0 -0
- package/img/workflow.png +0 -0
- package/llm/llm.js +58 -0
- package/llm/providers/claude.js +65 -0
- package/llm/providers/gemini.js +66 -0
- package/llm/providers/openai.js +91 -0
- package/open-packages.json +11 -0
- package/package.json +8 -3
- package/prompts/deep.assess +85 -0
- package/prompts/deep.env.assess +11 -0
- package/prompts/deep.env.runtime +45 -0
- package/prompts/deep.generate.output +31 -0
- package/prompts/deep.plans +153 -0
- package/prompts/graph.build_nodes +577 -0
- package/prompts/graph.environment +154 -0
- package/prompts/graph.resolve_edges +44 -0
- package/prompts/graph.source_exclusions +47 -0
- package/prompts/static.analyse +58 -0
- package/services/environmentService.js +70 -0
- package/services/graphService.js +292 -0
- package/services/workflowService.js +168 -0
- package/session/sessionManager.js +130 -0
- package/utils/execUtil.js +153 -0
- package/utils/fileUtil.js +239 -0
- package/utils/idUtil.js +17 -0
- package/utils/logger.js +93 -0
- package/utils/promptsUtil.js +29 -0
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
|
|
2
|
+
const axios = require("axios");
|
|
3
|
+
|
|
4
|
+
class OpenAIProvider {
|
|
5
|
+
constructor(llmConfig) {
|
|
6
|
+
this.llmConfig = llmConfig;
|
|
7
|
+
|
|
8
|
+
this.client = axios.create({
|
|
9
|
+
baseURL: "https://api.openai.com/v1",
|
|
10
|
+
headers: {
|
|
11
|
+
Authorization: `Bearer ${llmConfig.apiKey}`,
|
|
12
|
+
"Content-Type": "application/json"
|
|
13
|
+
},
|
|
14
|
+
timeout: 300000
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
async generate(options) {
|
|
19
|
+
const messages = [];
|
|
20
|
+
|
|
21
|
+
if (options.system) {
|
|
22
|
+
messages.push({
|
|
23
|
+
role: "system",
|
|
24
|
+
content: options.system
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
messages.push({
|
|
29
|
+
role: "user",
|
|
30
|
+
content: options.json
|
|
31
|
+
? `${options.prompt}\n\nReturn the response as valid JSON. Do not include markdown code fences.`
|
|
32
|
+
: options.prompt
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
const payload = {
|
|
36
|
+
model: this.llmConfig.model,
|
|
37
|
+
messages
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
if (options.temperature !== undefined) {
|
|
41
|
+
payload.temperature = options.temperature;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
if (options.maxTokens !== undefined) {
|
|
45
|
+
payload.max_tokens = options.maxTokens;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
if (options.json) {
|
|
49
|
+
payload.response_format = {
|
|
50
|
+
type: "json_object"
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
if (options.responseFormat) {
|
|
55
|
+
payload.response_format = options.responseFormat;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
try {
|
|
59
|
+
const { data } = await this.client.post(
|
|
60
|
+
"/chat/completions",
|
|
61
|
+
payload
|
|
62
|
+
);
|
|
63
|
+
|
|
64
|
+
const choice = data.choices?.[0];
|
|
65
|
+
|
|
66
|
+
return {
|
|
67
|
+
text: choice?.message?.content || "",
|
|
68
|
+
model: data.model,
|
|
69
|
+
provider: "openai",
|
|
70
|
+
finishReason: choice?.finish_reason,
|
|
71
|
+
usage: {
|
|
72
|
+
inputTokens: data.usage?.prompt_tokens || 0,
|
|
73
|
+
outputTokens: data.usage?.completion_tokens || 0,
|
|
74
|
+
totalTokens: data.usage?.total_tokens || 0
|
|
75
|
+
},
|
|
76
|
+
raw: data
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
} catch (error) {
|
|
80
|
+
throw new Error(
|
|
81
|
+
`[OpenAI] ${error.response?.status || "ERROR"}: ${
|
|
82
|
+
JSON.stringify(
|
|
83
|
+
error.response?.data || error.message
|
|
84
|
+
)
|
|
85
|
+
}`
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
module.exports = OpenAIProvider;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "deeplyzer",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "Go beyond static code analysis. End-to-end intelligence across code, execution flows, databases, and cloud infrastructure.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
"start": "node index.js"
|
|
9
9
|
},
|
|
10
10
|
"files": [
|
|
11
|
-
"
|
|
11
|
+
"**",
|
|
12
|
+
"!packages",
|
|
13
|
+
"!packages/**",
|
|
14
|
+
"!.*",
|
|
15
|
+
"!**/.*"
|
|
12
16
|
],
|
|
13
17
|
"keywords": [
|
|
14
18
|
"ai",
|
|
@@ -19,6 +23,7 @@
|
|
|
19
23
|
"author": "AreteQA",
|
|
20
24
|
"license": "MIT",
|
|
21
25
|
"dependencies": {
|
|
22
|
-
"axios": "^1.21.1"
|
|
26
|
+
"axios": "^1.21.1",
|
|
27
|
+
"playwright": "^1.65.1"
|
|
23
28
|
}
|
|
24
29
|
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# Execution Assessment Prompt
|
|
2
|
+
|
|
3
|
+
You are an expert software engineer and execution analyst responsible for evaluating the outcome of code generation and execution.
|
|
4
|
+
|
|
5
|
+
## Input
|
|
6
|
+
|
|
7
|
+
You will be provided with the results of code generation and execution, including:
|
|
8
|
+
|
|
9
|
+
- Generated source code.
|
|
10
|
+
- Commands generated to execute the code.
|
|
11
|
+
- Command-line execution output (stdout).
|
|
12
|
+
- Command-line error output (stderr).
|
|
13
|
+
- Execution exit codes, if available.
|
|
14
|
+
- Other relevant execution details.
|
|
15
|
+
|
|
16
|
+
The primary source of evidence is the command-line execution output. Use the generated code and commands as supporting context to understand what happened.
|
|
17
|
+
|
|
18
|
+
***RESULTS***
|
|
19
|
+
|
|
20
|
+
## Objective
|
|
21
|
+
|
|
22
|
+
Analyze the execution results and produce a comprehensive assessment of what actually happened.
|
|
23
|
+
|
|
24
|
+
Determine:
|
|
25
|
+
|
|
26
|
+
1. **Execution status**
|
|
27
|
+
- Whether the execution succeeded, partially succeeded, or failed.
|
|
28
|
+
- Whether the generated code was executed at all.
|
|
29
|
+
- Whether the intended operation was performed.
|
|
30
|
+
|
|
31
|
+
2. **What happened**
|
|
32
|
+
- Explain what the execution actually did.
|
|
33
|
+
- Identify operations that were successfully completed.
|
|
34
|
+
- Identify operations that were attempted but not completed.
|
|
35
|
+
- Identify unexpected behavior or deviations from the intended execution.
|
|
36
|
+
|
|
37
|
+
3. **Errors and failures**
|
|
38
|
+
- Identify errors, exceptions, warnings, and abnormal outputs.
|
|
39
|
+
- Explain the underlying cause wherever it can be established.
|
|
40
|
+
- Distinguish actual failures from informational messages or harmless warnings.
|
|
41
|
+
- Identify whether failures originate from generated code, dependencies, environment, infrastructure, configuration, or execution commands.
|
|
42
|
+
|
|
43
|
+
4. **Environment and dependencies**
|
|
44
|
+
- Determine whether required runtimes, packages, services, infrastructure, and external resources were available.
|
|
45
|
+
- Identify missing or incorrectly configured prerequisites.
|
|
46
|
+
- Determine whether environmental limitations prevented execution.
|
|
47
|
+
|
|
48
|
+
5. **Impact and consequences**
|
|
49
|
+
- Explain the impact of the execution outcome.
|
|
50
|
+
- Identify incomplete operations, side effects, or potentially inconsistent states.
|
|
51
|
+
- Determine whether subsequent operations can safely proceed.
|
|
52
|
+
|
|
53
|
+
6. **Remaining work**
|
|
54
|
+
- Identify what remains incomplete.
|
|
55
|
+
- Explain what needs to be corrected or performed.
|
|
56
|
+
- Determine whether the existing implementation can be reused or requires modification.
|
|
57
|
+
|
|
58
|
+
## Assessment Guidelines
|
|
59
|
+
|
|
60
|
+
- Base conclusions primarily on actual command-line execution output.
|
|
61
|
+
- Never assume code executed successfully merely because it was generated.
|
|
62
|
+
- Never assume an operation succeeded simply because no error was reported.
|
|
63
|
+
- Correlate execution output with the generated code and intended command.
|
|
64
|
+
- Distinguish between code-generation success and execution success.
|
|
65
|
+
- Distinguish between an execution failure and an environment-related failure.
|
|
66
|
+
- Do not invent execution results, errors, or causes.
|
|
67
|
+
- When evidence is insufficient, explicitly state what cannot be determined.
|
|
68
|
+
- Do not recommend unnecessary code changes when the existing implementation is working correctly.
|
|
69
|
+
- Focus on actual observations and their implications rather than merely repeating logs.
|
|
70
|
+
|
|
71
|
+
## Output
|
|
72
|
+
|
|
73
|
+
Return a structured assessment containing:
|
|
74
|
+
|
|
75
|
+
1. **Overall Status** – Success, Partial Success, Failure, or Not Executed.
|
|
76
|
+
2. **Execution Summary** – A concise explanation of what happened.
|
|
77
|
+
3. **Successful Operations** – What was successfully accomplished.
|
|
78
|
+
4. **Failed or Incomplete Operations** – What failed or remains incomplete.
|
|
79
|
+
5. **Errors and Root Causes** – Identified issues and their causes, with supporting evidence.
|
|
80
|
+
6. **Environment Assessment** – Availability and correctness of required prerequisites.
|
|
81
|
+
7. **Impact Assessment** – Consequences and current state.
|
|
82
|
+
8. **Next Actions** – Specific actions required to address outstanding issues.
|
|
83
|
+
9. **Readiness** – Whether execution can continue, requires correction, or is complete.
|
|
84
|
+
|
|
85
|
+
The assessment must be factual, actionable, and sufficiently detailed to support subsequent automated planning and decision-making.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
Analyze the command-line output and determine whether the requested installations have completed successfully.
|
|
2
|
+
|
|
3
|
+
Return TRUE if all required installations are successful and no blocking errors remain. Otherwise, return FALSE.
|
|
4
|
+
|
|
5
|
+
Return only TRUE or FALSE.
|
|
6
|
+
|
|
7
|
+
Setup Instructions:
|
|
8
|
+
***RUNTIME_DETAILS***
|
|
9
|
+
|
|
10
|
+
Previous execution results:
|
|
11
|
+
***RESULTS***
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
Analyze the environment requirements based on the supplied setup instructions and previous execution results.
|
|
2
|
+
|
|
3
|
+
Setup Instructions:
|
|
4
|
+
***RUNTIME_DETAILS***
|
|
5
|
+
|
|
6
|
+
**OPERATING SYSTEM:**
|
|
7
|
+
***OS***
|
|
8
|
+
|
|
9
|
+
Previous execution results:
|
|
10
|
+
***RESULTS***
|
|
11
|
+
|
|
12
|
+
Instructions:
|
|
13
|
+
1. Identify the runtimes and system-level tools required by the setup instructions.
|
|
14
|
+
2. Check previous execution results to determine which requirements are already available.
|
|
15
|
+
3. If availability is unclear, generate simple commands to check their presence and version.
|
|
16
|
+
4. Identify only missing runtimes or system tools.
|
|
17
|
+
5. Generate executable installation commands for missing requirements only.
|
|
18
|
+
6. Ensure commands are ordered by prerequisites.
|
|
19
|
+
7. Do not install application packages, libraries, or modules.
|
|
20
|
+
8. Do not reinstall anything that is already available.
|
|
21
|
+
|
|
22
|
+
OS-SPECIFIC COMMAND GENERATION
|
|
23
|
+
1. Identify the operating system from ***OS***.
|
|
24
|
+
2. Generate commands exclusively using syntax supported by that operating system.
|
|
25
|
+
3. Select the appropriate shell and command interpreter:
|
|
26
|
+
- win32: Windows CMD or PowerShell.
|
|
27
|
+
- linux: Linux shell (Bash).
|
|
28
|
+
- darwin: macOS shell (Bash or Zsh).
|
|
29
|
+
4. Adapt directory creation, file paths, environment variables, executable invocation and file operations to the selected OS.
|
|
30
|
+
5. Use the appropriate runtime executable (e.g. python, python3, node).
|
|
31
|
+
6. Handle OS-specific command chaining, quoting and exit codes correctly.
|
|
32
|
+
7. Never generate commands from another operating system.
|
|
33
|
+
8. If the OS is unknown or unsupported, do not assume a shell; report the limitation.
|
|
34
|
+
|
|
35
|
+
Return ONLY a valid JSON array of strings, where each string represents one executable installation command.
|
|
36
|
+
|
|
37
|
+
Example:
|
|
38
|
+
{
|
|
39
|
+
commands: [
|
|
40
|
+
"install python",
|
|
41
|
+
"install java"
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
If all requirements are satisfied, return: {}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
**SOURCE**
|
|
2
|
+
***SOURCE***
|
|
3
|
+
|
|
4
|
+
**OPERATING SYSTEM:**
|
|
5
|
+
***OS***
|
|
6
|
+
|
|
7
|
+
Generate all required files and return them as a JSON array.
|
|
8
|
+
|
|
9
|
+
Each array element must contain exactly two fields:
|
|
10
|
+
|
|
11
|
+
- `filename`: File name including extension.
|
|
12
|
+
- `content`: Complete source code or content of the file.
|
|
13
|
+
|
|
14
|
+
Requirements:
|
|
15
|
+
1. Generate complete file contents, not descriptions, summaries, or pseudocode.
|
|
16
|
+
2. Preserve proper formatting, indentation, and line breaks.
|
|
17
|
+
3. Escape special characters correctly to ensure valid JSON.
|
|
18
|
+
4. Do not include Markdown code fences inside file content.
|
|
19
|
+
5. Generate a separate array element for each file.
|
|
20
|
+
6. Do not include directory paths in filenames.
|
|
21
|
+
7. If no files need to be generated, return an empty array.
|
|
22
|
+
8. Do not include any explanatory text before or after the JSON.
|
|
23
|
+
|
|
24
|
+
**Output format:**
|
|
25
|
+
|
|
26
|
+
[
|
|
27
|
+
{
|
|
28
|
+
"filename": "example.py",
|
|
29
|
+
"content": "Complete source code of the file"
|
|
30
|
+
}
|
|
31
|
+
]
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
# EXECUTION PLAN GENERATOR
|
|
2
|
+
|
|
3
|
+
You are an execution planner responsible for converting supplied source code or descriptive instructions into the smallest practical sequence of executable plans.
|
|
4
|
+
|
|
5
|
+
Your objective is to generate pseudocode for scripts that execute and validate the intended functionality.
|
|
6
|
+
|
|
7
|
+
## INPUT
|
|
8
|
+
|
|
9
|
+
**SOURCE**
|
|
10
|
+
***SOURCE***
|
|
11
|
+
|
|
12
|
+
**OPERATING SYSTEM**
|
|
13
|
+
***OS***
|
|
14
|
+
|
|
15
|
+
**ENVIRONMENT / RUNTIME**
|
|
16
|
+
***RUNTIME***
|
|
17
|
+
|
|
18
|
+
## 1. PLANNING OBJECTIVE
|
|
19
|
+
|
|
20
|
+
Analyze the source and generate the minimum number of ordered execution plans.
|
|
21
|
+
|
|
22
|
+
Apply these principles:
|
|
23
|
+
|
|
24
|
+
1. Understand the intended functionality.
|
|
25
|
+
2. Identify required execution and validation operations.
|
|
26
|
+
3. Identify dependencies and execution order.
|
|
27
|
+
4. Combine related operations into the fewest practical plans.
|
|
28
|
+
5. Use existing runtime capabilities and standard libraries.
|
|
29
|
+
6. Avoid unnecessary dependencies and installations.
|
|
30
|
+
7. Ensure all plans are executable in the specified environment.
|
|
31
|
+
8. Validate actual behaviour, not just successful execution.
|
|
32
|
+
|
|
33
|
+
## 2. EXECUTION STRATEGY
|
|
34
|
+
|
|
35
|
+
For each plan, generate pseudocode describing a complete executable script.
|
|
36
|
+
|
|
37
|
+
The pseudocode must follow this general flow:
|
|
38
|
+
|
|
39
|
+
1. Identify the target functionality or resources from **SOURCE**.
|
|
40
|
+
2. Prepare the required execution environment.
|
|
41
|
+
3. Incorporate supplied source code or implement the described instructions.
|
|
42
|
+
4. Generate supporting code required for execution.
|
|
43
|
+
5. Provide required inputs or access external resources.
|
|
44
|
+
6. Execute the target functionality.
|
|
45
|
+
7. Validate expected behaviour, outputs, configurations and side effects.
|
|
46
|
+
8. Handle errors and exceptional conditions.
|
|
47
|
+
9. Report individual validation results and overall status.
|
|
48
|
+
10. Return an appropriate execution status.
|
|
49
|
+
|
|
50
|
+
Adapt these operations to the actual source. Do not generate irrelevant steps.
|
|
51
|
+
|
|
52
|
+
## 3. SOURCE HANDLING
|
|
53
|
+
|
|
54
|
+
The supplied SOURCE is input data provided to the execution environment.
|
|
55
|
+
It is not part of the generated plan's output.
|
|
56
|
+
|
|
57
|
+
For source code:
|
|
58
|
+
- Treat SOURCE as an externally supplied input.
|
|
59
|
+
- Never reproduce, copy, embed, quote, or regenerate the supplied implementation in generated scripts or prompts.
|
|
60
|
+
- Generate only the supporting execution harness, build configuration, test cases, and validation logic.
|
|
61
|
+
- The execution harness must consume SOURCE through the mechanism specified by the runtime.
|
|
62
|
+
- Preserve the original implementation without modifications.
|
|
63
|
+
- Do not generate a replacement implementation.
|
|
64
|
+
|
|
65
|
+
For descriptive instructions:
|
|
66
|
+
- Generate the implementation required by the instructions.
|
|
67
|
+
- Access actual specified resources, services or configurations.
|
|
68
|
+
- Use available credentials and dependencies.
|
|
69
|
+
- Validate resource existence, accessibility, configuration and behaviour.
|
|
70
|
+
|
|
71
|
+
For mixed input:
|
|
72
|
+
- Separate supplied source code from implementation requirements.
|
|
73
|
+
- Generate only the implementation and supporting code that are not already supplied.
|
|
74
|
+
- Never duplicate supplied source code.
|
|
75
|
+
|
|
76
|
+
## 4. SCRIPT REQUIREMENTS
|
|
77
|
+
|
|
78
|
+
- Generate self-contained scripts wherever practical.
|
|
79
|
+
- Prefer a single script over multiple files.
|
|
80
|
+
- Use native runtime capabilities and standard libraries.
|
|
81
|
+
- Do not use pytest, unittest or any external testing framework.
|
|
82
|
+
- Implement custom validation using native language features.
|
|
83
|
+
- Do not require interactive manual input.
|
|
84
|
+
- Do not fabricate credentials, resource identifiers or expected results.
|
|
85
|
+
- Avoid destructive operations unless explicitly required.
|
|
86
|
+
- Report skipped or incomplete validations accurately.
|
|
87
|
+
- Return a non-zero exit status when required validations fail.
|
|
88
|
+
|
|
89
|
+
## 5. PLAN GENERATION RULES
|
|
90
|
+
|
|
91
|
+
- Each plan represents one logical execution unit.
|
|
92
|
+
- Execute plans in dependency order.
|
|
93
|
+
- Combine compatible operations.
|
|
94
|
+
- Split plans only when necessary.
|
|
95
|
+
- Avoid redundant commands and scripts.
|
|
96
|
+
- Do not assume unavailable dependencies or capabilities.
|
|
97
|
+
- Generate concrete commands compatible with the operating system.
|
|
98
|
+
- Ensure generated scripts are actually executed.
|
|
99
|
+
|
|
100
|
+
OS-SPECIFIC COMMAND GENERATION
|
|
101
|
+
1. Identify the operating system from ***OS***.
|
|
102
|
+
2. Generate commands exclusively using syntax supported by that operating system.
|
|
103
|
+
3. Select the appropriate shell and command interpreter:
|
|
104
|
+
- win32: Windows CMD or PowerShell.
|
|
105
|
+
- linux: Linux shell (Bash).
|
|
106
|
+
- darwin: macOS shell (Bash or Zsh).
|
|
107
|
+
4. Adapt directory creation, file paths, environment variables, executable invocation and file operations to the selected OS.
|
|
108
|
+
5. Use the appropriate runtime executable (e.g. python, python3, node).
|
|
109
|
+
6. Handle OS-specific command chaining, quoting and exit codes correctly.
|
|
110
|
+
7. Never generate commands from another operating system.
|
|
111
|
+
8. If the OS is unknown or unsupported, do not assume a shell; report the limitation.
|
|
112
|
+
|
|
113
|
+
## OUTPUT FORMAT
|
|
114
|
+
|
|
115
|
+
Return ONLY a valid JSON object.
|
|
116
|
+
|
|
117
|
+
{
|
|
118
|
+
"plans": [
|
|
119
|
+
{
|
|
120
|
+
"prompt": "Pseudocode describing what code to generate and which files to create.",
|
|
121
|
+
"commands": [
|
|
122
|
+
"command to execute first",
|
|
123
|
+
"command to execute next"
|
|
124
|
+
]
|
|
125
|
+
}
|
|
126
|
+
]
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
Each plan must contain exactly:
|
|
130
|
+
- `prompt`: Must explicitly specify every file to create, its path, filename, contents or implementation responsibilities, and dependencies between generated files. Describe the complete pseudocode for generating the required code.
|
|
131
|
+
- `commands`: An ordered array of executable commands to run after the files have been generated.
|
|
132
|
+
|
|
133
|
+
## FILE GENERATION RULES
|
|
134
|
+
|
|
135
|
+
1. Explicitly specify all files that must be created.
|
|
136
|
+
2. Specify the filename and relative or absolute path for every file.
|
|
137
|
+
3. Specify the purpose and contents of each file.
|
|
138
|
+
4. Include all supporting code required for execution and validation.
|
|
139
|
+
5. Prefer a single self-contained script whenever practical.
|
|
140
|
+
6. Do not assume generated files already exist.
|
|
141
|
+
7. Do not generate unnecessary files.
|
|
142
|
+
8. Ensure commands reference the exact generated filenames and paths.
|
|
143
|
+
|
|
144
|
+
## COMMAND EXECUTION RULES
|
|
145
|
+
|
|
146
|
+
1. Commands must execute in sequential order.
|
|
147
|
+
2. The first command must prepare the required working directory if necessary.
|
|
148
|
+
3. Include dependency installation only when strictly required.
|
|
149
|
+
4. Execute generated scripts using the specified runtime.
|
|
150
|
+
5. Include subsequent commands for additional validation only when necessary.
|
|
151
|
+
6. Do not include file-generation instructions as executable commands unless the environment explicitly supports them.
|
|
152
|
+
7. Never reference a file that has not been specified in the prompt.
|
|
153
|
+
8. Do not use placeholders or interactive commands.
|