@xagent/x-cli 1.1.59 → 1.1.60
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 +9 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/.xcli/auto-read-config.json +0 -100
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.60",
|
|
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",
|
|
@@ -18344,6 +18344,7 @@ function ChatInterfaceWithAgent({
|
|
|
18344
18344
|
const isEnabled = config2?.enabled !== false;
|
|
18345
18345
|
const showLoadingMessage = config2?.showLoadingMessage !== false;
|
|
18346
18346
|
const showSummaryMessage = config2?.showSummaryMessage !== false;
|
|
18347
|
+
const showFileContents = config2?.showFileContents === true;
|
|
18347
18348
|
if (!isEnabled) {
|
|
18348
18349
|
return;
|
|
18349
18350
|
}
|
|
@@ -18403,13 +18404,15 @@ function ChatInterfaceWithAgent({
|
|
|
18403
18404
|
const content = fs__default.readFileSync(filePath, "utf8");
|
|
18404
18405
|
const displayTitle = file.title || fileName.replace(".md", "").replace("-", " ").toUpperCase();
|
|
18405
18406
|
const icon = file.icon || "\u{1F4C4}";
|
|
18406
|
-
|
|
18407
|
-
|
|
18408
|
-
|
|
18407
|
+
if (showFileContents) {
|
|
18408
|
+
initialMessages.push({
|
|
18409
|
+
type: "assistant",
|
|
18410
|
+
content: `${icon} **${displayTitle} (from .agent/${folder.name}/${fileName})**
|
|
18409
18411
|
|
|
18410
18412
|
${content}`,
|
|
18411
|
-
|
|
18412
|
-
|
|
18413
|
+
timestamp: /* @__PURE__ */ new Date()
|
|
18414
|
+
});
|
|
18415
|
+
}
|
|
18413
18416
|
docsRead++;
|
|
18414
18417
|
} catch (_error) {
|
|
18415
18418
|
}
|