shellx-cli 0.0.8 → 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.
- package/bundle/assets/shellx.apk +0 -0
- package/bundle/assets/shellx.apk.sha256 +1 -1
- package/bundle/shellx.js +39 -19
- package/package.json +1 -1
- package/bundle/assets/README.md +0 -5
- package/bundle/assets/shellx-linux-x86_64-1.1.9.zip +0 -0
- package/bundle/assets/shellx-macos-aarch64-1.1.9.zip +0 -0
- package/bundle/assets/shellx-macos-x86_64-1.1.9.zip +0 -0
- package/bundle/assets/shellx-win-x64-1.1.9.zip +0 -0
- package/bundle/assets/shellx-win-x86-1.1.9.zip +0 -0
package/bundle/assets/shellx.apk
CHANGED
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
7306e895435f5ee2758e92d34a4d82a581a854eebaa1448378c7437a2a79d3b8 *shellx.apk
|
package/bundle/shellx.js
CHANGED
|
@@ -138006,8 +138006,8 @@ 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 = "
|
|
138010
|
-
CLI_VERSION = "0.0.
|
|
138009
|
+
GIT_COMMIT_INFO = "fecca9c3";
|
|
138010
|
+
CLI_VERSION = "0.0.9";
|
|
138011
138011
|
}
|
|
138012
138012
|
});
|
|
138013
138013
|
|
|
@@ -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.
|
|
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
|
|
@@ -236957,11 +236957,11 @@ function getShellXExecutableInfo() {
|
|
|
236957
236957
|
}
|
|
236958
236958
|
async function launchShellXIfInstalled() {
|
|
236959
236959
|
if (isShellXInstalled()) {
|
|
236960
|
-
return await launchShellX();
|
|
236960
|
+
return await launchShellX(true);
|
|
236961
236961
|
}
|
|
236962
236962
|
return false;
|
|
236963
236963
|
}
|
|
236964
|
-
async function ensureShellXAndLaunch(justStart =
|
|
236964
|
+
async function ensureShellXAndLaunch(justStart = true) {
|
|
236965
236965
|
try {
|
|
236966
236966
|
console.log("Checking ShellX installation...");
|
|
236967
236967
|
const assetPath = getAssetPath();
|
|
@@ -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,22 +386434,25 @@ 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)}`);
|
|
386435
|
-
|
|
386436
|
-
console.log("\u{1F4E6} Checking ShellX installation...");
|
|
386437
|
-
const shellxResult = await ensureShellXAndLaunch();
|
|
386438
|
-
if (shellxResult.success) {
|
|
386439
|
-
console.log(`\u2705 ${shellxResult.message}`);
|
|
386440
|
-
} else {
|
|
386441
|
-
console.error(`\u274C ${shellxResult.message}`);
|
|
386441
|
+
if (retryCount === 0) {
|
|
386442
386442
|
console.log("");
|
|
386443
|
-
console.log("
|
|
386444
|
-
|
|
386445
|
-
|
|
386446
|
-
|
|
386447
|
-
|
|
386443
|
+
console.log("\u{1F4E6} Checking ShellX installation...");
|
|
386444
|
+
const shellxResult = await ensureShellXAndLaunch(true);
|
|
386445
|
+
if (shellxResult.success) {
|
|
386446
|
+
console.log(`\u2705 ${shellxResult.message}`);
|
|
386447
|
+
} else {
|
|
386448
|
+
console.error(`\u274C ${shellxResult.message}`);
|
|
386449
|
+
console.log("");
|
|
386450
|
+
console.log("Please ensure:");
|
|
386451
|
+
console.log(" 1. ShellX app is installed on your Android device");
|
|
386452
|
+
console.log(" 2. Device is connected via ADB");
|
|
386453
|
+
console.log(" 3. USB debugging is enabled");
|
|
386454
|
+
console.log(' 4. Run "adb devices" to verify device connection');
|
|
386455
|
+
}
|
|
386448
386456
|
}
|
|
386449
386457
|
const retryDelay = Math.min(5e3 + retryCount * 2e3, 3e4);
|
|
386450
386458
|
console.log("");
|
|
@@ -386765,6 +386773,18 @@ var init_config2 = __esm({
|
|
|
386765
386773
|
getDeviceInfoContext() {
|
|
386766
386774
|
return this.deviceInfoContext;
|
|
386767
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
|
+
}
|
|
386768
386788
|
async createToolRegistry() {
|
|
386769
386789
|
const registry = new ToolRegistry(this);
|
|
386770
386790
|
const registerCoreTool = (ToolClass, ...args) => {
|
|
@@ -434684,7 +434704,7 @@ async function getPackageJson() {
|
|
|
434684
434704
|
// packages/cli/src/utils/version.ts
|
|
434685
434705
|
async function getCliVersion() {
|
|
434686
434706
|
const pkgJson = await getPackageJson();
|
|
434687
|
-
return "0.0.
|
|
434707
|
+
return "0.0.10";
|
|
434688
434708
|
}
|
|
434689
434709
|
|
|
434690
434710
|
// packages/cli/src/ui/commands/aboutCommand.ts
|
|
@@ -435022,7 +435042,7 @@ init_open();
|
|
|
435022
435042
|
import process31 from "node:process";
|
|
435023
435043
|
|
|
435024
435044
|
// packages/cli/src/generated/git-commit.ts
|
|
435025
|
-
var GIT_COMMIT_INFO2 = "
|
|
435045
|
+
var GIT_COMMIT_INFO2 = "fecca9c3";
|
|
435026
435046
|
|
|
435027
435047
|
// packages/cli/src/ui/commands/bugCommand.ts
|
|
435028
435048
|
init_dist5();
|
package/package.json
CHANGED
package/bundle/assets/README.md
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|