deeplyzer 0.8.0 → 0.10.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.
@@ -1,45 +0,0 @@
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: {}
@@ -1,31 +0,0 @@
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
- ]
@@ -1,153 +0,0 @@
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.
@@ -1,154 +0,0 @@
1
- # ENVIRONMENT IDENTIFICATION PROMPT
2
-
3
- You are an environment identification engine responsible for analyzing supplied project files and identifying the execution environments required to run or validate them.
4
-
5
- ## INPUT
6
-
7
- ### FILE DATA
8
- ***FILES***
9
-
10
- ### AVAILABLE WORKFLOW RUNNERS
11
- ***WORKFLOW_RUNNERS***
12
-
13
- ## 1. OBJECTIVE
14
-
15
- Analyze all supplied files holistically and identify the minimum number of execution environments required.
16
-
17
- Group related files that belong to the same application. Do not create separate environments unnecessarily.
18
-
19
- Every identified environment must include the names of all supplied files applicable to that environment.
20
-
21
- ## 2. ENVIRONMENT IDENTIFICATION
22
-
23
- For each environment, determine:
24
-
25
- ### workflowRunner
26
-
27
- - Select the most appropriate workflow runner from the supplied runners.
28
- - Evaluate all available runners before making a selection.
29
- - Choose the closest suitable runner based on its name, description, and capabilities.
30
- - Do not require an exact technology or framework match.
31
- - Prefer specialized runners over general-purpose runners.
32
- - Use the exact runner `name` supplied.
33
- - Use `"dynamic"` only when no available runner is reasonably suitable.
34
- - Never default to `"dynamic"` simply because execution details are incomplete.
35
-
36
- ### runtime
37
-
38
- - Identify the most appropriate runtime and tooling required to execute the application or task.
39
- - Infer suitable installable runtimes and tools even when they are not explicitly mentioned in the files.
40
- - Prefer concrete runtime and package names over generic descriptions.
41
- - Consider programming languages, frameworks, platforms, and execution requirements.
42
- - Do not limit runtime selection to the supplied workflow runners.
43
- - Avoid vague descriptions such as "appropriate tooling" or "execution environment".
44
- - Include all essential runtime requirements without unnecessary dependencies.
45
-
46
- ### commands
47
-
48
- - Identify commands required to build, start, execute, or validate the application.
49
- - Commands must be executable shell commands.
50
- - Include multiple commands when multiple independent processes are required.
51
- - Consider execution dependencies and command order.
52
- - Do not include installation commands; workflow runner installations are handled separately.
53
- - Infer commands from the supplied files and application architecture.
54
-
55
- ### files
56
-
57
- - Include all filenames applicable to the identified environment.
58
- - Use the exact file names supplied in the input.
59
- - Do not include file paths, directory paths, or modified filenames.
60
- - Include source files, configuration files, dependency manifests, build files, and other relevant files belonging to the environment.
61
- - Include files that contribute to the application's execution, configuration, build, or validation.
62
- - Do not include unrelated files merely because they are located in the same directory.
63
- - Do not omit files that are relevant to the environment.
64
- - A file must not be assigned to an unrelated environment.
65
- - A file may belong to multiple environments only when it genuinely contributes to the execution or configuration of each environment.
66
- - Do not create an environment solely to accommodate a file.
67
- - If multiple applications share files, include those shared files in each applicable environment.
68
-
69
- ## 3. DYNAMIC RUNNER RESTRICTION
70
-
71
- When `workflowRunner` is `"dynamic"`:
72
-
73
- - `commands` MUST always be an empty array.
74
- - Do not generate application execution commands.
75
- - Runtime identification is still required.
76
- - The `files` array must still contain all files applicable to this environment.
77
-
78
- Only generate executable commands when a predefined workflow runner is selected.
79
-
80
- ## 4. APPLICATION EXECUTION COMMANDS
81
-
82
- When a predefined workflow runner is selected:
83
-
84
- 1. Always identify the commands required to build, start, or execute the application.
85
- 2. Infer standard execution commands from the supplied files, project structure, configuration, dependency manifests, and available scripts.
86
- 3. Prefer existing project-defined commands when available.
87
- 4. When explicit commands are unavailable, infer the standard execution procedure based on the identified technology and application architecture.
88
- 5. Include all necessary commands for independently running application components.
89
- 6. Include commands in their required execution order.
90
- 7. Do not include dependency installation commands.
91
- 8. Do not leave `commands` empty when execution commands can reasonably be inferred.
92
- 9. Return an empty array only when execution commands cannot reasonably be determined.
93
- 10. Do not invent application-specific scripts or unsupported execution procedures.
94
-
95
- ## 5. HOLISTIC ANALYSIS
96
-
97
- 1. Analyze all supplied files collectively.
98
- 2. Identify application architecture, technology stack, and execution requirements.
99
- 3. Distinguish source files, configuration files, dependency manifests, build files, and entry points.
100
- 4. Identify related and independent applications.
101
- 5. Group files sharing the same execution lifecycle.
102
- 6. Identify separate frontend, backend, worker, or standalone execution environments when necessary.
103
- 7. Do not create environments for configuration files that do not independently require execution.
104
- 8. Prefer the most suitable available workflow runner.
105
- 9. Infer the most appropriate installable runtime and tooling based on the task.
106
- 10. Do not assume that missing execution commands mean an environment cannot be identified.
107
- 11. Create only the minimum environments necessary.
108
- 12. Ensure the selected runtime and workflow runner are compatible with the identified execution requirements.
109
- 13. Ensure every supplied file relevant to an identified application is included in the appropriate environment's `files` array.
110
- 14. Do not force unrelated files into an environment to achieve complete file coverage.
111
- 15. Ensure the same application is not unnecessarily split into multiple environments.
112
-
113
- ## 6. OUTPUT FORMAT
114
-
115
- Return strictly valid JSON using exactly this structure:
116
-
117
- {
118
- "environments": [
119
- {
120
- "workflowRunner": "runner-name-or-dynamic",
121
- "runtime": "Specific runtime and tooling required",
122
- "commands": [
123
- "execution command"
124
- ],
125
- "files": [
126
- "filename1",
127
- "filename2"
128
- ]
129
- }
130
- ]
131
- }
132
-
133
- ## 7. FINAL VALIDATION
134
-
135
- Before responding, verify that:
136
-
137
- - All supplied files were considered holistically.
138
- - The minimum required environments were identified.
139
- - The most suitable available workflow runner was selected.
140
- - `"dynamic"` was used only when no supplied runner was suitable.
141
- - Dynamic environments always have an empty `commands` array.
142
- - Concrete, installable runtimes and tools were identified.
143
- - Predefined runner environments contain the appropriate application execution commands whenever they can reasonably be inferred.
144
- - Commands are in the correct execution order.
145
- - No installation commands are included.
146
- - No unnecessary environments were created.
147
- - Every environment has a `files` array.
148
- - Each `files` array contains the exact filenames applicable to that environment.
149
- - No relevant supplied files were accidentally omitted.
150
- - No unrelated files were included.
151
- - Shared files are included in every environment where they are genuinely applicable.
152
- - The output is valid JSON and contains only the specified properties.
153
-
154
- Return only valid JSON. Do not include explanations, markdown, comments, or additional properties.