@xagent/x-cli 1.1.90 → 1.1.92
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 +102 -11
- package/dist/index.js +549 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<!-- Test comment for PR creation -->
|
|
2
2
|
|
|
3
|
-
## 1.1.
|
|
3
|
+
## 1.1.92 – Logo Assets & NPM Publication Complete
|
|
4
4
|
|
|
5
5
|
✅ **Live on NPM**: [@xagent/one-shot](https://www.npmjs.com/package/@xagent/one-shot) - Fully published and ready for global installation
|
|
6
6
|
|
|
@@ -13,7 +13,27 @@ This release includes corrected logo assets and complete automated publishing pi
|
|
|
13
13
|
|
|
14
14
|
---
|
|
15
15
|
|
|
16
|
-
#
|
|
16
|
+
# Grok One-Shot
|
|
17
|
+
|
|
18
|
+
<div align="center">
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
┌─────────────────────────────────────────────────────────────────┐
|
|
22
|
+
│ 🚀 Quick Start │
|
|
23
|
+
├─────────────────────────────────────────────────────────────────┤
|
|
24
|
+
│ │
|
|
25
|
+
│ # 1. Set your API key (secure local environment variable) │
|
|
26
|
+
│ export X_API_KEY="your_xai_api_key_here" │
|
|
27
|
+
│ │
|
|
28
|
+
│ # 2. Run instantly (no installation required!) │
|
|
29
|
+
│ npx @xagent/one-shot │
|
|
30
|
+
│ │
|
|
31
|
+
│ 🔐 Tip: Never commit API keys to git. Use local env vars! │
|
|
32
|
+
│ │
|
|
33
|
+
└─────────────────────────────────────────────────────────────────┘
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
</div>
|
|
17
37
|
|
|
18
38
|
[](https://www.npmjs.com/package/@xagent/one-shot)
|
|
19
39
|
[](https://github.com/x-cli-team/x-cli/releases)
|
|
@@ -24,7 +44,7 @@ This release includes corrected logo assets and complete automated publishing pi
|
|
|
24
44
|
A conversational AI CLI tool powered by x.ai with **Claude Code-level intelligence** and advanced tool capabilities.
|
|
25
45
|
|
|
26
46
|
<div align="center">
|
|
27
|
-
<img src="docs/assets/logos/x-cli-logo-large.svg" alt="
|
|
47
|
+
<img src="docs/assets/logos/x-cli-logo-large.svg" alt="Grok One-Shot Logo" width="120" />
|
|
28
48
|
</div>
|
|
29
49
|
|
|
30
50
|
## 🔗 Quick Links
|
|
@@ -120,7 +140,7 @@ A conversational AI CLI tool powered by x.ai with **Claude Code-level intelligen
|
|
|
120
140
|
- **⚡ FsPort Abstraction**: Improved file system operations with Node built-ins externalization
|
|
121
141
|
- **📦 Automated Installer**: Enhanced installation UX with one-click setup options
|
|
122
142
|
- **🛡️ Tool Reliability Fixes**: Standardized imports, syntax error resolution, and fallback mechanisms
|
|
123
|
-
- **📋 Paste
|
|
143
|
+
- **📋 Revolutionary Paste Functionality**: Complete Claude Code parity with intelligent paste detection, cross-platform line ending support, and smart truncation for large content
|
|
124
144
|
|
|
125
145
|
## ✨ Features
|
|
126
146
|
|
|
@@ -158,7 +178,7 @@ A conversational AI CLI tool powered by x.ai with **Claude Code-level intelligen
|
|
|
158
178
|
- **⚡ Bash Integration**: Execute shell commands through natural conversation
|
|
159
179
|
- **🔌 MCP Extension**: Extend capabilities with Model Context Protocol servers (Linear, GitHub, etc.)
|
|
160
180
|
- **💻 Beautiful Terminal UI**: Interactive interface with Claude Code-style animations and feedback
|
|
161
|
-
- **📋
|
|
181
|
+
- **📋 Revolutionary Paste Detection**: Complete Claude Code parity with intelligent paste processing and smart summarization
|
|
162
182
|
|
|
163
183
|
### 🎛️ **Interactive Chat Interface**
|
|
164
184
|
|
|
@@ -178,6 +198,77 @@ A conversational AI CLI tool powered by x.ai with **Claude Code-level intelligen
|
|
|
178
198
|
- **🌈 Consistent Color Language**: Claude Code-inspired visual hierarchy (info=blue, success=green, warn=orange, error=red)
|
|
179
199
|
- **⚡ Motion Design**: Breathing pulse effects and smooth transitions for calm, responsive interface
|
|
180
200
|
|
|
201
|
+
### 📋 **Revolutionary Paste Functionality - Claude Code Parity** ✨
|
|
202
|
+
|
|
203
|
+
Experience seamless text pasting with **complete Claude Code feature parity** - our most celebrated feature!
|
|
204
|
+
|
|
205
|
+
#### **🎯 Core Features**
|
|
206
|
+
|
|
207
|
+
- **🔍 Instant Detection**: Automatic paste detection with configurable thresholds (2+ lines or 50+ characters)
|
|
208
|
+
- **🌐 Cross-Platform Support**: Handles all line endings (`\r`, `\n`, `\r\n`) for universal compatibility
|
|
209
|
+
- **💡 Smart Summaries**: Clean paste summaries like `[Pasted text #1 +13 lines]` for organized chat history
|
|
210
|
+
- **📱 Responsive Display**: Perfect multiline input handling with proper cursor positioning and formatting
|
|
211
|
+
- **⚡ No Auto-Submit**: Content stays in input field for review and editing before submission
|
|
212
|
+
- **🎛️ Large Content Handling**: Intelligent truncation for 60+ line pastes with smart preview
|
|
213
|
+
|
|
214
|
+
#### **🎮 How It Works**
|
|
215
|
+
|
|
216
|
+
1. **Paste any content** - Code, logs, documentation, data - anything!
|
|
217
|
+
2. **Instant visual feedback** - See paste summary immediately with line count
|
|
218
|
+
3. **Review and edit** - Content stays in input field for modification
|
|
219
|
+
4. **Submit when ready** - Press Enter to send after reviewing
|
|
220
|
+
|
|
221
|
+
#### **📊 Smart Truncation Example**
|
|
222
|
+
|
|
223
|
+
**Small pastes (≤10 lines)** - Show complete content:
|
|
224
|
+
|
|
225
|
+
```
|
|
226
|
+
❯ function hello() {
|
|
227
|
+
console.log("world");
|
|
228
|
+
return true;
|
|
229
|
+
}
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
**Large pastes (>10 lines)** - Show smart truncated view:
|
|
233
|
+
|
|
234
|
+
```
|
|
235
|
+
❯ [Large paste: 45 lines, 1,247 chars]
|
|
236
|
+
First few lines:
|
|
237
|
+
import React from 'react';
|
|
238
|
+
import { useState, useEffect } from 'react';
|
|
239
|
+
import { Box, Text } from 'ink';
|
|
240
|
+
...
|
|
241
|
+
Last few lines:
|
|
242
|
+
export default MyComponent;
|
|
243
|
+
|
|
244
|
+
Press Enter to submit or edit to modify.
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
#### **🛠️ Configuration Options**
|
|
248
|
+
|
|
249
|
+
Customize paste behavior with environment variables:
|
|
250
|
+
|
|
251
|
+
```bash
|
|
252
|
+
# Adjust paste detection sensitivity
|
|
253
|
+
export GROK_PASTE_LINE_THRESHOLD=3 # Lines threshold (default: 2)
|
|
254
|
+
export GROK_PASTE_CHAR_THRESHOLD=100 # Character threshold (default: 50)
|
|
255
|
+
export GROK_PASTE_DEBUG=true # Debug paste detection
|
|
256
|
+
|
|
257
|
+
# Enable intelligent features (coming in Phase 2)
|
|
258
|
+
export GROK_PASTE_INTELLIGENCE_ENABLED=true
|
|
259
|
+
export GROK_PASTE_LANGUAGE_DETECTION=true
|
|
260
|
+
```
|
|
261
|
+
|
|
262
|
+
#### **🎖️ Why Revolutionary?**
|
|
263
|
+
|
|
264
|
+
✅ **Complete Claude Code Parity** - Feature-for-feature compatibility
|
|
265
|
+
✅ **Zero Learning Curve** - Works exactly like Claude Code
|
|
266
|
+
✅ **Enhanced Reliability** - Handles edge cases Claude Code sometimes misses
|
|
267
|
+
✅ **Performance Optimized** - Lightning-fast detection and display
|
|
268
|
+
✅ **Developer Focused** - Built specifically for code and technical content
|
|
269
|
+
|
|
270
|
+
_"shit thats it. you did it. OMG. . take a bow sir. what a milestone."_ - User feedback after successful implementation
|
|
271
|
+
|
|
181
272
|
### 📚 **Documentation System**
|
|
182
273
|
|
|
183
274
|
- **🏗️ Agent Documentation**: Complete `.agent/` system for AI context optimization
|
|
@@ -379,7 +470,7 @@ Add to `~/.xcli/user-settings.json`:
|
|
|
379
470
|
|
|
380
471
|
## Configuration Files
|
|
381
472
|
|
|
382
|
-
|
|
473
|
+
Grok One-Shot uses two types of configuration files to manage settings:
|
|
383
474
|
|
|
384
475
|
### User-Level Settings (`~/.xcli/config.json`)
|
|
385
476
|
|
|
@@ -467,9 +558,9 @@ This means you can have different models for different projects while maintainin
|
|
|
467
558
|
|
|
468
559
|
## 📚 .agent Documentation System
|
|
469
560
|
|
|
470
|
-
### 🎯 **Best Feature of
|
|
561
|
+
### 🎯 **Best Feature of Grok One-Shot - AI Context Optimization**
|
|
471
562
|
|
|
472
|
-
The **`.agent` folder** is the most powerful feature of
|
|
563
|
+
The **`.agent` folder** is the most powerful feature of Grok One-Shot, enabling **self-documenting AI workflows** that automatically provide context to AI agents. This revolutionary approach ensures every AI interaction is informed by comprehensive project documentation, making conversations with x.ai models significantly more productive and accurate.
|
|
473
564
|
|
|
474
565
|
### 🏗️ **How It Works**
|
|
475
566
|
|
|
@@ -728,7 +819,7 @@ mkdir .grok
|
|
|
728
819
|
Create `.grok/GROK.md` with your custom instructions:
|
|
729
820
|
|
|
730
821
|
```markdown
|
|
731
|
-
# Custom Instructions for
|
|
822
|
+
# Custom Instructions for Grok One-Shot
|
|
732
823
|
|
|
733
824
|
Always use TypeScript for any new code files.
|
|
734
825
|
When creating React components, use functional components with hooks.
|
|
@@ -737,7 +828,7 @@ Always add JSDoc comments for public functions and interfaces.
|
|
|
737
828
|
Follow the existing code style and patterns in this project.
|
|
738
829
|
```
|
|
739
830
|
|
|
740
|
-
|
|
831
|
+
Grok One-Shot will automatically load and follow these instructions when working in your project directory. The custom instructions are added to the AI model's system prompt and take priority over default behavior.
|
|
741
832
|
|
|
742
833
|
## Morph Fast Apply (Optional)
|
|
743
834
|
|
|
@@ -1118,7 +1209,7 @@ This project is built upon the excellent foundation of the original [X-CLI](http
|
|
|
1118
1209
|
**Founder**: [Ismail Pelaseyed](https://github.com/homanp)
|
|
1119
1210
|
**Organization**: [Superagent.ai](https://github.com/superagent-ai)
|
|
1120
1211
|
|
|
1121
|
-
|
|
1212
|
+
Grok One-Shot 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.
|
|
1122
1213
|
|
|
1123
1214
|
**🚀 Now live on NPM**: Install globally with `npm install -g @xagent/one-shot` and start using `xcli` immediately!
|
|
1124
1215
|
|