@xagent/x-cli 1.1.84 → 1.1.88
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/README.md +25 -25
- package/dist/index.js +10 -8
- package/dist/index.js.map +1 -1
- package/package.json +6 -63
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<!-- Test comment for PR creation -->
|
|
2
2
|
|
|
3
|
-
## 1.1.
|
|
3
|
+
## 1.1.88 – Logo Assets & NPM Publication Complete
|
|
4
4
|
|
|
5
|
-
✅ **Live on NPM**: [@xagent/
|
|
5
|
+
✅ **Live on NPM**: [@xagent/one-shot](https://www.npmjs.com/package/@xagent/one-shot) - Fully published and ready for global installation
|
|
6
6
|
|
|
7
7
|
This release includes corrected logo assets and complete automated publishing pipeline.
|
|
8
8
|
|
|
@@ -15,9 +15,9 @@ This release includes corrected logo assets and complete automated publishing pi
|
|
|
15
15
|
|
|
16
16
|
# X CLI
|
|
17
17
|
|
|
18
|
-
[](https://www.npmjs.com/package/@xagent/one-shot)
|
|
19
19
|
[](https://github.com/x-cli-team/x-cli/releases)
|
|
20
|
-
[](https://www.npmjs.com/package/@xagent/one-shot)
|
|
21
21
|
[](https://github.com/x-cli-team/x-cli/blob/main/LICENSE)
|
|
22
22
|
[](https://discord.com/channels/1315720379607679066/1315822328139223064)
|
|
23
23
|
|
|
@@ -29,7 +29,7 @@ A conversational AI CLI tool powered by x.ai with **Claude Code-level intelligen
|
|
|
29
29
|
|
|
30
30
|
## 🔗 Quick Links
|
|
31
31
|
|
|
32
|
-
- **📦 [NPM Package](https://www.npmjs.com/package/@xagent/
|
|
32
|
+
- **📦 [NPM Package](https://www.npmjs.com/package/@xagent/one-shot)** - Install globally with `npm install -g @xagent/one-shot`
|
|
33
33
|
- **🐙 [GitHub Repository](https://github.com/x-cli-team/x-cli)** - Source code, issues, and contributions
|
|
34
34
|
- **🎯 [Competitive Parity Analysis](./.agent/parity/)** - Strategic analysis vs Claude Code, Cursor IDE, and OpenAI Codex
|
|
35
35
|
- **💬 [xAI Community Discord](https://discord.com/channels/1315720379607679066/1315822328139223064)** - Official xAI API community support
|
|
@@ -164,7 +164,7 @@ A conversational AI CLI tool powered by x.ai with **Claude Code-level intelligen
|
|
|
164
164
|
|
|
165
165
|
### 🌍 **Installation & Setup**
|
|
166
166
|
|
|
167
|
-
- **📦 Global Installation**: Install anywhere with `npm install -g @xagent/
|
|
167
|
+
- **📦 Global Installation**: Install anywhere with `npm install -g @xagent/one-shot`
|
|
168
168
|
- **⚙️ Flexible Configuration**: Environment variables, user settings, or project-specific configs
|
|
169
169
|
- **🔄 CI/CD Ready**: Headless mode perfect for automation and scripting
|
|
170
170
|
|
|
@@ -183,7 +183,7 @@ A conversational AI CLI tool powered by x.ai with **Claude Code-level intelligen
|
|
|
183
183
|
┌────────────────────────────────────┐
|
|
184
184
|
│ 🚀 One-Command Start │
|
|
185
185
|
├────────────────────────────────────┤
|
|
186
|
-
│ npx -y @xagent/
|
|
186
|
+
│ npx -y @xagent/one-shot@latest │
|
|
187
187
|
├────────────────────────────────────┤
|
|
188
188
|
│ Always latest version • Zero setup │
|
|
189
189
|
└────────────────────────────────────┘
|
|
@@ -193,7 +193,7 @@ A conversational AI CLI tool powered by x.ai with **Claude Code-level intelligen
|
|
|
193
193
|
**Option 1: Run without installing (Recommended)**
|
|
194
194
|
|
|
195
195
|
```bash
|
|
196
|
-
npx -y @xagent/
|
|
196
|
+
npx -y @xagent/one-shot@latest
|
|
197
197
|
```
|
|
198
198
|
|
|
199
199
|
_Always gets the latest version, no local installation needed_
|
|
@@ -201,20 +201,20 @@ _Always gets the latest version, no local installation needed_
|
|
|
201
201
|
**Option 2: Global installation**
|
|
202
202
|
|
|
203
203
|
```bash
|
|
204
|
-
npm install -g @xagent/
|
|
204
|
+
npm install -g @xagent/one-shot@latest
|
|
205
205
|
```
|
|
206
206
|
|
|
207
207
|
**Option 3: Alternative package managers**
|
|
208
208
|
|
|
209
209
|
```bash
|
|
210
210
|
# Using Yarn
|
|
211
|
-
yarn global add @xagent/
|
|
211
|
+
yarn global add @xagent/one-shot@latest
|
|
212
212
|
|
|
213
213
|
# Using pnpm
|
|
214
|
-
pnpm add -g @xagent/
|
|
214
|
+
pnpm add -g @xagent/one-shot@latest
|
|
215
215
|
|
|
216
216
|
# Using bun
|
|
217
|
-
bun add -g @xagent/
|
|
217
|
+
bun add -g @xagent/one-shot@latest
|
|
218
218
|
```
|
|
219
219
|
|
|
220
220
|
### 🛠️ PATH Setup (If `xcli` command not found)
|
|
@@ -253,13 +253,13 @@ which xcli # Should show installation path
|
|
|
253
253
|
**Try without installing:**
|
|
254
254
|
|
|
255
255
|
```bash
|
|
256
|
-
X_API_KEY=your_api_key_here npx -y @xagent/
|
|
256
|
+
X_API_KEY=your_api_key_here npx -y @xagent/one-shot@latest --help
|
|
257
257
|
```
|
|
258
258
|
|
|
259
259
|
**Or install globally:**
|
|
260
260
|
|
|
261
261
|
```bash
|
|
262
|
-
npm install -g @xagent/
|
|
262
|
+
npm install -g @xagent/one-shot@latest && \
|
|
263
263
|
echo 'export X_API_KEY=your_api_key_here' >> ~/.zshrc && \
|
|
264
264
|
source ~/.zshrc && \
|
|
265
265
|
xcli --help
|
|
@@ -448,7 +448,7 @@ The **`.agent` folder** is the most powerful feature of X CLI, enabling **self-d
|
|
|
448
448
|
|
|
449
449
|
### 🏗️ **How It Works**
|
|
450
450
|
|
|
451
|
-
When you run `npx -y @xagent/
|
|
451
|
+
When you run `npx -y @xagent/one-shot@latest`, the CLI automatically detects and reads `.agent/` documentation:
|
|
452
452
|
|
|
453
453
|
1. **Auto-Discovery**: Scans for `.agent/` folder in current directory
|
|
454
454
|
2. **Configuration Loading**: Reads `.xcli/auto-read-config.json` (distributed) or `.agent/auto-read-config.json` (project override)
|
|
@@ -850,7 +850,7 @@ Every push to the `main` branch automatically:
|
|
|
850
850
|
1. **🔄 Bumps version** (patch increment: 1.0.X → 1.0.X+1)
|
|
851
851
|
2. **📝 Updates README** with new version number
|
|
852
852
|
3. **🏗️ Builds the project** with fresh dependencies
|
|
853
|
-
4. **📦 Publishes to NPM** at https://www.npmjs.com/package/@xagent/
|
|
853
|
+
4. **📦 Publishes to NPM** at https://www.npmjs.com/package/@xagent/one-shot
|
|
854
854
|
5. **🏷️ Creates git tag** (e.g., `v1.0.87`)
|
|
855
855
|
|
|
856
856
|
**⏱️ Timeline**: ~3-5 minutes from push to NPM availability
|
|
@@ -911,7 +911,7 @@ npm run smart-push
|
|
|
911
911
|
|
|
912
912
|
```json
|
|
913
913
|
{
|
|
914
|
-
"name": "@xagent/
|
|
914
|
+
"name": "@xagent/one-shot", // ⚠️ NEVER change - breaks publishing
|
|
915
915
|
"publishConfig": {
|
|
916
916
|
"access": "public" // ⚠️ Must NOT include registry override
|
|
917
917
|
}
|
|
@@ -946,7 +946,7 @@ git push origin main --follow-tags
|
|
|
946
946
|
### 📊 Monitoring
|
|
947
947
|
|
|
948
948
|
- **GitHub Actions**: https://github.com/x-cli-team/x-cli/actions
|
|
949
|
-
- **NPM Package**: https://www.npmjs.com/package/@xagent/
|
|
949
|
+
- **NPM Package**: https://www.npmjs.com/package/@xagent/one-shot
|
|
950
950
|
- **Release History**: Check git tags or NPM version history
|
|
951
951
|
|
|
952
952
|
### 🛠️ Troubleshooting
|
|
@@ -995,7 +995,7 @@ This project is based on [xcli-cli](https://github.com/superagent-ai/xcli-cli) b
|
|
|
995
995
|
|
|
996
996
|
```bash
|
|
997
997
|
# Check if xcli is installed
|
|
998
|
-
npm list -g @xagent/
|
|
998
|
+
npm list -g @xagent/one-shot
|
|
999
999
|
|
|
1000
1000
|
# If installed but not in PATH, add npm global bin to PATH:
|
|
1001
1001
|
echo 'export PATH="$(npm config get prefix)/bin:$PATH"' >> ~/.zshrc
|
|
@@ -1009,7 +1009,7 @@ xcli --version
|
|
|
1009
1009
|
|
|
1010
1010
|
```bash
|
|
1011
1011
|
# Option 1: Use npx (no installation needed)
|
|
1012
|
-
npx @xagent/
|
|
1012
|
+
npx @xagent/one-shot@latest
|
|
1013
1013
|
|
|
1014
1014
|
# Option 2: Fix npm permissions (macOS/Linux)
|
|
1015
1015
|
sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share}
|
|
@@ -1026,8 +1026,8 @@ source ~/.zshrc
|
|
|
1026
1026
|
```bash
|
|
1027
1027
|
# Clear npm cache and reinstall
|
|
1028
1028
|
npm cache clean --force
|
|
1029
|
-
npm uninstall -g @xagent/
|
|
1030
|
-
npm install -g @xagent/
|
|
1029
|
+
npm uninstall -g @xagent/one-shot
|
|
1030
|
+
npm install -g @xagent/one-shot@latest
|
|
1031
1031
|
```
|
|
1032
1032
|
|
|
1033
1033
|
**🚨 Outdated version**
|
|
@@ -1035,10 +1035,10 @@ npm install -g @xagent/x-cli@latest
|
|
|
1035
1035
|
```bash
|
|
1036
1036
|
# Check current version
|
|
1037
1037
|
xcli --version
|
|
1038
|
-
npm view @xagent/
|
|
1038
|
+
npm view @xagent/one-shot version
|
|
1039
1039
|
|
|
1040
1040
|
# Update to latest
|
|
1041
|
-
npm update -g @xagent/
|
|
1041
|
+
npm update -g @xagent/one-shot@latest
|
|
1042
1042
|
```
|
|
1043
1043
|
|
|
1044
1044
|
### Tool Execution Errors
|
|
@@ -1095,7 +1095,7 @@ This project is built upon the excellent foundation of the original [X-CLI](http
|
|
|
1095
1095
|
|
|
1096
1096
|
X CLI extends the original with advanced file operations, enhanced tool systems, and comprehensive automation while maintaining the core vision of bringing AI-powered terminal intelligence to developers.
|
|
1097
1097
|
|
|
1098
|
-
**🚀 Now live on NPM**: Install globally with `npm install -g @xagent/
|
|
1098
|
+
**🚀 Now live on NPM**: Install globally with `npm install -g @xagent/one-shot` and start using `xcli` immediately!
|
|
1099
1099
|
|
|
1100
1100
|
## 👥 Contributors
|
|
1101
1101
|
|
package/dist/index.js
CHANGED
|
@@ -16196,8 +16196,8 @@ var init_package = __esm({
|
|
|
16196
16196
|
"package.json with { type: 'json' }"() {
|
|
16197
16197
|
package_default = {
|
|
16198
16198
|
type: "module",
|
|
16199
|
-
name: "@xagent/
|
|
16200
|
-
version: "1.1.
|
|
16199
|
+
name: "@xagent/one-shot",
|
|
16200
|
+
version: "1.1.88",
|
|
16201
16201
|
description: "An open-source AI agent that brings advanced AI capabilities directly into your terminal.",
|
|
16202
16202
|
main: "dist/index.js",
|
|
16203
16203
|
module: "dist/index.js",
|
|
@@ -16217,6 +16217,7 @@ var init_package = __esm({
|
|
|
16217
16217
|
"package.json"
|
|
16218
16218
|
],
|
|
16219
16219
|
scripts: {
|
|
16220
|
+
local: "bun --watch src/index.ts",
|
|
16220
16221
|
build: "tsup src/index.ts --format esm --dts",
|
|
16221
16222
|
dev: "tsx watch src/index.ts",
|
|
16222
16223
|
lint: "eslint src --ext .ts",
|
|
@@ -16231,7 +16232,7 @@ var init_package = __esm({
|
|
|
16231
16232
|
},
|
|
16232
16233
|
"lint-staged": {
|
|
16233
16234
|
".agent/**/*.{md,mdx}": "prettier --write",
|
|
16234
|
-
"apps/site/docs/**/*.{md,mdx}":
|
|
16235
|
+
"apps/site/docs/**/*.{md,mdx}": "prettier --write",
|
|
16235
16236
|
"*.{ts,tsx}": [
|
|
16236
16237
|
"eslint --fix --ignore-pattern 'dist/**'"
|
|
16237
16238
|
],
|
|
@@ -16317,7 +16318,7 @@ var init_package = __esm({
|
|
|
16317
16318
|
},
|
|
16318
16319
|
optionalDependencies: {
|
|
16319
16320
|
"tree-sitter": "^0.21.1",
|
|
16320
|
-
"tree-sitter-javascript": "^0.
|
|
16321
|
+
"tree-sitter-javascript": "^0.23.4",
|
|
16321
16322
|
"tree-sitter-python": "^0.21.0",
|
|
16322
16323
|
"tree-sitter-typescript": "^0.21.2"
|
|
16323
16324
|
},
|
|
@@ -21777,8 +21778,8 @@ var require_package = __commonJS({
|
|
|
21777
21778
|
"package.json"(exports, module) {
|
|
21778
21779
|
module.exports = {
|
|
21779
21780
|
type: "module",
|
|
21780
|
-
name: "@xagent/
|
|
21781
|
-
version: "1.1.
|
|
21781
|
+
name: "@xagent/one-shot",
|
|
21782
|
+
version: "1.1.88",
|
|
21782
21783
|
description: "An open-source AI agent that brings advanced AI capabilities directly into your terminal.",
|
|
21783
21784
|
main: "dist/index.js",
|
|
21784
21785
|
module: "dist/index.js",
|
|
@@ -21798,6 +21799,7 @@ var require_package = __commonJS({
|
|
|
21798
21799
|
"package.json"
|
|
21799
21800
|
],
|
|
21800
21801
|
scripts: {
|
|
21802
|
+
local: "bun --watch src/index.ts",
|
|
21801
21803
|
build: "tsup src/index.ts --format esm --dts",
|
|
21802
21804
|
dev: "tsx watch src/index.ts",
|
|
21803
21805
|
lint: "eslint src --ext .ts",
|
|
@@ -21812,7 +21814,7 @@ var require_package = __commonJS({
|
|
|
21812
21814
|
},
|
|
21813
21815
|
"lint-staged": {
|
|
21814
21816
|
".agent/**/*.{md,mdx}": "prettier --write",
|
|
21815
|
-
"apps/site/docs/**/*.{md,mdx}":
|
|
21817
|
+
"apps/site/docs/**/*.{md,mdx}": "prettier --write",
|
|
21816
21818
|
"*.{ts,tsx}": [
|
|
21817
21819
|
"eslint --fix --ignore-pattern 'dist/**'"
|
|
21818
21820
|
],
|
|
@@ -21898,7 +21900,7 @@ var require_package = __commonJS({
|
|
|
21898
21900
|
},
|
|
21899
21901
|
optionalDependencies: {
|
|
21900
21902
|
"tree-sitter": "^0.21.1",
|
|
21901
|
-
"tree-sitter-javascript": "^0.
|
|
21903
|
+
"tree-sitter-javascript": "^0.23.4",
|
|
21902
21904
|
"tree-sitter-python": "^0.21.0",
|
|
21903
21905
|
"tree-sitter-typescript": "^0.21.2"
|
|
21904
21906
|
},
|