@integrity-labs/agt-cli 0.28.1267 → 0.28.1268

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.
@@ -49062,10 +49062,11 @@ function tmuxSessionTarget(session) {
49062
49062
  if (n.endsWith(":")) n = n.slice(0, -1);
49063
49063
  return `=${n}`;
49064
49064
  }
49065
+ var TMUX_SESSION_ABSENT = /can't find session|no server running|error connecting to .* \(No such file or directory\)/i;
49065
49066
  function probeTmuxSession(tmuxSession) {
49066
49067
  try {
49067
49068
  execFileSync("tmux", ["has-session", "-t", tmuxSessionTarget(tmuxSession)], {
49068
- stdio: "ignore",
49069
+ stdio: ["ignore", "ignore", "pipe"],
49069
49070
  timeout: 3e3
49070
49071
  });
49071
49072
  return "alive";
@@ -49073,6 +49074,10 @@ function probeTmuxSession(tmuxSession) {
49073
49074
  const e = err;
49074
49075
  const timedOut = e?.code === "ETIMEDOUT" || e?.error?.code === "ETIMEDOUT";
49075
49076
  if (e?.code === "ENOENT" || e?.error?.code === "ENOENT" || timedOut) return "unknown";
49077
+ const status = e.status;
49078
+ if (typeof status !== "number") return "unknown";
49079
+ const stderr = String(e.stderr ?? "").trim();
49080
+ if (stderr && !TMUX_SESSION_ABSENT.test(stderr)) return "unknown";
49076
49081
  return "dead";
49077
49082
  }
49078
49083
  }
@@ -42671,10 +42671,11 @@ function tmuxSessionTarget(session) {
42671
42671
  if (n.endsWith(":")) n = n.slice(0, -1);
42672
42672
  return `=${n}`;
42673
42673
  }
42674
+ var TMUX_SESSION_ABSENT = /can't find session|no server running|error connecting to .* \(No such file or directory\)/i;
42674
42675
  function probeTmuxSession(tmuxSession) {
42675
42676
  try {
42676
42677
  execFileSync("tmux", ["has-session", "-t", tmuxSessionTarget(tmuxSession)], {
42677
- stdio: "ignore",
42678
+ stdio: ["ignore", "ignore", "pipe"],
42678
42679
  timeout: 3e3
42679
42680
  });
42680
42681
  return "alive";
@@ -42682,6 +42683,10 @@ function probeTmuxSession(tmuxSession) {
42682
42683
  const e = err;
42683
42684
  const timedOut = e?.code === "ETIMEDOUT" || e?.error?.code === "ETIMEDOUT";
42684
42685
  if (e?.code === "ENOENT" || e?.error?.code === "ENOENT" || timedOut) return "unknown";
42686
+ const status = e.status;
42687
+ if (typeof status !== "number") return "unknown";
42688
+ const stderr = String(e.stderr ?? "").trim();
42689
+ if (stderr && !TMUX_SESSION_ABSENT.test(stderr)) return "unknown";
42685
42690
  return "dead";
42686
42691
  }
42687
42692
  }
@@ -43579,10 +43579,11 @@ function tmuxSessionTarget(session) {
43579
43579
  if (n.endsWith(":")) n = n.slice(0, -1);
43580
43580
  return `=${n}`;
43581
43581
  }
43582
+ var TMUX_SESSION_ABSENT = /can't find session|no server running|error connecting to .* \(No such file or directory\)/i;
43582
43583
  function probeTmuxSession(tmuxSession) {
43583
43584
  try {
43584
43585
  execFileSync("tmux", ["has-session", "-t", tmuxSessionTarget(tmuxSession)], {
43585
- stdio: "ignore",
43586
+ stdio: ["ignore", "ignore", "pipe"],
43586
43587
  timeout: 3e3
43587
43588
  });
43588
43589
  return "alive";
@@ -43590,6 +43591,10 @@ function probeTmuxSession(tmuxSession) {
43590
43591
  const e = err;
43591
43592
  const timedOut = e?.code === "ETIMEDOUT" || e?.error?.code === "ETIMEDOUT";
43592
43593
  if (e?.code === "ENOENT" || e?.error?.code === "ENOENT" || timedOut) return "unknown";
43594
+ const status = e.status;
43595
+ if (typeof status !== "number") return "unknown";
43596
+ const stderr = String(e.stderr ?? "").trim();
43597
+ if (stderr && !TMUX_SESSION_ABSENT.test(stderr)) return "unknown";
43593
43598
  return "dead";
43594
43599
  }
43595
43600
  }
@@ -25,6 +25,8 @@ import {
25
25
  describePaneAgentIdMismatch,
26
26
  detectFailureSignature,
27
27
  directChatSessionStatePath,
28
+ dockerContainerStateVerdict,
29
+ dockerPgrepVerdict,
28
30
  dockerRuntimeReadiness,
29
31
  effectiveIsolationMode,
30
32
  egressAllowlistHostPath,
@@ -42,11 +44,16 @@ import {
42
44
  isSessionHealthy,
43
45
  isSessionResumeDisabled,
44
46
  isolationMode,
47
+ killStragglerProcess,
45
48
  killTmuxSessionBounded,
46
49
  nextSpawnGeneration,
50
+ olderSessionProcessFromPs,
47
51
  paneLogPath,
52
+ parseEtimeSeconds,
48
53
  parseSessionCreatedOutput,
49
54
  prepareForRespawn,
55
+ probeSessionProcess,
56
+ probeSessionProcessOlderThan,
50
57
  readDirectChatSessionState,
51
58
  readPaneLogTail,
52
59
  reloadEgressSidecar,
@@ -74,7 +81,7 @@ import {
74
81
  writeDirectChatSessionState,
75
82
  writeEgressAllowlist,
76
83
  writePersistentClaudeWrapper
77
- } from "./chunk-UA2UPXYC.js";
84
+ } from "./chunk-ERO3R3Z7.js";
78
85
  import "./chunk-X2FBQPNR.js";
79
86
  import "./chunk-XL2HPM67.js";
80
87
  import "./chunk-6HBXEJHO.js";
@@ -109,6 +116,8 @@ export {
109
116
  describePaneAgentIdMismatch,
110
117
  detectFailureSignature,
111
118
  directChatSessionStatePath,
119
+ dockerContainerStateVerdict,
120
+ dockerPgrepVerdict,
112
121
  dockerRuntimeReadiness,
113
122
  effectiveIsolationMode,
114
123
  egressAllowlistHostPath,
@@ -126,11 +135,16 @@ export {
126
135
  isSessionHealthy,
127
136
  isSessionResumeDisabled,
128
137
  isolationMode,
138
+ killStragglerProcess,
129
139
  killTmuxSessionBounded,
130
140
  nextSpawnGeneration,
141
+ olderSessionProcessFromPs,
131
142
  paneLogPath,
143
+ parseEtimeSeconds,
132
144
  parseSessionCreatedOutput,
133
145
  prepareForRespawn,
146
+ probeSessionProcess,
147
+ probeSessionProcessOlderThan,
134
148
  readDirectChatSessionState,
135
149
  readPaneLogTail,
136
150
  reloadEgressSidecar,
@@ -159,4 +173,4 @@ export {
159
173
  writeEgressAllowlist,
160
174
  writePersistentClaudeWrapper
161
175
  };
162
- //# sourceMappingURL=persistent-session-FMY2FZEL.js.map
176
+ //# sourceMappingURL=persistent-session-BLZPYHBE.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  paneLogPath
3
- } from "./chunk-UA2UPXYC.js";
3
+ } from "./chunk-ERO3R3Z7.js";
4
4
  import "./chunk-X2FBQPNR.js";
5
5
  import "./chunk-XL2HPM67.js";
6
6
  import "./chunk-6HBXEJHO.js";
@@ -804,4 +804,4 @@ export {
804
804
  readAndResetSlackReplyBindingClassifications,
805
805
  readAndResetSlackReplyTargetClassifications
806
806
  };
807
- //# sourceMappingURL=responsiveness-probe-26TFNDWB.js.map
807
+ //# sourceMappingURL=responsiveness-probe-T6O4V2XZ.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integrity-labs/agt-cli",
3
- "version": "0.28.1267",
3
+ "version": "0.28.1268",
4
4
  "description": "Augmented Team CLI — agent provisioning and management",
5
5
  "type": "module",
6
6
  "engines": {