@xagent/one-shot 1.1.90 → 1.1.91
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 +82 -11
- package/dist/index.js +3 -3
- 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.91 – 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,7 @@ This release includes corrected logo assets and complete automated publishing pi
|
|
|
13
13
|
|
|
14
14
|
---
|
|
15
15
|
|
|
16
|
-
#
|
|
16
|
+
# Grok One-Shot
|
|
17
17
|
|
|
18
18
|
[](https://www.npmjs.com/package/@xagent/one-shot)
|
|
19
19
|
[](https://github.com/x-cli-team/x-cli/releases)
|
|
@@ -24,7 +24,7 @@ This release includes corrected logo assets and complete automated publishing pi
|
|
|
24
24
|
A conversational AI CLI tool powered by x.ai with **Claude Code-level intelligence** and advanced tool capabilities.
|
|
25
25
|
|
|
26
26
|
<div align="center">
|
|
27
|
-
<img src="docs/assets/logos/x-cli-logo-large.svg" alt="
|
|
27
|
+
<img src="docs/assets/logos/x-cli-logo-large.svg" alt="Grok One-Shot Logo" width="120" />
|
|
28
28
|
</div>
|
|
29
29
|
|
|
30
30
|
## 🔗 Quick Links
|
|
@@ -120,7 +120,7 @@ A conversational AI CLI tool powered by x.ai with **Claude Code-level intelligen
|
|
|
120
120
|
- **⚡ FsPort Abstraction**: Improved file system operations with Node built-ins externalization
|
|
121
121
|
- **📦 Automated Installer**: Enhanced installation UX with one-click setup options
|
|
122
122
|
- **🛡️ Tool Reliability Fixes**: Standardized imports, syntax error resolution, and fallback mechanisms
|
|
123
|
-
- **📋 Paste
|
|
123
|
+
- **📋 Revolutionary Paste Functionality**: Complete Claude Code parity with intelligent paste detection, cross-platform line ending support, and smart truncation for large content
|
|
124
124
|
|
|
125
125
|
## ✨ Features
|
|
126
126
|
|
|
@@ -158,7 +158,7 @@ A conversational AI CLI tool powered by x.ai with **Claude Code-level intelligen
|
|
|
158
158
|
- **⚡ Bash Integration**: Execute shell commands through natural conversation
|
|
159
159
|
- **🔌 MCP Extension**: Extend capabilities with Model Context Protocol servers (Linear, GitHub, etc.)
|
|
160
160
|
- **💻 Beautiful Terminal UI**: Interactive interface with Claude Code-style animations and feedback
|
|
161
|
-
- **📋
|
|
161
|
+
- **📋 Revolutionary Paste Detection**: Complete Claude Code parity with intelligent paste processing and smart summarization
|
|
162
162
|
|
|
163
163
|
### 🎛️ **Interactive Chat Interface**
|
|
164
164
|
|
|
@@ -178,6 +178,77 @@ A conversational AI CLI tool powered by x.ai with **Claude Code-level intelligen
|
|
|
178
178
|
- **🌈 Consistent Color Language**: Claude Code-inspired visual hierarchy (info=blue, success=green, warn=orange, error=red)
|
|
179
179
|
- **⚡ Motion Design**: Breathing pulse effects and smooth transitions for calm, responsive interface
|
|
180
180
|
|
|
181
|
+
### 📋 **Revolutionary Paste Functionality - Claude Code Parity** ✨
|
|
182
|
+
|
|
183
|
+
Experience seamless text pasting with **complete Claude Code feature parity** - our most celebrated feature!
|
|
184
|
+
|
|
185
|
+
#### **🎯 Core Features**
|
|
186
|
+
|
|
187
|
+
- **🔍 Instant Detection**: Automatic paste detection with configurable thresholds (2+ lines or 50+ characters)
|
|
188
|
+
- **🌐 Cross-Platform Support**: Handles all line endings (`\r`, `\n`, `\r\n`) for universal compatibility
|
|
189
|
+
- **💡 Smart Summaries**: Clean paste summaries like `[Pasted text #1 +13 lines]` for organized chat history
|
|
190
|
+
- **📱 Responsive Display**: Perfect multiline input handling with proper cursor positioning and formatting
|
|
191
|
+
- **⚡ No Auto-Submit**: Content stays in input field for review and editing before submission
|
|
192
|
+
- **🎛️ Large Content Handling**: Intelligent truncation for 60+ line pastes with smart preview
|
|
193
|
+
|
|
194
|
+
#### **🎮 How It Works**
|
|
195
|
+
|
|
196
|
+
1. **Paste any content** - Code, logs, documentation, data - anything!
|
|
197
|
+
2. **Instant visual feedback** - See paste summary immediately with line count
|
|
198
|
+
3. **Review and edit** - Content stays in input field for modification
|
|
199
|
+
4. **Submit when ready** - Press Enter to send after reviewing
|
|
200
|
+
|
|
201
|
+
#### **📊 Smart Truncation Example**
|
|
202
|
+
|
|
203
|
+
**Small pastes (≤10 lines)** - Show complete content:
|
|
204
|
+
|
|
205
|
+
```
|
|
206
|
+
❯ function hello() {
|
|
207
|
+
console.log("world");
|
|
208
|
+
return true;
|
|
209
|
+
}
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
**Large pastes (>10 lines)** - Show smart truncated view:
|
|
213
|
+
|
|
214
|
+
```
|
|
215
|
+
❯ [Large paste: 45 lines, 1,247 chars]
|
|
216
|
+
First few lines:
|
|
217
|
+
import React from 'react';
|
|
218
|
+
import { useState, useEffect } from 'react';
|
|
219
|
+
import { Box, Text } from 'ink';
|
|
220
|
+
...
|
|
221
|
+
Last few lines:
|
|
222
|
+
export default MyComponent;
|
|
223
|
+
|
|
224
|
+
Press Enter to submit or edit to modify.
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
#### **🛠️ Configuration Options**
|
|
228
|
+
|
|
229
|
+
Customize paste behavior with environment variables:
|
|
230
|
+
|
|
231
|
+
```bash
|
|
232
|
+
# Adjust paste detection sensitivity
|
|
233
|
+
export GROK_PASTE_LINE_THRESHOLD=3 # Lines threshold (default: 2)
|
|
234
|
+
export GROK_PASTE_CHAR_THRESHOLD=100 # Character threshold (default: 50)
|
|
235
|
+
export GROK_PASTE_DEBUG=true # Debug paste detection
|
|
236
|
+
|
|
237
|
+
# Enable intelligent features (coming in Phase 2)
|
|
238
|
+
export GROK_PASTE_INTELLIGENCE_ENABLED=true
|
|
239
|
+
export GROK_PASTE_LANGUAGE_DETECTION=true
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
#### **🎖️ Why Revolutionary?**
|
|
243
|
+
|
|
244
|
+
✅ **Complete Claude Code Parity** - Feature-for-feature compatibility
|
|
245
|
+
✅ **Zero Learning Curve** - Works exactly like Claude Code
|
|
246
|
+
✅ **Enhanced Reliability** - Handles edge cases Claude Code sometimes misses
|
|
247
|
+
✅ **Performance Optimized** - Lightning-fast detection and display
|
|
248
|
+
✅ **Developer Focused** - Built specifically for code and technical content
|
|
249
|
+
|
|
250
|
+
_"shit thats it. you did it. OMG. . take a bow sir. what a milestone."_ - User feedback after successful implementation
|
|
251
|
+
|
|
181
252
|
### 📚 **Documentation System**
|
|
182
253
|
|
|
183
254
|
- **🏗️ Agent Documentation**: Complete `.agent/` system for AI context optimization
|
|
@@ -379,7 +450,7 @@ Add to `~/.xcli/user-settings.json`:
|
|
|
379
450
|
|
|
380
451
|
## Configuration Files
|
|
381
452
|
|
|
382
|
-
|
|
453
|
+
Grok One-Shot uses two types of configuration files to manage settings:
|
|
383
454
|
|
|
384
455
|
### User-Level Settings (`~/.xcli/config.json`)
|
|
385
456
|
|
|
@@ -467,9 +538,9 @@ This means you can have different models for different projects while maintainin
|
|
|
467
538
|
|
|
468
539
|
## 📚 .agent Documentation System
|
|
469
540
|
|
|
470
|
-
### 🎯 **Best Feature of
|
|
541
|
+
### 🎯 **Best Feature of Grok One-Shot - AI Context Optimization**
|
|
471
542
|
|
|
472
|
-
The **`.agent` folder** is the most powerful feature of
|
|
543
|
+
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
544
|
|
|
474
545
|
### 🏗️ **How It Works**
|
|
475
546
|
|
|
@@ -728,7 +799,7 @@ mkdir .grok
|
|
|
728
799
|
Create `.grok/GROK.md` with your custom instructions:
|
|
729
800
|
|
|
730
801
|
```markdown
|
|
731
|
-
# Custom Instructions for
|
|
802
|
+
# Custom Instructions for Grok One-Shot
|
|
732
803
|
|
|
733
804
|
Always use TypeScript for any new code files.
|
|
734
805
|
When creating React components, use functional components with hooks.
|
|
@@ -737,7 +808,7 @@ Always add JSDoc comments for public functions and interfaces.
|
|
|
737
808
|
Follow the existing code style and patterns in this project.
|
|
738
809
|
```
|
|
739
810
|
|
|
740
|
-
|
|
811
|
+
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
812
|
|
|
742
813
|
## Morph Fast Apply (Optional)
|
|
743
814
|
|
|
@@ -1118,7 +1189,7 @@ This project is built upon the excellent foundation of the original [X-CLI](http
|
|
|
1118
1189
|
**Founder**: [Ismail Pelaseyed](https://github.com/homanp)
|
|
1119
1190
|
**Organization**: [Superagent.ai](https://github.com/superagent-ai)
|
|
1120
1191
|
|
|
1121
|
-
|
|
1192
|
+
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
1193
|
|
|
1123
1194
|
**🚀 Now live on NPM**: Install globally with `npm install -g @xagent/one-shot` and start using `xcli` immediately!
|
|
1124
1195
|
|
package/dist/index.js
CHANGED
|
@@ -16190,7 +16190,7 @@ var init_package = __esm({
|
|
|
16190
16190
|
package_default = {
|
|
16191
16191
|
type: "module",
|
|
16192
16192
|
name: "@xagent/one-shot",
|
|
16193
|
-
version: "1.1.
|
|
16193
|
+
version: "1.1.91",
|
|
16194
16194
|
description: "An open-source AI agent that brings advanced AI capabilities directly into your terminal.",
|
|
16195
16195
|
main: "dist/index.js",
|
|
16196
16196
|
module: "dist/index.js",
|
|
@@ -19782,7 +19782,7 @@ function Banner({
|
|
|
19782
19782
|
/* @__PURE__ */ jsx(Text, { color: inkColors.accentBright, children: getBannerArt() }),
|
|
19783
19783
|
/* @__PURE__ */ jsxs(Box, { marginTop: 1, children: [
|
|
19784
19784
|
/* @__PURE__ */ jsx(Text, { color: inkColors.muted, children: "Welcome to " }),
|
|
19785
|
-
/* @__PURE__ */ jsx(Text, { color: inkColors.primary, bold: true, children: "
|
|
19785
|
+
/* @__PURE__ */ jsx(Text, { color: inkColors.primary, bold: true, children: "Grok One-Shot" }),
|
|
19786
19786
|
/* @__PURE__ */ jsx(Text, { color: inkColors.muted, children: " " }),
|
|
19787
19787
|
/* @__PURE__ */ jsxs(Text, { color: inkColors.warning, children: [
|
|
19788
19788
|
"v",
|
|
@@ -21792,7 +21792,7 @@ var require_package = __commonJS({
|
|
|
21792
21792
|
module.exports = {
|
|
21793
21793
|
type: "module",
|
|
21794
21794
|
name: "@xagent/one-shot",
|
|
21795
|
-
version: "1.1.
|
|
21795
|
+
version: "1.1.91",
|
|
21796
21796
|
description: "An open-source AI agent that brings advanced AI capabilities directly into your terminal.",
|
|
21797
21797
|
main: "dist/index.js",
|
|
21798
21798
|
module: "dist/index.js",
|