@integrity-labs/agt-cli 0.28.248 → 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-TW7Q3VOL.js";
41
+ } from "../chunk-FQBAABKO.js";
42
42
  import {
43
43
  CHANNEL_REGISTRY,
44
44
  DEFAULT_FRAMEWORK,
@@ -67,7 +67,7 @@ import {
67
67
  renderTemplate,
68
68
  resolveChannels,
69
69
  serializeManifestForSlackCli
70
- } from "../chunk-NFO3GOL3.js";
70
+ } from "../chunk-UMXGONVE.js";
71
71
  import "../chunk-XWVM4KPK.js";
72
72
 
73
73
  // src/bin/agt.ts
@@ -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.248" : "dev";
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.248" : "dev";
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) => {
@@ -18,7 +18,7 @@ import {
18
18
  resolveConnectivityProbe,
19
19
  worseConnectivityOutcome,
20
20
  wrapScheduledTaskPrompt
21
- } from "./chunk-NFO3GOL3.js";
21
+ } from "./chunk-UMXGONVE.js";
22
22
  import {
23
23
  parsePsRows
24
24
  } from "./chunk-XWVM4KPK.js";
@@ -5832,7 +5832,7 @@ function requireHost() {
5832
5832
  }
5833
5833
 
5834
5834
  // src/lib/api-client.ts
5835
- var agtCliVersion = true ? "0.28.248" : "dev";
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-TW7Q3VOL.js.map
8105
+ //# sourceMappingURL=chunk-FQBAABKO.js.map
@@ -9118,4 +9118,4 @@ export {
9118
9118
  stopAllSessionsAndWait,
9119
9119
  getProjectDir
9120
9120
  };
9121
- //# sourceMappingURL=chunk-NFO3GOL3.js.map
9121
+ //# sourceMappingURL=chunk-UMXGONVE.js.map
@@ -100,7 +100,7 @@ async function spawnPairSession(session) {
100
100
  return { ok: true };
101
101
  } catch {
102
102
  }
103
- const { resolveClaudeBinary } = await import("./persistent-session-7BQ2OE2R.js");
103
+ const { resolveClaudeBinary } = await import("./persistent-session-CHYTU6HG.js");
104
104
  const claudeBin = resolveClaudeBinary();
105
105
  const pairEnv = {
106
106
  ...process.env,
@@ -373,4 +373,4 @@ export {
373
373
  startClaudePair,
374
374
  submitClaudePairCode
375
375
  };
376
- //# sourceMappingURL=claude-pair-runtime-HHEVB5WF.js.map
376
+ //# sourceMappingURL=claude-pair-runtime-S6LYZUEC.js.map
@@ -37,7 +37,7 @@ import {
37
37
  requireHost,
38
38
  safeWriteJsonAtomic,
39
39
  setConfigHash
40
- } from "../chunk-TW7Q3VOL.js";
40
+ } from "../chunk-FQBAABKO.js";
41
41
  import {
42
42
  getProjectDir as getProjectDir2,
43
43
  getReadyTasks,
@@ -122,7 +122,7 @@ import {
122
122
  takeZombieDetection,
123
123
  transcriptActivityAgeSeconds,
124
124
  writeEgressAllowlist
125
- } from "../chunk-NFO3GOL3.js";
125
+ } from "../chunk-UMXGONVE.js";
126
126
  import {
127
127
  reapOrphanChannelMcps
128
128
  } from "../chunk-XWVM4KPK.js";
@@ -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
- promptBindProbeAgents.add(codeName);
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 promptBindProbeAgents = /* @__PURE__ */ new Set();
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.248" : "dev";
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();
@@ -7369,7 +7370,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
7369
7370
  if (codeNames.length === 0) return;
7370
7371
  void (async () => {
7371
7372
  try {
7372
- const { collectDiagnostics } = await import("../persistent-session-7BQ2OE2R.js");
7373
+ const { collectDiagnostics } = await import("../persistent-session-CHYTU6HG.js");
7373
7374
  await api.post("/host/heartbeat", {
7374
7375
  host_id: hostId,
7375
7376
  agent_diagnostics: collectDiagnostics(codeNames)
@@ -7467,7 +7468,7 @@ async function pollCycle() {
7467
7468
  }
7468
7469
  try {
7469
7470
  const { detectHostSecurity } = await import("../host-security-6PDFG7F5.js");
7470
- const { collectDiagnostics } = await import("../persistent-session-7BQ2OE2R.js");
7471
+ const { collectDiagnostics } = await import("../persistent-session-CHYTU6HG.js");
7471
7472
  const diagCodeNames = [...agentState.persistentSessionAgents];
7472
7473
  const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames) : void 0;
7473
7474
  let tailscaleHostname;
@@ -7615,7 +7616,7 @@ async function pollCycle() {
7615
7616
  const {
7616
7617
  collectResponsivenessProbes,
7617
7618
  getResponsivenessIntervalMs
7618
- } = await import("../responsiveness-probe-MUY7HOGQ.js");
7619
+ } = await import("../responsiveness-probe-D74I4CS6.js");
7619
7620
  const probeIntervalMs = getResponsivenessIntervalMs();
7620
7621
  if (now - lastResponsivenessProbeAt > probeIntervalMs) {
7621
7622
  const probeCodeNames = [...agentState.persistentSessionAgents];
@@ -7647,7 +7648,7 @@ async function pollCycle() {
7647
7648
  collectResponsivenessProbes,
7648
7649
  livePendingInboundOldestAgeSeconds,
7649
7650
  parkPendingInbound
7650
- } = await import("../responsiveness-probe-MUY7HOGQ.js");
7651
+ } = await import("../responsiveness-probe-D74I4CS6.js");
7651
7652
  const { getProjectDir: wedgeProjectDir } = await import("../claude-scheduler-FATCLHDM.js");
7652
7653
  const wedgeNow = /* @__PURE__ */ new Date();
7653
7654
  const liveAgents = agentState.persistentSessionAgents;
@@ -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 forceDue = promptBindProbeAgents.delete(agent.code_name);
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 && !probeRan) promptBindProbeAgents.add(agent.code_name);
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);
@@ -10465,7 +10474,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
10465
10474
  void api.post("/host/restart-ack", { host_id: hostId, agent_id: agentId, restart_requested_at: requestedAt }).catch((err) => log(`[restart-lane] ack failed for '${codeName}': ${err.message}`));
10466
10475
  void (async () => {
10467
10476
  try {
10468
- const { collectDiagnostics } = await import("../persistent-session-7BQ2OE2R.js");
10477
+ const { collectDiagnostics } = await import("../persistent-session-CHYTU6HG.js");
10469
10478
  await api.post("/host/heartbeat", {
10470
10479
  host_id: hostId,
10471
10480
  agent_diagnostics: collectDiagnostics([codeName])
@@ -10515,7 +10524,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
10515
10524
  }
10516
10525
  try {
10517
10526
  const hostId = await getHostId();
10518
- const { collectDiagnostics } = await import("../persistent-session-7BQ2OE2R.js");
10527
+ const { collectDiagnostics } = await import("../persistent-session-CHYTU6HG.js");
10519
10528
  await api.post("/host/heartbeat", {
10520
10529
  host_id: hostId,
10521
10530
  agent_diagnostics: collectDiagnostics([codeName])
@@ -10906,7 +10915,7 @@ async function processClaudePairSessions(agents) {
10906
10915
  killPairSession,
10907
10916
  pairTmuxSession,
10908
10917
  finalizeClaudePairOnboarding
10909
- } = await import("../claude-pair-runtime-HHEVB5WF.js");
10918
+ } = await import("../claude-pair-runtime-S6LYZUEC.js");
10910
10919
  for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
10911
10920
  log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
10912
10921
  const killed = await killPairSession(pairTmuxSession(pairId));