@integrity-labs/agt-cli 0.28.753 → 0.28.754
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-BNXP2TOA.js} +25 -4
- package/dist/{chunk-6HFHZR3Z.js.map → chunk-BNXP2TOA.js.map} +1 -1
- package/dist/lib/manager-worker.js +14 -2
- package/dist/lib/manager-worker.js.map +1 -1
- package/package.json +1 -1
|
@@ -32,6 +32,7 @@ import {
|
|
|
32
32
|
isIntegrationBucketedReason,
|
|
33
33
|
isProvisioningReloadReason,
|
|
34
34
|
isTransientAuthFailure,
|
|
35
|
+
isWithinReconnectQuiesceWindow,
|
|
35
36
|
liveProxyExtraHeaderVars,
|
|
36
37
|
liveProxyTokenVars,
|
|
37
38
|
markQuarantinedForProbe,
|
|
@@ -57,7 +58,7 @@ import {
|
|
|
57
58
|
safeWriteJsonAtomic,
|
|
58
59
|
setConfigHash,
|
|
59
60
|
tripClass
|
|
60
|
-
} from "../chunk-
|
|
61
|
+
} from "../chunk-BNXP2TOA.js";
|
|
61
62
|
import {
|
|
62
63
|
getProjectDir as getProjectDir2,
|
|
63
64
|
getReadyTasks,
|
|
@@ -439,6 +440,7 @@ function computeFirstConnectUnsettled(integrations, now, windowMs) {
|
|
|
439
440
|
if (i.last_connectivity_status !== "transient_error" && i.last_connectivity_status !== "unverified") {
|
|
440
441
|
return false;
|
|
441
442
|
}
|
|
443
|
+
if (isWithinReconnectQuiesceWindow(i.reconnect_quiesced_until, now)) return true;
|
|
442
444
|
if (!i.created_at) return false;
|
|
443
445
|
const addedAt = Date.parse(i.created_at);
|
|
444
446
|
if (!Number.isFinite(addedAt)) return false;
|
|
@@ -1671,6 +1673,9 @@ async function runConnectivityProbes(integrations, options = {}) {
|
|
|
1671
1673
|
// ENG-8363: row age + quarantine status decide whether a missing
|
|
1672
1674
|
// `.mcp.json` key is "not written yet" (transient) or "not wired" (down).
|
|
1673
1675
|
createdAt: integ.created_at ?? null,
|
|
1676
|
+
// ENG-9718: the second settling anchor — see the comment above; a row
|
|
1677
|
+
// reconnected seconds ago is as unsettled as one created seconds ago.
|
|
1678
|
+
reconnectQuiescedUntil: integ.reconnect_quiesced_until ?? null,
|
|
1674
1679
|
expectedAbsent: integ.quarantined ?? false
|
|
1675
1680
|
};
|
|
1676
1681
|
let outcome;
|
|
@@ -13076,6 +13081,13 @@ async function runAgentConnectivityProbes(agent, integrations, projectDir) {
|
|
|
13076
13081
|
// escalation to `down` reachable at all — an omitted `created_at` reads
|
|
13077
13082
|
// as "still settling" and never escalates (fail-open by design).
|
|
13078
13083
|
created_at: i.created_at ?? null,
|
|
13084
|
+
// ENG-9718: the SECOND settling anchor, and it must be forwarded HERE.
|
|
13085
|
+
// This mapper is why declaring the field on the parameter type above is
|
|
13086
|
+
// not enough — the object handed to `runConnectivityProbes` is rebuilt
|
|
13087
|
+
// field by field, so anything not named here arrives as `undefined` and
|
|
13088
|
+
// the anchor silently never fires. Same failure shape as the `cli_binary`
|
|
13089
|
+
// note a few lines up: read by the runner, set by nobody, wrong forever.
|
|
13090
|
+
reconnect_quiesced_until: i.reconnect_quiesced_until ?? null,
|
|
13079
13091
|
quarantined: i.quarantined ?? false,
|
|
13080
13092
|
// ENG-7077: the catalog remote-MCP spec, so the executor's resolver can
|
|
13081
13093
|
// tell an ADR-0033 static-token remote MCP from a built-in native module.
|
|
@@ -13391,7 +13403,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
13391
13403
|
var lastVersionCheckAt = 0;
|
|
13392
13404
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
13393
13405
|
var lastResponsivenessProbeAt = 0;
|
|
13394
|
-
var agtCliVersion = true ? "0.28.
|
|
13406
|
+
var agtCliVersion = true ? "0.28.754" : "dev";
|
|
13395
13407
|
function resolveBrewPath(execFileSync3) {
|
|
13396
13408
|
try {
|
|
13397
13409
|
const out = execFileSync3("which", ["brew"], { timeout: 5e3 }).toString().trim();
|