@xagent/x-cli 1.1.52 → 1.1.53

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.52 – Logo Assets & NPM Publication Complete
1
+ ## 1.1.53 – 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.52",
9296
+ version: "1.1.53",
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",
@@ -18311,6 +18311,12 @@ function ChatInterfaceWithAgent({
18311
18311
  setChatHistory([]);
18312
18312
  if (fs__default.existsSync(".agent")) {
18313
18313
  const initialMessages = [];
18314
+ let docsRead = 0;
18315
+ initialMessages.push({
18316
+ type: "assistant",
18317
+ content: "\u{1F4DA} Reading core documentation into memory...",
18318
+ timestamp: /* @__PURE__ */ new Date()
18319
+ });
18314
18320
  const archPath = path7__default.join(".agent", "system", "architecture.md");
18315
18321
  if (fs__default.existsSync(archPath)) {
18316
18322
  try {
@@ -18322,6 +18328,7 @@ function ChatInterfaceWithAgent({
18322
18328
  ${archContent}`,
18323
18329
  timestamp: /* @__PURE__ */ new Date()
18324
18330
  });
18331
+ docsRead++;
18325
18332
  } catch (_error) {
18326
18333
  }
18327
18334
  }
@@ -18336,6 +18343,7 @@ ${archContent}`,
18336
18343
  ${workflowContent}`,
18337
18344
  timestamp: /* @__PURE__ */ new Date()
18338
18345
  });
18346
+ docsRead++;
18339
18347
  } catch (_error) {
18340
18348
  }
18341
18349
  }
@@ -18355,6 +18363,7 @@ ${workflowContent}`,
18355
18363
  ${content}`,
18356
18364
  timestamp: /* @__PURE__ */ new Date()
18357
18365
  });
18366
+ docsRead++;
18358
18367
  } catch (_error) {
18359
18368
  }
18360
18369
  }
@@ -18362,7 +18371,7 @@ ${content}`,
18362
18371
  }
18363
18372
  const systemDir = path7__default.join(".agent", "system");
18364
18373
  if (fs__default.existsSync(systemDir)) {
18365
- const systemFiles = ["critical-state.md", "installation.md", "api-schema.md"];
18374
+ const systemFiles = ["critical-state.md", "installation.md", "api-schema.md", "auto-read-system.md"];
18366
18375
  for (const file of systemFiles) {
18367
18376
  const filePath = path7__default.join(systemDir, file);
18368
18377
  if (fs__default.existsSync(filePath)) {
@@ -18376,11 +18385,19 @@ ${content}`,
18376
18385
  ${content}`,
18377
18386
  timestamp: /* @__PURE__ */ new Date()
18378
18387
  });
18388
+ docsRead++;
18379
18389
  } catch (_error) {
18380
18390
  }
18381
18391
  }
18382
18392
  }
18383
18393
  }
18394
+ if (docsRead > 0) {
18395
+ initialMessages.push({
18396
+ type: "assistant",
18397
+ content: `\u2705 ${docsRead} documentation files read - I have a complete understanding of the current architecture and operational procedures.`,
18398
+ timestamp: /* @__PURE__ */ new Date()
18399
+ });
18400
+ }
18384
18401
  if (initialMessages.length > 0) {
18385
18402
  setChatHistory(initialMessages);
18386
18403
  }