{"_id":"@aslepenkov/ai-shell-mistral","_rev":"5-0b91f36b58c92e9130510d37ff13d32e","name":"@aslepenkov/ai-shell-mistral","dist-tags":{"latest":"1.1.4"},"versions":{"1.1.0":{"name":"@aslepenkov/ai-shell-mistral","version":"1.1.0","_id":"@aslepenkov/ai-shell-mistral@1.1.0","maintainers":[{"name":"aslepenkov","email":"alexmichel249@gmail.com"}],"homepage":"https://github.com/aslepenkov/ai-shell-mistral#readme","bugs":{"url":"https://github.com/aslepenkov/ai-shell-mistral/issues"},"bin":{"ai":"dist/cli.mjs","ai-shell":"dist/cli.mjs"},"dist":{"shasum":"19c5d9f0aab8cbf7be5cf1302edece46bbfd8734","tarball":"https://registry.npmjs.org/@aslepenkov/ai-shell-mistral/-/ai-shell-mistral-1.1.0.tgz","fileCount":4,"integrity":"sha512-/OmzU+j5HLlrm8QYEMpkD0B2mmzv2qStlvEUMK17I3fNdIhtJeRXN2A5emyIDCXLlBDVEtkwk81anXtqTUv6kg==","signatures":[{"sig":"MEUCIGV+SzgycKxl4+BDCAGg/aBi1CkpBENCOXN//n8WW1VAAiEA3gx1sghcevNw1L3V3VBFqBh9wj0vOUbWv+fRCn7yHfU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":79036},"type":"module","gitHead":"c6b06a13c7d46af656167c75c38ffbec314cdd2e","scripts":{"lint":"prettier --check . && eslint","build":"pkgroll","start":"jiti ./src/cli.ts","lint:fix":"prettier --write . && eslint --fix","typecheck":"tsc","release:patch":"npm run build && npm version patch && npm run build && npm publish && git push --follow-tags"},"_npmUser":{"name":"aslepenkov","email":"alexmichel249@gmail.com"},"repository":{"url":"git+https://github.com/aslepenkov/ai-shell-mistral.git","type":"git"},"_npmVersion":"10.9.2","description":"A CLI that converts natural language to shell commands. Mistral fork","directories":{},"_nodeVersion":"22.14.0","dependencies":{"ini":"^4.0.0","axios":"^1.3.5","cleye":"^1.3.2","execa":"^7.1.1","dedent":"^0.7.0","i18next":"^22.4.15","kolorist":"^1.7.0","@nexssp/os":"^2.0.35","clipboardy":"^2.3.0","@clack/core":"latest","@clack/prompts":"latest","@dqbd/tiktoken":"^1.0.2","@mistralai/mistralai":"^1.5.1"},"_hasShrinkwrap":false,"devDependencies":{"jiti":"^1.17.0","eslint":"^8.38.0","pkgroll":"^1.9.0","prettier":"^2.8.8","@types/ini":"^1.3.31","typescript":"^4.9.5","@types/node":"^18.15.11","@types/dedent":"^0.7.0","@typescript-eslint/parser":"^5.57.1","eslint-plugin-unused-imports":"^2.0.0","@typescript-eslint/eslint-plugin":"^5.57.1"},"_npmOperationalInternal":{"tmp":"tmp/ai-shell-mistral_1.1.0_1741428950321_0.5729438081450475","host":"s3://npm-registry-packages-npm-production"}},"1.1.1":{"name":"@aslepenkov/ai-shell-mistral","version":"1.1.1","_id":"@aslepenkov/ai-shell-mistral@1.1.1","maintainers":[{"name":"aslepenkov","email":"alexmichel249@gmail.com"}],"homepage":"https://github.com/aslepenkov/ai-shell-mistral#readme","bugs":{"url":"https://github.com/aslepenkov/ai-shell-mistral/issues"},"bin":{"ai":"dist/cli.mjs","ai-shell":"dist/cli.mjs"},"dist":{"shasum":"33d6257e8de354f9063390e04d2f7c297bdc6e5b","tarball":"https://registry.npmjs.org/@aslepenkov/ai-shell-mistral/-/ai-shell-mistral-1.1.1.tgz","fileCount":4,"integrity":"sha512-a7ExhCA4ykX16q2Jg0YhxhQ/m3GPRXLAMAviuUIgMwyDdB9ldTKGls9u5z4CW5r+E7x3rMtQqY+qnJF/FwY5kg==","signatures":[{"sig":"MEQCIDN3XXSSDAtBbjABMX/FZCNiwhsPYzb8IdMBkZwHXqFtAiA6RMSZuxvOtY9KllewkhBPyXtT4D5qZ9+BHIhRgLyWtg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":79036},"type":"module","gitHead":"c6b06a13c7d46af656167c75c38ffbec314cdd2e","scripts":{"lint":"prettier --check . && eslint","build":"pkgroll","start":"jiti ./src/cli.ts","lint:fix":"prettier --write . && eslint --fix","typecheck":"tsc","release:patch":"npm run build && npm version patch && npm run build && npm publish && git push --follow-tags"},"_npmUser":{"name":"aslepenkov","email":"alexmichel249@gmail.com"},"repository":{"url":"git+https://github.com/aslepenkov/ai-shell-mistral.git","type":"git"},"_npmVersion":"10.9.2","description":"A CLI that converts natural language to shell commands. Mistral fork","directories":{},"_nodeVersion":"22.14.0","dependencies":{"ini":"^4.0.0","axios":"^1.3.5","cleye":"^1.3.2","execa":"^7.1.1","dedent":"^0.7.0","i18next":"^22.4.15","kolorist":"^1.7.0","@nexssp/os":"^2.0.35","clipboardy":"^2.3.0","@clack/core":"latest","@clack/prompts":"latest","@dqbd/tiktoken":"^1.0.2","@mistralai/mistralai":"^1.5.1"},"_hasShrinkwrap":false,"devDependencies":{"jiti":"^1.17.0","eslint":"^8.38.0","pkgroll":"^1.9.0","prettier":"^2.8.8","@types/ini":"^1.3.31","typescript":"^4.9.5","@types/node":"^18.15.11","@types/dedent":"^0.7.0","@typescript-eslint/parser":"^5.57.1","eslint-plugin-unused-imports":"^2.0.0","@typescript-eslint/eslint-plugin":"^5.57.1"},"_npmOperationalInternal":{"tmp":"tmp/ai-shell-mistral_1.1.1_1741429884526_0.741227947291575","host":"s3://npm-registry-packages-npm-production"}},"1.1.2":{"name":"@aslepenkov/ai-shell-mistral","version":"1.1.2","_id":"@aslepenkov/ai-shell-mistral@1.1.2","maintainers":[{"name":"aslepenkov","email":"alexmichel249@gmail.com"}],"homepage":"https://github.com/aslepenkov/ai-shell-mistral#readme","bugs":{"url":"https://github.com/aslepenkov/ai-shell-mistral/issues"},"bin":{"ai":"dist/cli.mjs","ai-shell":"dist/cli.mjs"},"dist":{"shasum":"e159b5dfff627cfe57c70edb0e7fd0ff99df3fcc","tarball":"https://registry.npmjs.org/@aslepenkov/ai-shell-mistral/-/ai-shell-mistral-1.1.2.tgz","fileCount":4,"integrity":"sha512-JVfiFyLjOT1IsR5caIC9BamPNiFSVK57asMrNqWJYz/niXrmELjjBIb9VmhgaT3fbHdhSvZqoo4YwV1wyWX5dg==","signatures":[{"sig":"MEQCIHhWKKuozY/KRQEiqgVj6MqY2tQb5nA8aCeYdOGbtVYNAiBR92hyY5iQ51TlRAQ1Q9oE7yBxESLKeGJS62NT8by63Q==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":79044},"type":"module","gitHead":"d8caa0624c6ec432f428e141c83b62ebd76604bb","scripts":{"lint":"prettier --check . && eslint","build":"pkgroll","start":"jiti ./src/cli.ts","lint:fix":"prettier --write . && eslint --fix","typecheck":"tsc","release:patch":"npm run build && npm version patch && npm run build && npm publish && git push --follow-tags"},"_npmUser":{"name":"aslepenkov","email":"alexmichel249@gmail.com"},"repository":{"url":"git+https://github.com/aslepenkov/ai-shell-mistral.git","type":"git"},"_npmVersion":"10.9.2","description":"A CLI that converts natural language to shell commands. Mistral fork","directories":{},"_nodeVersion":"22.14.0","dependencies":{"ini":"^4.0.0","axios":"^1.3.5","cleye":"^1.3.2","execa":"^7.1.1","dedent":"^0.7.0","i18next":"^22.4.15","kolorist":"^1.7.0","@nexssp/os":"^2.0.35","clipboardy":"^2.3.0","@clack/core":"latest","@clack/prompts":"latest","@dqbd/tiktoken":"^1.0.2","@mistralai/mistralai":"^1.5.1"},"_hasShrinkwrap":false,"devDependencies":{"jiti":"^1.17.0","eslint":"^8.38.0","pkgroll":"^1.9.0","prettier":"^2.8.8","@types/ini":"^1.3.31","typescript":"^4.9.5","@types/node":"^18.15.11","@types/dedent":"^0.7.0","@typescript-eslint/parser":"^5.57.1","eslint-plugin-unused-imports":"^2.0.0","@typescript-eslint/eslint-plugin":"^5.57.1"},"_npmOperationalInternal":{"tmp":"tmp/ai-shell-mistral_1.1.2_1741430011390_0.5915489722890659","host":"s3://npm-registry-packages-npm-production"}},"1.1.3":{"name":"@aslepenkov/ai-shell-mistral","version":"1.1.3","_id":"@aslepenkov/ai-shell-mistral@1.1.3","maintainers":[{"name":"aslepenkov","email":"alexmichel249@gmail.com"}],"homepage":"https://github.com/aslepenkov/ai-shell-mistral#readme","bugs":{"url":"https://github.com/aslepenkov/ai-shell-mistral/issues"},"bin":{"ai":"dist/cli.mjs","ai-shell":"dist/cli.mjs"},"dist":{"shasum":"f045b245caba8e17df491c609c098dd0f0d742d2","tarball":"https://registry.npmjs.org/@aslepenkov/ai-shell-mistral/-/ai-shell-mistral-1.1.3.tgz","fileCount":4,"integrity":"sha512-oj3aIrMxR7+WPdhqubpKeRa1tE+dvhpvx+A3ectT4svro+oL75q2k5knkcmYser6qqxmnVKp5QfwhXuxz1HQvw==","signatures":[{"sig":"MEUCICIuF8Z5c352jhQWX5B599yaP4QXoMrJanWa1yOFQlo1AiEAvAcRWcBZVK4EAUSy88ebglgvQD0M2CpHkAe38vJimPQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":79044},"type":"module","gitHead":"6a111cd2bb64030f68d598db360dd3fafeafaa4e","scripts":{"lint":"prettier --check . && eslint","build":"pkgroll","start":"jiti ./src/cli.ts","lint:fix":"prettier --write . && eslint --fix","typecheck":"tsc","release:patch":"npm run build && npm version patch && npm run build && npm publish && git push --follow-tags"},"_npmUser":{"name":"aslepenkov","email":"alexmichel249@gmail.com"},"repository":{"url":"git+https://github.com/aslepenkov/ai-shell-mistral.git","type":"git"},"_npmVersion":"10.9.2","description":"A CLI that converts natural language to shell commands. Mistral fork","directories":{},"_nodeVersion":"22.14.0","dependencies":{"ini":"^4.0.0","axios":"^1.3.5","cleye":"^1.3.2","execa":"^7.1.1","dedent":"^0.7.0","i18next":"^22.4.15","kolorist":"^1.7.0","@nexssp/os":"^2.0.35","clipboardy":"^2.3.0","@clack/core":"latest","@clack/prompts":"latest","@dqbd/tiktoken":"^1.0.2","@mistralai/mistralai":"^1.5.1"},"_hasShrinkwrap":false,"devDependencies":{"jiti":"^1.17.0","eslint":"^8.38.0","pkgroll":"^1.9.0","prettier":"^2.8.8","@types/ini":"^1.3.31","typescript":"^4.9.5","@types/node":"^18.15.11","@types/dedent":"^0.7.0","@typescript-eslint/parser":"^5.57.1","eslint-plugin-unused-imports":"^2.0.0","@typescript-eslint/eslint-plugin":"^5.57.1"},"_npmOperationalInternal":{"tmp":"tmp/ai-shell-mistral_1.1.3_1741430205804_0.627721946199391","host":"s3://npm-registry-packages-npm-production"}},"1.1.4":{"name":"@aslepenkov/ai-shell-mistral","description":"A CLI that converts natural language to shell commands. Mistral fork","version":"1.1.4","type":"module","license":"MIT","dependencies":{"@clack/core":"latest","@clack/prompts":"latest","@dqbd/tiktoken":"^1.0.2","@mistralai/mistralai":"^1.5.1","@nexssp/os":"^2.0.35","axios":"^1.3.5","cleye":"^1.3.2","clipboardy":"^2.3.0","dedent":"^0.7.0","execa":"^7.1.1","i18next":"^22.4.15","ini":"^4.0.0","kolorist":"^1.7.0"},"repository":{"type":"git","url":"git+https://github.com/aslepenkov/ai-shell-mistral.git"},"bin":{"ai-shell":"dist/cli.mjs","ai":"dist/cli.mjs"},"scripts":{"start":"jiti ./src/cli.ts","lint:fix":"prettier --write . && eslint --fix","lint":"prettier --check . && eslint","typecheck":"tsc","build":"pkgroll","release:patch":"npm run build && npm version patch && npm run build && npm publish && git push --follow-tags"},"devDependencies":{"@types/dedent":"^0.7.0","@types/ini":"^1.3.31","@types/node":"^18.15.11","@typescript-eslint/eslint-plugin":"^5.57.1","@typescript-eslint/parser":"^5.57.1","eslint":"^8.38.0","eslint-plugin-unused-imports":"^2.0.0","jiti":"^1.17.0","pkgroll":"^1.9.0","prettier":"^2.8.8","typescript":"^4.9.5"},"_id":"@aslepenkov/ai-shell-mistral@1.1.4","gitHead":"e06f516462674e7dee93a7bf6fe80c0046ad7fac","bugs":{"url":"https://github.com/aslepenkov/ai-shell-mistral/issues"},"homepage":"https://github.com/aslepenkov/ai-shell-mistral#readme","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-g0mwuivzXkjvhv1N2ZwIZRQpAXzsyv0ZUnezotnx4T86EHtSzH/wsp0TxSMfQo867VwTJO/9kKNYXuNs27tKkw==","shasum":"906833d1a6c0885de055bee8098f9d8a2e809992","tarball":"https://registry.npmjs.org/@aslepenkov/ai-shell-mistral/-/ai-shell-mistral-1.1.4.tgz","fileCount":4,"unpackedSize":77836,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIGlg8r1TGjiuR5lp+c93CQNGyuwmlw393OIGHN4WsbFMAiAy0I/hO+U7cT/UmMe6n1MYVBcUyBYrmCcKlafK3xIlQA=="}]},"_npmUser":{"name":"aslepenkov","email":"alexmichel249@gmail.com"},"directories":{},"maintainers":[{"name":"aslepenkov","email":"alexmichel249@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/ai-shell-mistral_1.1.4_1741683438826_0.5605822598965666"},"_hasShrinkwrap":false}},"time":{"created":"2025-03-08T10:15:50.261Z","modified":"2025-03-11T08:57:19.251Z","1.1.0":"2025-03-08T10:15:50.530Z","1.1.1":"2025-03-08T10:31:24.713Z","1.1.2":"2025-03-08T10:33:31.599Z","1.1.3":"2025-03-08T10:36:46.010Z","1.1.4":"2025-03-11T08:57:19.099Z"},"bugs":{"url":"https://github.com/aslepenkov/ai-shell-mistral/issues"},"homepage":"https://github.com/aslepenkov/ai-shell-mistral#readme","repository":{"type":"git","url":"git+https://github.com/aslepenkov/ai-shell-mistral.git"},"description":"A CLI that converts natural language to shell commands. Mistral fork","maintainers":[{"name":"aslepenkov","email":"alexmichel249@gmail.com"}],"readme":"<h2 align=\"center\">\n   <picture>\n      <source media=\"(prefers-color-scheme: dark)\" srcset=\"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fb5b9997cec2c4fffb3e5c5e9bb4fed7d\">\n      <img width=\"300\" alt=\"AI Shell logo\" src=\"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fb7f9d2d9911a4199a9d26f8ba210b3f8\">\n    </picture>\n</h2>\n\n<h4 align=\"center\">\n   A CLI that converts natural language to shell commands.\n</h4>\n<p align=\"center\">\n   <a href=\"https://www.npmjs.com/package/@builder.io/ai-shell\"><img src=\"https://img.shields.io/npm/v/@builder.io/ai-shell\" alt=\"Current version\"></a>\n</p>\n\n<p align=\"center\">\n   <img alt=\"Gif Demo\" src=\"https://user-images.githubusercontent.com/844291/230413167-773845e7-4c9f-44a5-909c-02802b5e49f6.gif\" >\n<p>\n\n<p align=\"center\">\n   # ai-shell-mistral-fork\n\n   ⚠️ **This is a fork of ai-shell-mistral by Builder.io.**  \n   This project includes modifications for using Mistral  \n\n   Original project: [Builder.io’s ai-shell](https://github.com/BuilderIO/ai-shell)  \n\n   Inspired by the <a href=\"https://githubnext.com/projects/copilot-cli\">GitHub Copilot X CLI</a>, but open source for everyone.\n</p>\n\n<br>\n\n# AI Shell\n\n## Setup\n\n> The minimum supported version of Node.js is v14\n\n1. Install _ai shell_:\n\n   ```sh\n   npm install -g @aslepenkov/ai-shell-mistral\n   ```\n\n2. Retrieve your API key from [Mistral](https://console.mistral.ai/api-keys)\n\n   > Note: If you haven't already, you'll have to create an account and set up billing.\n\n3. Set the key so ai-shell can use it:\n\n   ```sh\n   ai config set MISTRAL_KEY=<your token>\n   ```\n\n   This will create a `.ai-shell` file in your home directory.\n\n## Usage\n\n```bash\nai <prompt>\n```\n\nFor example:\n\n```bash\nai list all log files\n```\n\nThen you will get an output like this, where you can choose to run the suggested command, revise the command via a prompt, or cancel:\n\n```bash\n◇  Your script:\n│\n│  find . -name \"*.log\"\n│\n◇  Explanation:\n│\n│  1. Searches for all files with the extension \".log\" in the current directory and any subdirectories.\n│\n◆  Run this script?\n│  ● ✅ Yes (Lets go!)\n│  ○ 📝 Revise\n│  ○ ❌ Cancel\n└\n```\n\n### Special characters\n\nNote that some shells handle certain characters like the `?` or `*` or things that look like file paths specially. If you are getting strange behaviors, you can wrap the prompt in quotes to avoid issues, like below:\n\n```bash\nai 'what is my ip address'\n```\n\n### Chat mode\n\n![Chat demo](https://user-images.githubusercontent.com/844291/232889699-e13fb3fe-1659-4583-80ee-6c58d1bcbd06.gif)\n\n```bash\nai chat\n```\n\nWith this mode, you can engage in a conversation with the AI and receive helpful responses in a natural, conversational manner directly through the CLI:\n\n```sh\n┌  Starting new conversation\n│\n◇  You:\n│  how do I serve a redirect in express\n│\n◇  AI Shell:\n\nIn Express, you can use the `redirect()` method to serve a redirect. The `redirect()` method takes one argument, which is the URL that you want to redirect to.\n\nHere's an example:\n\n\\`\\`\\`js\napp.get('/oldurl', (req, res) => {\n  res.redirect('/newurl');\n});\n\\`\\`\\`\n```\n\n### Silent mode (skip explanations)\n\nYou can disable and skip the explanation section by using the flag `-s` or `--silent`\n\n```bash\nai -s list all log files\n```\n\nor save the option as a preference using this command:\n\n```bash\nai config set SILENT_MODE=true\n```\n\n\n### Set Language\n\n![Language UI](https://user-images.githubusercontent.com/1784873/235330029-0a3b394c-d797-41d6-8717-9a6b487f1ae8.gif)\n\nThe AI Shell's default language is English, but you can easily switch to your preferred language by using the corresponding language keys, as shown below:\n\n| Language            | Key     |\n| ------------------- | ------- |\n| English             | en      |\n| Simplified Chinese  | zh-Hans |\n| Traditional Chinese | zh-Hant |\n| Spanish             | es      |\n| Japanese            | jp      |\n| Korean              | ko      |\n| French              | fr      |\n| German              | de      |\n| Russian             | ru      |\n| Ukrainian           | uk      |\n| Vietnamese          | vi      |\n| Arabic              | ar      |\n| Portuguese          | pt      |\n| Turkish             | tr      |\n\nFor instance, if you want to switch to Simplified Chinese, you can do so by setting the LANGUAGE value to zh-Hans:\n\n```sh\nai config set LANGUAGE=zh-Hans\n```\n\nThis will set your language to Simplified Chinese.\n\n### Config UI\n\nTo use a more visual interface to view and set config options you can type:\n\n```bash\nai config\n```\n\nTo get an interactive UI like below:\n\n```bash\n◆  Set config:\n│  ○ Mistral Key\n│  ○ Silent Mode\n│  ○ Language\n│  ○ Cancel\n└\n```\n\n### Upgrading\n\nCheck the installed version with:\n\n```bash\nai --version\n```\n\nIf it's not the [latest version](https://github.com/BuilderIO/ai-shell/tags), run:\n\n```bash\nnpm update -g @aslepenkov/ai-shell-mistral\n```\n\nOr just use AI shell:\n\n```bash\nai update\n```\n","readmeFilename":"README.md","license":"MIT"}