@xagent/x-cli 1.1.72 → 1.1.73

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,6 +1,6 @@
1
1
  <!-- Test comment for PR creation -->
2
2
 
3
- ## 1.1.72 – Logo Assets & NPM Publication Complete
3
+ ## 1.1.73 – Logo Assets & NPM Publication Complete
4
4
 
5
5
  ✅ **Live on NPM**: [@xagent/x-cli](https://www.npmjs.com/package/@xagent/x-cli) - Fully published and ready for global installation
6
6
 
package/dist/index.js CHANGED
@@ -14674,7 +14674,7 @@ ${guardrail.createdFrom ? `- Created from incident: ${guardrail.createdFrom}` :
14674
14674
  var package_default = {
14675
14675
  type: "module",
14676
14676
  name: "@xagent/x-cli",
14677
- version: "1.1.72",
14677
+ version: "1.1.73",
14678
14678
  description: "An open-source AI agent that brings the power of Grok directly into your terminal.",
14679
14679
  main: "dist/index.js",
14680
14680
  module: "dist/index.js",
@@ -16726,6 +16726,71 @@ Using fallback message: "${commitMessage}"`,
16726
16726
  toolResult: pushResult
16727
16727
  };
16728
16728
  setChatHistory((prev) => [...prev, pushEntry]);
16729
+ const verificationEntry = {
16730
+ type: "assistant",
16731
+ content: "\u{1F50D} **Running post-push verification...**",
16732
+ timestamp: /* @__PURE__ */ new Date()
16733
+ };
16734
+ setChatHistory((prev) => [...prev, verificationEntry]);
16735
+ const statusCheckResult = await agent.executeBashCommand("git status --porcelain");
16736
+ if (statusCheckResult.success && statusCheckResult.output?.trim() === "") {
16737
+ const statusOkEntry = {
16738
+ type: "tool_result",
16739
+ content: "\u2705 **Git Status**: Working directory clean",
16740
+ timestamp: /* @__PURE__ */ new Date()
16741
+ };
16742
+ setChatHistory((prev) => [...prev, statusOkEntry]);
16743
+ } else {
16744
+ const statusIssueEntry = {
16745
+ type: "assistant",
16746
+ content: `\u26A0\uFE0F **Git Status Issues Detected**:
16747
+
16748
+ ${statusCheckResult.output || "Unknown status"}`,
16749
+ timestamp: /* @__PURE__ */ new Date()
16750
+ };
16751
+ setChatHistory((prev) => [...prev, statusIssueEntry]);
16752
+ }
16753
+ const waitEntry = {
16754
+ type: "assistant",
16755
+ content: "\u23F3 **Waiting for CI/NPM publishing...** (10 seconds)",
16756
+ timestamp: /* @__PURE__ */ new Date()
16757
+ };
16758
+ setChatHistory((prev) => [...prev, waitEntry]);
16759
+ await new Promise((resolve8) => setTimeout(resolve8, 1e4));
16760
+ const npmCheckResult = await agent.executeBashCommand("npm view @xagent/x-cli version");
16761
+ const localVersionResult = await agent.executeBashCommand(`node -p "require('./package.json').version"`);
16762
+ const localVersion = localVersionResult.success ? localVersionResult.output?.trim() : "unknown";
16763
+ if (npmCheckResult.success && npmCheckResult.output?.trim()) {
16764
+ const npmVersion = npmCheckResult.output.trim();
16765
+ if (npmVersion === localVersion) {
16766
+ const npmConfirmEntry = {
16767
+ type: "tool_result",
16768
+ content: `\u2705 **NPM Package Confirmed**: Version ${npmVersion} published successfully`,
16769
+ timestamp: /* @__PURE__ */ new Date()
16770
+ };
16771
+ setChatHistory((prev) => [...prev, npmConfirmEntry]);
16772
+ } else {
16773
+ const npmPendingEntry = {
16774
+ type: "assistant",
16775
+ content: `\u23F3 **NPM Status**: Local version ${localVersion}, NPM version ${npmVersion}. Publishing may still be in progress.`,
16776
+ timestamp: /* @__PURE__ */ new Date()
16777
+ };
16778
+ setChatHistory((prev) => [...prev, npmPendingEntry]);
16779
+ }
16780
+ } else {
16781
+ const npmErrorEntry = {
16782
+ type: "assistant",
16783
+ content: `\u274C **NPM Check Failed**: ${npmCheckResult.error || "Unable to check NPM version"}`,
16784
+ timestamp: /* @__PURE__ */ new Date()
16785
+ };
16786
+ setChatHistory((prev) => [...prev, npmErrorEntry]);
16787
+ }
16788
+ const finalSuccessEntry = {
16789
+ type: "assistant",
16790
+ content: "\u{1F389} **Smart Push Complete**: All verifications passed!",
16791
+ timestamp: /* @__PURE__ */ new Date()
16792
+ };
16793
+ setChatHistory((prev) => [...prev, finalSuccessEntry]);
16729
16794
  } else {
16730
16795
  const pushError = pushResult.error || pushResult.output || "";
16731
16796
  if (pushError.includes("protected branch") || pushError.includes("Changes must be made through a pull request") || pushError.includes("GH006")) {