@integrity-labs/agt-cli 0.28.1236 → 0.28.1238
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
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
success,
|
|
41
41
|
table,
|
|
42
42
|
warn
|
|
43
|
-
} from "../chunk-
|
|
43
|
+
} from "../chunk-FCMRRYVJ.js";
|
|
44
44
|
import {
|
|
45
45
|
getProjectDir,
|
|
46
46
|
isSessionResumeDisabled,
|
|
@@ -5205,7 +5205,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
5205
5205
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
5206
5206
|
import chalk17 from "chalk";
|
|
5207
5207
|
import ora15 from "ora";
|
|
5208
|
-
var cliVersion = true ? "0.28.
|
|
5208
|
+
var cliVersion = true ? "0.28.1238" : "dev";
|
|
5209
5209
|
async function fetchLatestVersion() {
|
|
5210
5210
|
const host2 = getHost();
|
|
5211
5211
|
if (!host2) return null;
|
|
@@ -6465,7 +6465,7 @@ function handleError(err) {
|
|
|
6465
6465
|
}
|
|
6466
6466
|
|
|
6467
6467
|
// src/bin/agt.ts
|
|
6468
|
-
var cliVersion2 = true ? "0.28.
|
|
6468
|
+
var cliVersion2 = true ? "0.28.1238" : "dev";
|
|
6469
6469
|
var program = new Command();
|
|
6470
6470
|
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");
|
|
6471
6471
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -8095,7 +8095,7 @@ function exchangeFailureKind(err) {
|
|
|
8095
8095
|
}
|
|
8096
8096
|
|
|
8097
8097
|
// src/lib/api-client.ts
|
|
8098
|
-
var agtCliVersion = true ? "0.28.
|
|
8098
|
+
var agtCliVersion = true ? "0.28.1238" : "dev";
|
|
8099
8099
|
var lastConfigHash = null;
|
|
8100
8100
|
function setConfigHash(hash) {
|
|
8101
8101
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -13750,4 +13750,4 @@ export {
|
|
|
13750
13750
|
managerInstallSystemUnitCommand,
|
|
13751
13751
|
managerUninstallSystemUnitCommand
|
|
13752
13752
|
};
|
|
13753
|
-
//# sourceMappingURL=chunk-
|
|
13753
|
+
//# sourceMappingURL=chunk-FCMRRYVJ.js.map
|
|
@@ -85,7 +85,7 @@ import {
|
|
|
85
85
|
tripClass,
|
|
86
86
|
writeEtcEnvironment,
|
|
87
87
|
writeProfileDScript
|
|
88
|
-
} from "../chunk-
|
|
88
|
+
} from "../chunk-FCMRRYVJ.js";
|
|
89
89
|
import {
|
|
90
90
|
CLAUDE_CODE_SECURITY_FLOOR,
|
|
91
91
|
SELF_UPDATE_TIMEOUTS,
|
|
@@ -167,6 +167,7 @@ import {
|
|
|
167
167
|
readPaneLogTail,
|
|
168
168
|
readProvisionedOpencodeModel,
|
|
169
169
|
reloadEgressSidecar,
|
|
170
|
+
requiresRemoteMcpToolGate,
|
|
170
171
|
resetRestartCount,
|
|
171
172
|
resolveClaudeBinary,
|
|
172
173
|
resolveContainerMemory,
|
|
@@ -16364,6 +16365,15 @@ var PROMPT_BIND_PROBE_ATTEMPTS = 6;
|
|
|
16364
16365
|
function integrationRenderPending(integrations, knownHash) {
|
|
16365
16366
|
return integrations.length > 0 && computeIntegrationsHash(integrations) !== knownHash;
|
|
16366
16367
|
}
|
|
16368
|
+
function gateTierTableWithheld(integrations) {
|
|
16369
|
+
return integrations.some(
|
|
16370
|
+
(i) => requiresRemoteMcpToolGate(i.definition_id, i.remoteMcp) && i.toolTiers == null
|
|
16371
|
+
);
|
|
16372
|
+
}
|
|
16373
|
+
function integrationHashDecision(rotationHandled, integrations, intHash) {
|
|
16374
|
+
if (gateTierTableWithheld(integrations)) return { kind: "forget" };
|
|
16375
|
+
return rotationHandled ? { kind: "record", hash: intHash } : { kind: "keep" };
|
|
16376
|
+
}
|
|
16367
16377
|
async function runAgentSessionToolBindProbes(agent, integrations, projectDir, opts) {
|
|
16368
16378
|
if (integrations.length === 0) return true;
|
|
16369
16379
|
const intervalSec = Number(process.env.AGT_CONNECTIVITY_PROBE_INTERVAL_SECONDS) || 3600;
|
|
@@ -16667,7 +16677,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
16667
16677
|
var lastVersionCheckAt = 0;
|
|
16668
16678
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
16669
16679
|
var lastResponsivenessProbeAt = 0;
|
|
16670
|
-
var agtCliVersion = true ? "0.28.
|
|
16680
|
+
var agtCliVersion = true ? "0.28.1238" : "dev";
|
|
16671
16681
|
function resolveBrewPath(execFileSync3) {
|
|
16672
16682
|
try {
|
|
16673
16683
|
const out = execFileSync3("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -22179,8 +22189,12 @@ async function processAgent(agent, agentStates, managedToolkits) {
|
|
|
22179
22189
|
log(`[hot-reload] Failed to compute / reap affected MCP servers for '${agent.code_name}': ${err.message} \u2014 will retry next tick`);
|
|
22180
22190
|
}
|
|
22181
22191
|
}
|
|
22182
|
-
|
|
22183
|
-
|
|
22192
|
+
const hashDecision = integrationHashDecision(rotationHandled, integrations, intHash);
|
|
22193
|
+
if (hashDecision.kind === "record") {
|
|
22194
|
+
agentState.knownIntegrationHashes.set(agent.agent_id, hashDecision.hash);
|
|
22195
|
+
} else if (hashDecision.kind === "forget") {
|
|
22196
|
+
agentState.knownIntegrationHashes.delete(agent.agent_id);
|
|
22197
|
+
log(`[hot-reload] '${agent.code_name}': a tool-gated remote MCP was withheld (no tier table this tick); forgetting the integrations hash, so the next tick re-renders it`);
|
|
22184
22198
|
}
|
|
22185
22199
|
}
|
|
22186
22200
|
}
|
|
@@ -26729,9 +26743,11 @@ export {
|
|
|
26729
26743
|
fetchManagedToolkits,
|
|
26730
26744
|
forgetChannelSyncState,
|
|
26731
26745
|
forgetRealtimeRebindState,
|
|
26746
|
+
gateTierTableWithheld,
|
|
26732
26747
|
hasRevokedResiduals,
|
|
26733
26748
|
holdRealtimeRebindInFlight,
|
|
26734
26749
|
inboundHoldMinutes,
|
|
26750
|
+
integrationHashDecision,
|
|
26735
26751
|
integrationRenderPending,
|
|
26736
26752
|
isOlderSemverTuple,
|
|
26737
26753
|
isPrereleaseVersion,
|