@integrity-labs/agt-cli 0.28.52 → 0.28.54
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-GNRNPCJ6.js → chunk-SACN4YP6.js} +2 -2
- package/dist/lib/manager-worker.js +12 -2
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/slack-channel.js +32 -6
- package/dist/mcp/telegram-channel.js +5 -2
- package/package.json +1 -1
- /package/dist/{chunk-GNRNPCJ6.js.map → chunk-SACN4YP6.js.map} +0 -0
package/dist/bin/agt.js
CHANGED
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
success,
|
|
38
38
|
table,
|
|
39
39
|
warn
|
|
40
|
-
} from "../chunk-
|
|
40
|
+
} from "../chunk-SACN4YP6.js";
|
|
41
41
|
import {
|
|
42
42
|
CHANNEL_REGISTRY,
|
|
43
43
|
DEPLOYMENT_TEMPLATES,
|
|
@@ -4777,7 +4777,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
4777
4777
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
4778
4778
|
import chalk18 from "chalk";
|
|
4779
4779
|
import ora16 from "ora";
|
|
4780
|
-
var cliVersion = true ? "0.28.
|
|
4780
|
+
var cliVersion = true ? "0.28.54" : "dev";
|
|
4781
4781
|
async function fetchLatestVersion() {
|
|
4782
4782
|
const host2 = getHost();
|
|
4783
4783
|
if (!host2) return null;
|
|
@@ -5791,7 +5791,7 @@ function handleError(err) {
|
|
|
5791
5791
|
}
|
|
5792
5792
|
|
|
5793
5793
|
// src/bin/agt.ts
|
|
5794
|
-
var cliVersion2 = true ? "0.28.
|
|
5794
|
+
var cliVersion2 = true ? "0.28.54" : "dev";
|
|
5795
5795
|
var program = new Command();
|
|
5796
5796
|
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");
|
|
5797
5797
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -7355,7 +7355,7 @@ function requireHost() {
|
|
|
7355
7355
|
}
|
|
7356
7356
|
|
|
7357
7357
|
// src/lib/api-client.ts
|
|
7358
|
-
var agtCliVersion = true ? "0.28.
|
|
7358
|
+
var agtCliVersion = true ? "0.28.54" : "dev";
|
|
7359
7359
|
var lastConfigHash = null;
|
|
7360
7360
|
function setConfigHash(hash) {
|
|
7361
7361
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -8651,4 +8651,4 @@ export {
|
|
|
8651
8651
|
managerInstallSystemUnitCommand,
|
|
8652
8652
|
managerUninstallSystemUnitCommand
|
|
8653
8653
|
};
|
|
8654
|
-
//# sourceMappingURL=chunk-
|
|
8654
|
+
//# sourceMappingURL=chunk-SACN4YP6.js.map
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
requireHost,
|
|
28
28
|
safeWriteJsonAtomic,
|
|
29
29
|
setConfigHash
|
|
30
|
-
} from "../chunk-
|
|
30
|
+
} from "../chunk-SACN4YP6.js";
|
|
31
31
|
import {
|
|
32
32
|
getProjectDir as getProjectDir2,
|
|
33
33
|
getReadyTasks,
|
|
@@ -495,6 +495,7 @@ function reapMissingMcpSessions(args) {
|
|
|
495
495
|
codeName,
|
|
496
496
|
mcpJson,
|
|
497
497
|
sessionStartedAt,
|
|
498
|
+
restartPending = false,
|
|
498
499
|
stopSession,
|
|
499
500
|
graceMs = DEFAULT_COLD_START_GRACE_MS,
|
|
500
501
|
rotationGraceMs = DEFAULT_ROTATION_GRACE_MS,
|
|
@@ -516,6 +517,9 @@ function reapMissingMcpSessions(args) {
|
|
|
516
517
|
if (declaredCount === 0) {
|
|
517
518
|
return { missing: [], restarted: false, reason: "no-declared-servers" };
|
|
518
519
|
}
|
|
520
|
+
if (restartPending) {
|
|
521
|
+
return { missing: [], restarted: false, reason: "restart-pending" };
|
|
522
|
+
}
|
|
519
523
|
if (sessionStartedAt === null) {
|
|
520
524
|
return { missing: [], restarted: false, reason: "session-start-unknown" };
|
|
521
525
|
}
|
|
@@ -6630,7 +6634,7 @@ var cachedMaintenanceWindow = null;
|
|
|
6630
6634
|
var lastVersionCheckAt = 0;
|
|
6631
6635
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
6632
6636
|
var lastResponsivenessProbeAt = 0;
|
|
6633
|
-
var agtCliVersion = true ? "0.28.
|
|
6637
|
+
var agtCliVersion = true ? "0.28.54" : "dev";
|
|
6634
6638
|
function resolveBrewPath(execFileSync4) {
|
|
6635
6639
|
try {
|
|
6636
6640
|
const out = execFileSync4("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -9744,6 +9748,12 @@ async function processAgent(agent, agentStates) {
|
|
|
9744
9748
|
codeName: agent.code_name,
|
|
9745
9749
|
mcpJson: mcpJsonParsed,
|
|
9746
9750
|
sessionStartedAt: sess?.startedAt ?? null,
|
|
9751
|
+
// ENG-6486: a restart is already scheduled/deferred for this agent (e.g.
|
|
9752
|
+
// a freshly-added channel awaiting its convergence restart, deferred by
|
|
9753
|
+
// the maintenance window). The pending restart will spawn the declared-
|
|
9754
|
+
// but-not-yet-live MCP, so don't let the reaper re-fire + inflate the
|
|
9755
|
+
// McpReaperRestartsHourly metric into a false flapping alarm.
|
|
9756
|
+
restartPending: pendingSessionRestarts.has(agent.code_name),
|
|
9747
9757
|
// ENG-5441 / ENG-5547: a mcp-presence-reaper restart counts against
|
|
9748
9758
|
// the agent-wide breaker ONLY when several distinct MCP servers are
|
|
9749
9759
|
// missing at once — a thrashing collection that rotates restarts of
|