@agentrix/cli 0.0.5 → 0.0.7
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
|
@@ -47,28 +47,26 @@ Or add it to your shell profile (`~/.bashrc`, `~/.zshrc`, etc.):
|
|
|
47
47
|
echo 'export AGENTRIX_DISABLE_UPDATE_CHECK=true' >> ~/.zshrc
|
|
48
48
|
```
|
|
49
49
|
|
|
50
|
-
###
|
|
50
|
+
### Manual Upgrade Command
|
|
51
|
+
|
|
52
|
+
You can also trigger an upgrade manually at any time:
|
|
51
53
|
|
|
52
54
|
```bash
|
|
53
55
|
agentrix upgrade
|
|
54
56
|
```
|
|
55
57
|
|
|
56
58
|
This command will:
|
|
57
|
-
-
|
|
58
|
-
- Upgrade to the latest version
|
|
59
|
+
- Upgrade to the latest version using npm
|
|
59
60
|
- Automatically restart the daemon if it was running
|
|
60
61
|
|
|
61
|
-
###
|
|
62
|
+
### Using npm Directly
|
|
62
63
|
|
|
63
|
-
You can also upgrade
|
|
64
|
+
You can also upgrade using npm directly:
|
|
64
65
|
|
|
65
66
|
```bash
|
|
66
|
-
#
|
|
67
|
+
# Upgrade to latest version
|
|
67
68
|
npm update -g @agentrix/cli
|
|
68
69
|
|
|
69
|
-
# Or with yarn
|
|
70
|
-
yarn global upgrade @agentrix/cli
|
|
71
|
-
|
|
72
70
|
# Check installed version
|
|
73
71
|
agentrix --version
|
|
74
72
|
```
|
package/dist/index.cjs
CHANGED
|
@@ -6,7 +6,7 @@ var chalk = require('chalk');
|
|
|
6
6
|
var shared = require('@agentrix/shared');
|
|
7
7
|
var node_crypto = require('node:crypto');
|
|
8
8
|
var axios = require('axios');
|
|
9
|
-
var _package = require('./logger-
|
|
9
|
+
var _package = require('./logger-CqXZ3EDu.cjs');
|
|
10
10
|
var fs$1 = require('node:fs');
|
|
11
11
|
var node_readline = require('node:readline');
|
|
12
12
|
var fs = require('fs');
|
|
@@ -16647,25 +16647,14 @@ async function performAutoUpgrade() {
|
|
|
16647
16647
|
const { execSync: execSync2 } = await import('child_process');
|
|
16648
16648
|
console.log("");
|
|
16649
16649
|
console.log(chalk.blue("\u{1F504} Auto-upgrading Agentrix CLI..."));
|
|
16650
|
-
|
|
16651
|
-
try {
|
|
16652
|
-
execSync2("yarn --version", { stdio: "ignore" });
|
|
16653
|
-
packageManager = "yarn";
|
|
16654
|
-
} catch {
|
|
16655
|
-
}
|
|
16656
|
-
console.log(chalk.dim(` Using ${packageManager}...`));
|
|
16657
|
-
if (packageManager === "yarn") {
|
|
16658
|
-
execSync2("yarn global upgrade @agentrix/cli", { stdio: "inherit" });
|
|
16659
|
-
} else {
|
|
16660
|
-
execSync2("npm update -g @agentrix/cli", { stdio: "inherit" });
|
|
16661
|
-
}
|
|
16650
|
+
execSync2("npm update -g @agentrix/cli", { stdio: "inherit" });
|
|
16662
16651
|
console.log(chalk.green("\u2713 Upgrade complete"));
|
|
16663
16652
|
console.log("");
|
|
16664
16653
|
return true;
|
|
16665
16654
|
} catch (error) {
|
|
16666
16655
|
console.log("");
|
|
16667
16656
|
console.log(chalk.yellow("\u26A0\uFE0F Auto-upgrade failed"));
|
|
16668
|
-
console.log(chalk.dim(" You can upgrade manually with: agentrix
|
|
16657
|
+
console.log(chalk.dim(" You can upgrade manually with: npm update -g @agentrix/cli"));
|
|
16669
16658
|
console.log("");
|
|
16670
16659
|
return false;
|
|
16671
16660
|
}
|
|
@@ -16710,7 +16699,7 @@ cli.command("upgrade", "Upgrade CLI to the latest version", {}, async (argv) =>
|
|
|
16710
16699
|
}
|
|
16711
16700
|
}
|
|
16712
16701
|
try {
|
|
16713
|
-
const { version } = await Promise.resolve().then(function () { return require('./logger-
|
|
16702
|
+
const { version } = await Promise.resolve().then(function () { return require('./logger-CqXZ3EDu.cjs'); }).then(function (n) { return n._package; });
|
|
16714
16703
|
console.log(chalk.green(`
|
|
16715
16704
|
\u2713 Now running version: ${version}`));
|
|
16716
16705
|
} catch {
|
package/dist/index.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import chalk from 'chalk';
|
|
|
4
4
|
import { encodeBase64, createKeyPairWithUit8Array, encryptMachineEncryptionKey, generateAESKey, decodeBase64, decryptWithEphemeralKey, createEventId, encryptFileContent, machineAuth, encryptSdkMessage, decryptSdkMessage, loadAgentConfig, getAgentContext, workerAuth } from '@agentrix/shared';
|
|
5
5
|
import { randomBytes, randomUUID as randomUUID$1 } from 'node:crypto';
|
|
6
6
|
import axios from 'axios';
|
|
7
|
-
import { m as machine, l as logger, p as projectPath, a as packageJson, c as createLogger, g as getLogPath, b as logger$1 } from './logger-
|
|
7
|
+
import { m as machine, l as logger, p as projectPath, a as packageJson, c as createLogger, g as getLogPath, b as logger$1 } from './logger-CE8nWMZI.mjs';
|
|
8
8
|
import * as fs from 'node:fs';
|
|
9
9
|
import { existsSync, rmSync, mkdirSync, readdirSync, createWriteStream } from 'node:fs';
|
|
10
10
|
import { createInterface } from 'node:readline';
|
|
@@ -16627,25 +16627,14 @@ async function performAutoUpgrade() {
|
|
|
16627
16627
|
const { execSync: execSync2 } = await import('child_process');
|
|
16628
16628
|
console.log("");
|
|
16629
16629
|
console.log(chalk.blue("\u{1F504} Auto-upgrading Agentrix CLI..."));
|
|
16630
|
-
|
|
16631
|
-
try {
|
|
16632
|
-
execSync2("yarn --version", { stdio: "ignore" });
|
|
16633
|
-
packageManager = "yarn";
|
|
16634
|
-
} catch {
|
|
16635
|
-
}
|
|
16636
|
-
console.log(chalk.dim(` Using ${packageManager}...`));
|
|
16637
|
-
if (packageManager === "yarn") {
|
|
16638
|
-
execSync2("yarn global upgrade @agentrix/cli", { stdio: "inherit" });
|
|
16639
|
-
} else {
|
|
16640
|
-
execSync2("npm update -g @agentrix/cli", { stdio: "inherit" });
|
|
16641
|
-
}
|
|
16630
|
+
execSync2("npm update -g @agentrix/cli", { stdio: "inherit" });
|
|
16642
16631
|
console.log(chalk.green("\u2713 Upgrade complete"));
|
|
16643
16632
|
console.log("");
|
|
16644
16633
|
return true;
|
|
16645
16634
|
} catch (error) {
|
|
16646
16635
|
console.log("");
|
|
16647
16636
|
console.log(chalk.yellow("\u26A0\uFE0F Auto-upgrade failed"));
|
|
16648
|
-
console.log(chalk.dim(" You can upgrade manually with: agentrix
|
|
16637
|
+
console.log(chalk.dim(" You can upgrade manually with: npm update -g @agentrix/cli"));
|
|
16649
16638
|
console.log("");
|
|
16650
16639
|
return false;
|
|
16651
16640
|
}
|
|
@@ -16690,7 +16679,7 @@ cli.command("upgrade", "Upgrade CLI to the latest version", {}, async (argv) =>
|
|
|
16690
16679
|
}
|
|
16691
16680
|
}
|
|
16692
16681
|
try {
|
|
16693
|
-
const { version } = await import('./logger-
|
|
16682
|
+
const { version } = await import('./logger-CE8nWMZI.mjs').then(function (n) { return n._; });
|
|
16694
16683
|
console.log(chalk.green(`
|
|
16695
16684
|
\u2713 Now running version: ${version}`));
|
|
16696
16685
|
} catch {
|
package/dist/lib.cjs
CHANGED
package/dist/lib.mjs
CHANGED
|
@@ -10,7 +10,7 @@ import { dirname, resolve } from 'path';
|
|
|
10
10
|
import { fileURLToPath } from 'url';
|
|
11
11
|
|
|
12
12
|
var name = "@agentrix/cli";
|
|
13
|
-
var version = "0.0.
|
|
13
|
+
var version = "0.0.7";
|
|
14
14
|
var description = "Mobile and Web client for Claude Code and Codex";
|
|
15
15
|
var author = "agentrix.xmz.ai";
|
|
16
16
|
var type = "module";
|
|
@@ -13,7 +13,7 @@ var url = require('url');
|
|
|
13
13
|
|
|
14
14
|
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
15
15
|
var name = "@agentrix/cli";
|
|
16
|
-
var version = "0.0.
|
|
16
|
+
var version = "0.0.7";
|
|
17
17
|
var description = "Mobile and Web client for Claude Code and Codex";
|
|
18
18
|
var author = "agentrix.xmz.ai";
|
|
19
19
|
var type = "module";
|
|
@@ -185,7 +185,7 @@ var _package = /*#__PURE__*/Object.freeze({
|
|
|
185
185
|
version: version
|
|
186
186
|
});
|
|
187
187
|
|
|
188
|
-
const __dirname$1 = require$$1.dirname(url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('logger-
|
|
188
|
+
const __dirname$1 = require$$1.dirname(url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('logger-CqXZ3EDu.cjs', document.baseURI).href))));
|
|
189
189
|
function projectPath() {
|
|
190
190
|
const path = require$$1.resolve(__dirname$1, "..");
|
|
191
191
|
return path;
|