@xagent/one-shot 1.1.87
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 +1152 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +22089 -0
- package/dist/index.js.map +1 -0
- package/package.json +136 -0
package/package.json
ADDED
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "module",
|
|
3
|
+
"name": "@xagent/one-shot",
|
|
4
|
+
"version": "1.1.87",
|
|
5
|
+
"description": "An open-source AI agent that brings advanced AI capabilities 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
|
+
"grok": "./dist/index.js"
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"dist",
|
|
20
|
+
"README.md",
|
|
21
|
+
"package.json"
|
|
22
|
+
],
|
|
23
|
+
"scripts": {
|
|
24
|
+
"local": "bun --watch src/index.ts",
|
|
25
|
+
"build": "tsup src/index.ts --format esm --dts",
|
|
26
|
+
"dev": "tsx watch src/index.ts",
|
|
27
|
+
"lint": "eslint src --ext .ts",
|
|
28
|
+
"typecheck": "tsc --noEmit",
|
|
29
|
+
"prepare": "husky install",
|
|
30
|
+
"dev:site": "cd apps/site && npm run start",
|
|
31
|
+
"build:site": "cd apps/site && npm run build",
|
|
32
|
+
"sync:docs": "cd apps/site && node src/scripts/sync-agent-docs.js",
|
|
33
|
+
"smart-push": "./scripts/smart-push.sh",
|
|
34
|
+
"push": "echo '🚨 BLOCKED: Use npm run smart-push instead' && echo '💡 Direct git push bypasses automation' && exit 1",
|
|
35
|
+
"git-push": "echo '🚨 BLOCKED: Use npm run smart-push instead' && echo '💡 Direct git push bypasses automation' && exit 1"
|
|
36
|
+
},
|
|
37
|
+
"lint-staged": {
|
|
38
|
+
".agent/**/*.{md,mdx}": "prettier --write",
|
|
39
|
+
"apps/site/docs/**/*.{md,mdx}": "prettier --write",
|
|
40
|
+
"*.{ts,tsx}": [
|
|
41
|
+
"eslint --fix --ignore-pattern 'dist/**'"
|
|
42
|
+
],
|
|
43
|
+
"*.{js,jsx,mjs}": [
|
|
44
|
+
"eslint --fix --ignore-pattern 'dist/**'"
|
|
45
|
+
],
|
|
46
|
+
"*.{md,mdx}": [
|
|
47
|
+
"prettier --write"
|
|
48
|
+
],
|
|
49
|
+
"*.{json,yml,yaml}": [
|
|
50
|
+
"prettier --write"
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
"keywords": [
|
|
54
|
+
"cli",
|
|
55
|
+
"agent",
|
|
56
|
+
"text-editor",
|
|
57
|
+
"ai",
|
|
58
|
+
"x-ai"
|
|
59
|
+
],
|
|
60
|
+
"author": "x-cli-team",
|
|
61
|
+
"license": "MIT",
|
|
62
|
+
"dependencies": {
|
|
63
|
+
"@modelcontextprotocol/sdk": "^1.17.0",
|
|
64
|
+
"@types/marked-terminal": "^6.1.1",
|
|
65
|
+
"@typescript-eslint/typescript-estree": "^8.46.0",
|
|
66
|
+
"ajv": "^8.17.1",
|
|
67
|
+
"ajv-formats": "^3.0.1",
|
|
68
|
+
"axios": "^1.7.0",
|
|
69
|
+
"cfonts": "^3.3.0",
|
|
70
|
+
"chalk": "^5.3.0",
|
|
71
|
+
"chokidar": "^4.0.3",
|
|
72
|
+
"cli-highlight": "^2.1.11",
|
|
73
|
+
"commander": "^12.0.0",
|
|
74
|
+
"dotenv": "^16.4.0",
|
|
75
|
+
"enquirer": "^2.4.1",
|
|
76
|
+
"fs-extra": "^11.2.0",
|
|
77
|
+
"fuse.js": "^7.1.0",
|
|
78
|
+
"glob": "^11.0.3",
|
|
79
|
+
"ink": "^4.4.1",
|
|
80
|
+
"js-yaml": "^4.1.0",
|
|
81
|
+
"marked": "^15.0.12",
|
|
82
|
+
"marked-terminal": "^7.3.0",
|
|
83
|
+
"openai": "^5.10.1",
|
|
84
|
+
"react": "^18.3.1",
|
|
85
|
+
"ripgrep-node": "^1.0.0",
|
|
86
|
+
"terminal-image": "^4.0.0",
|
|
87
|
+
"tiktoken": "^1.0.21"
|
|
88
|
+
},
|
|
89
|
+
"devDependencies": {
|
|
90
|
+
"@eslint/js": "^9.37.0",
|
|
91
|
+
"@types/fs-extra": "^11.0.2",
|
|
92
|
+
"@types/node": "^20.8.0",
|
|
93
|
+
"@types/react": "^18.3.3",
|
|
94
|
+
"@typescript-eslint/eslint-plugin": "^8.37.0",
|
|
95
|
+
"@typescript-eslint/parser": "^8.37.0",
|
|
96
|
+
"esbuild": "^0.25.10",
|
|
97
|
+
"eslint": "^9.31.0",
|
|
98
|
+
"husky": "^9.1.7",
|
|
99
|
+
"lint-staged": "^16.2.4",
|
|
100
|
+
"prettier": "^3.6.2",
|
|
101
|
+
"tsup": "^8.5.0",
|
|
102
|
+
"tsx": "^4.0.0"
|
|
103
|
+
},
|
|
104
|
+
"engines": {
|
|
105
|
+
"node": ">=18.0.0"
|
|
106
|
+
},
|
|
107
|
+
"preferGlobal": true,
|
|
108
|
+
"repository": {
|
|
109
|
+
"type": "git",
|
|
110
|
+
"url": "https://github.com/x-cli-team/x-cli.git"
|
|
111
|
+
},
|
|
112
|
+
"bugs": {
|
|
113
|
+
"url": "https://github.com/x-cli-team/x-cli/issues"
|
|
114
|
+
},
|
|
115
|
+
"homepage": "https://x-cli.dev",
|
|
116
|
+
"icon": "docs/assets/logos/x-cli-logo.svg",
|
|
117
|
+
"publishConfig": {
|
|
118
|
+
"access": "public"
|
|
119
|
+
},
|
|
120
|
+
"installConfig": {
|
|
121
|
+
"hoisting": false
|
|
122
|
+
},
|
|
123
|
+
"optionalDependencies": {
|
|
124
|
+
"tree-sitter": "^0.21.1",
|
|
125
|
+
"tree-sitter-javascript": "^0.23.4",
|
|
126
|
+
"tree-sitter-python": "^0.21.0",
|
|
127
|
+
"tree-sitter-typescript": "^0.21.2"
|
|
128
|
+
},
|
|
129
|
+
"trustedDependencies": [
|
|
130
|
+
"esbuild",
|
|
131
|
+
"tree-sitter",
|
|
132
|
+
"tree-sitter-javascript",
|
|
133
|
+
"tree-sitter-python",
|
|
134
|
+
"tree-sitter-typescript"
|
|
135
|
+
]
|
|
136
|
+
}
|