@integrity-labs/agt-cli 0.27.95 → 0.27.97

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-SPGHFGCF.js");
103
+ const { resolveClaudeBinary } = await import("./persistent-session-2XLQOMXH.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-JVMK3POM.js.map
376
+ //# sourceMappingURL=claude-pair-runtime-VAMYTRCR.js.map
@@ -16,7 +16,7 @@ import {
16
16
  provisionStopHook,
17
17
  requireHost,
18
18
  safeWriteJsonAtomic
19
- } from "../chunk-A4WZH6AO.js";
19
+ } from "../chunk-6UQ6RPGV.js";
20
20
  import {
21
21
  getProjectDir as getProjectDir2,
22
22
  getReadyTasks,
@@ -54,7 +54,7 @@ import {
54
54
  stopPersistentSession,
55
55
  takeWatchdogGiveUpCount,
56
56
  takeZombieDetection
57
- } from "../chunk-RDIDG5IF.js";
57
+ } from "../chunk-MBHA6PEN.js";
58
58
  import {
59
59
  KANBAN_CHECK_COMMAND,
60
60
  appendDmFooter,
@@ -3996,7 +3996,7 @@ var cachedMaintenanceWindow = null;
3996
3996
  var lastVersionCheckAt = 0;
3997
3997
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
3998
3998
  var lastResponsivenessProbeAt = 0;
3999
- var agtCliVersion = true ? "0.27.95" : "dev";
3999
+ var agtCliVersion = true ? "0.27.97" : "dev";
4000
4000
  function resolveBrewPath(execFileSync4) {
4001
4001
  try {
4002
4002
  const out = execFileSync4("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -5187,7 +5187,7 @@ async function pollCycle() {
5187
5187
  }
5188
5188
  try {
5189
5189
  const { detectHostSecurity } = await import("../host-security-6PDFG7F5.js");
5190
- const { collectDiagnostics } = await import("../persistent-session-SPGHFGCF.js");
5190
+ const { collectDiagnostics } = await import("../persistent-session-2XLQOMXH.js");
5191
5191
  const diagCodeNames = [...agentState.persistentSessionAgents];
5192
5192
  const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames) : void 0;
5193
5193
  let tailscaleHostname;
@@ -5260,7 +5260,7 @@ async function pollCycle() {
5260
5260
  const {
5261
5261
  collectResponsivenessProbes,
5262
5262
  getResponsivenessIntervalMs
5263
- } = await import("../responsiveness-probe-PR7RS6JB.js");
5263
+ } = await import("../responsiveness-probe-ABUPNDR7.js");
5264
5264
  const probeIntervalMs = getResponsivenessIntervalMs();
5265
5265
  if (now - lastResponsivenessProbeAt > probeIntervalMs) {
5266
5266
  const probeCodeNames = [...agentState.persistentSessionAgents];
@@ -9561,7 +9561,7 @@ async function processClaudePairSessions(agents) {
9561
9561
  killPairSession,
9562
9562
  pairTmuxSession,
9563
9563
  finalizeClaudePairOnboarding
9564
- } = await import("../claude-pair-runtime-JVMK3POM.js");
9564
+ } = await import("../claude-pair-runtime-VAMYTRCR.js");
9565
9565
  for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
9566
9566
  log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
9567
9567
  const killed = await killPairSession(pairTmuxSession(pairId));
@@ -15264,6 +15264,26 @@ function createSingleTailSlot() {
15264
15264
  };
15265
15265
  }
15266
15266
 
15267
+ // src/telegram-command-registry.ts
15268
+ var HELP = {
15269
+ command: "help",
15270
+ description: "Show available commands"
15271
+ };
15272
+ var RESTART = {
15273
+ command: "restart",
15274
+ description: "Restart this agent"
15275
+ };
15276
+ var INVESTIGATE = {
15277
+ command: "investigate",
15278
+ description: "Live tail of this agent's terminal pane (operators only)"
15279
+ };
15280
+ function buildCommandRegistrations() {
15281
+ return [
15282
+ { scope: { type: "default" }, commands: [HELP, RESTART] },
15283
+ { scope: { type: "all_private_chats" }, commands: [HELP, RESTART, INVESTIGATE] }
15284
+ ];
15285
+ }
15286
+
15267
15287
  // src/pane-tail.ts
15268
15288
  import { execFile } from "child_process";
15269
15289
  import { promisify } from "util";
@@ -17992,6 +18012,24 @@ process.stderr.write(
17992
18012
  `telegram-channel(${AGENT_CODE_NAME}): started, long-polling getUpdates
17993
18013
  `
17994
18014
  );
18015
+ void (async () => {
18016
+ for (const registration of buildCommandRegistrations()) {
18017
+ try {
18018
+ const resp = await telegramApiCall("setMyCommands", registration, 1e4);
18019
+ if (!resp.ok) {
18020
+ process.stderr.write(
18021
+ `telegram-channel(${AGENT_CODE_NAME}): setMyCommands(${registration.scope.type}) rejected: ${resp.description ?? "unknown"}
18022
+ `
18023
+ );
18024
+ }
18025
+ } catch (err) {
18026
+ process.stderr.write(
18027
+ `telegram-channel(${AGENT_CODE_NAME}): setMyCommands(${registration.scope.type}) failed: ${redactAugmentedPaths(err.message)}
18028
+ `
18029
+ );
18030
+ }
18031
+ }
18032
+ })();
17995
18033
  pollLoop().catch((err) => {
17996
18034
  process.stderr.write(
17997
18035
  `telegram-channel(${AGENT_CODE_NAME}): poll loop died: ${err.message}
@@ -22,7 +22,7 @@ import {
22
22
  stopPersistentSession,
23
23
  takeZombieDetection,
24
24
  writePersistentClaudeWrapper
25
- } from "./chunk-RDIDG5IF.js";
25
+ } from "./chunk-MBHA6PEN.js";
26
26
  import "./chunk-T2UTQH6W.js";
27
27
  import "./chunk-XWVM4KPK.js";
28
28
  export {
@@ -50,4 +50,4 @@ export {
50
50
  takeZombieDetection,
51
51
  writePersistentClaudeWrapper
52
52
  };
53
- //# sourceMappingURL=persistent-session-SPGHFGCF.js.map
53
+ //# sourceMappingURL=persistent-session-2XLQOMXH.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  paneLogPath
3
- } from "./chunk-RDIDG5IF.js";
3
+ } from "./chunk-MBHA6PEN.js";
4
4
  import "./chunk-T2UTQH6W.js";
5
5
  import "./chunk-XWVM4KPK.js";
6
6
 
@@ -70,4 +70,4 @@ export {
70
70
  collectResponsivenessProbes,
71
71
  getResponsivenessIntervalMs
72
72
  };
73
- //# sourceMappingURL=responsiveness-probe-PR7RS6JB.js.map
73
+ //# sourceMappingURL=responsiveness-probe-ABUPNDR7.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integrity-labs/agt-cli",
3
- "version": "0.27.95",
3
+ "version": "0.27.97",
4
4
  "description": "Augmented Team CLI — agent provisioning and management",
5
5
  "type": "module",
6
6
  "engines": {