@xagent/x-cli 1.1.55 → 1.1.56
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 +135 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## 1.1.
|
|
1
|
+
## 1.1.56 – Logo Assets & NPM Publication Complete
|
|
2
2
|
|
|
3
3
|
✅ **Live on NPM**: [@xagent/x-cli](https://www.npmjs.com/package/@xagent/x-cli) - Fully published and ready for global installation
|
|
4
4
|
|
|
@@ -419,6 +419,140 @@ This means you can have different models for different projects while maintainin
|
|
|
419
419
|
}
|
|
420
420
|
```
|
|
421
421
|
|
|
422
|
+
## 📚 .agent Documentation System
|
|
423
|
+
|
|
424
|
+
### 🎯 **Best Feature of X CLI - AI Context Optimization**
|
|
425
|
+
|
|
426
|
+
The **`.agent` folder** is the most powerful feature of X CLI, 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 Grok significantly more productive and accurate.
|
|
427
|
+
|
|
428
|
+
### 🏗️ **How It Works**
|
|
429
|
+
|
|
430
|
+
When you run `npx -y @xagent/x-cli@latest`, the CLI automatically detects and reads `.agent/` documentation:
|
|
431
|
+
|
|
432
|
+
1. **Auto-Discovery**: Scans for `.agent/` folder in current directory
|
|
433
|
+
2. **Smart Loading**: Reads key documentation files into chat context
|
|
434
|
+
3. **Context Enhancement**: Provides comprehensive project understanding to AI
|
|
435
|
+
|
|
436
|
+
### 📂 **Key Components**
|
|
437
|
+
|
|
438
|
+
#### **`sop/` - Standard Operating Procedures**
|
|
439
|
+
|
|
440
|
+
- **`git-workflow.md`** - Git workflow standards and smart push guidelines
|
|
441
|
+
- **`release-management.md`** - Automated release processes and version management
|
|
442
|
+
- **`automation-protection.md`** - Safeguards for automated NPM publishing
|
|
443
|
+
- **`npm-publishing-troubleshooting.md`** - NPM publication issue resolution
|
|
444
|
+
- **`documentation-workflow.md`** - Documentation maintenance procedures
|
|
445
|
+
|
|
446
|
+
#### **`system/` - System Architecture & State**
|
|
447
|
+
|
|
448
|
+
- **`architecture.md`** - Complete system design and technology stack
|
|
449
|
+
- **`critical-state.md`** - Current system capabilities and status
|
|
450
|
+
- **`api-schema.md`** - API integration specifications
|
|
451
|
+
- **`installation.md`** - Setup and deployment procedures
|
|
452
|
+
- **`auto-read-system.md`** - Documentation of this auto-loading feature!
|
|
453
|
+
|
|
454
|
+
### 🔄 **Auto-Read System Benefits**
|
|
455
|
+
|
|
456
|
+
#### **Immediate Context**
|
|
457
|
+
|
|
458
|
+
- **Zero Setup Required**: Just having `.agent/` folder provides instant AI context
|
|
459
|
+
- **Comprehensive Understanding**: AI gets complete project overview on startup
|
|
460
|
+
- **Standardized Knowledge**: Consistent documentation format across projects
|
|
461
|
+
|
|
462
|
+
#### **Self-Documenting Workflows**
|
|
463
|
+
|
|
464
|
+
- **Living Documentation**: Docs evolve with project development
|
|
465
|
+
- **AI-Assisted Maintenance**: AI can help update documentation
|
|
466
|
+
- **Version-Controlled**: All docs tracked in git with project history
|
|
467
|
+
|
|
468
|
+
#### **Quality Assurance**
|
|
469
|
+
|
|
470
|
+
- **Error Prevention**: SOPs guide AI to follow established patterns
|
|
471
|
+
- **Consistency Enforcement**: Standardized approaches across team
|
|
472
|
+
- **Knowledge Preservation**: Critical procedures documented and accessible
|
|
473
|
+
|
|
474
|
+
### 🪝 **Husky Commit Hook Integration**
|
|
475
|
+
|
|
476
|
+
**Best Practice**: Set up automatic documentation syncing with git hooks.
|
|
477
|
+
|
|
478
|
+
#### **Why Husky Integration?**
|
|
479
|
+
|
|
480
|
+
The `.agent` folder is intentionally **gitignored** (contains sensitive project-specific docs), but you want docs to sync to public repositories or team wikis. Husky commit hooks automate this process:
|
|
481
|
+
|
|
482
|
+
1. **Pre-commit Validation**: Ensure docs are up-to-date before commits
|
|
483
|
+
2. **Auto-Sync**: Push docs to Docusaurus, GitHub Wiki, or team documentation sites
|
|
484
|
+
3. **Quality Gates**: Prevent commits if critical docs are missing
|
|
485
|
+
|
|
486
|
+
#### **Setup Instructions**
|
|
487
|
+
|
|
488
|
+
1. **Initialize `.agent` system**:
|
|
489
|
+
|
|
490
|
+
```bash
|
|
491
|
+
xcli
|
|
492
|
+
/init-agent
|
|
493
|
+
```
|
|
494
|
+
|
|
495
|
+
2. **Install Husky**:
|
|
496
|
+
|
|
497
|
+
```bash
|
|
498
|
+
npm install --save-dev husky
|
|
499
|
+
npx husky install
|
|
500
|
+
```
|
|
501
|
+
|
|
502
|
+
3. **Add documentation sync hook**:
|
|
503
|
+
|
|
504
|
+
```bash
|
|
505
|
+
npx husky add .husky/pre-commit "npm run sync-docs"
|
|
506
|
+
```
|
|
507
|
+
|
|
508
|
+
4. **Configure sync script** (add to `package.json`):
|
|
509
|
+
|
|
510
|
+
```json
|
|
511
|
+
{
|
|
512
|
+
"scripts": {
|
|
513
|
+
"sync-docs": "xcli /update-agent-docs --sync-to-docusaurus"
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
```
|
|
517
|
+
|
|
518
|
+
#### **Benefits of Husky Integration**
|
|
519
|
+
|
|
520
|
+
- **Automatic Updates**: Docs sync on every commit
|
|
521
|
+
- **Team Consistency**: Everyone's local docs stay current
|
|
522
|
+
- **Quality Assurance**: Pre-commit checks ensure documentation completeness
|
|
523
|
+
- **Zero Manual Work**: Documentation maintenance becomes automatic
|
|
524
|
+
|
|
525
|
+
### 🎖️ **Why This is Revolutionary**
|
|
526
|
+
|
|
527
|
+
1. **Context-First AI**: Unlike other CLIs that start conversations from scratch, X CLI begins with complete project context
|
|
528
|
+
|
|
529
|
+
2. **Self-Improving System**: As you document procedures, AI gets better at following them
|
|
530
|
+
|
|
531
|
+
3. **Knowledge Preservation**: Critical procedures are documented where they're actually used
|
|
532
|
+
|
|
533
|
+
4. **Team Synchronization**: Everyone works with the same documented standards
|
|
534
|
+
|
|
535
|
+
5. **Future-Proof**: AI can help maintain and evolve documentation
|
|
536
|
+
|
|
537
|
+
### 🚀 **Getting Started**
|
|
538
|
+
|
|
539
|
+
1. **Initialize your project**:
|
|
540
|
+
|
|
541
|
+
```bash
|
|
542
|
+
xcli
|
|
543
|
+
/init-agent
|
|
544
|
+
```
|
|
545
|
+
|
|
546
|
+
2. **Customize documentation** in `.agent/` folder
|
|
547
|
+
|
|
548
|
+
3. **Set up Husky hooks** for automatic syncing
|
|
549
|
+
|
|
550
|
+
4. **Enjoy context-aware AI** that understands your project's standards and procedures!
|
|
551
|
+
|
|
552
|
+
**This feature transforms AI CLI interactions from generic conversations to informed, context-aware development sessions.**
|
|
553
|
+
|
|
554
|
+
---
|
|
555
|
+
|
|
422
556
|
## Usage
|
|
423
557
|
|
|
424
558
|
### Interactive Mode
|
package/dist/index.js
CHANGED
|
@@ -9293,7 +9293,7 @@ EOF`;
|
|
|
9293
9293
|
var package_default = {
|
|
9294
9294
|
type: "module",
|
|
9295
9295
|
name: "@xagent/x-cli",
|
|
9296
|
-
version: "1.1.
|
|
9296
|
+
version: "1.1.56",
|
|
9297
9297
|
description: "An open-source AI agent that brings the power of Grok directly into your terminal.",
|
|
9298
9298
|
main: "dist/index.js",
|
|
9299
9299
|
module: "dist/index.js",
|