@integrity-labs/agt-cli 0.15.37 → 0.15.38
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/dist/bin/agt.js
CHANGED
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
success,
|
|
49
49
|
table,
|
|
50
50
|
warn
|
|
51
|
-
} from "../chunk-
|
|
51
|
+
} from "../chunk-XJSQKRFV.js";
|
|
52
52
|
|
|
53
53
|
// src/bin/agt.ts
|
|
54
54
|
import { join as join10 } from "path";
|
|
@@ -3732,7 +3732,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
3732
3732
|
import { existsSync as existsSync5, realpathSync } from "fs";
|
|
3733
3733
|
import chalk17 from "chalk";
|
|
3734
3734
|
import ora15 from "ora";
|
|
3735
|
-
var cliVersion = true ? "0.15.
|
|
3735
|
+
var cliVersion = true ? "0.15.38" : "dev";
|
|
3736
3736
|
async function fetchLatestVersion() {
|
|
3737
3737
|
const host2 = getHost();
|
|
3738
3738
|
if (!host2) return null;
|
|
@@ -4181,7 +4181,7 @@ function handleError(err) {
|
|
|
4181
4181
|
}
|
|
4182
4182
|
|
|
4183
4183
|
// src/bin/agt.ts
|
|
4184
|
-
var cliVersion2 = true ? "0.15.
|
|
4184
|
+
var cliVersion2 = true ? "0.15.38" : "dev";
|
|
4185
4185
|
var program = new Command();
|
|
4186
4186
|
program.name("agt").description("Augmented CLI \u2014 agent provisioning and management").version(cliVersion2).option("--json", "Emit machine-readable JSON output (suppress spinners and colors)").option("--skip-update-check", "Skip the automatic update check on startup");
|
|
4187
4187
|
program.hook("preAction", (thisCommand) => {
|
|
@@ -6805,6 +6805,7 @@ function provision(input, frameworkId = "openclaw") {
|
|
|
6805
6805
|
|
|
6806
6806
|
// src/commands/manager.ts
|
|
6807
6807
|
import chalk3 from "chalk";
|
|
6808
|
+
import { existsSync as existsSync7, realpathSync } from "fs";
|
|
6808
6809
|
import { join as join8 } from "path";
|
|
6809
6810
|
import { homedir as homedir6 } from "os";
|
|
6810
6811
|
import { spawn as spawn3 } from "child_process";
|
|
@@ -7206,6 +7207,23 @@ function managerStatusCommand(opts = {}) {
|
|
|
7206
7207
|
);
|
|
7207
7208
|
}
|
|
7208
7209
|
}
|
|
7210
|
+
function resolveStableAgtBin(rawPath) {
|
|
7211
|
+
const match = rawPath.match(/^(.*?)\/Cellar\/([^/]+)\/[^/]+\//);
|
|
7212
|
+
if (!match) return rawPath;
|
|
7213
|
+
const prefix = match[1];
|
|
7214
|
+
const formula = match[2];
|
|
7215
|
+
if (!prefix || !formula) return rawPath;
|
|
7216
|
+
const candidates = [`${prefix}/bin/${formula}`, `${prefix}/bin/agt`];
|
|
7217
|
+
for (const candidate of candidates) {
|
|
7218
|
+
if (!existsSync7(candidate)) continue;
|
|
7219
|
+
try {
|
|
7220
|
+
realpathSync(candidate);
|
|
7221
|
+
return candidate;
|
|
7222
|
+
} catch {
|
|
7223
|
+
}
|
|
7224
|
+
}
|
|
7225
|
+
return rawPath;
|
|
7226
|
+
}
|
|
7209
7227
|
async function managerInstallCommand(opts = {}) {
|
|
7210
7228
|
const json = isJsonMode();
|
|
7211
7229
|
const { installSupervisor, supervisorStatus } = await import("./manager-supervisor-PU5YK5QE.js");
|
|
@@ -7218,14 +7236,15 @@ async function managerInstallCommand(opts = {}) {
|
|
|
7218
7236
|
return;
|
|
7219
7237
|
}
|
|
7220
7238
|
const configDir = opts.configDir ?? join8(homedir6(), ".augmented");
|
|
7221
|
-
const
|
|
7222
|
-
if (!
|
|
7239
|
+
const rawAgtBin = process.argv[1];
|
|
7240
|
+
if (!rawAgtBin) {
|
|
7223
7241
|
const msg = "Could not resolve the agt binary path from argv. Re-run via the installed `agt` command.";
|
|
7224
7242
|
if (json) jsonOutput({ ok: false, error: msg });
|
|
7225
7243
|
else error(msg);
|
|
7226
7244
|
process.exitCode = 1;
|
|
7227
7245
|
return;
|
|
7228
7246
|
}
|
|
7247
|
+
const agtBin = resolveStableAgtBin(rawAgtBin);
|
|
7229
7248
|
if (process.platform === "darwin") {
|
|
7230
7249
|
const home = homedir6();
|
|
7231
7250
|
const protectedRoots = ["Documents", "Downloads", "Desktop", "Movies", "Music", "Pictures"];
|
|
@@ -7347,4 +7366,4 @@ export {
|
|
|
7347
7366
|
managerInstallCommand,
|
|
7348
7367
|
managerUninstallCommand
|
|
7349
7368
|
};
|
|
7350
|
-
//# sourceMappingURL=chunk-
|
|
7369
|
+
//# sourceMappingURL=chunk-XJSQKRFV.js.map
|