@xagent/x-cli 1.1.41 → 1.1.43
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 +2 -2
- package/dist/index.js +28 -13
- 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.43 – 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
|
|
|
@@ -112,7 +112,7 @@ A conversational AI CLI tool powered by Grok with **Claude Code-level intelligen
|
|
|
112
112
|
- **📚 Task/TodoWrite**: Specialized agent delegation and comprehensive task management
|
|
113
113
|
- **🚀 Read/Write/Edit**: Claude Code-standard file operations at high speed
|
|
114
114
|
|
|
115
|
-
🌐 **Visit [
|
|
115
|
+
🌐 **Visit [xcli.org](https://xcli.org)** for complete documentation and guides.
|
|
116
116
|
|
|
117
117
|
### 🤖 **Core AI Capabilities**
|
|
118
118
|
|
package/dist/index.js
CHANGED
|
@@ -9287,7 +9287,7 @@ EOF`;
|
|
|
9287
9287
|
var package_default = {
|
|
9288
9288
|
type: "module",
|
|
9289
9289
|
name: "@xagent/x-cli",
|
|
9290
|
-
version: "1.1.
|
|
9290
|
+
version: "1.1.43",
|
|
9291
9291
|
description: "An open-source AI agent that brings the power of Grok directly into your terminal.",
|
|
9292
9292
|
main: "dist/index.js",
|
|
9293
9293
|
module: "dist/index.js",
|
|
@@ -11882,7 +11882,7 @@ Documentation for documentation system commands:
|
|
|
11882
11882
|
async generateSystemDocs(agentPath) {
|
|
11883
11883
|
const systemPath = path7__default.join(agentPath, "system");
|
|
11884
11884
|
const files = [];
|
|
11885
|
-
const archContent = this.config.projectType === "
|
|
11885
|
+
const archContent = this.config.projectType === "x-cli" ? this.generateGrokArchitecture() : this.generateExternalArchitecture();
|
|
11886
11886
|
await ops6.promises.writeFile(path7__default.join(systemPath, "architecture.md"), archContent);
|
|
11887
11887
|
files.push(".agent/system/architecture.md");
|
|
11888
11888
|
const criticalStateContent = this.generateCriticalState();
|
|
@@ -11997,7 +11997,7 @@ External project documented using Grok CLI's .agent system.
|
|
|
11997
11997
|
}
|
|
11998
11998
|
generateCriticalState() {
|
|
11999
11999
|
const timestamp = (/* @__PURE__ */ new Date()).toISOString();
|
|
12000
|
-
if (this.config.projectType === "
|
|
12000
|
+
if (this.config.projectType === "x-cli") {
|
|
12001
12001
|
return `# \u{1F527} Current System State
|
|
12002
12002
|
|
|
12003
12003
|
## Architecture Overview
|
|
@@ -12083,7 +12083,7 @@ Updated By: Agent System Generator during /init-agent
|
|
|
12083
12083
|
}
|
|
12084
12084
|
}
|
|
12085
12085
|
generateApiSchema() {
|
|
12086
|
-
if (this.config.projectType === "
|
|
12086
|
+
if (this.config.projectType === "x-cli") {
|
|
12087
12087
|
return `# \u{1F50C} API Schema
|
|
12088
12088
|
|
|
12089
12089
|
## Grok API Integration
|
|
@@ -12248,7 +12248,7 @@ interface Tool {
|
|
|
12248
12248
|
`;
|
|
12249
12249
|
await ops6.promises.writeFile(path7__default.join(sopPath, "documentation-workflow.md"), docWorkflowContent);
|
|
12250
12250
|
files.push(".agent/sop/documentation-workflow.md");
|
|
12251
|
-
if (this.config.projectType === "
|
|
12251
|
+
if (this.config.projectType === "x-cli") {
|
|
12252
12252
|
const newCommandContent = `# \u2699\uFE0F Adding New Commands SOP
|
|
12253
12253
|
|
|
12254
12254
|
## Command System Architecture
|
|
@@ -12329,7 +12329,7 @@ Create tool in \`src/tools/\`, then reference in command handler.
|
|
|
12329
12329
|
async generateExampleTask(agentPath) {
|
|
12330
12330
|
const tasksPath = path7__default.join(agentPath, "tasks");
|
|
12331
12331
|
const files = [];
|
|
12332
|
-
const exampleContent = this.config.projectType === "
|
|
12332
|
+
const exampleContent = this.config.projectType === "x-cli" ? this.generateGrokExampleTask() : this.generateExternalExampleTask();
|
|
12333
12333
|
await ops6.promises.writeFile(path7__default.join(tasksPath, "example-prd.md"), exampleContent);
|
|
12334
12334
|
files.push(".agent/tasks/example-prd.md");
|
|
12335
12335
|
return files;
|
|
@@ -15229,7 +15229,7 @@ Use \`/upgrade\` to update automatically or run:
|
|
|
15229
15229
|
\`${versionInfo.updateCommand}\`` : "\u2705 **You are up to date!**"}
|
|
15230
15230
|
|
|
15231
15231
|
Package: ${package_default.name}
|
|
15232
|
-
GitHub: https://github.com/
|
|
15232
|
+
GitHub: https://github.com/x-cli-team/x-cli
|
|
15233
15233
|
NPM: https://www.npmjs.com/package/${package_default.name}`,
|
|
15234
15234
|
timestamp: /* @__PURE__ */ new Date()
|
|
15235
15235
|
};
|
|
@@ -15542,9 +15542,9 @@ ${commitMessage}`
|
|
|
15542
15542
|
setChatHistory((prev) => [...prev, userEntry]);
|
|
15543
15543
|
setIsProcessing(true);
|
|
15544
15544
|
try {
|
|
15545
|
-
const
|
|
15546
|
-
const projectType =
|
|
15547
|
-
const projectName =
|
|
15545
|
+
const isXCli = process.cwd().includes("x-cli") || trimmedInput.includes("--xcli");
|
|
15546
|
+
const projectType = isXCli ? "x-cli" : "external";
|
|
15547
|
+
const projectName = isXCli ? "X CLI" : "Current Project";
|
|
15548
15548
|
const generator = new AgentSystemGenerator({
|
|
15549
15549
|
projectName,
|
|
15550
15550
|
projectType,
|
|
@@ -16665,6 +16665,19 @@ var truncateContent = (content, maxLength = 100) => {
|
|
|
16665
16665
|
if (process.env.COMPACT !== "1") return content;
|
|
16666
16666
|
return content.length > maxLength ? content.substring(0, maxLength) + "..." : content;
|
|
16667
16667
|
};
|
|
16668
|
+
var handleLongContent = (content, maxLength = 5e3) => {
|
|
16669
|
+
if (content.length <= maxLength) {
|
|
16670
|
+
return { content, isTruncated: false };
|
|
16671
|
+
}
|
|
16672
|
+
const truncated = content.substring(0, maxLength);
|
|
16673
|
+
const summary = `
|
|
16674
|
+
|
|
16675
|
+
[Content truncated - ${content.length - maxLength} characters remaining. Full content available in chat history.]`;
|
|
16676
|
+
return {
|
|
16677
|
+
content: truncated + summary,
|
|
16678
|
+
isTruncated: true
|
|
16679
|
+
};
|
|
16680
|
+
};
|
|
16668
16681
|
var MemoizedChatEntry = React3.memo(
|
|
16669
16682
|
({ entry, index }) => {
|
|
16670
16683
|
const renderDiff = (diffContent, filename) => {
|
|
@@ -16704,17 +16717,19 @@ var MemoizedChatEntry = React3.memo(
|
|
|
16704
16717
|
truncateContent(displayText)
|
|
16705
16718
|
] }) }) }, index);
|
|
16706
16719
|
case "assistant":
|
|
16720
|
+
const { content: processedContent, isTruncated } = handleLongContent(entry.content);
|
|
16707
16721
|
return /* @__PURE__ */ jsx(Box, { flexDirection: "column", marginTop: 1, children: /* @__PURE__ */ jsxs(Box, { flexDirection: "row", alignItems: "flex-start", children: [
|
|
16708
16722
|
/* @__PURE__ */ jsx(Text, { color: "white", children: "\u23FA " }),
|
|
16709
16723
|
/* @__PURE__ */ jsxs(Box, { flexDirection: "column", flexGrow: 1, children: [
|
|
16710
16724
|
entry.toolCalls ? (
|
|
16711
16725
|
// If there are tool calls, just show plain text
|
|
16712
|
-
/* @__PURE__ */ jsx(Text, { color: "white", children:
|
|
16726
|
+
/* @__PURE__ */ jsx(Text, { color: "white", children: processedContent.trim() })
|
|
16713
16727
|
) : (
|
|
16714
16728
|
// If no tool calls, render as markdown
|
|
16715
|
-
/* @__PURE__ */ jsx(MarkdownRenderer, { content:
|
|
16729
|
+
/* @__PURE__ */ jsx(MarkdownRenderer, { content: processedContent.trim() })
|
|
16716
16730
|
),
|
|
16717
|
-
entry.isStreaming && /* @__PURE__ */ jsx(Text, { color: "cyan", children: "\u2588" })
|
|
16731
|
+
entry.isStreaming && /* @__PURE__ */ jsx(Text, { color: "cyan", children: "\u2588" }),
|
|
16732
|
+
isTruncated && /* @__PURE__ */ jsx(Text, { color: "yellow", italic: true, children: "[Response truncated for performance - full content in session log]" })
|
|
16718
16733
|
] })
|
|
16719
16734
|
] }) }, index);
|
|
16720
16735
|
case "tool_call":
|