forked from hinetapora/grok-cli-hurry-mode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
141 lines (141 loc) · 5.04 KB
/
package.json
File metadata and controls
141 lines (141 loc) · 5.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
{
"type": "module",
"name": "grok-cli-hurry-mode",
"version": "1.1.36",
"description": "An open-source AI agent that brings the power of Grok directly into your terminal.",
"main": "dist/index.js",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
}
},
"bin": {
"grok": "dist/index.js"
},
"scripts": {
"build": "tsup",
"build:tsc": "tsc",
"dev": "npm run build && node dist/index.js",
"dev:node": "tsx src/index.ts",
"dev:watch": "npm run build && node --watch dist/index.js",
"start": "node dist/index.js",
"local": "npm run build && npm link && 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",
"preinstall": "echo '🤖 Installing Grok CLI...'",
"postinstall": "echo '==================================================' && echo '✅ Grok CLI installed successfully!' && echo '==================================================' && echo '🚀 Try: grok --help' && echo '💡 If \"command not found\", add to PATH:' && node -e \"const p=process.platform;const isMac=p==='darwin';const isLinux=p==='linux';if(isMac||isLinux){const shell=isMac?'zshrc':'bashrc';console.log((isMac?'🍎 Mac':'🐧 Linux')+': echo \\'export PATH=\\\"$(npm config get prefix)/bin:$PATH\\\"\\' >> ~/.'+shell+' && source ~/.'+shell);}\" && echo '📖 Docs: https://github.com/hinetapora/grok-cli-hurry-mode#installation' && echo '🔑 Set API key: export GROK_API_KEY=your_key_here' && echo '==================================================' && echo '🔧 Auto-setup PATH? Press Enter to add (or Ctrl+C to skip)' && read -t 10 && node -e \"const fs=require('fs');const p=process.platform;const isMac=p==='darwin';const isLinux=p==='linux';if(isMac||isLinux){const shellFile=isMac?'.zshrc':'.bashrc';const rcPath=process.env.HOME+'/'+shellFile;const pathCmd='export PATH=\\\"$(npm config get prefix)/bin:$PATH\\\"';try{const content=fs.readFileSync(rcPath,'utf8');if(!content.includes(pathCmd)){fs.appendFileSync(rcPath,'\\n'+pathCmd+'\\n');console.log('✅ Added to ~/'+shellFile+' - restart terminal');}else{console.log('ℹ️ Already in ~/'+shellFile);}}catch(e){console.log('⚠️ Could not modify ~/'+shellFile+' - add manually');}}\" && echo '🔍 Verifying: ' && grok --version 2>/dev/null || echo '⚠️ grok not in PATH yet - follow above steps'",
"prepare": "husky install",
"dev:site": "cd apps/site && npm run start",
"build:site": "cd apps/site && npm run build",
"sync:docs": "cd apps/site && node src/scripts/sync-agent-docs.js",
"smart-push": "./scripts/smart-push.sh"
},
"lint-staged": {
"*.{ts,tsx}": [
"eslint --fix"
],
"*.{js,jsx,mjs}": [
"eslint --fix"
],
"*.{md,mdx}": [
"prettier --write"
],
"*.{json,yml,yaml}": [
"prettier --write"
]
},
"keywords": [
"cli",
"agent",
"text-editor",
"grok",
"ai"
],
"author": "grok_cli",
"license": "MIT",
"dependencies": {
"@modelcontextprotocol/sdk": "^1.17.0",
"@types/marked-terminal": "^6.1.1",
"@typescript-eslint/typescript-estree": "^8.46.0",
"ajv": "^8.17.1",
"ajv-formats": "^3.0.1",
"axios": "^1.7.0",
"cfonts": "^3.3.0",
"chalk": "^5.6.2",
"chokidar": "^4.0.3",
"cli-highlight": "^2.1.11",
"commander": "^12.0.0",
"dotenv": "^16.4.0",
"enquirer": "^2.4.1",
"fs-extra": "^11.2.0",
"fuse.js": "^7.1.0",
"glob": "^11.0.3",
"ink": "^6.5.0",
"js-yaml": "^4.1.0",
"marked": "^15.0.12",
"marked-terminal": "^7.3.0",
"openai": "^5.10.1",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"ripgrep-node": "^1.0.0",
"terminal-image": "^4.0.0",
"tiktoken": "^1.0.21",
"typescript": "^5.6.3"
},
"devDependencies": {
"@eslint/js": "^9.37.0",
"@types/fs-extra": "^11.0.2",
"@types/node": "^20.8.0",
"@types/react": "^19.0.0",
"@typescript-eslint/eslint-plugin": "^8.37.0",
"@typescript-eslint/parser": "^8.37.0",
"esbuild": "^0.25.10",
"eslint": "^9.31.0",
"husky": "^9.1.7",
"lint-staged": "^16.2.4",
"prettier": "^3.6.2",
"tsup": "^8.5.0",
"tsx": "^4.0.0"
},
"engines": {
"node": ">=18.0.0"
},
"preferGlobal": true,
"repository": {
"type": "git",
"url": "https://github.com/hinetapora/grok-cli-hurry-mode.git"
},
"bugs": {
"url": "https://github.com/hinetapora/grok-cli-hurry-mode/issues"
},
"homepage": "https://grokcli.dev",
"files": [
"dist/**/*",
"README.md",
"LICENSE"
],
"publishConfig": {
"access": "public"
},
"installConfig": {
"hoisting": false
},
"optionalDependencies": {
"tree-sitter": "0.21.1",
"tree-sitter-javascript": "^0.21.2",
"tree-sitter-python": "^0.21.0",
"tree-sitter-typescript": "^0.21.2"
},
"trustedDependencies": [
"esbuild",
"tree-sitter",
"tree-sitter-javascript",
"tree-sitter-python",
"tree-sitter-typescript"
]
}