{"_id":"@abanteai/mentat","_rev":"2-9221b9171007e66546af99457707946e","name":"@abanteai/mentat","dist-tags":{"latest":"0.1.0"},"versions":{"0.0.1":{"name":"@abanteai/mentat","version":"0.0.1","keywords":["ai","coding","assistant","cli","mentat","github","automation"],"author":{"name":"AbanteAI"},"license":"Apache-2.0","_id":"@abanteai/mentat@0.0.1","maintainers":[{"name":"ja3k","email":"jakethekoenig@gmail.com"}],"homepage":"https://mentat.ai/docs/cli","bugs":{"url":"https://github.com/AbanteAI/mentat/issues"},"bin":{"mentat":"dist/index.js"},"dist":{"shasum":"d3d546eefcc930b6e8ce442fd6fcb12bd7c70c49","tarball":"https://registry.npmjs.org/@abanteai/mentat/-/mentat-0.0.1.tgz","fileCount":4,"integrity":"sha512-gmK6YWd9XOx7uFQiAEYll2AEdIlRRQYiEFsSN5ukk/Hq6emoHH+xcz8o3Fx4uygV/eRQJm3EMXz0rZlT65M8hQ==","signatures":[{"sig":"MEYCIQDpUbncRmvAV96s62BK79XB63B6tw+03NIfcj+o8A/N7QIhAOJlfahbUcimphTE19Tg/aeTNnlDU3DliOu59+wkSQPL","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":367691},"type":"module","engines":{"bun":"^1.0.0","node":">=18.0.0"},"gitHead":"0bc012be1a373d93844edeee439da68050ede46d","scripts":{"dev":"tsx src/index.ts","lint":"eslint . --report-unused-disable-directives --max-warnings 0","test":"bun run build && vitest","build":"bun build src/index.ts --outdir dist --target node --format esm","format":"prettier --write .","predev":"bun run generate-constants && bun run generate-api-client","prepare":"bun run build","pretest":"bun run build","prebuild":"bun run generate-constants && bun run generate-api-client","test:run":"vitest run","format:check":"prettier --check .","test:coverage":"vitest run --coverage","generate-constants":"cd ../ && python -m mentat.utils.constants","generate-api-client":"cd .. && python -m scripts.generate_openapi_spec && cd cli && bunx openapi-typescript-codegen --useUnionTypes --input ../openapi/openapi.json --output ./src/api-client"},"_npmUser":{"name":"ja3k","email":"jakethekoenig@gmail.com"},"repository":{"url":"git+https://github.com/AbanteAI/mentat.git","type":"git","directory":"cli"},"_npmVersion":"10.8.2","description":"Command line interface for Mentat AI coding assistant","directories":{},"_nodeVersion":"20.19.5","dependencies":{"open":"^10.1.0","colorette":"^2.0.20","commander":"^12.1.0","simple-git":"^3.28.0"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","eslint":"^9.30.0","vitest":"^3.2.4","globals":"^15.14.0","prettier":"^3.5.3","typescript":"^5.6.2","@types/node":"^24.1.0","eslint-plugin-import":"^2.31.0","eslint-config-prettier":"^10.1.5","@typescript-eslint/parser":"^8.35.0","openapi-typescript-codegen":"^0.29.0","@typescript-eslint/eslint-plugin":"^8.35.0"},"_npmOperationalInternal":{"tmp":"tmp/mentat_0.0.1_1758131226443_0.5305756069998859","host":"s3://npm-registry-packages-npm-production"}},"0.1.0":{"name":"@abanteai/mentat","version":"0.1.0","description":"Command line interface for Mentat AI coding assistant","type":"module","author":{"name":"AbanteAI"},"license":"Apache-2.0","homepage":"https://mentat.ai/docs/cli","repository":{"type":"git","url":"git+https://github.com/AbanteAI/mentat.git","directory":"cli"},"keywords":["ai","coding","assistant","cli","mentat","github","automation"],"bin":{"mentat":"dist/index.js"},"scripts":{"generate-constants":"cd ../ && python -m mentat.utils.constants","generate-api-client":"cd .. && python -m scripts.generate_openapi_spec && cd cli && bunx openapi-typescript-codegen --useUnionTypes --input ../openapi/openapi.json --output ./src/api-client","prebuild":"bun run generate-constants && bun run generate-api-client","build":"bun build src/index.ts --outdir dist --target node --format esm","prepare":"bun run build","predev":"bun run generate-constants && bun run generate-api-client","dev":"tsx src/index.ts","format":"prettier --write .","format:check":"prettier --check .","lint":"eslint . --report-unused-disable-directives --max-warnings 0","pretest":"bun run build","test":"bun run build && vitest","test:run":"vitest run","test:coverage":"vitest run --coverage"},"engines":{"node":">=18.0.0","bun":"^1.0.0"},"dependencies":{"commander":"^12.1.0","open":"^10.1.0","simple-git":"^3.28.0","colorette":"^2.0.20"},"devDependencies":{"@types/node":"^24.1.0","@typescript-eslint/eslint-plugin":"^8.35.0","@typescript-eslint/parser":"^8.35.0","eslint":"^9.30.0","eslint-config-prettier":"^10.1.5","eslint-plugin-import":"^2.31.0","globals":"^15.14.0","openapi-typescript-codegen":"^0.29.0","prettier":"^3.5.3","tsx":"^4.19.2","typescript":"^5.6.2","vitest":"^3.2.4"},"_id":"@abanteai/mentat@0.1.0","gitHead":"583ebb39731f33f29aa4f394d1accd05117aa98b","bugs":{"url":"https://github.com/AbanteAI/mentat/issues"},"_nodeVersion":"20.19.5","_npmVersion":"10.8.2","dist":{"integrity":"sha512-G4z81Zmfiq5PTURvAvhWyJ7ZC3B8gZP45AXkMWkWHMbh1zvcxrJfBtj5xdl+EbqgERH1UoCk8NKlI4YHgkezzg==","shasum":"8f10b55cea24ca3ef6adb6676f21c2f525aa59e7","tarball":"https://registry.npmjs.org/@abanteai/mentat/-/mentat-0.1.0.tgz","fileCount":4,"unpackedSize":365813,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIFmhzC9BLlPM5JUS2uGmpBuRqVr4MUTwVT6pow4yycFkAiAzaP0ryOK3S/dU5GGlg4JOphq1zs/zxO0Lo6YM4Sf7Xg=="}]},"_npmUser":{"name":"ja3k","email":"jakethekoenig@gmail.com"},"directories":{},"maintainers":[{"name":"ja3k","email":"jakethekoenig@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mentat_0.1.0_1758137215780_0.8487968745916872"},"_hasShrinkwrap":false}},"time":{"created":"2025-09-17T17:47:06.349Z","modified":"2025-09-17T19:26:56.206Z","0.0.1":"2025-09-17T17:47:06.650Z","0.1.0":"2025-09-17T19:26:56.012Z"},"bugs":{"url":"https://github.com/AbanteAI/mentat/issues"},"author":{"name":"AbanteAI"},"license":"Apache-2.0","homepage":"https://mentat.ai/docs/cli","keywords":["ai","coding","assistant","cli","mentat","github","automation"],"repository":{"type":"git","url":"git+https://github.com/AbanteAI/mentat.git","directory":"cli"},"description":"Command line interface for Mentat AI coding assistant","maintainers":[{"name":"ja3k","email":"jakethekoenig@gmail.com"}],"readme":"# Mentat CLI\n\nCommand line interface for Mentat AI coding assistant.\n\n## Installation\n\nInstall the CLI globally from npm:\n\n```bash\nnpm install -g @abanteai/mentat\n```\n\nAfter installation, you can use `mentat` directly:\n\n```bash\nmentat login\nmentat ls\nmentat message --id <agent-id> \"Hello\"\n```\n\n## Commands\n\nThe primary commands are:\n\n### Create Agent\n\nCreate a new agent and send an initial message:\n\n```bash\nmentat create [message]\n```\n\nIf no message is provided, the CLI will open your default editor. The same comment filtering applies as described in the Send Message section.\n\nOptions:\n\n- `-W, --web`: Open the new agent in your browser after creation\n- `-r, --repo <owner/repo>`: Repository to create agent for (e.g., owner/repo)\n- `-b, --branch <branch>`: Branch to use (defaults to repository default)\n- `-m, --model <model>`: Model to use for the agent\n- `--show-filtered`: Show comment lines that were filtered out from editor input\n\nAliases: `new`\n\n### List Agents\n\nList your agents in a table format:\n\n```bash\nmentat list\nmentat ls  # alias\n```\n\nOptions:\n\n- `-p, --page <number>`: Page number (default: 0)\n- `-r, --rows <number>`: Rows per page (default: 20)\n- `-s, --search <query>`: Search query\n\nAliases: `ls`\n\n### Send Message\n\nSend a message to an agent:\n\n```bash\nmentat message [message]\nmentat comment [message]  # alias\nmentat msg [message]      # alias\n```\n\nIf no message is provided, the CLI will open your default editor.\n\nOptions:\n\n- `-W, --web`: Open the agent in browser after messaging\n- `-R, --repo <owner/repo>`: Repository to find agents in\n- `-b, --branch <branch>`: Branch to find agents for\n- `--id <agent-id>`: Send to specific agent by ID\n- `--number <number>`: Send to agents subscribed to PR/issue number\n- `--show-filtered`: Show comment lines that were filtered out from editor input\n\nAliases: `comment`, `msg`\n\nExample:\n\n```bash\nmentat message \"Please fix the bug in main.py\"\nmentat msg --id abc123 \"Add error handling\"\n```\n\n### View Agent\n\nView an agent's events:\n\n```bash\nmentat view [options]\n```\n\nOptions:\n\n- `-R, --repo <owner/repo>`: Repository to find agents for\n- `-b, --branch <branch>`: Branch to find agents for\n- `--id <agent-id>`: View specific agent by ID\n- `--number <number>`: View agents subscribed to PR/issue number\n\n### Checkout Agent Branch\n\nCheckout the most recent branch made by an agent:\n\n```bash\nmentat checkout [options]\nmentat co [options]  # alias\n```\n\nOptions:\n\n- `-R, --repo <owner/repo>`: Repository to find agents for\n- `-b, --branch <branch>`: Branch to find agents for\n- `--id <agent-id>`: Checkout branch from specific agent by ID\n- `--number <number>`: Checkout branch from agents subscribed to PR/issue number\n- `--live`: Apply uncommitted edits from the agent to local files\n\nAliases: `co`\n\n## Configuration\n\nThe CLI stores its configuration in `~/.mentat/config.json`. This file contains:\n\n- `token`: Your authentication token\n- `installationId`: Default installation ID (optional, can be overridden with --installation flag)\n\n## Getting Help\n\nUse the `--help` flag with any command to see available options:\n\n```bash\nmentat --help\nmentat ls --help\nmentat message --help\n```\n\n## Support\n\nFor support and documentation, visit [mentat.ai/docs/cli](https://mentat.ai/docs/cli).\n","readmeFilename":"README.md"}