@integrity-labs/agt-cli 0.28.753 → 0.28.755
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 +7 -3
- package/dist/bin/agt.js.map +1 -1
- package/dist/{chunk-6HFHZR3Z.js → chunk-3PIEDU3Z.js} +25 -4
- package/dist/{chunk-6HFHZR3Z.js.map → chunk-3PIEDU3Z.js.map} +1 -1
- package/dist/lib/manager-worker.js +14 -33
- package/dist/lib/manager-worker.js.map +1 -1
- package/package.json +1 -1
|
@@ -6436,7 +6436,7 @@ function exchangeFailureKind(err) {
|
|
|
6436
6436
|
}
|
|
6437
6437
|
|
|
6438
6438
|
// src/lib/api-client.ts
|
|
6439
|
-
var agtCliVersion = true ? "0.28.
|
|
6439
|
+
var agtCliVersion = true ? "0.28.755" : "dev";
|
|
6440
6440
|
var lastConfigHash = null;
|
|
6441
6441
|
function setConfigHash(hash) {
|
|
6442
6442
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -8323,6 +8323,15 @@ function isWithinFirstConnectWindow(createdAt, now, windowMs = FIRST_CONNECT_WIN
|
|
|
8323
8323
|
if (!Number.isFinite(addedAt)) return true;
|
|
8324
8324
|
return now - addedAt <= windowMs;
|
|
8325
8325
|
}
|
|
8326
|
+
function isWithinReconnectQuiesceWindow(reconnectQuiescedUntil, now) {
|
|
8327
|
+
if (!reconnectQuiescedUntil) return false;
|
|
8328
|
+
const deadline = Date.parse(reconnectQuiescedUntil);
|
|
8329
|
+
if (!Number.isFinite(deadline)) return false;
|
|
8330
|
+
return now < deadline;
|
|
8331
|
+
}
|
|
8332
|
+
function isWithinSettlingWindow(ctx, now, windowMs = FIRST_CONNECT_WINDOW_MS) {
|
|
8333
|
+
return isWithinReconnectQuiesceWindow(ctx.reconnectQuiescedUntil, now) || isWithinFirstConnectWindow(ctx.createdAt, now, windowMs);
|
|
8334
|
+
}
|
|
8326
8335
|
function verdictForUnavailableMcpConfig(cause, ctx) {
|
|
8327
8336
|
const where = `MCP ${ctx.transport} server '${ctx.serverKey}'`;
|
|
8328
8337
|
if (cause === "file-unreadable") {
|
|
@@ -8335,10 +8344,14 @@ function verdictForUnavailableMcpConfig(cause, ctx) {
|
|
|
8335
8344
|
message: `${where}: not in ${ctx.source} (quarantined \u2014 absence expected)`
|
|
8336
8345
|
};
|
|
8337
8346
|
}
|
|
8338
|
-
if (
|
|
8347
|
+
if (isWithinSettlingWindow(
|
|
8348
|
+
{ createdAt: ctx.createdAt, reconnectQuiescedUntil: ctx.reconnectQuiescedUntil },
|
|
8349
|
+
ctx.now,
|
|
8350
|
+
ctx.windowMs
|
|
8351
|
+
)) {
|
|
8339
8352
|
return {
|
|
8340
8353
|
status: "unverified",
|
|
8341
|
-
message: `${where}: not yet written to ${ctx.source} (within first-connect window)`
|
|
8354
|
+
message: `${where}: not yet written to ${ctx.source} (${isWithinReconnectQuiesceWindow(ctx.reconnectQuiescedUntil, ctx.now) ? "reconnect in progress" : "within first-connect window"})`
|
|
8342
8355
|
};
|
|
8343
8356
|
}
|
|
8344
8357
|
return { status: "down", message: `${where}: not wired in ${ctx.source}` };
|
|
@@ -9084,6 +9097,7 @@ function buildConnectivityProbeDeps(projectDir, probeEnv) {
|
|
|
9084
9097
|
transport: "http",
|
|
9085
9098
|
source: target.inlineServerEntry ? "inline config" : ".mcp.json",
|
|
9086
9099
|
createdAt: target.createdAt,
|
|
9100
|
+
reconnectQuiescedUntil: target.reconnectQuiescedUntil,
|
|
9087
9101
|
expectedAbsent: target.expectedAbsent || Boolean(target.inlineServerEntry),
|
|
9088
9102
|
now: Date.now()
|
|
9089
9103
|
});
|
|
@@ -9121,6 +9135,7 @@ function buildConnectivityProbeDeps(projectDir, probeEnv) {
|
|
|
9121
9135
|
transport: "stdio",
|
|
9122
9136
|
source: target.inlineServerEntry ? "inline config" : ".mcp.json",
|
|
9123
9137
|
createdAt: target.createdAt,
|
|
9138
|
+
reconnectQuiescedUntil: target.reconnectQuiescedUntil,
|
|
9124
9139
|
expectedAbsent: target.expectedAbsent || Boolean(target.inlineServerEntry),
|
|
9125
9140
|
now: Date.now()
|
|
9126
9141
|
});
|
|
@@ -9154,6 +9169,7 @@ function buildConnectivityProbeDeps(projectDir, probeEnv) {
|
|
|
9154
9169
|
transport: "http",
|
|
9155
9170
|
source: inlineServerEntry ? "inline config" : ".mcp.json",
|
|
9156
9171
|
createdAt: rowCtx?.createdAt,
|
|
9172
|
+
reconnectQuiescedUntil: rowCtx?.reconnectQuiescedUntil,
|
|
9157
9173
|
expectedAbsent: rowCtx?.expectedAbsent || Boolean(inlineServerEntry),
|
|
9158
9174
|
now: Date.now()
|
|
9159
9175
|
});
|
|
@@ -10364,6 +10380,10 @@ async function executeConnectivityProbe(target, deps = {}) {
|
|
|
10364
10380
|
}
|
|
10365
10381
|
const rowFacts = {
|
|
10366
10382
|
createdAt: target.createdAt ?? null,
|
|
10383
|
+
// ENG-9718: the second settling anchor, carried in the same bag for the same
|
|
10384
|
+
// reason — five call sites, and a leg that missed it would fall back to
|
|
10385
|
+
// ordinary grading and brand a just-reconnected row `down`.
|
|
10386
|
+
reconnectQuiescedUntil: target.reconnectQuiescedUntil ?? null,
|
|
10367
10387
|
expectedAbsent: target.expectedAbsent ?? false
|
|
10368
10388
|
};
|
|
10369
10389
|
switch (descriptor.kind) {
|
|
@@ -10545,6 +10565,7 @@ export {
|
|
|
10545
10565
|
RestartBreaker,
|
|
10546
10566
|
markQuarantinedForProbe,
|
|
10547
10567
|
FIRST_CONNECT_WINDOW_MS,
|
|
10568
|
+
isWithinReconnectQuiesceWindow,
|
|
10548
10569
|
deriveMcpServerKey,
|
|
10549
10570
|
buildProbeEnv,
|
|
10550
10571
|
buildConnectivityProbeDeps,
|
|
@@ -10572,4 +10593,4 @@ export {
|
|
|
10572
10593
|
managerInstallSystemUnitCommand,
|
|
10573
10594
|
managerUninstallSystemUnitCommand
|
|
10574
10595
|
};
|
|
10575
|
-
//# sourceMappingURL=chunk-
|
|
10596
|
+
//# sourceMappingURL=chunk-3PIEDU3Z.js.map
|