shellx-cli 0.0.9 → 0.0.10

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.
Files changed (2) hide show
  1. package/bundle/shellx.js +21 -3
  2. package/package.json +1 -1
package/bundle/shellx.js CHANGED
@@ -138006,7 +138006,7 @@ var GIT_COMMIT_INFO, CLI_VERSION;
138006
138006
  var init_git_commit = __esm({
138007
138007
  "packages/core/dist/src/generated/git-commit.js"() {
138008
138008
  "use strict";
138009
- GIT_COMMIT_INFO = "979a427a";
138009
+ GIT_COMMIT_INFO = "fecca9c3";
138010
138010
  CLI_VERSION = "0.0.9";
138011
138011
  }
138012
138012
  });
@@ -150655,7 +150655,7 @@ function createContentGeneratorConfig(config, authType) {
150655
150655
  return contentGeneratorConfig;
150656
150656
  }
150657
150657
  async function createContentGenerator(config, gcConfig, sessionId2) {
150658
- const version2 = "0.0.9";
150658
+ const version2 = "0.0.10";
150659
150659
  const userAgent2 = `GeminiCLI/${version2} (${process.platform}; ${process.arch})`;
150660
150660
  const baseHeaders = {
150661
150661
  "User-Agent": userAgent2
@@ -386227,6 +386227,7 @@ var init_config2 = __esm({
386227
386227
  // private deviceId: string;
386228
386228
  // private deviceAuthKey: string;
386229
386229
  shellxClient;
386230
+ shellxConnected = false;
386230
386231
  deviceInfoContext;
386231
386232
  toolRegistry;
386232
386233
  promptRegistry;
@@ -386384,6 +386385,10 @@ var init_config2 = __esm({
386384
386385
  * Connect to ShellX with retry logic
386385
386386
  */
386386
386387
  async connectToShellX(retryCount = 0) {
386388
+ if (this.shellxConnected) {
386389
+ console.log("ShellX is already connected, skipping reconnection.");
386390
+ return;
386391
+ }
386387
386392
  const deviceId = process23.env["SHELLX_DEVICE_ID"];
386388
386393
  try {
386389
386394
  if (retryCount === 0) {
@@ -386429,6 +386434,7 @@ var init_config2 = __esm({
386429
386434
  }, 15e3);
386430
386435
  });
386431
386436
  this.shellxClient = await Promise.race([createShellXPromise, timeoutPromise]);
386437
+ this.shellxConnected = true;
386432
386438
  console.log("\u2705 ShellX connected successfully!");
386433
386439
  } catch (error) {
386434
386440
  console.warn(`\u274C ShellX connection failed: ${error instanceof Error ? error.message : String(error)}`);
@@ -386767,6 +386773,18 @@ var init_config2 = __esm({
386767
386773
  getDeviceInfoContext() {
386768
386774
  return this.deviceInfoContext;
386769
386775
  }
386776
+ /**
386777
+ * Check if ShellX is currently connected
386778
+ */
386779
+ isShellXConnected() {
386780
+ return this.shellxConnected;
386781
+ }
386782
+ /**
386783
+ * Reset ShellX connection state (useful for manual reconnection)
386784
+ */
386785
+ resetShellXConnection() {
386786
+ this.shellxConnected = false;
386787
+ }
386770
386788
  async createToolRegistry() {
386771
386789
  const registry = new ToolRegistry(this);
386772
386790
  const registerCoreTool = (ToolClass, ...args) => {
@@ -434686,7 +434704,7 @@ async function getPackageJson() {
434686
434704
  // packages/cli/src/utils/version.ts
434687
434705
  async function getCliVersion() {
434688
434706
  const pkgJson = await getPackageJson();
434689
- return "0.0.9";
434707
+ return "0.0.10";
434690
434708
  }
434691
434709
 
434692
434710
  // packages/cli/src/ui/commands/aboutCommand.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shellx-cli",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "engines": {
5
5
  "node": ">=20.0.0"
6
6
  },