@xagent/x-cli 1.1.52 → 1.1.54
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 +1 -1
- package/dist/index.js +21 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
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.54",
|
|
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",
|
|
@@ -15104,6 +15104,8 @@ function useInputHandler({
|
|
|
15104
15104
|
{ command: "/help", description: "Show help information" },
|
|
15105
15105
|
{ command: "/clear", description: "Clear chat history" },
|
|
15106
15106
|
{ command: "/models", description: "Switch Grok Model" },
|
|
15107
|
+
{ command: "/verbosity", description: "Control output verbosity (quiet/normal/verbose)" },
|
|
15108
|
+
{ command: "/explain", description: "Control operation explanations (off/brief/detailed)" },
|
|
15107
15109
|
{ command: "/upgrade", description: "Check for updates and upgrade CLI" },
|
|
15108
15110
|
{ command: "/version", description: "Show version information" },
|
|
15109
15111
|
{ command: "/switch", description: "Switch to specific version" },
|
|
@@ -18311,6 +18313,12 @@ function ChatInterfaceWithAgent({
|
|
|
18311
18313
|
setChatHistory([]);
|
|
18312
18314
|
if (fs__default.existsSync(".agent")) {
|
|
18313
18315
|
const initialMessages = [];
|
|
18316
|
+
let docsRead = 0;
|
|
18317
|
+
initialMessages.push({
|
|
18318
|
+
type: "assistant",
|
|
18319
|
+
content: "\u{1F4DA} Reading core documentation into memory...",
|
|
18320
|
+
timestamp: /* @__PURE__ */ new Date()
|
|
18321
|
+
});
|
|
18314
18322
|
const archPath = path7__default.join(".agent", "system", "architecture.md");
|
|
18315
18323
|
if (fs__default.existsSync(archPath)) {
|
|
18316
18324
|
try {
|
|
@@ -18322,6 +18330,7 @@ function ChatInterfaceWithAgent({
|
|
|
18322
18330
|
${archContent}`,
|
|
18323
18331
|
timestamp: /* @__PURE__ */ new Date()
|
|
18324
18332
|
});
|
|
18333
|
+
docsRead++;
|
|
18325
18334
|
} catch (_error) {
|
|
18326
18335
|
}
|
|
18327
18336
|
}
|
|
@@ -18336,6 +18345,7 @@ ${archContent}`,
|
|
|
18336
18345
|
${workflowContent}`,
|
|
18337
18346
|
timestamp: /* @__PURE__ */ new Date()
|
|
18338
18347
|
});
|
|
18348
|
+
docsRead++;
|
|
18339
18349
|
} catch (_error) {
|
|
18340
18350
|
}
|
|
18341
18351
|
}
|
|
@@ -18355,6 +18365,7 @@ ${workflowContent}`,
|
|
|
18355
18365
|
${content}`,
|
|
18356
18366
|
timestamp: /* @__PURE__ */ new Date()
|
|
18357
18367
|
});
|
|
18368
|
+
docsRead++;
|
|
18358
18369
|
} catch (_error) {
|
|
18359
18370
|
}
|
|
18360
18371
|
}
|
|
@@ -18362,7 +18373,7 @@ ${content}`,
|
|
|
18362
18373
|
}
|
|
18363
18374
|
const systemDir = path7__default.join(".agent", "system");
|
|
18364
18375
|
if (fs__default.existsSync(systemDir)) {
|
|
18365
|
-
const systemFiles = ["critical-state.md", "installation.md", "api-schema.md"];
|
|
18376
|
+
const systemFiles = ["critical-state.md", "installation.md", "api-schema.md", "auto-read-system.md"];
|
|
18366
18377
|
for (const file of systemFiles) {
|
|
18367
18378
|
const filePath = path7__default.join(systemDir, file);
|
|
18368
18379
|
if (fs__default.existsSync(filePath)) {
|
|
@@ -18376,11 +18387,19 @@ ${content}`,
|
|
|
18376
18387
|
${content}`,
|
|
18377
18388
|
timestamp: /* @__PURE__ */ new Date()
|
|
18378
18389
|
});
|
|
18390
|
+
docsRead++;
|
|
18379
18391
|
} catch (_error) {
|
|
18380
18392
|
}
|
|
18381
18393
|
}
|
|
18382
18394
|
}
|
|
18383
18395
|
}
|
|
18396
|
+
if (docsRead > 0) {
|
|
18397
|
+
initialMessages.push({
|
|
18398
|
+
type: "assistant",
|
|
18399
|
+
content: `\u2705 ${docsRead} documentation files read - I have a complete understanding of the current architecture and operational procedures.`,
|
|
18400
|
+
timestamp: /* @__PURE__ */ new Date()
|
|
18401
|
+
});
|
|
18402
|
+
}
|
|
18384
18403
|
if (initialMessages.length > 0) {
|
|
18385
18404
|
setChatHistory(initialMessages);
|
|
18386
18405
|
}
|