@integrity-labs/agt-cli 0.28.248 → 0.28.249

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-JIQM5K3C.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.249" : "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.249" : "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.249" : "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-JIQM5K3C.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-JIQM5K3C.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";
@@ -6519,7 +6519,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
6519
6519
  var lastVersionCheckAt = 0;
6520
6520
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
6521
6521
  var lastResponsivenessProbeAt = 0;
6522
- var agtCliVersion = true ? "0.28.248" : "dev";
6522
+ var agtCliVersion = true ? "0.28.249" : "dev";
6523
6523
  function resolveBrewPath(execFileSync2) {
6524
6524
  try {
6525
6525
  const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -7369,7 +7369,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
7369
7369
  if (codeNames.length === 0) return;
7370
7370
  void (async () => {
7371
7371
  try {
7372
- const { collectDiagnostics } = await import("../persistent-session-7BQ2OE2R.js");
7372
+ const { collectDiagnostics } = await import("../persistent-session-CHYTU6HG.js");
7373
7373
  await api.post("/host/heartbeat", {
7374
7374
  host_id: hostId,
7375
7375
  agent_diagnostics: collectDiagnostics(codeNames)
@@ -7467,7 +7467,7 @@ async function pollCycle() {
7467
7467
  }
7468
7468
  try {
7469
7469
  const { detectHostSecurity } = await import("../host-security-6PDFG7F5.js");
7470
- const { collectDiagnostics } = await import("../persistent-session-7BQ2OE2R.js");
7470
+ const { collectDiagnostics } = await import("../persistent-session-CHYTU6HG.js");
7471
7471
  const diagCodeNames = [...agentState.persistentSessionAgents];
7472
7472
  const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames) : void 0;
7473
7473
  let tailscaleHostname;
@@ -7615,7 +7615,7 @@ async function pollCycle() {
7615
7615
  const {
7616
7616
  collectResponsivenessProbes,
7617
7617
  getResponsivenessIntervalMs
7618
- } = await import("../responsiveness-probe-MUY7HOGQ.js");
7618
+ } = await import("../responsiveness-probe-D74I4CS6.js");
7619
7619
  const probeIntervalMs = getResponsivenessIntervalMs();
7620
7620
  if (now - lastResponsivenessProbeAt > probeIntervalMs) {
7621
7621
  const probeCodeNames = [...agentState.persistentSessionAgents];
@@ -7647,7 +7647,7 @@ async function pollCycle() {
7647
7647
  collectResponsivenessProbes,
7648
7648
  livePendingInboundOldestAgeSeconds,
7649
7649
  parkPendingInbound
7650
- } = await import("../responsiveness-probe-MUY7HOGQ.js");
7650
+ } = await import("../responsiveness-probe-D74I4CS6.js");
7651
7651
  const { getProjectDir: wedgeProjectDir } = await import("../claude-scheduler-FATCLHDM.js");
7652
7652
  const wedgeNow = /* @__PURE__ */ new Date();
7653
7653
  const liveAgents = agentState.persistentSessionAgents;
@@ -10465,7 +10465,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
10465
10465
  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
10466
  void (async () => {
10467
10467
  try {
10468
- const { collectDiagnostics } = await import("../persistent-session-7BQ2OE2R.js");
10468
+ const { collectDiagnostics } = await import("../persistent-session-CHYTU6HG.js");
10469
10469
  await api.post("/host/heartbeat", {
10470
10470
  host_id: hostId,
10471
10471
  agent_diagnostics: collectDiagnostics([codeName])
@@ -10515,7 +10515,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
10515
10515
  }
10516
10516
  try {
10517
10517
  const hostId = await getHostId();
10518
- const { collectDiagnostics } = await import("../persistent-session-7BQ2OE2R.js");
10518
+ const { collectDiagnostics } = await import("../persistent-session-CHYTU6HG.js");
10519
10519
  await api.post("/host/heartbeat", {
10520
10520
  host_id: hostId,
10521
10521
  agent_diagnostics: collectDiagnostics([codeName])
@@ -10906,7 +10906,7 @@ async function processClaudePairSessions(agents) {
10906
10906
  killPairSession,
10907
10907
  pairTmuxSession,
10908
10908
  finalizeClaudePairOnboarding
10909
- } = await import("../claude-pair-runtime-HHEVB5WF.js");
10909
+ } = await import("../claude-pair-runtime-S6LYZUEC.js");
10910
10910
  for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
10911
10911
  log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
10912
10912
  const killed = await killPairSession(pairTmuxSession(pairId));
@@ -14376,15 +14376,19 @@ function extractForwardedContent(attachments) {
14376
14376
  for (const raw of attachments) {
14377
14377
  if (!raw || typeof raw !== "object") continue;
14378
14378
  const att = raw;
14379
- let body = asTrimmed(att.text) || asTrimmed(att.fallback);
14379
+ const textBody = asTrimmed(att.text);
14380
+ let body = textBody || asTrimmed(att.fallback);
14381
+ const blockSources = [];
14382
+ if (Array.isArray(att.blocks)) blockSources.push(att.blocks);
14380
14383
  if (Array.isArray(att.message_blocks)) {
14381
- for (const mb of att.message_blocks) {
14382
- const rendered = renderSlackBlocks(mb?.message?.blocks);
14383
- const renderedText = rendered.text.trim();
14384
- if (renderedText && (!body || rendered.hadTable)) {
14385
- body = renderedText;
14386
- break;
14387
- }
14384
+ for (const mb of att.message_blocks) blockSources.push(mb?.message?.blocks);
14385
+ }
14386
+ for (const source of blockSources) {
14387
+ const rendered = renderSlackBlocks(source);
14388
+ const renderedText = rendered.text.trim();
14389
+ if (renderedText && (!textBody || rendered.hadTable)) {
14390
+ body = renderedText;
14391
+ break;
14388
14392
  }
14389
14393
  }
14390
14394
  const title = asTrimmed(att.title);
@@ -36,7 +36,7 @@ import {
36
36
  writeDirectChatSessionState,
37
37
  writeEgressAllowlist,
38
38
  writePersistentClaudeWrapper
39
- } from "./chunk-NFO3GOL3.js";
39
+ } from "./chunk-UMXGONVE.js";
40
40
  import "./chunk-XWVM4KPK.js";
41
41
  export {
42
42
  EGRESS_BASELINE_DOMAINS,
@@ -77,4 +77,4 @@ export {
77
77
  writeEgressAllowlist,
78
78
  writePersistentClaudeWrapper
79
79
  };
80
- //# sourceMappingURL=persistent-session-7BQ2OE2R.js.map
80
+ //# sourceMappingURL=persistent-session-CHYTU6HG.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  paneLogPath
3
- } from "./chunk-NFO3GOL3.js";
3
+ } from "./chunk-UMXGONVE.js";
4
4
  import "./chunk-XWVM4KPK.js";
5
5
 
6
6
  // src/lib/responsiveness-probe.ts
@@ -418,4 +418,4 @@ export {
418
418
  readAndResetSlackReplyBindingClassifications,
419
419
  readAndResetSlackReplyTargetClassifications
420
420
  };
421
- //# sourceMappingURL=responsiveness-probe-MUY7HOGQ.js.map
421
+ //# sourceMappingURL=responsiveness-probe-D74I4CS6.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integrity-labs/agt-cli",
3
- "version": "0.28.248",
3
+ "version": "0.28.249",
4
4
  "description": "Augmented Team CLI — agent provisioning and management",
5
5
  "type": "module",
6
6
  "engines": {