Files
grok-cli/package.json
T
ad177ec77a Support global custom instructions from ~/.grok/GROK.md (#101)
* feat: add support for global custom instructions

* Remove comments

* Fix import syntax for fs-extra module (#112)

* Fix import syntax for fs-extra module

* Fix import syntax for fs-extra module

* Fix import syntax for fs-extra module

* Fix missing newline at end of morph-editor.ts

* Add where to set the API key in the json file (#107)

* Fix diff generation showing entire file as changed (fixes #83) (#98)

The diff preview was showing the entire file as changed when only a few
lines were actually modified. This was caused by a broken change detection
algorithm that couldn't properly handle insertions and deletions.

Replaced the naive line-matching algorithm with a proper LCS (Longest
Common Subsequence) based diff algorithm using dynamic programming. This
produces minimal, accurate diffs that match what git diff shows.

Changes:
- Added computeLCS(): Computes longest common subsequence between old/new lines
- Added extractChanges(): Extracts actual change regions from LCS table
- Updated generateDiff(): Uses LCS-based change detection instead of broken algorithm

Impact:
- Diff previews now show only actual changes (e.g., 4 lines instead of 260)
- Drastically reduces context pollution in conversation history
- Matches git diff output accuracy

🤖 Contributed by ZDS-AI (https://zds.group)

* add model migration manager and new grok models (#124)

* minor tweaks

---------

Co-authored-by: jszczypk <janusz@fide.pl>
Co-authored-by: Ben Faerber <benfaerber@protonmail.com>
Co-authored-by: Joseph Cheek <jcheek@users.noreply.github.com>
Co-authored-by: Ismail Pelaseyed <homanp@gmail.com>
2025-11-27 16:24:04 +01:00

68 lines
1.6 KiB
JSON

{
"name": "@vibe-kit/grok-cli",
"version": "0.0.34",
"description": "An open-source AI agent that brings the power of Grok directly into your terminal.",
"type": "module",
"main": "dist/index.js",
"exports": {
".": {
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
}
},
"bin": {
"grok": "dist/index.js"
},
"scripts": {
"build": "tsc",
"build:bun": "bun run tsc",
"dev": "bun run src/index.ts",
"dev:node": "tsx src/index.ts",
"start": "node dist/index.js",
"start:bun": "bun run dist/index.js",
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
"typecheck": "tsc --noEmit",
"install:bun": "bun install"
},
"keywords": [
"cli",
"agent",
"text-editor",
"grok",
"ai"
],
"author": "Your Name",
"license": "MIT",
"dependencies": {
"@modelcontextprotocol/sdk": "^1.17.0",
"axios": "^1.7.0",
"cfonts": "^3.3.0",
"chalk": "^5.3.0",
"commander": "^12.0.0",
"dotenv": "^16.4.0",
"enquirer": "^2.4.1",
"fs-extra": "^11.2.0",
"ink": "^4.4.1",
"marked": "^15.0.12",
"marked-terminal": "^7.3.0",
"openai": "^5.10.1",
"react": "^18.3.1",
"ripgrep-node": "^1.0.0",
"tiktoken": "^1.0.21"
},
"devDependencies": {
"@types/fs-extra": "^11.0.2",
"@types/node": "^20.8.0",
"@types/react": "^18.3.3",
"@typescript-eslint/eslint-plugin": "^8.37.0",
"@typescript-eslint/parser": "^8.37.0",
"eslint": "^9.31.0",
"tsx": "^4.0.0",
"typescript": "^5.3.3"
},
"engines": {
"node": ">=18.0.0"
},
"preferGlobal": true
}