@integrity-labs/agt-cli 0.28.249 → 0.28.250
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
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
success,
|
|
39
39
|
table,
|
|
40
40
|
warn
|
|
41
|
-
} from "../chunk-
|
|
41
|
+
} from "../chunk-FQBAABKO.js";
|
|
42
42
|
import {
|
|
43
43
|
CHANNEL_REGISTRY,
|
|
44
44
|
DEFAULT_FRAMEWORK,
|
|
@@ -4826,7 +4826,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
4826
4826
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
4827
4827
|
import chalk18 from "chalk";
|
|
4828
4828
|
import ora16 from "ora";
|
|
4829
|
-
var cliVersion = true ? "0.28.
|
|
4829
|
+
var cliVersion = true ? "0.28.250" : "dev";
|
|
4830
4830
|
async function fetchLatestVersion() {
|
|
4831
4831
|
const host2 = getHost();
|
|
4832
4832
|
if (!host2) return null;
|
|
@@ -5840,7 +5840,7 @@ function handleError(err) {
|
|
|
5840
5840
|
}
|
|
5841
5841
|
|
|
5842
5842
|
// src/bin/agt.ts
|
|
5843
|
-
var cliVersion2 = true ? "0.28.
|
|
5843
|
+
var cliVersion2 = true ? "0.28.250" : "dev";
|
|
5844
5844
|
var program = new Command();
|
|
5845
5845
|
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");
|
|
5846
5846
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -5832,7 +5832,7 @@ function requireHost() {
|
|
|
5832
5832
|
}
|
|
5833
5833
|
|
|
5834
5834
|
// src/lib/api-client.ts
|
|
5835
|
-
var agtCliVersion = true ? "0.28.
|
|
5835
|
+
var agtCliVersion = true ? "0.28.250" : "dev";
|
|
5836
5836
|
var lastConfigHash = null;
|
|
5837
5837
|
function setConfigHash(hash) {
|
|
5838
5838
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -8102,4 +8102,4 @@ export {
|
|
|
8102
8102
|
managerInstallSystemUnitCommand,
|
|
8103
8103
|
managerUninstallSystemUnitCommand
|
|
8104
8104
|
};
|
|
8105
|
-
//# sourceMappingURL=chunk-
|
|
8105
|
+
//# sourceMappingURL=chunk-FQBAABKO.js.map
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
requireHost,
|
|
38
38
|
safeWriteJsonAtomic,
|
|
39
39
|
setConfigHash
|
|
40
|
-
} from "../chunk-
|
|
40
|
+
} from "../chunk-FQBAABKO.js";
|
|
41
41
|
import {
|
|
42
42
|
getProjectDir as getProjectDir2,
|
|
43
43
|
getReadyTasks,
|
|
@@ -6098,7 +6098,7 @@ function verifyPendingRestarts(now) {
|
|
|
6098
6098
|
log(`[restart-verify] '${codeName}' respawned healthy after MCP change \u2014 tools bound (ENG-6174)`);
|
|
6099
6099
|
finishRestartTiming(codeName, "tools-bound", void 0, log, now);
|
|
6100
6100
|
if (hostFlagStore().getBoolean("session-tool-probe")) {
|
|
6101
|
-
|
|
6101
|
+
promptBindProbeAttempts.set(codeName, PROMPT_BIND_PROBE_ATTEMPTS);
|
|
6102
6102
|
}
|
|
6103
6103
|
break;
|
|
6104
6104
|
case "waiting":
|
|
@@ -6278,7 +6278,8 @@ var SESSION_TOOL_REBIND_COOLDOWN_MS = 10 * 60 * 1e3;
|
|
|
6278
6278
|
function sessionToolRebindKey(codeName, serverKey) {
|
|
6279
6279
|
return `${codeName}\0${serverKey}`;
|
|
6280
6280
|
}
|
|
6281
|
-
var
|
|
6281
|
+
var promptBindProbeAttempts = /* @__PURE__ */ new Map();
|
|
6282
|
+
var PROMPT_BIND_PROBE_ATTEMPTS = 6;
|
|
6282
6283
|
async function runAgentSessionToolBindProbes(agent, integrations, projectDir, opts) {
|
|
6283
6284
|
if (integrations.length === 0) return true;
|
|
6284
6285
|
const intervalSec = Number(process.env.AGT_CONNECTIVITY_PROBE_INTERVAL_SECONDS) || 3600;
|
|
@@ -6519,7 +6520,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
6519
6520
|
var lastVersionCheckAt = 0;
|
|
6520
6521
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
6521
6522
|
var lastResponsivenessProbeAt = 0;
|
|
6522
|
-
var agtCliVersion = true ? "0.28.
|
|
6523
|
+
var agtCliVersion = true ? "0.28.250" : "dev";
|
|
6523
6524
|
function resolveBrewPath(execFileSync2) {
|
|
6524
6525
|
try {
|
|
6525
6526
|
const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -7928,6 +7929,9 @@ async function pollCycle() {
|
|
|
7928
7929
|
if (fastRespawn && restartAcks.has(agent.agent_id) && isSessionHealthy(agent.code_name)) {
|
|
7929
7930
|
flushRestartedAgentDiagnostics(hostId, [agent.code_name]);
|
|
7930
7931
|
}
|
|
7932
|
+
if (restartAcks.has(agent.agent_id) && isSessionHealthy(agent.code_name) && hostFlagStore().getBoolean("session-tool-probe")) {
|
|
7933
|
+
promptBindProbeAttempts.set(agent.code_name, PROMPT_BIND_PROBE_ATTEMPTS);
|
|
7934
|
+
}
|
|
7931
7935
|
}
|
|
7932
7936
|
void maybeReportActivityCache({ api, log });
|
|
7933
7937
|
const restartAckStateChanged = applyRestartAcks({
|
|
@@ -9089,7 +9093,8 @@ async function processAgent(agent, agentStates) {
|
|
|
9089
9093
|
}
|
|
9090
9094
|
}
|
|
9091
9095
|
if (hostFlagStore().getBoolean("session-tool-probe")) {
|
|
9092
|
-
const
|
|
9096
|
+
const attemptsLeft = promptBindProbeAttempts.get(agent.code_name) ?? 0;
|
|
9097
|
+
const forceDue = attemptsLeft > 0;
|
|
9093
9098
|
let probeRan = false;
|
|
9094
9099
|
try {
|
|
9095
9100
|
const probeProjectDir = join16(homedir9(), ".augmented", agent.code_name, "project");
|
|
@@ -9097,7 +9102,11 @@ async function processAgent(agent, agentStates) {
|
|
|
9097
9102
|
} catch (err) {
|
|
9098
9103
|
log(`Session-tool-bind probe failed for '${agent.code_name}': ${err.message}`);
|
|
9099
9104
|
}
|
|
9100
|
-
if (forceDue &&
|
|
9105
|
+
if (forceDue && probeRan) {
|
|
9106
|
+
const left = attemptsLeft - 1;
|
|
9107
|
+
if (left > 0) promptBindProbeAttempts.set(agent.code_name, left);
|
|
9108
|
+
else promptBindProbeAttempts.delete(agent.code_name);
|
|
9109
|
+
}
|
|
9101
9110
|
}
|
|
9102
9111
|
if (frameworkAdapter.removeMcpServer && frameworkAdapter.getMcpPath) {
|
|
9103
9112
|
const mcpPath = frameworkAdapter.getMcpPath(agent.code_name);
|