1.2.69 • Published 4 months ago

apptoapp v1.2.69

Weekly downloads
-
License
ISC
Repository
-
Last release
4 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

4 months ago

1.2.63

4 months ago

1.2.64

4 months ago

1.2.61

4 months ago

1.2.62

4 months ago

1.2.67

4 months ago

1.2.68

4 months ago

1.2.65

4 months ago

1.2.66

4 months ago

1.2.69

4 months ago

1.2.41

4 months ago

1.2.42

4 months ago

1.2.40

4 months ago

1.2.45

4 months ago

1.2.46

4 months ago

1.2.43

4 months ago

1.2.44

4 months ago

1.2.49

4 months ago

1.2.47

4 months ago

1.2.48

4 months ago

1.2.52

4 months ago

1.2.53

4 months ago

1.2.50

4 months ago

1.2.51

4 months ago

1.2.56

4 months ago

1.2.57

4 months ago

1.2.54

4 months ago

1.2.55

4 months ago

1.2.58

4 months ago

1.2.59

4 months ago

1.2.18

4 months ago

1.2.19

4 months ago

1.2.20

4 months ago

1.2.23

4 months ago

1.2.24

4 months ago

1.2.21

4 months ago

1.2.22

4 months ago

1.2.27

4 months ago

1.2.28

4 months ago

1.2.25

4 months ago

1.2.26

4 months ago

1.2.29

4 months ago

1.2.30

4 months ago

1.2.31

4 months ago

1.2.34

4 months ago

1.2.35

4 months ago

1.2.32

4 months ago

1.2.33

4 months ago

1.2.38

4 months ago

1.2.39

4 months ago

1.2.36

4 months ago

1.2.37

4 months ago

1.2.8

4 months ago

1.2.7

4 months ago

1.2.12

4 months ago

1.2.13

4 months ago

1.2.10

4 months ago

1.2.11

4 months ago

1.2.16

4 months ago

1.2.17

4 months ago

1.2.14

4 months ago

1.2.15

4 months ago

1.2.9

4 months ago

1.2.6

4 months ago

1.2.5

4 months ago

1.2.4

4 months ago

1.2.3

4 months ago

1.2.2

4 months ago

1.0.19

4 months ago

1.0.2

4 months ago

1.0.18

4 months ago

1.0.17

4 months ago

1.0.16

4 months ago

1.0.9

4 months ago

1.0.8

4 months ago

1.0.7

4 months ago

1.0.6

4 months ago

1.0.5

4 months ago

1.0.4

4 months ago

1.0.3

4 months ago

1.0.22

4 months ago

1.0.21

4 months ago

1.0.20

4 months ago

1.0.26

4 months ago

1.0.25

4 months ago

1.0.24

4 months ago

1.0.23

4 months ago

1.0.29

4 months ago

1.0.28

4 months ago

1.0.27

4 months ago

1.0.11

4 months ago

1.0.10

4 months ago

1.0.15

4 months ago

1.0.14

4 months ago

1.0.13

4 months ago

1.0.12

4 months ago

0.1.52

5 months ago

0.1.53

5 months ago

0.1.54

5 months ago

0.1.55

5 months ago

0.1.56

5 months ago

0.1.57

5 months ago

0.2.22

5 months ago

0.2.21

5 months ago

0.2.20

5 months ago

0.1.51

5 months ago

0.2.13

5 months ago

0.2.12

5 months ago

0.2.11

5 months ago

0.2.10

5 months ago

0.1.5

5 months ago

0.2.7

5 months ago

0.2.6

5 months ago

0.2.9

5 months ago

0.2.8

5 months ago

0.2.5

5 months ago

0.0.186

9 months ago

0.0.185

9 months ago

0.0.184

9 months ago

0.0.183

9 months ago

0.0.189

9 months ago

0.0.188

9 months ago

0.0.187

9 months ago

0.0.181

9 months ago

0.0.191

9 months ago

0.0.190

9 months ago

0.0.169

9 months ago

0.0.163

10 months ago

0.0.162

10 months ago

0.0.161

10 months ago

0.0.168

9 months ago

0.0.167

9 months ago

0.0.166

9 months ago

0.0.165

9 months ago

0.0.160

10 months ago

0.0.1509

10 months ago

0.0.180

9 months ago

0.0.117

10 months ago

0.0.116

10 months ago

0.0.115

10 months ago

0.0.114

10 months ago

0.0.119

10 months ago

0.0.118

10 months ago

0.0.113

10 months ago

0.0.112

10 months ago

0.0.111

10 months ago

0.0.128

10 months ago

0.0.127

10 months ago

0.0.126

10 months ago

0.0.125

10 months ago

0.0.129

10 months ago

0.0.120

10 months ago

0.0.124

10 months ago

0.0.122

10 months ago

0.0.121

10 months ago

0.0.139

10 months ago

0.0.138

10 months ago

0.0.137

10 months ago

0.0.136

10 months ago

0.0.131

10 months ago

0.0.130

10 months ago

0.0.135

10 months ago

0.0.134

10 months ago

0.0.133

10 months ago

0.0.132

10 months ago

0.0.149

10 months ago

0.0.148

10 months ago

0.0.147

10 months ago

0.0.142

10 months ago

0.0.141

10 months ago

0.0.146

10 months ago

0.0.145

10 months ago

0.0.144

10 months ago

0.0.143

10 months ago

0.0.110

10 months ago

0.0.89

11 months ago

0.0.106

11 months ago

0.0.105

11 months ago

0.0.104

11 months ago

0.0.103

11 months ago

0.0.107

11 months ago

0.0.102

11 months ago

0.0.101

11 months ago

0.0.100

11 months ago

0.0.95

11 months ago

0.0.96

11 months ago

0.0.97

11 months ago

0.0.99

11 months ago

0.0.92

11 months ago

0.0.93

11 months ago

0.0.88

11 months ago

0.0.84

11 months ago

0.0.86

11 months ago

0.0.87

11 months ago

0.0.80

11 months ago

0.0.81

11 months ago

0.0.82

11 months ago

0.0.83

11 months 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