1.2.69 • Published 6 months ago

apptoapp v1.2.69

Weekly downloads
-
License
ISC
Repository
-
Last release
6 months ago

🎉 Welcome to the AppToApp Transformer 🚀

Transform your code effortlessly with just a single command:

npx apptoapp "make a snake game"

Harness the power of CodeMistral 25 to convert, optimize, and enhance your application code with ease. This tool acts like a coding companion, ready to assist you in making your code better.

🌟 Overview

The AppToApp Transformer is a CLI tool designed to automate code transformations using advanced AI. It scans your project, generates a diff of its current state, and interacts with a CodeMistral 25-powered API to identify the necessary changes. After that, it applies those diffs to improve your codebase.

🛠️ Features

  • ✨ Intelligent Code Transformations: Leverage CodeMistral 25 to understand your project and provide actionable improvements.
  • 🔄 Automated Diff Application: Automatically generates diff patches and applies them to your project, streamlining the process.
  • 💻 Command Line Interface: Integrates smoothly into your workflow with a simple one-line command.
  • 🚫 Customizable Ignoring: Supports ignore patterns to exclude specific files or directories from processing, giving you control over what gets transformed. You can specify these patterns in a .gitignore-like format to tailor the transformation process to your needs.

🛠️ Custom Tool System

The tool system is customizable because it allows you to extend the functionality of the application by creating your own tools. Here's how it works:

Tool Definition and Discovery:

  • Tool Files: Tools are implemented as JavaScript files placed in either a tools directory within the project's root or within the same directory as tools.js.
  • JSDoc Metadata: Each tool file should contain a JSDoc comment block at the beginning of the file. This JSDoc block is parsed to extract metadata about the tool, such as its name, description, and parameters.
  • Metadata Tags: Specific JSDoc tags are used to define the tool's metadata:
    • @tool: Specifies the name of the tool. This name is used to identify and call the tool.
    • @description: Provides a brief description of what the tool does.
    • @param: Defines the parameters the tool accepts. For each parameter, you specify:
      • type: The data type of the parameter (e.g., string, number, boolean). This is extracted from the JSDoc type definition.
      • description: A description of the parameter's purpose.

Automatic Loading:

The loadTools function in tools.js automatically scans the designated tools directories, reads the content of each .js file, parses the JSDoc comments, and extracts the tool metadata. This metadata is then used to build a list of available tools.

Tool Implementation and Execution:

  • Implementation Function: Each tool file must export a function that implements the tool's logic. This function is what gets executed when the tool is called.
  • Parameter Handling: The executeToolCall function handles the execution of a tool. It retrieves the tool's implementation based on the toolCall.function.name and then calls the implementation function with the arguments provided in toolCall.arguments.
  • Dynamic Loading: Tools are loaded dynamically at runtime when the loadTools function is called. This means you can add new tool files without needing to restart the application (although in the current setup, tools are loaded once at startup).

Customization Process:

To create a custom tool, you would: 1. Create a new JavaScript file in the tools directory (or the directory containing tools.js). 2. Add a JSDoc comment block at the beginning of the file to define the tool's metadata using @tool, @description, and @param tags. 3. Implement the tool's logic in a function that is exported from the file. This function should accept parameters as defined in the JSDoc and return a result.

This design allows for a flexible and extensible tool system where users can easily add new functionalities by creating new tool files and defining their metadata through JSDoc comments.

1.2.60

6 months ago

1.2.63

6 months ago

1.2.64

6 months ago

1.2.61

6 months ago

1.2.62

6 months ago

1.2.67

6 months ago

1.2.68

6 months ago

1.2.65

6 months ago

1.2.66

6 months ago

1.2.69

6 months ago

1.2.41

6 months ago

1.2.42

6 months ago

1.2.40

6 months ago

1.2.45

6 months ago

1.2.46

6 months ago

1.2.43

6 months ago

1.2.44

6 months ago

1.2.49

6 months ago

1.2.47

6 months ago

1.2.48

6 months ago

1.2.52

6 months ago

1.2.53

6 months ago

1.2.50

6 months ago

1.2.51

6 months ago

1.2.56

6 months ago

1.2.57

6 months ago

1.2.54

6 months ago

1.2.55

6 months ago

1.2.58

6 months ago

1.2.59

6 months ago

1.2.18

6 months ago

1.2.19

6 months ago

1.2.20

6 months ago

1.2.23

6 months ago

1.2.24

6 months ago

1.2.21

6 months ago

1.2.22

6 months ago

1.2.27

6 months ago

1.2.28

6 months ago

1.2.25

6 months ago

1.2.26

6 months ago

1.2.29

6 months ago

1.2.30

6 months ago

1.2.31

6 months ago

1.2.34

6 months ago

1.2.35

6 months ago

1.2.32

6 months ago

1.2.33

6 months ago

1.2.38

6 months ago

1.2.39

6 months ago

1.2.36

6 months ago

1.2.37

6 months ago

1.2.8

6 months ago

1.2.7

6 months ago

1.2.12

6 months ago

1.2.13

6 months ago

1.2.10

6 months ago

1.2.11

6 months ago

1.2.16

6 months ago

1.2.17

6 months ago

1.2.14

6 months ago

1.2.15

6 months ago

1.2.9

6 months ago

1.2.6

6 months ago

1.2.5

6 months ago

1.2.4

6 months ago

1.2.3

6 months ago

1.2.2

6 months ago

1.0.19

6 months ago

1.0.2

6 months ago

1.0.18

6 months ago

1.0.17

6 months ago

1.0.16

6 months ago

1.0.9

6 months ago

1.0.8

6 months ago

1.0.7

6 months ago

1.0.6

6 months ago

1.0.5

6 months ago

1.0.4

6 months ago

1.0.3

6 months ago

1.0.22

6 months ago

1.0.21

6 months ago

1.0.20

6 months ago

1.0.26

6 months ago

1.0.25

6 months ago

1.0.24

6 months ago

1.0.23

6 months ago

1.0.29

6 months ago

1.0.28

6 months ago

1.0.27

6 months ago

1.0.11

6 months ago

1.0.10

6 months ago

1.0.15

6 months ago

1.0.14

6 months ago

1.0.13

6 months ago

1.0.12

6 months ago

0.1.52

7 months ago

0.1.53

7 months ago

0.1.54

7 months ago

0.1.55

7 months ago

0.1.56

7 months ago

0.1.57

7 months ago

0.2.22

7 months ago

0.2.21

7 months ago

0.2.20

7 months ago

0.1.51

7 months ago

0.2.13

7 months ago

0.2.12

7 months ago

0.2.11

7 months ago

0.2.10

7 months ago

0.1.5

7 months ago

0.2.7

7 months ago

0.2.6

7 months ago

0.2.9

7 months ago

0.2.8

7 months ago

0.2.5

7 months ago

0.0.186

11 months ago

0.0.185

11 months ago

0.0.184

11 months ago

0.0.183

11 months ago

0.0.189

11 months ago

0.0.188

11 months ago

0.0.187

11 months ago

0.0.181

11 months ago

0.0.191

11 months ago

0.0.190

11 months ago

0.0.169

11 months ago

0.0.163

12 months ago

0.0.162

12 months ago

0.0.161

12 months ago

0.0.168

11 months ago

0.0.167

11 months ago

0.0.166

11 months ago

0.0.165

11 months ago

0.0.160

12 months ago

0.0.1509

12 months ago

0.0.180

11 months ago

0.0.117

12 months ago

0.0.116

12 months ago

0.0.115

12 months ago

0.0.114

12 months ago

0.0.119

12 months ago

0.0.118

12 months ago

0.0.113

12 months ago

0.0.112

12 months ago

0.0.111

12 months ago

0.0.128

12 months ago

0.0.127

12 months ago

0.0.126

12 months ago

0.0.125

12 months ago

0.0.129

12 months ago

0.0.120

12 months ago

0.0.124

12 months ago

0.0.122

12 months ago

0.0.121

12 months ago

0.0.139

12 months ago

0.0.138

12 months ago

0.0.137

12 months ago

0.0.136

12 months ago

0.0.131

12 months ago

0.0.130

12 months ago

0.0.135

12 months ago

0.0.134

12 months ago

0.0.133

12 months ago

0.0.132

12 months ago

0.0.149

12 months ago

0.0.148

12 months ago

0.0.147

12 months ago

0.0.142

12 months ago

0.0.141

12 months ago

0.0.146

12 months ago

0.0.145

12 months ago

0.0.144

12 months ago

0.0.143

12 months ago

0.0.110

1 year ago

0.0.89

1 year ago

0.0.106

1 year ago

0.0.105

1 year ago

0.0.104

1 year ago

0.0.103

1 year ago

0.0.107

1 year ago

0.0.102

1 year ago

0.0.101

1 year ago

0.0.100

1 year ago

0.0.95

1 year ago

0.0.96

1 year ago

0.0.97

1 year ago

0.0.99

1 year ago

0.0.92

1 year ago

0.0.93

1 year ago

0.0.88

1 year ago

0.0.84

1 year ago

0.0.86

1 year ago

0.0.87

1 year ago

0.0.80

1 year ago

0.0.81

1 year ago

0.0.82

1 year ago

0.0.83

1 year ago

0.0.73

1 year ago

0.0.74

1 year ago

0.0.75

1 year ago

0.0.76

1 year ago

0.0.77

1 year ago

0.0.78

1 year ago

0.0.72

2 years ago

0.0.71

2 years ago

0.0.70

2 years ago

0.0.69

2 years ago

0.0.68

2 years ago

0.0.67

2 years ago

0.0.66

2 years ago

0.0.65

2 years ago

0.0.64

2 years ago

0.0.63

2 years ago

0.0.60

2 years ago

0.0.59

2 years ago

0.0.58

2 years ago

0.0.57

2 years ago

0.0.56

2 years ago

0.0.55

2 years ago

0.0.54

2 years ago

0.0.53

2 years ago

0.0.52

2 years ago

0.0.51

2 years ago

0.0.50

2 years ago

0.0.49

2 years ago

0.0.48

2 years ago

0.0.47

2 years ago

0.0.46

2 years ago

0.0.45

2 years ago

0.0.44

2 years ago

0.0.43

2 years ago

0.0.42

2 years ago

0.0.41

2 years ago

0.0.40

2 years ago

0.0.39

2 years ago

0.0.38

2 years ago

0.0.37

2 years ago

0.0.36

2 years ago

0.0.35

2 years ago

0.0.34

2 years ago

0.0.33

2 years ago

0.0.32

2 years ago

0.0.31

2 years ago

0.0.30

2 years ago

0.0.29

2 years ago

0.0.28

2 years ago

0.0.27

2 years ago

0.0.26

2 years ago

0.0.25

2 years ago

0.0.24

2 years ago

0.0.23

2 years ago

0.0.22

2 years ago

0.0.21

2 years ago

0.0.20

2 years ago

0.0.18

2 years ago

0.0.17

2 years ago

0.0.16

2 years ago

0.0.14

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago