{"_id":"@alexiej/ai-cmd","_rev":"3-8634622762828e721952d10c37794b7d","name":"@alexiej/ai-cmd","dist-tags":{"latest":"1.2.1"},"versions":{"1.1.0":{"name":"@alexiej/ai-cmd","version":"1.1.0","keywords":["git","ai","cli"],"author":{"name":"Arkadiusz Klemenko"},"license":"MIT","_id":"@alexiej/ai-cmd@1.1.0","maintainers":[{"name":"amada-org","email":"arek.klemenko@gmail.com"}],"homepage":"https://github.com/alexiej/ai-cmd#readme","bugs":{"url":"https://github.com/alexiej/ai-cmd/issues"},"bin":{"ai-cmd":"dist/cli.js"},"dist":{"shasum":"cf3e133c284a221d2ccda6cb4c57a9072cd34927","tarball":"https://registry.npmjs.org/@alexiej/ai-cmd/-/ai-cmd-1.1.0.tgz","fileCount":22,"integrity":"sha512-lJM7QHghBprSds+ZIVHoELPQnouah8N95e+DdKyoUxwW0z1a/wAUTiMBU7HU7obVSPyljrUFt7fFJdmZn/TkKQ==","signatures":[{"sig":"MEUCIQCaf7u0QUo1jhMZec1KqHWReZBpSIjxZCoIXaozKtV4LwIgNQCYq/GQ896WErGq/pbgWR6nXol0HK9fG9FiECCBMxk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":70725},"main":"index.js","type":"module","gitHead":"6be47798c36ae0939847480916c3bf66f4d4a8eb","scripts":{"build":"tsc && npm install -g .","start":"tsc && node ./dist/cli.js "},"_npmUser":{"name":"amada-org","email":"arek.klemenko@gmail.com"},"repository":{"url":"git+https://github.com/alexiej/ai-cmd.git","type":"git"},"_npmVersion":"10.2.4","description":"AI command-line tool with configuration and git commit features","directories":{},"_nodeVersion":"21.3.0","dependencies":{"boxen":"^8.0.1","chalk":"^5.3.0","figlet":"^1.8.0","openai":"^4.67.3","inquirer":"^12.0.0","ascii-art":"^2.8.5","commander":"^12.1.0","simple-git":"^3.27.0","@amada-org/ai-cmd":"^1.1.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.3","@types/node":"^22.7.5","@types/figlet":"^1.7.0","@types/ascii-art":"^1.4.3"},"_npmOperationalInternal":{"tmp":"tmp/ai-cmd_1.1.0_1728660527296_0.917630605943115","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"@alexiej/ai-cmd","version":"1.1.1","keywords":["git","ai","cli"],"author":{"name":"Arkadiusz Klemenko"},"license":"MIT","_id":"@alexiej/ai-cmd@1.1.1","maintainers":[{"name":"amada-org","email":"arek.klemenko@gmail.com"}],"homepage":"https://github.com/alexiej/ai-cmd#readme","bugs":{"url":"https://github.com/alexiej/ai-cmd/issues"},"bin":{"ai-cmd":"dist/cli.js"},"dist":{"shasum":"7f03212b77807a7022b5deab33166c0100cf0057","tarball":"https://registry.npmjs.org/@alexiej/ai-cmd/-/ai-cmd-1.1.1.tgz","fileCount":24,"integrity":"sha512-7SkCpX4h/vB+lvmhl8iSsvjgb3jmDDFfWD6VNmvtjOqr+++vNZ5/wd5MEUQwTkcM94ZMiFM20/wfSdiEuMm4NA==","signatures":[{"sig":"MEQCIEHiJpOpG0WgacKkwyTU5C40029umI8Kr55HDdTFNb2VAiA/XlSfTY8wFqbhPej83wlbKSPBhIT+l62SP0LYl8P+SA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":71230},"main":"index.js","type":"module","gitHead":"92ab908ef25e1d83be2a35365d8b81d23617c7a9","scripts":{"build":"tsc && npm install -g .","start":"tsc && node ./dist/cli.js "},"_npmUser":{"name":"amada-org","email":"arek.klemenko@gmail.com"},"repository":{"url":"git+https://github.com/alexiej/ai-cmd.git","type":"git"},"_npmVersion":"10.2.4","description":"AI command-line tool with configuration and git commit features","directories":{},"_nodeVersion":"21.3.0","dependencies":{"boxen":"^8.0.1","chalk":"^5.3.0","figlet":"^1.8.0","openai":"^4.67.3","inquirer":"^12.0.0","ascii-art":"^2.8.5","commander":"^12.1.0","simple-git":"^3.27.0","@amada-org/ai-cmd":"^1.1.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.3","@types/node":"^22.7.5","@types/figlet":"^1.7.0","@types/ascii-art":"^1.4.3"},"_npmOperationalInternal":{"tmp":"tmp/ai-cmd_1.1.1_1728883423571_0.4102978446686436","host":"s3://npm-registry-packages"}},"1.2.0":{"name":"@alexiej/ai-cmd","version":"1.2.0","keywords":["git","ai","cli"],"author":{"name":"Arkadiusz Klemenko"},"license":"MIT","_id":"@alexiej/ai-cmd@1.2.0","maintainers":[{"name":"amada-org","email":"arek.klemenko@gmail.com"}],"homepage":"https://github.com/alexiej/ai-cmd#readme","bugs":{"url":"https://github.com/alexiej/ai-cmd/issues"},"bin":{"ai-cmd":"dist/cli.js"},"dist":{"shasum":"361c86c0b3f49d22053ab69d8071b9803d34a04f","tarball":"https://registry.npmjs.org/@alexiej/ai-cmd/-/ai-cmd-1.2.0.tgz","fileCount":125,"integrity":"sha512-aj3qctXtLtbekVINDUqgIiULSptikN+mmJyoYe5u26RCM4ko4e67LHublv39fUczV9SNAYJMrQ9gMRuZmJFr0A==","signatures":[{"sig":"MEQCIFuS3JO08t7qrcCjoPaDECV3tMhYIJA5FiRNFEWwluXvAiAfOvVojJ9URh+UvZ2W9WrPMsrrr27cYiNE2Er3QQKQFg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":191252},"main":"index.js","type":"module","gitHead":"cf345cac74023c7b532396a32c8fd9ec61652f35","scripts":{"build":"tsc && npm install -g .","start":"tsc && node ./dist/cli.js "},"_npmUser":{"name":"amada-org","email":"arek.klemenko@gmail.com"},"repository":{"url":"git+https://github.com/alexiej/ai-cmd.git","type":"git"},"_npmVersion":"10.2.4","description":"AI command-line tool with configuration and git commit features","directories":{},"_nodeVersion":"21.3.0","dependencies":{"boxen":"^8.0.1","chalk":"^5.3.0","figlet":"^1.8.0","ollama":"^0.5.9","openai":"^4.67.3","inquirer":"^12.0.0","ascii-art":"^2.8.5","commander":"^12.1.0","minimatch":"^10.0.1","simple-git":"^3.27.0","highlight.js":"^11.10.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.3","@types/node":"^22.7.5","@types/figlet":"^1.7.0","@types/ascii-art":"^1.4.3"},"_npmOperationalInternal":{"tmp":"tmp/ai-cmd_1.2.0_1729230534776_0.31514607603501177","host":"s3://npm-registry-packages"}},"1.2.1":{"name":"@alexiej/ai-cmd","version":"1.2.1","description":"AI command-line tool with configuration and git commit features","main":"index.js","scripts":{"build":"tsc && npm install -g .","start":"tsc && node ./dist/cli.js "},"repository":{"type":"git","url":"git+https://github.com/alexiej/ai-cmd.git"},"keywords":["git","ai","cli"],"bugs":{"url":"https://github.com/alexiej/ai-cmd/issues"},"homepage":"https://github.com/alexiej/ai-cmd#readme","author":{"name":"Arkadiusz Klemenko"},"license":"MIT","bin":{"ai-cmd":"dist/cli.js"},"type":"module","devDependencies":{"@types/ascii-art":"^1.4.3","@types/figlet":"^1.7.0","@types/node":"^22.7.5","typescript":"^5.6.3"},"dependencies":{"ascii-art":"^2.8.5","boxen":"^8.0.1","chalk":"^5.3.0","commander":"^12.1.0","figlet":"^1.8.0","highlight.js":"^11.10.0","inquirer":"^12.0.0","minimatch":"^10.0.1","ollama":"^0.5.9","openai":"^4.67.3","simple-git":"^3.27.0"},"_id":"@alexiej/ai-cmd@1.2.1","gitHead":"89d8729cf750da6f06c36fc20c4e334795427cd8","_nodeVersion":"21.3.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-kPbPnOfmrdxTLHiqtEvI+aw1E/ieiv74qr6bpzcnJCVcTK1HJDS3Po2WvEGARB/job4r5aetbd3ik5Igkvb7pQ==","shasum":"889e01afec98a8dafa2601abcf8a76fe9c281a9b","tarball":"https://registry.npmjs.org/@alexiej/ai-cmd/-/ai-cmd-1.2.1.tgz","fileCount":125,"unpackedSize":192081,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCS1bzokDrN7Oo7kjoENBAnHjx05jqRDfTaSbclcuRHgAIgWwLToEdmuuAZXLsTvKMuTahBe2R4aB6NTH5yMuCzWA8="}]},"_npmUser":{"name":"amada-org","email":"arek.klemenko@gmail.com"},"directories":{},"maintainers":[{"name":"amada-org","email":"arek.klemenko@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ai-cmd_1.2.1_1729322112035_0.26533967797265023"},"_hasShrinkwrap":false}},"time":{"created":"2024-10-11T15:28:47.181Z","modified":"2024-10-19T07:15:12.493Z","1.1.0":"2024-10-11T15:28:47.515Z","1.1.1":"2024-10-14T05:23:43.734Z","1.2.0":"2024-10-18T05:48:54.998Z","1.2.1":"2024-10-19T07:15:12.326Z"},"bugs":{"url":"https://github.com/alexiej/ai-cmd/issues"},"author":{"name":"Arkadiusz Klemenko"},"license":"MIT","homepage":"https://github.com/alexiej/ai-cmd#readme","keywords":["git","ai","cli"],"repository":{"type":"git","url":"git+https://github.com/alexiej/ai-cmd.git"},"description":"AI command-line tool with configuration and git commit features","maintainers":[{"name":"amada-org","email":"arek.klemenko@gmail.com"}],"readme":"# AI Command-line tool\n\nVersion: \t1.2.1\n\n[![asciicast](https://asciinema.org/a/680800.svg)](https://asciinema.org/a/680800)\n\n\nThe AI Command-line Tool enhances your Git workflow by using AI models to automatically generate high-quality commit messages.\nCurrently, it supports OpenAI, with plans to expand support to other models in future releases.\nIt helps streamline the commit process by providing tailored, insightful messages\nbased on the changes in your repository, saving you time and ensuring consistent\ncommit formats.\n\nWith the AI Command-line Tool, you can:\n- Automatically generate conventional commit messages.\n- Easily configure and switch between models.\n- Show nice diff for changed files.\n\n## Features\n\n- **AI-powered commit messages**: Automatically generate detailed commit messages based on code changes.\n- **Support for multiple AI models**: Easily switch between OpenAI models.\n- **Integrated with Git**: Seamless interaction with Git for streamlined commit workflows.\n\n## Installation\n\nTo install the CLI tool globally, ensure you have Node.js installed, then run the following command:\n\n```bash\nnpm i @alexiej/ai-cmd\n```\n\n## Usage\n\n### Config Command\n\nTo configure the AI model run:\n\n```bash\nai-cmd config\n```\n\nThis will prompt you to select the AI model you want\n\n### Commit Command\n\nTo automatically generate a commit message and commit changes:\n\n```bash\nai-cmd commit\n```\n\nThis will analyze the changes in your Git repository, generate a commit message using the selected AI model, and commit the changes.\n\n**Example** generated commit message:\n\n```\nfeat: Add user authentication to the application\n\n- Implemented OAuth2 login flow.\n- Added user session management.\n- Fixed bugs related to session expiration.\n\nCloses #123\n```\n\n### Diff Command\n\nShow a Git diff of staged and unstaged changes with custom highlighting.\n\n\n```bash\nai-cmd diff -u src/**/*.ts\n```\n\n<img width=\"715\" alt=\"image\" src=\"https://github.com/user-attachments/assets/aae70dd5-7e56-4571-9a3e-266ddb7d2f29\">\n\n\n## Command Line Help\n\n```bash\nAI Command-line tool\n-----------------------------\nThis software enhances Git with AI-powered commit message generation\nusing OpenAI, Claude, and Ollama. Automatically create tailored,\ninsightful commit messages to streamline your development process.\n\n Version: \t 1.2.0\n Model: \t Ollama mistral\n\t\t [Ollama is live - 3 models available]\n\n Examples: \t ai-cmd diff -u src/**/*.ts\n \t \t ai-cmd commit\n\nOptions:\n  -V, --version             output the version number\n  -h, --help                display help for command\n\nCommands:\n  config                    Configure model\n  diff [options] [args...]  Show a Git diff of staged and unstaged changes with custom\n                            highlighting\n  commit                    Generate a Git commit based on the current staged changes and\n                            AI-suggested commit message\n  help [command]            display help for command\n```\n\n## Future improvements:\n\n- **Support for more AI models**: Expand support to other AI models beyond OpenAI, Claude, and Ollama.\n- **`review` process for code**: Implement a feature that allows the AI to review code changes and suggest improvements.\n- **`summary` process for code**: Implement a summary for the code\n- **`feature` process for code**: Implement a feature implementaation, when you can ask AI what to do, and it will generate the code\n\n- **Image generation**: Add functionality for generating images .\n\n\n## LICENCE\n\nMIT License\n\nCopyright (c) 2024 alexiej\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","readmeFilename":"README.md"}