@integrity-labs/agt-cli 0.28.764 → 0.28.765

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
@@ -41,7 +41,7 @@ import {
41
41
  success,
42
42
  table,
43
43
  warn
44
- } from "../chunk-SMY25FCN.js";
44
+ } from "../chunk-EWH4J63B.js";
45
45
  import {
46
46
  getProjectDir,
47
47
  isSessionResumeDisabled,
@@ -5467,7 +5467,7 @@ import { execFileSync, execSync } from "child_process";
5467
5467
  import { existsSync as existsSync11, realpathSync as realpathSync2 } from "fs";
5468
5468
  import chalk18 from "chalk";
5469
5469
  import ora16 from "ora";
5470
- var cliVersion = true ? "0.28.764" : "dev";
5470
+ var cliVersion = true ? "0.28.765" : "dev";
5471
5471
  async function fetchLatestVersion() {
5472
5472
  const host2 = getHost();
5473
5473
  if (!host2) return null;
@@ -6658,7 +6658,7 @@ function handleError(err) {
6658
6658
  }
6659
6659
 
6660
6660
  // src/bin/agt.ts
6661
- var cliVersion2 = true ? "0.28.764" : "dev";
6661
+ var cliVersion2 = true ? "0.28.765" : "dev";
6662
6662
  var program = new Command();
6663
6663
  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");
6664
6664
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -2552,9 +2552,24 @@ function provisionStopHook(codeName) {
2552
2552
  "# obligation (consume is the explicit handled-without-reply ack, the same",
2553
2553
  "# session-scoped drain the MCP applies), so either counts as answered. session_id",
2554
2554
  "# is unambiguous (one session per marker), so there is no cross-thread class here.",
2555
+ "#",
2556
+ "# ENG-9420: this predicate was the one of four that ENG-8142 missed. It came",
2557
+ "# from ENG-7808 and had been error-blind ever since, so a direct_chat.reply",
2558
+ '# whose tool_result came back is_error:true still satisfied "the agent',
2559
+ '# replied" - the recovery outbox never written, the owed-reply re-prompt',
2560
+ "# suppressed. Direct chat is where scheduled-task results and approval",
2561
+ "# round-trips land, so that is a user asking a question and getting nothing.",
2562
+ "#",
2563
+ "# A FAILED consume is treated the same as a failed reply, deliberately.",
2564
+ '# consume means "handled without replying" and drains the marker; if the',
2565
+ "# drain failed, the marker was not drained and the conversation is not",
2566
+ "# settled. Counting it would suppress the re-prompt for a message that is",
2567
+ "# still genuinely pending. The failure direction of this choice is an extra",
2568
+ "# re-prompt, which the user sees and can ignore; the other direction is a",
2569
+ "# silently dropped message, which nobody sees at all.",
2555
2570
  "replied_this_conv_directchat() {",
2556
2571
  ' local session_id="$1" hit',
2557
- ` hit=$(printf '%s' "$LAST_ASSISTANT" | jq -r --arg sid "$session_id" '(.message.content // .content // []) | (if type=="array" then . else [] end) | (if any(.[]; (type=="object") and (.type=="tool_use") and ((.name|tostring)|test("(^|__)direct_chat[._](reply|consume)$")) and (((.input.session_id // "")|tostring)==$sid)) then "yes" else "no" end)' 2>/dev/null || echo no)`,
2572
+ ` hit=$(printf '%s' "$LAST_ASSISTANT" | jq -r --arg sid "$session_id" --arg errids "$ERRORED_TOOL_IDS" '(($errids // "") | split("\\n") | map(select(length > 0))) as $bad | (.message.content // .content // []) | (if type=="array" then . else [] end) | (if any(.[]; (type=="object") and (.type=="tool_use") and ((.name|tostring)|test("(^|__)direct_chat[._](reply|consume)$")) and ((.id // "") as $tid | ($bad | index($tid)) == null) and (((.input.session_id // "")|tostring)==$sid)) then "yes" else "no" end)' 2>/dev/null || echo no)`,
2558
2573
  ' [ "$hit" = "yes" ]',
2559
2574
  "}",
2560
2575
  "recover_telegram_for() {",
@@ -6437,7 +6452,7 @@ function exchangeFailureKind(err) {
6437
6452
  }
6438
6453
 
6439
6454
  // src/lib/api-client.ts
6440
- var agtCliVersion = true ? "0.28.764" : "dev";
6455
+ var agtCliVersion = true ? "0.28.765" : "dev";
6441
6456
  var lastConfigHash = null;
6442
6457
  function setConfigHash(hash) {
6443
6458
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -10636,4 +10651,4 @@ export {
10636
10651
  managerInstallSystemUnitCommand,
10637
10652
  managerUninstallSystemUnitCommand
10638
10653
  };
10639
- //# sourceMappingURL=chunk-SMY25FCN.js.map
10654
+ //# sourceMappingURL=chunk-EWH4J63B.js.map