@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 CHANGED
@@ -1,4 +1,4 @@
1
- ## 1.1.59 – Logo Assets & NPM Publication Complete
1
+ ## 1.1.60 – 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
 
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.59",
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
- initialMessages.push({
18407
- type: "assistant",
18408
- content: `${icon} **${displayTitle} (from .agent/${folder.name}/${fileName})**
18407
+ if (showFileContents) {
18408
+ initialMessages.push({
18409
+ type: "assistant",
18410
+ content: `${icon} **${displayTitle} (from .agent/${folder.name}/${fileName})**
18409
18411
 
18410
18412
  ${content}`,
18411
- timestamp: /* @__PURE__ */ new Date()
18412
- });
18413
+ timestamp: /* @__PURE__ */ new Date()
18414
+ });
18415
+ }
18413
18416
  docsRead++;
18414
18417
  } catch (_error) {
18415
18418
  }