@integrity-labs/agt-cli 0.15.27 → 0.15.31
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 +3 -3
- package/dist/{chunk-4DJTQWSS.js → chunk-EFABVBMW.js} +3 -3
- package/dist/lib/manager-worker.js +19 -5
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/{manager-supervisor-HKN2GL7L.js → manager-supervisor-A23IZIWC.js} +5 -137
- package/dist/manager-supervisor-A23IZIWC.js.map +1 -0
- package/mcp/slack-channel.js +37 -0
- package/mcp/telegram-channel.js +48 -0
- package/package.json +1 -1
- package/dist/manager-supervisor-HKN2GL7L.js.map +0 -1
- /package/dist/{chunk-4DJTQWSS.js.map → chunk-EFABVBMW.js.map} +0 -0
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-EFABVBMW.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.31" : "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.31" : "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) => {
|
|
@@ -7208,7 +7208,7 @@ function managerStatusCommand(opts = {}) {
|
|
|
7208
7208
|
}
|
|
7209
7209
|
async function managerInstallCommand(opts = {}) {
|
|
7210
7210
|
const json = isJsonMode();
|
|
7211
|
-
const { installSupervisor, supervisorStatus } = await import("./manager-supervisor-
|
|
7211
|
+
const { installSupervisor, supervisorStatus } = await import("./manager-supervisor-A23IZIWC.js");
|
|
7212
7212
|
const intervalSec = parseInt(opts.interval ?? "10", 10);
|
|
7213
7213
|
if (isNaN(intervalSec) || intervalSec < 5) {
|
|
7214
7214
|
const msg = "Interval must be at least 5 seconds.";
|
|
@@ -7267,7 +7267,7 @@ async function managerInstallCommand(opts = {}) {
|
|
|
7267
7267
|
}
|
|
7268
7268
|
async function managerUninstallCommand() {
|
|
7269
7269
|
const json = isJsonMode();
|
|
7270
|
-
const { uninstallSupervisor } = await import("./manager-supervisor-
|
|
7270
|
+
const { uninstallSupervisor } = await import("./manager-supervisor-A23IZIWC.js");
|
|
7271
7271
|
const result = await uninstallSupervisor();
|
|
7272
7272
|
if (!result.ok) {
|
|
7273
7273
|
if (json) jsonOutput({ ok: false, error: result.error });
|
|
@@ -7347,4 +7347,4 @@ export {
|
|
|
7347
7347
|
managerInstallCommand,
|
|
7348
7348
|
managerUninstallCommand
|
|
7349
7349
|
};
|
|
7350
|
-
//# sourceMappingURL=chunk-
|
|
7350
|
+
//# sourceMappingURL=chunk-EFABVBMW.js.map
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
resolveChannels,
|
|
23
23
|
resolveDmTarget,
|
|
24
24
|
wrapScheduledTaskPrompt
|
|
25
|
-
} from "../chunk-
|
|
25
|
+
} from "../chunk-EFABVBMW.js";
|
|
26
26
|
import {
|
|
27
27
|
findTaskByTemplate,
|
|
28
28
|
getProjectDir,
|
|
@@ -1447,7 +1447,21 @@ function resolveBrewPath(execFileSync2) {
|
|
|
1447
1447
|
}
|
|
1448
1448
|
var toolkitCliEnsured = /* @__PURE__ */ new Set();
|
|
1449
1449
|
var toolkitCliRetryAfter = /* @__PURE__ */ new Map();
|
|
1450
|
+
var toolkitCliFailureCount = /* @__PURE__ */ new Map();
|
|
1450
1451
|
var TOOLKIT_INSTALL_RETRY_MS = 5 * 6e4;
|
|
1452
|
+
var TOOLKIT_INSTALL_MAX_FAILURES = 3;
|
|
1453
|
+
function recordToolkitFailure(toolkitSlug, reason) {
|
|
1454
|
+
const count = (toolkitCliFailureCount.get(toolkitSlug) ?? 0) + 1;
|
|
1455
|
+
toolkitCliFailureCount.set(toolkitSlug, count);
|
|
1456
|
+
if (count >= TOOLKIT_INSTALL_MAX_FAILURES) {
|
|
1457
|
+
log(`[toolkit-install] ${toolkitSlug}: ${reason} (giving up after ${count} attempts \u2014 restart the manager to retry)`);
|
|
1458
|
+
toolkitCliEnsured.add(toolkitSlug);
|
|
1459
|
+
toolkitCliRetryAfter.delete(toolkitSlug);
|
|
1460
|
+
} else {
|
|
1461
|
+
log(`[toolkit-install] ${toolkitSlug}: ${reason} (attempt ${count}/${TOOLKIT_INSTALL_MAX_FAILURES}, retrying in ${TOOLKIT_INSTALL_RETRY_MS / 6e4}m)`);
|
|
1462
|
+
toolkitCliRetryAfter.set(toolkitSlug, Date.now() + TOOLKIT_INSTALL_RETRY_MS);
|
|
1463
|
+
}
|
|
1464
|
+
}
|
|
1451
1465
|
async function ensureToolkitCli(toolkitSlug) {
|
|
1452
1466
|
if (toolkitCliEnsured.has(toolkitSlug)) return;
|
|
1453
1467
|
const retryAfter = toolkitCliRetryAfter.get(toolkitSlug) ?? 0;
|
|
@@ -1464,6 +1478,7 @@ async function ensureToolkitCli(toolkitSlug) {
|
|
|
1464
1478
|
execFileSync2("which", [binary], { timeout: 5e3, stdio: "pipe" });
|
|
1465
1479
|
toolkitCliEnsured.add(toolkitSlug);
|
|
1466
1480
|
toolkitCliRetryAfter.delete(toolkitSlug);
|
|
1481
|
+
toolkitCliFailureCount.delete(toolkitSlug);
|
|
1467
1482
|
return;
|
|
1468
1483
|
} catch {
|
|
1469
1484
|
}
|
|
@@ -1513,8 +1528,7 @@ async function ensureToolkitCli(toolkitSlug) {
|
|
|
1513
1528
|
}
|
|
1514
1529
|
} catch (err) {
|
|
1515
1530
|
const msg = err.message.slice(0, 200);
|
|
1516
|
-
|
|
1517
|
-
toolkitCliRetryAfter.set(toolkitSlug, Date.now() + TOOLKIT_INSTALL_RETRY_MS);
|
|
1531
|
+
recordToolkitFailure(toolkitSlug, `installer=${resolvedInstaller} failed \u2014 ${msg}`);
|
|
1518
1532
|
return;
|
|
1519
1533
|
}
|
|
1520
1534
|
if (brewBinDir && !process.env.PATH?.split(":").includes(brewBinDir)) {
|
|
@@ -1525,9 +1539,9 @@ async function ensureToolkitCli(toolkitSlug) {
|
|
|
1525
1539
|
log(`[toolkit-install] ${toolkitSlug}: installed \u2014 ${binary} now on PATH`);
|
|
1526
1540
|
toolkitCliEnsured.add(toolkitSlug);
|
|
1527
1541
|
toolkitCliRetryAfter.delete(toolkitSlug);
|
|
1542
|
+
toolkitCliFailureCount.delete(toolkitSlug);
|
|
1528
1543
|
} catch {
|
|
1529
|
-
|
|
1530
|
-
toolkitCliRetryAfter.set(toolkitSlug, Date.now() + TOOLKIT_INSTALL_RETRY_MS);
|
|
1544
|
+
recordToolkitFailure(toolkitSlug, `installer=${resolvedInstaller} completed but ${binary} still not on PATH`);
|
|
1531
1545
|
}
|
|
1532
1546
|
}
|
|
1533
1547
|
function runAsync(cmd, args, opts) {
|