{"_id":"@5x/command-ai","_rev":"2-b4bf4e8cd8a0adb1798ae4f131914dfa","name":"@5x/command-ai","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.1":{"name":"@5x/command-ai","version":"1.0.1","description":"AI in command line, powered by OpenAI","main":"app.js","repository":{"type":"git","url":"git@github.com:jack482653/command-ai.git"},"keywords":["OpenAI","ChatGPT","AI","command","cli","command-ai","utils"],"author":{"name":"5x","email":"longhorn482653@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/jack482653/command-ai/issues"},"homepage":"https://github.com/jack482653/command-ai#readme","devDependencies":{"pkg":"5.8.0","prettier":"2.8.4"},"dependencies":{"commander":"^10.0.0","openai":"^3.1.0"},"bin":{"openai":"app.js"},"scripts":{"build":"pkg app.js -c package.json --compress GZip","format":"prettier --write ."},"pkg":{"targets":["node16-macos-x64","node16-linux-x64","node16-win-x64"],"outputPath":"dist"},"licenseText":"MIT License\n\nCopyright (c) 2023 Wuxian Zhang\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","_id":"@5x/command-ai@1.0.1","dist":{"shasum":"95580bcf33dce4336267e5113fc5c80fbf584238","integrity":"sha512-f75WjhdTdrXZpAZAU1OFG/zSyQ/nlSOYE6GoLwMlMBG6DMF9cTUiHsPUWgnEF76eSbLVF2RPwpPx8YbE9dU1Fg==","tarball":"https://registry.npmjs.org/@5x/command-ai/-/command-ai-1.0.1.tgz","fileCount":11,"unpackedSize":6745,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHBw3J6GO3bIUbeEywEOmBKcQfRAFkv9x/Kg0USZe+z4AiBsAjPxMvv6HD9jRnZIicYr7PEztox3Lz2hlKGE4EYyLg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj+e99ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpTJRAAnVj+mrsJHhYqS6NcWPYrFLBbgTcnOtc/d8Y2EO5OBkxNJrdw\r\n7D2i+Bvple0Dh1TvlqR6rXquoXQUaeCaJ3FXC0fMayqmvRfWwjBpUBYd1Qex\r\nVmPXfrMW6JLoTjDMonJfSFepUaAgBJU+XtPJdUA2GnXZv1UfIgHy60y1bSoC\r\nh5OtT1VgQ4Wbyxbz97SS3YJLZGPrKy5RoCA1/IHo+BKEiuttw+2MdKWoVGFX\r\n1rXNOUH1UM+AeR8eN2ak/7Go/KLjeSmdSFU1JaawTuhmsi568TumbnCYUtJA\r\nsdlDSMuYmjx33U6KBljkcXuSx2u8Be/zEpsuZrVXCVu2RaYHiCzT+lunNfRC\r\nncrtB0qPUlrxiiNU+oDvfir9f+JPQ6siWFoHOd/ZzolBH4lSZHXaMM+asinf\r\nBC0yf7dGSz8jpNl9NkYLPyz6M22/CpRf6kSLKrj1V4YKYir8wHwuvP7XfBcD\r\nTGbPxNBfmXAazJRc4kIm3P6UWxim+yVwajKfy3sN8D7Z6ekZuHJ9WMD1HQsh\r\nnxRq+mQLfVZYjIc6VSv6Wgn2AMTleWPC9DhbuIKRUiNlOi5UPm0NeAMQLY98\r\n/OhhzEbbqXh8+x7gDe+FXDwUjS+CYmqpiDhFRZw1v/jJy59iuu2kTaDot7KQ\r\noCDomuQKuXGJosHLT7x+4X4ujAjkXM9WvvE=\r\n=LCqA\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jack482653","email":"longhorn482653@gmail.com"},"directories":{},"maintainers":[{"name":"jack482653","email":"longhorn482653@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-ai_1.0.1_1677324157485_0.20107875922672092"},"_hasShrinkwrap":false},"1.0.2":{"name":"@5x/command-ai","version":"1.0.2","description":"AI in command line, powered by OpenAI","main":"app.js","repository":{"type":"git","url":"git@github.com:jack482653/command-ai.git"},"keywords":["OpenAI","ChatGPT","AI","command","cli","command-ai","utils"],"author":{"name":"5x","email":"longhorn482653@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/jack482653/command-ai/issues"},"homepage":"https://github.com/jack482653/command-ai#readme","devDependencies":{"pkg":"5.8.0","prettier":"2.8.4"},"dependencies":{"commander":"^10.0.0","openai":"^3.1.0"},"bin":{"command-ai":"app.js"},"scripts":{"build":"pkg app.js -c package.json --compress GZip","format":"prettier --write ."},"pkg":{"targets":["node16-macos-x64","node16-linux-x64","node16-win-x64"],"outputPath":"dist"},"licenseText":"MIT License\n\nCopyright (c) 2023 Wuxian Zhang\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","_id":"@5x/command-ai@1.0.2","dist":{"shasum":"c7e49b569a53de1ed72d385d814536a03adcabaf","integrity":"sha512-mi+TBS/1vCPPAVmolYq5NyivalGy0TWHdBWvDLhWKfZ3xZoR/zI+u6Vk4SMAnYyI2u5NnY5UqYc8ChFHTIBMMQ==","tarball":"https://registry.npmjs.org/@5x/command-ai/-/command-ai-1.0.2.tgz","fileCount":13,"unpackedSize":8413,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG+4KWUtzjFf5KZ3w1tUl6pkApcW3ukqXDMvFSF7OIzbAiEAyzamsqosJQwQRnwUdmFdI9SHKFBr6k5KXgY3bVHM7BA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj+gu9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp8nRAAnoEaDeG3JM2O7gwUI9BV6VQYX5/XWtPGJzKGFr2d+lJJjlSQ\r\npAq1tZtE7AUuqPZVwL1l9zxnMVJYQWJ7ue6Zwv7cTqNXA1g6nRJJWSZZjgat\r\no3LN5j8JQlUGdXI5LlrFzD+/CSqWHmkk1kzD0gZqZC/ooR2J/e3R7GnQMyv7\r\nrScbbjts0FSTBd2n6mkSu+kwNuUyCEUkwkUIORl+jFi/c5s+CBVZZTh6ddnY\r\nGgEH99DvjFmjN9MkaW/ws6XsZi3jTzN44f8xKq+u/bnw+hFDUsq4ZChQPxmL\r\nV0MJNO9LjVYQtgjGU76fWHLPBiQM+cW1frTffOQRAHRC1fQyhNQXw5l0uz1H\r\nmLRt8BLE07KN0j0sqApDwjLrAWFRij38RcGeSb1RzlmalRgsKJO97IFIQ7eT\r\nMKNLmkQMrnv/QpShqEgjvtDiIussNr5T+M0utuiMLKx+cef/9yZOboB0mh3m\r\n3PB08PeUR22FTORhD6ALCOjjEpZ+H6z5edBl3z5yt0Q/IyZ5mub6b3kBJxTW\r\nGdQvjGso0RgBg44v0x+MJquwmSWukXY1yqkuyAn44HK4UHBumQPvY4f5fBLP\r\nUjTE83PsiUg+GoYromOxDbhZcgUlEMZ/DW43NzHdq/qUwOr8LVS2sqcYM5X/\r\noGsvbV3axfDIFxjG7oSNatQUuRSLeflFBkA=\r\n=0KoK\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jack482653","email":"longhorn482653@gmail.com"},"directories":{},"maintainers":[{"name":"jack482653","email":"longhorn482653@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-ai_1.0.2_1677331389647_0.5311183395561936"},"_hasShrinkwrap":false},"1.0.3":{"name":"@5x/command-ai","version":"1.0.3","description":"AI in command line, powered by OpenAI","main":"app.js","repository":{"type":"git","url":"git@github.com:jack482653/command-ai.git"},"keywords":["OpenAI","ChatGPT","AI","command","cli","command-ai","utils"],"author":{"name":"5x","email":"longhorn482653@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/jack482653/command-ai/issues"},"homepage":"https://github.com/jack482653/command-ai#readme","devDependencies":{"pkg":"5.8.0","prettier":"2.8.4"},"dependencies":{"@5x/enumjs":"^1.0.6","commander":"^10.0.0","openai":"^3.1.0"},"bin":{"command-ai":"app.js"},"scripts":{"build":"pkg app.js -c package.json --compress GZip","format":"prettier --write ."},"pkg":{"targets":["node16-macos-x64","node16-linux-x64","node16-win-x64"],"outputPath":"dist"},"licenseText":"MIT License\n\nCopyright (c) 2023 Wuxian Zhang\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","_id":"@5x/command-ai@1.0.3","dist":{"shasum":"6d729fac238e4e80cb69c5aad620032f273ce650","integrity":"sha512-nnekWpyjzTAEZBJVIwQT4f+VXTpkQHYNKAPv7po677hH9Fyi0lo1ZHwAkqZLVLW2T8zl13krdjf1G/WgUzk/dw==","tarball":"https://registry.npmjs.org/@5x/command-ai/-/command-ai-1.0.3.tgz","fileCount":15,"unpackedSize":10226,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCduDrSS8CRGhNzF6ZjTIe+Xx8t1twemloOnd9UALuBcgIgKkzomDKQfPhikK2rkk7Ki2ogg5pdUfZ9GeHPI14TR8E="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkAKpvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpKIRAAgv5qSpm+fo24f1lvd1wkEe3OYfic+EhtFR2Utx9dAgVEupJ5\r\nuTp6VX2vIwQhWa8Xvku0MhrK49yx3sBWa4eCK5c15Kszb5JPkzZ3N0XjYkyl\r\npKBe+9pLcV5secC9DfFPexH1V12BiyxijQR98qikkT5Jd/96rmkQJucSHBXl\r\nYPZWWgDNqAGb6LRpNjDkx5uWPn/0S5juRn8NLiKF742PwMZOoFLpc6N7Syob\r\nUN3BwfTchtqrxIzw5PoIWgB1G9e7Kk2dz19BJ6IN/gKdAnqho5W8SyNGOcBH\r\nyLo5pqD2wff0PKNk27pJ2IJqZBx7z0UcwrhciPQaNaZo/uj2LbizsA3N8vyr\r\nFuBjV5niF2Z5k1hczZIY6y2AF8vhzG09Fx80HF85jxDCTKwOg9bYgpmXU6NR\r\n8AjyAdQ7qqYARngKuzbuXHHQAr4Dl1RfvmG/iy1amkZ7Bjkoz8LRDe9NvuH6\r\nMgXwIS930Mov1KzWo5nBVxsgXP4r/BTWn+ldLTF/A6U/brnRFtOA+STcfKXw\r\nWsn7D2ZWqnZDglCFGwVNHTZl2/4IHWmFPN7GuJeJ2Bm8S1nu6g/0qSfYEF2T\r\nxl1tS0Jxg0toH5h9v+foXXyMPSI4tmMCKysgh2vBFxhKdWuaThQwkZ2zWGu+\r\nRLdO460XhEJfj3OUN5UGbt94BrO0OYwN/wU=\r\n=qjZI\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jack482653","email":"longhorn482653@gmail.com"},"directories":{},"maintainers":[{"name":"jack482653","email":"longhorn482653@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-ai_1.0.3_1677765231304_0.9913610923920431"},"_hasShrinkwrap":false}},"time":{"created":"2023-02-25T11:22:37.397Z","1.0.1":"2023-02-25T11:22:37.618Z","modified":"2023-03-02T13:53:51.571Z","1.0.2":"2023-02-25T13:23:09.789Z","1.0.3":"2023-03-02T13:53:51.482Z"},"maintainers":[{"name":"jack482653","email":"longhorn482653@gmail.com"}],"description":"AI in command line, powered by OpenAI","homepage":"https://github.com/jack482653/command-ai#readme","keywords":["OpenAI","ChatGPT","AI","command","cli","command-ai","utils"],"repository":{"type":"git","url":"git@github.com:jack482653/command-ai.git"},"author":{"name":"5x","email":"longhorn482653@gmail.com"},"bugs":{"url":"https://github.com/jack482653/command-ai/issues"},"license":"MIT","readme":"# command-ai\n[![Build Binary](https://github.com/jack482653/command-ai/actions/workflows/build.yml/badge.svg?event=release)](https://github.com/jack482653/command-ai/actions/workflows/build.yml)\n[![Publish to NPM](https://github.com/jack482653/command-ai/actions/workflows/publish.yml/badge.svg?event=release)](https://github.com/jack482653/command-ai/actions/workflows/publish.yml)\n[![npm version](https://badge.fury.io/js/@5x%2Fcommand-ai.svg)](https://badge.fury.io/js/@5x%2Fcommand-ai)\n\n<img width=\"631\" alt=\"image\" src=\"https://user-images.githubusercontent.com/6816342/221356981-199e620a-27c6-4503-be79-56b5f9eb4ce3.png\">\n\ncommand-ai is a command-line interface application that uses OpenAI's language models to generate text based on user input.\n\nThis document is generated by ChatGPT :P .\n\n## Installation\n\n### Install from npm\n\nTo install command-ai from npm, run the following command:\n\n```bash\nnpm install -g @5x/command-ai\n```\n\n### Download Binary\n\nAlternatively, you can download pre-built binaries for Linux, macOS, and Windows from the [GitHub releases page](https://github.com/jack482653/command-ai/releases/). \n\n## Usage\n\ncommand-ai can be used in the following ways:\n\nTo add an access token to the configuration file, run:\n\n```bash\ncommand-ai --add-token <token>\n```\n\nTo send a prompt and return the generated text, run:\n\n```bash\ncommand-ai --prompt \"Hello, how are you?\"\n```\n\nTo get today fate of the developer (?), run:\n\n```bash\ncommand-ai --fate\n```\n\nResult:\n\n<img width=\"628\" alt=\"CleanShot 2023-02-25 at 20 35 35@2x\" src=\"https://user-images.githubusercontent.com/6816342/221357094-8d3d6134-3a2b-4567-bc64-0d90a65593f8.png\">\n\nTo remove an access token from the configuration file, run:\n\n```bash\nopenai --remove-token\n```\n\n## Configuration\n\nAccess tokens are stored in a configuration file located at `~/.command-ai-config.json`.\n\n## Dependencies\n\ncommand-ai has the following dependencies:\n\n- `commander`\n- `openai`\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n","readmeFilename":"README.md"}