@xagent/x-cli 1.1.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +942 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +18925 -0
- package/dist/index.js.map +1 -0
- package/package.json +139 -0
package/package.json
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "module",
|
|
3
|
+
"name": "@xagent/x-cli",
|
|
4
|
+
"version": "1.1.36",
|
|
5
|
+
"description": "An open-source AI agent that brings the power of Grok directly into your terminal.",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"module": "dist/index.js",
|
|
8
|
+
"types": "dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.js"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"bin": {
|
|
16
|
+
"xcli": "dist/index.js"
|
|
17
|
+
},
|
|
18
|
+
"scripts": {
|
|
19
|
+
"build": "tsup",
|
|
20
|
+
"build:tsc": "tsc",
|
|
21
|
+
"dev": "npm run build && node dist/index.js",
|
|
22
|
+
"dev:node": "tsx src/index.ts",
|
|
23
|
+
"dev:watch": "npm run build && node --watch dist/index.js",
|
|
24
|
+
"start": "node dist/index.js",
|
|
25
|
+
"local": "npm run build && npm link && node dist/index.js",
|
|
26
|
+
"start:bun": "bun run dist/index.js",
|
|
27
|
+
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
|
|
28
|
+
"typecheck": "tsc --noEmit",
|
|
29
|
+
"install:bun": "bun install",
|
|
30
|
+
"preinstall": "echo 'đ¤ Installing X CLI...'",
|
|
31
|
+
"postinstall": "echo '==================================================' && echo 'â
X CLI installed successfully!' && echo '==================================================' && echo 'đ Try: xcli --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/x-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: ' && xcli --version 2>/dev/null || echo 'â ī¸ xcli not in PATH yet - follow above steps'",
|
|
32
|
+
"prepare": "husky install",
|
|
33
|
+
"dev:site": "cd apps/site && npm run start",
|
|
34
|
+
"build:site": "cd apps/site && npm run build",
|
|
35
|
+
"sync:docs": "cd apps/site && node src/scripts/sync-agent-docs.js",
|
|
36
|
+
"smart-push": "./scripts/smart-push.sh"
|
|
37
|
+
},
|
|
38
|
+
"lint-staged": {
|
|
39
|
+
"*.{ts,tsx}": [
|
|
40
|
+
"eslint --fix"
|
|
41
|
+
],
|
|
42
|
+
"*.{js,jsx,mjs}": [
|
|
43
|
+
"eslint --fix"
|
|
44
|
+
],
|
|
45
|
+
"*.{md,mdx}": [
|
|
46
|
+
"prettier --write"
|
|
47
|
+
],
|
|
48
|
+
"*.{json,yml,yaml}": [
|
|
49
|
+
"prettier --write"
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
"keywords": [
|
|
53
|
+
"cli",
|
|
54
|
+
"agent",
|
|
55
|
+
"text-editor",
|
|
56
|
+
"grok",
|
|
57
|
+
"ai"
|
|
58
|
+
],
|
|
59
|
+
"author": "grok_cli",
|
|
60
|
+
"license": "MIT",
|
|
61
|
+
"dependencies": {
|
|
62
|
+
"@modelcontextprotocol/sdk": "^1.17.0",
|
|
63
|
+
"@types/marked-terminal": "^6.1.1",
|
|
64
|
+
"@typescript-eslint/typescript-estree": "^8.46.0",
|
|
65
|
+
"ajv": "^8.17.1",
|
|
66
|
+
"ajv-formats": "^3.0.1",
|
|
67
|
+
"axios": "^1.7.0",
|
|
68
|
+
"cfonts": "^3.3.0",
|
|
69
|
+
"chalk": "^5.3.0",
|
|
70
|
+
"chokidar": "^4.0.3",
|
|
71
|
+
"cli-highlight": "^2.1.11",
|
|
72
|
+
"commander": "^12.0.0",
|
|
73
|
+
"dotenv": "^16.4.0",
|
|
74
|
+
"enquirer": "^2.4.1",
|
|
75
|
+
"fs-extra": "^11.2.0",
|
|
76
|
+
"fuse.js": "^7.1.0",
|
|
77
|
+
"glob": "^11.0.3",
|
|
78
|
+
"ink": "^4.4.1",
|
|
79
|
+
"js-yaml": "^4.1.0",
|
|
80
|
+
"marked": "^15.0.12",
|
|
81
|
+
"marked-terminal": "^7.3.0",
|
|
82
|
+
"openai": "^5.10.1",
|
|
83
|
+
"react": "^18.3.1",
|
|
84
|
+
"ripgrep-node": "^1.0.0",
|
|
85
|
+
"terminal-image": "^4.0.0",
|
|
86
|
+
"tiktoken": "^1.0.21"
|
|
87
|
+
},
|
|
88
|
+
"devDependencies": {
|
|
89
|
+
"@eslint/js": "^9.37.0",
|
|
90
|
+
"@types/fs-extra": "^11.0.2",
|
|
91
|
+
"@types/node": "^20.8.0",
|
|
92
|
+
"@types/react": "^18.3.3",
|
|
93
|
+
"@typescript-eslint/eslint-plugin": "^8.37.0",
|
|
94
|
+
"@typescript-eslint/parser": "^8.37.0",
|
|
95
|
+
"esbuild": "^0.25.10",
|
|
96
|
+
"eslint": "^9.31.0",
|
|
97
|
+
"husky": "^9.1.7",
|
|
98
|
+
"lint-staged": "^16.2.4",
|
|
99
|
+
"prettier": "^3.6.2",
|
|
100
|
+
"tsup": "^8.5.0",
|
|
101
|
+
"tsx": "^4.0.0"
|
|
102
|
+
},
|
|
103
|
+
"engines": {
|
|
104
|
+
"node": ">=18.0.0"
|
|
105
|
+
},
|
|
106
|
+
"preferGlobal": true,
|
|
107
|
+
"repository": {
|
|
108
|
+
"type": "git",
|
|
109
|
+
"url": "https://github.com/x-cli-team/x-cli.git"
|
|
110
|
+
},
|
|
111
|
+
"bugs": {
|
|
112
|
+
"url": "https://github.com/x-cli-team/x-cli/issues"
|
|
113
|
+
},
|
|
114
|
+
"homepage": "https://grokcli.dev",
|
|
115
|
+
"files": [
|
|
116
|
+
"dist/**/*",
|
|
117
|
+
"README.md",
|
|
118
|
+
"LICENSE"
|
|
119
|
+
],
|
|
120
|
+
"publishConfig": {
|
|
121
|
+
"access": "public"
|
|
122
|
+
},
|
|
123
|
+
"installConfig": {
|
|
124
|
+
"hoisting": false
|
|
125
|
+
},
|
|
126
|
+
"optionalDependencies": {
|
|
127
|
+
"tree-sitter": "^0.21.1",
|
|
128
|
+
"tree-sitter-javascript": "^0.21.2",
|
|
129
|
+
"tree-sitter-python": "^0.21.0",
|
|
130
|
+
"tree-sitter-typescript": "^0.21.2"
|
|
131
|
+
},
|
|
132
|
+
"trustedDependencies": [
|
|
133
|
+
"esbuild",
|
|
134
|
+
"tree-sitter",
|
|
135
|
+
"tree-sitter-javascript",
|
|
136
|
+
"tree-sitter-python",
|
|
137
|
+
"tree-sitter-typescript"
|
|
138
|
+
]
|
|
139
|
+
}
|