1.2.69 • Published 5 months ago

apptoapp v1.2.69

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

5 months ago

1.2.63

5 months ago

1.2.64

5 months ago

1.2.61

5 months ago

1.2.62

5 months ago

1.2.67

5 months ago

1.2.68

5 months ago

1.2.65

5 months ago

1.2.66

5 months ago

1.2.69

5 months ago

1.2.41

5 months ago

1.2.42

5 months ago

1.2.40

5 months ago

1.2.45

5 months ago

1.2.46

5 months ago

1.2.43

5 months ago

1.2.44

5 months ago

1.2.49

5 months ago

1.2.47

5 months ago

1.2.48

5 months ago

1.2.52

5 months ago

1.2.53

5 months ago

1.2.50

5 months ago

1.2.51

5 months ago

1.2.56

5 months ago

1.2.57

5 months ago

1.2.54

5 months ago

1.2.55

5 months ago

1.2.58

5 months ago

1.2.59

5 months ago

1.2.18

5 months ago

1.2.19

5 months ago

1.2.20

5 months ago

1.2.23

5 months ago

1.2.24

5 months ago

1.2.21

5 months ago

1.2.22

5 months ago

1.2.27

5 months ago

1.2.28

5 months ago

1.2.25

5 months ago

1.2.26

5 months ago

1.2.29

5 months ago

1.2.30

5 months ago

1.2.31

5 months ago

1.2.34

5 months ago

1.2.35

5 months ago

1.2.32

5 months ago

1.2.33

5 months ago

1.2.38

5 months ago

1.2.39

5 months ago

1.2.36

5 months ago

1.2.37

5 months ago

1.2.8

5 months ago

1.2.7

5 months ago

1.2.12

5 months ago

1.2.13

5 months ago

1.2.10

5 months ago

1.2.11

5 months ago

1.2.16

5 months ago

1.2.17

5 months ago

1.2.14

5 months ago

1.2.15

5 months ago

1.2.9

5 months ago

1.2.6

5 months ago

1.2.5

5 months ago

1.2.4

5 months ago

1.2.3

5 months ago

1.2.2

5 months ago

1.0.19

5 months ago

1.0.2

5 months ago

1.0.18

5 months ago

1.0.17

5 months ago

1.0.16

5 months ago

1.0.9

5 months ago

1.0.8

5 months ago

1.0.7

5 months ago

1.0.6

5 months ago

1.0.5

5 months ago

1.0.4

5 months ago

1.0.3

5 months ago

1.0.22

5 months ago

1.0.21

5 months ago

1.0.20

5 months ago

1.0.26

5 months ago

1.0.25

5 months ago

1.0.24

5 months ago

1.0.23

5 months ago

1.0.29

5 months ago

1.0.28

5 months ago

1.0.27

5 months ago

1.0.11

5 months ago

1.0.10

5 months ago

1.0.15

5 months ago

1.0.14

5 months ago

1.0.13

5 months ago

1.0.12

5 months ago

0.1.52

6 months ago

0.1.53

6 months ago

0.1.54

6 months ago

0.1.55

6 months ago

0.1.56

6 months ago

0.1.57

6 months ago

0.2.22

6 months ago

0.2.21

6 months ago

0.2.20

6 months ago

0.1.51

6 months ago

0.2.13

6 months ago

0.2.12

6 months ago

0.2.11

6 months ago

0.2.10

6 months ago

0.1.5

6 months ago

0.2.7

6 months ago

0.2.6

6 months ago

0.2.9

6 months ago

0.2.8

6 months ago

0.2.5

6 months ago

0.0.186

10 months ago

0.0.185

10 months ago

0.0.184

10 months ago

0.0.183

10 months ago

0.0.189

10 months ago

0.0.188

10 months ago

0.0.187

10 months ago

0.0.181

10 months ago

0.0.191

10 months ago

0.0.190

10 months ago

0.0.169

10 months ago

0.0.163

11 months ago

0.0.162

11 months ago

0.0.161

11 months ago

0.0.168

10 months ago

0.0.167

10 months ago

0.0.166

10 months ago

0.0.165

10 months ago

0.0.160

11 months ago

0.0.1509

11 months ago

0.0.180

10 months ago

0.0.117

11 months ago

0.0.116

11 months ago

0.0.115

11 months ago

0.0.114

11 months ago

0.0.119

11 months ago

0.0.118

11 months ago

0.0.113

11 months ago

0.0.112

11 months ago

0.0.111

11 months ago

0.0.128

11 months ago

0.0.127

11 months ago

0.0.126

11 months ago

0.0.125

11 months ago

0.0.129

11 months ago

0.0.120

11 months ago

0.0.124

11 months ago

0.0.122

11 months ago

0.0.121

11 months ago

0.0.139

11 months ago

0.0.138

11 months ago

0.0.137

11 months ago

0.0.136

11 months ago

0.0.131

11 months ago

0.0.130

11 months ago

0.0.135

11 months ago

0.0.134

11 months ago

0.0.133

11 months ago

0.0.132

11 months ago

0.0.149

11 months ago

0.0.148

11 months ago

0.0.147

11 months ago

0.0.142

11 months ago

0.0.141

11 months ago

0.0.146

11 months ago

0.0.145

11 months ago

0.0.144

11 months ago

0.0.143

11 months ago

0.0.110

11 months ago

0.0.89

12 months ago

0.0.106

12 months ago

0.0.105

12 months ago

0.0.104

12 months ago

0.0.103

12 months ago

0.0.107

12 months ago

0.0.102

12 months ago

0.0.101

12 months ago

0.0.100

12 months ago

0.0.95

12 months ago

0.0.96

12 months ago

0.0.97

12 months ago

0.0.99

12 months ago

0.0.92

12 months ago

0.0.93

12 months ago

0.0.88

12 months ago

0.0.84

12 months ago

0.0.86

12 months ago

0.0.87

12 months ago

0.0.80

12 months ago

0.0.81

12 months ago

0.0.82

12 months ago

0.0.83

12 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