@integrity-labs/agt-cli 0.28.202 → 0.28.204

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.
@@ -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-R7Q7QQYO.js");
103
+ const { resolveClaudeBinary } = await import("./persistent-session-OXQGFIXK.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-GUPKR3WG.js.map
376
+ //# sourceMappingURL=claude-pair-runtime-H5UNK3LX.js.map
@@ -16,6 +16,7 @@ import {
16
16
  executeConnectivityProbe,
17
17
  extractCommandNotFound,
18
18
  getApiKey,
19
+ getCachedClaudeAuthMode,
19
20
  getHostId,
20
21
  provision,
21
22
  provisionAutoKanbanProgressHook,
@@ -27,7 +28,7 @@ import {
27
28
  requireHost,
28
29
  safeWriteJsonAtomic,
29
30
  setConfigHash
30
- } from "../chunk-YE5PQAY4.js";
31
+ } from "../chunk-DKVV2REL.js";
31
32
  import {
32
33
  getProjectDir as getProjectDir2,
33
34
  getReadyTasks,
@@ -69,7 +70,7 @@ import {
69
70
  takeZombieDetection,
70
71
  transcriptActivityAgeSeconds,
71
72
  writeEgressAllowlist
72
- } from "../chunk-X3LBSW45.js";
73
+ } from "../chunk-2A2EV3B3.js";
73
74
  import {
74
75
  CONVERSATION_FAILURE_CATEGORIES,
75
76
  DEFAULT_FRAMEWORK,
@@ -113,7 +114,7 @@ import {
113
114
  resolveChannels,
114
115
  resolveDmTarget,
115
116
  sumTranscriptUsageInWindow
116
- } from "../chunk-E32KXZXX.js";
117
+ } from "../chunk-2AWUVRIX.js";
117
118
  import {
118
119
  parsePsRows,
119
120
  reapOrphanChannelMcps
@@ -2370,6 +2371,10 @@ async function runAnthropicMessages(prompt, opts) {
2370
2371
  }
2371
2372
  return text;
2372
2373
  }
2374
+ function meteredScorerSuppressed(claudeAuthMode, backendKind) {
2375
+ if (claudeAuthMode !== "openrouter") return false;
2376
+ return (backendKind ?? "").trim().toLowerCase() !== "local";
2377
+ }
2373
2378
  function selectEvalBackend(opts) {
2374
2379
  const kind = (opts.kind ?? "").trim().toLowerCase();
2375
2380
  const log2 = opts.log ?? (() => {
@@ -6681,7 +6686,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
6681
6686
  var lastVersionCheckAt = 0;
6682
6687
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
6683
6688
  var lastResponsivenessProbeAt = 0;
6684
- var agtCliVersion = true ? "0.28.202" : "dev";
6689
+ var agtCliVersion = true ? "0.28.204" : "dev";
6685
6690
  function resolveBrewPath(execFileSync4) {
6686
6691
  try {
6687
6692
  const out = execFileSync4("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -7322,6 +7327,22 @@ async function runEvalClaude(prompt, model) {
7322
7327
  function memoryExtractionEnabled() {
7323
7328
  return hostFlagStore().getBoolean("memory-extraction");
7324
7329
  }
7330
+ function conversationScorerSuppressed() {
7331
+ return meteredScorerSuppressed(
7332
+ getCachedClaudeAuthMode(),
7333
+ hostFlagStore().getString("conversation-eval-backend")
7334
+ );
7335
+ }
7336
+ var lastMeteredScorerLogMs = 0;
7337
+ function logMeteredScorerSuppressed() {
7338
+ const nowMs = Date.now();
7339
+ if (nowMs - lastMeteredScorerLogMs < 30 * 6e4) return;
7340
+ lastMeteredScorerLogMs = nowMs;
7341
+ const kind = hostFlagStore().getString("conversation-eval-backend");
7342
+ log(
7343
+ `[conversation-eval] host is OpenRouter-metered (backend='${kind}') - skipping conversation eval + memory extraction to avoid per-token cost for a no-deliverable scorer (ENG-7235). Set conversation-eval-backend=local to run the free host-local scorer instead.`
7344
+ );
7345
+ }
7325
7346
  var conversationEvalBackend = null;
7326
7347
  var conversationEvalBackendSig = null;
7327
7348
  function resolveConversationEvalBackend() {
@@ -7574,7 +7595,7 @@ async function pollCycle() {
7574
7595
  }
7575
7596
  try {
7576
7597
  const { detectHostSecurity } = await import("../host-security-6PDFG7F5.js");
7577
- const { collectDiagnostics } = await import("../persistent-session-R7Q7QQYO.js");
7598
+ const { collectDiagnostics } = await import("../persistent-session-OXQGFIXK.js");
7578
7599
  const diagCodeNames = [...agentState.persistentSessionAgents];
7579
7600
  const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames) : void 0;
7580
7601
  let tailscaleHostname;
@@ -7722,7 +7743,7 @@ async function pollCycle() {
7722
7743
  const {
7723
7744
  collectResponsivenessProbes,
7724
7745
  getResponsivenessIntervalMs
7725
- } = await import("../responsiveness-probe-WZGKNPQ4.js");
7746
+ } = await import("../responsiveness-probe-T5Z5KPVX.js");
7726
7747
  const probeIntervalMs = getResponsivenessIntervalMs();
7727
7748
  if (now - lastResponsivenessProbeAt > probeIntervalMs) {
7728
7749
  const probeCodeNames = [...agentState.persistentSessionAgents];
@@ -7754,7 +7775,7 @@ async function pollCycle() {
7754
7775
  collectResponsivenessProbes,
7755
7776
  livePendingInboundOldestAgeSeconds,
7756
7777
  parkPendingInbound
7757
- } = await import("../responsiveness-probe-WZGKNPQ4.js");
7778
+ } = await import("../responsiveness-probe-T5Z5KPVX.js");
7758
7779
  const { getProjectDir: wedgeProjectDir } = await import("../claude-scheduler-FATCLHDM.js");
7759
7780
  const wedgeNow = /* @__PURE__ */ new Date();
7760
7781
  const liveAgents = agentState.persistentSessionAgents;
@@ -8210,14 +8231,20 @@ async function processAgent(agent, agentStates) {
8210
8231
  agentId: agent.agent_id,
8211
8232
  log
8212
8233
  });
8213
- void maybeEvaluateConversations({
8214
- api,
8215
- backend: resolveConversationEvalBackend(),
8216
- codeName: agent.code_name,
8217
- agentId: agent.agent_id,
8218
- log
8219
- });
8220
- if (memoryExtractionEnabled()) {
8234
+ const scorerSuppressed = conversationScorerSuppressed();
8235
+ if (scorerSuppressed) {
8236
+ logMeteredScorerSuppressed();
8237
+ }
8238
+ if (!scorerSuppressed) {
8239
+ void maybeEvaluateConversations({
8240
+ api,
8241
+ backend: resolveConversationEvalBackend(),
8242
+ codeName: agent.code_name,
8243
+ agentId: agent.agent_id,
8244
+ log
8245
+ });
8246
+ }
8247
+ if (memoryExtractionEnabled() && !scorerSuppressed) {
8221
8248
  void maybeExtractMemories({
8222
8249
  api,
8223
8250
  backend: resolveConversationEvalBackend(),
@@ -10767,7 +10794,7 @@ async function processClaudePairSessions(agents) {
10767
10794
  killPairSession,
10768
10795
  pairTmuxSession,
10769
10796
  finalizeClaudePairOnboarding
10770
- } = await import("../claude-pair-runtime-GUPKR3WG.js");
10797
+ } = await import("../claude-pair-runtime-H5UNK3LX.js");
10771
10798
  for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
10772
10799
  log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
10773
10800
  const killed = await killPairSession(pairTmuxSession(pairId));