Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

scriptmonkey

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scriptmonkey - pypi Package Compare versions

Comparing version
1.4.0
to
1.4.2
+1
-1
PKG-INFO
Metadata-Version: 2.1
Name: scriptmonkey
Version: 1.4.0
Version: 1.4.2
Summary: A Python package that generates complex software projects and fixes errors in your code using OpenAI's GPT API.

@@ -5,0 +5,0 @@ Home-page: https://github.com/lukerbs/ScriptMonkey

Metadata-Version: 2.1
Name: scriptmonkey
Version: 1.4.0
Version: 1.4.2
Summary: A Python package that generates complex software projects and fixes errors in your code using OpenAI's GPT API.

@@ -5,0 +5,0 @@ Home-page: https://github.com/lukerbs/ScriptMonkey

@@ -306,2 +306,9 @@ import sys

def remove_code_block_lines(input_string):
"""Removes any lines from the input string that contain '```'."""
lines = input_string.splitlines()
filtered_lines = [line for line in lines if "```" not in line]
return "\n".join(filtered_lines)
def generate_code_for_file(file_description: dict, project_description: str, project_files: list) -> str:

@@ -336,3 +343,4 @@ """

"Use relevant imports, references, and appropriate formatting or structure where necessary. Do not add extra commentary or explanation. "
"Make sure to return the content directly, without wrapping it in any code fences like triple quotes or backticks."
"Make sure to return the content directly, without wrapping it in any code fences like triple quotes or backticks ."
"i.e. DO NOT include any triple backtrick wrappers at all for any code, (e.g. ```python<content here>```) just return the code as plain text."
f"\n\nFile Description: {file_description['description']}"

@@ -355,4 +363,3 @@ f"\n\n{context}\n"

# Clean up any unintended code blocks
if f"```{file_extension}" in generated_content:
generated_content = generated_content.split(f"```{file_extension}")[1].split("```")[0].strip()
generated_content = remove_code_block_lines(generated_content)

@@ -359,0 +366,0 @@ return generated_content

@@ -5,3 +5,3 @@ from setuptools import setup, find_packages

name="scriptmonkey",
version="1.4.0",
version="1.4.2",
description="A Python package that generates complex software projects and fixes errors in your code using OpenAI's GPT API.",

@@ -8,0 +8,0 @@ long_description=open("README.md", "r").read(),