{"_id":"@akku_21/ai-commmit-message-generator","_rev":"1-47a22a71150f2aa9a2c8818c0207134b","name":"@akku_21/ai-commmit-message-generator","dist-tags":{"latest":"0.0.3"},"versions":{"0.0.2":{"name":"@akku_21/ai-commmit-message-generator","version":"0.0.2","author":{"name":"Jan Philipp Michel jan.p.michel@gmail.com>"},"license":"MIT","_id":"@akku_21/ai-commmit-message-generator@0.0.2","maintainers":[{"name":"akku_21","email":"jan.p.michel@googlemail.com"}],"homepage":"https://kubemcl.com","bugs":{"url":"https://github.com/Akku-21/bunnai/issues"},"bin":{"cm-gen":"dist/index.js"},"dist":{"shasum":"d8b4d2e2eebbea3084394c93086882a6ff0c9b07","tarball":"https://registry.npmjs.org/@akku_21/ai-commmit-message-generator/-/ai-commmit-message-generator-0.0.2.tgz","fileCount":4,"integrity":"sha512-yGOms7jFMGUCcpkmVkyLwT2Q56Stlk69+tizLWKrMg0XKPzLp++iVrZ4e2ty+AgCniJRty2p1cSmfjEJFyq3Kg==","signatures":[{"sig":"MEUCIQCWtJYG+2kFNeuRUNxPsMKzvPhA4e8Eky1VeiYnJCYBQAIgU+BKeSkpc1E0beaEPeZbaC/TPJ2/7E/aFILCkADOc0Y=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":165218},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"ba130ec1ec5f890a8b820635672e8c95df8e78bf","scripts":{"lint":"biome check src","build":"bun run build.mjs","start":"bun run src/index.ts","release":"bun run build && bumpp && npm publish","lint:fix":"biome format src --write"},"_npmUser":{"name":"akku_21","email":"jan.p.michel@googlemail.com"},"repository":{"url":"git+https://github.com/Akku-21/bunnai.git","type":"git"},"_npmVersion":"10.8.3","description":"let ai write commit messages for you","directories":{},"_nodeVersion":"22.2.0","dependencies":{"cleye":"^1.3.2","simple-git":"^3.27.0","@clack/core":"^0.3.4","@clack/prompts":"^0.7.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"bumpp":"^9.3.0","dotenv":"^16.4.1","@types/bun":"latest","typescript":"^5.0.0","@biomejs/biome":"^1.5.3","bun-plugin-dts":"^0.3.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-commmit-message-generator_0.0.2_1728997822997_0.5735293081206958","host":"s3://npm-registry-packages"}},"0.0.3":{"name":"@akku_21/ai-commmit-message-generator","description":"let ai write commit messages for you","version":"0.0.3","author":{"name":"Jan Philipp Michel jan.p.michel@gmail.com>"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/Akku-21/bunnai.git"},"main":"dist/index.js","devDependencies":{"@biomejs/biome":"^1.5.3","@types/bun":"latest","bumpp":"^9.3.0","bun-plugin-dts":"^0.3.0","dotenv":"^16.4.1","typescript":"^5.0.0"},"bin":{"cm-gen":"dist/index.js"},"bugs":{"url":"https://github.com/Akku-21/bunnai/issues"},"homepage":"https://kubemcl.com","license":"MIT","scripts":{"start":"bun run src/index.ts","build":"bun run build.mjs","release":"bun run build && bumpp && npm publish","lint":"biome check src","lint:fix":"biome format src --write"},"type":"module","dependencies":{"@clack/core":"^0.3.4","@clack/prompts":"^0.7.0","cleye":"^1.3.2","simple-git":"^3.27.0"},"_id":"@akku_21/ai-commmit-message-generator@0.0.3","gitHead":"e585104d32233270c6164db884f7422630c0e15d","types":"./dist/index.d.ts","_nodeVersion":"22.2.0","_npmVersion":"10.8.3","dist":{"integrity":"sha512-M3nncEFXz8eu55eIsUEI6CurioYSwDhwJkX1wKg89JAwmzYxc2fJ+xlRDUUfM5xpzFqRrOyzd8Kta7Twd4xlTw==","shasum":"a1747fd5a8a69f2dbb766e5404269a4ddcc3509e","tarball":"https://registry.npmjs.org/@akku_21/ai-commmit-message-generator/-/ai-commmit-message-generator-0.0.3.tgz","fileCount":4,"unpackedSize":165198,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID8iRXtyPcgQn4QDHcEQVnwUVrtgV7YRe1p+lASXDSl5AiBTK0ocl7Kb5oNGrf+vAuDiCJIIGGEqm1Oca2q8MZ6OZg=="}]},"_npmUser":{"name":"akku_21","email":"jan.p.michel@googlemail.com"},"directories":{},"maintainers":[{"name":"akku_21","email":"jan.p.michel@googlemail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ai-commmit-message-generator_0.0.3_1728998158114_0.1600575819363359"},"_hasShrinkwrap":false}},"time":{"created":"2024-10-15T13:10:22.908Z","modified":"2024-10-15T13:15:58.469Z","0.0.2":"2024-10-15T13:10:23.185Z","0.0.3":"2024-10-15T13:15:58.320Z"},"bugs":{"url":"https://github.com/Akku-21/bunnai/issues"},"author":{"name":"Jan Philipp Michel jan.p.michel@gmail.com>"},"license":"MIT","homepage":"https://kubemcl.com","repository":{"type":"git","url":"git+https://github.com/Akku-21/bunnai.git"},"description":"let ai write commit messages for you","maintainers":[{"name":"akku_21","email":"jan.p.michel@googlemail.com"}],"readme":"# ai-commit-message-generator\n\n<p align=\"center\">\n  <img src=\"https://github.com/chhoumann/bunnai/assets/29108628/1ec69e68-7d5e-4a4d-b4d6-56e202e1c54c\">\n</p>\n\nhave ai write commit messages for you in [lazygit](https://github.com/jesseduffield/lazygit).\n\nuses openai to generate commit message suggestions based on the diff between the current branch and master.\nthen you can select a commit message from the list and use it to commit your changes.\n\n## dependencies\n//markup link\n-   [aichat](https://github.com/sigoden/aichat)\ninstall and configure to use this plugin.\n\n## installation\n\n```sh\nbun install -g @akku_21/ai-commit-message-generator\n```\n\n```sh\ncm-gen config\n```\n\n## usage\n\nyou can specify custom templates. use `cm-gen config` to edit the templates.\nwhen you invoke `cm-gen`, you can specify a template name to use with `--template`.\n\n### as a menu\n\nthis creates a menu of commit messages based on the diff between the current branch and master.\n\ninsert the following custom command into your [lazygit](https://github.com/jesseduffield/lazygit) config file:\n\n```yaml\ncustomCommands:\n    - key: \"<c-a>\" # ctrl + a\n        description: \"pick AI commit\"\n        command: 'git commit -m \"{{.Form.Msg}}\"'\n        context: \"files\"\n        prompts:\n            - type: \"menuFromCommand\"\n            title: \"ai Commits\"\n            key: \"Msg\"\n            command: \"bunx cm-gen\"\n            filter: '^(?P<number>\\d+)\\.\\s(?P<message>.+)$'\n            valueFormat: \"{{ .message }}\"\n            labelFormat: \"{{ .number }}: {{ .message | green }}\"\n```\n\n### with vim\n\nthis allows you to edit the commit message in vim after you've selected it from the menu.\n\nabort comitting by deleting the commit message in vim.\n\n```yaml\ncustomCommands:\n    - key: \"<c-a>\" # ctrl + a\n      description: \"Pick AI commit\"\n      command: 'echo \"{{.Form.Msg}}\" > .git/COMMIT_EDITMSG && vim .git/COMMIT_EDITMSG && [ -s .git/COMMIT_EDITMSG ] && git commit -F .git/COMMIT_EDITMSG || echo \"Commit message is empty, commit aborted.\"'\n      context: \"files\"\n      subprocess: true\n      prompts:\n          - type: \"menuFromCommand\"\n            title: \"AI Commits\"\n            key: \"Msg\"\n            command: \"bunx cm-gen\"\n            filter: '^(?P<number>\\d+)\\.\\s(?P<message>.+)$'\n            valueFormat: \"{{ .message }}\"\n            labelFormat: \"{{ .number }}: {{ .message | green }}\"\n```\n\n## acknowledgements\n\ncheck out these other projects that inspired this one:\n\n-   https://github.com/BuilderIO/ai-shell\n-   https://github.com/sigoden/aichat\n-   forked from https://github.com/chhoumann/bunnai\n","readmeFilename":"README.md"}