@integrity-labs/agt-cli 0.28.994 → 0.28.995

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-VCNTJ345.js";
43
+ } from "../chunk-YAUTQIEG.js";
44
44
  import {
45
45
  getProjectDir,
46
46
  isSessionResumeDisabled,
@@ -5473,7 +5473,7 @@ import { execFileSync, execSync } from "child_process";
5473
5473
  import { existsSync as existsSync11, realpathSync as realpathSync2 } from "fs";
5474
5474
  import chalk18 from "chalk";
5475
5475
  import ora16 from "ora";
5476
- var cliVersion = true ? "0.28.994" : "dev";
5476
+ var cliVersion = true ? "0.28.995" : "dev";
5477
5477
  async function fetchLatestVersion() {
5478
5478
  const host2 = getHost();
5479
5479
  if (!host2) return null;
@@ -6733,7 +6733,7 @@ function handleError(err) {
6733
6733
  }
6734
6734
 
6735
6735
  // src/bin/agt.ts
6736
- var cliVersion2 = true ? "0.28.994" : "dev";
6736
+ var cliVersion2 = true ? "0.28.995" : "dev";
6737
6737
  var program = new Command();
6738
6738
  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");
6739
6739
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -6974,7 +6974,7 @@ function exchangeFailureKind(err) {
6974
6974
  }
6975
6975
 
6976
6976
  // src/lib/api-client.ts
6977
- var agtCliVersion = true ? "0.28.994" : "dev";
6977
+ var agtCliVersion = true ? "0.28.995" : "dev";
6978
6978
  var lastConfigHash = null;
6979
6979
  function setConfigHash(hash) {
6980
6980
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -11725,4 +11725,4 @@ export {
11725
11725
  managerInstallSystemUnitCommand,
11726
11726
  managerUninstallSystemUnitCommand
11727
11727
  };
11728
- //# sourceMappingURL=chunk-VCNTJ345.js.map
11728
+ //# sourceMappingURL=chunk-YAUTQIEG.js.map
@@ -63,7 +63,7 @@ import {
63
63
  safeWriteJsonAtomic,
64
64
  setConfigHash,
65
65
  tripClass
66
- } from "../chunk-VCNTJ345.js";
66
+ } from "../chunk-YAUTQIEG.js";
67
67
  import {
68
68
  getProjectDir as getProjectDir2,
69
69
  getReadyTasks,
@@ -14054,7 +14054,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
14054
14054
  var lastVersionCheckAt = 0;
14055
14055
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
14056
14056
  var lastResponsivenessProbeAt = 0;
14057
- var agtCliVersion = true ? "0.28.994" : "dev";
14057
+ var agtCliVersion = true ? "0.28.995" : "dev";
14058
14058
  function resolveBrewPath(execFileSync2) {
14059
14059
  try {
14060
14060
  const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -21047,6 +21047,22 @@ async function processDirectChatMessage(agent, msg) {
21047
21047
  `[direct-chat] Not delivering to '${agent.codeName}' (msg=${msg.id}) \u2014 session is blocked on an interactive prompt (${blockedOnPrompt}), so nothing in-session can pull it; leaving pending for durable replay once the prompt is answered (further messages this episode are not logged) [ENG-10335]`
21048
21048
  );
21049
21049
  }
21050
+ if (blockedOnPrompt === "login-picker" && shouldLogBlockedPrompt(agent.codeName, "direct-chat-notice")) {
21051
+ try {
21052
+ await api.post("/host/direct-chat/reply", {
21053
+ agent_id: agent.agentId,
21054
+ session_id: msg.session_id,
21055
+ // ENG-9592: `kind: 'notice'` is MANDATORY and is the whole reason this
21056
+ // is safe to send. The column DEFAULTS to 'message', and a 'message'
21057
+ // row is a reply-EXPECTING human turn - so omitting this would hand a
21058
+ // blocked agent a question about its own broken sign-in, which it
21059
+ // cannot answer because it is not running. Push-and-consumed only.
21060
+ kind: "notice",
21061
+ content: `'${agent.codeName}' received your message but cannot start: it is stuck on the Claude login screen, which needs an operator to complete sign-in on its host. Your message is saved and will be delivered automatically once that is done - you do not need to resend it.`
21062
+ });
21063
+ } catch {
21064
+ }
21065
+ }
21050
21066
  if (!blockedOnPrompt && isSessionHealthy(agent.codeName)) {
21051
21067
  const useDoorbell = hostFlagStore().getBoolean("direct-chat-doorbell") || isolationMode(agent.codeName) === "docker";
21052
21068
  if (useDoorbell) {