@integrity-labs/agt-cli 0.28.1296 → 0.28.1298

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.
Files changed (25) hide show
  1. package/dist/{api-client-J7GYTC7I.js → api-client-INS5Y6AC.js} +2 -2
  2. package/dist/bin/agt.js +6 -6
  3. package/dist/{chunk-2IJ5OXZZ.js → chunk-FQOXKQXI.js} +14 -2
  4. package/dist/chunk-FQOXKQXI.js.map +1 -0
  5. package/dist/{chunk-M6L4UP45.js → chunk-LH6GI45I.js} +2 -2
  6. package/dist/{chunk-F5ZW7Q4X.js → chunk-QUZDW6JK.js} +372 -349
  7. package/dist/chunk-QUZDW6JK.js.map +1 -0
  8. package/dist/{chunk-KNU3KJIM.js → chunk-XVGLZ3BT.js} +2 -1
  9. package/dist/{claude-pair-runtime-UX23M5HV.js → claude-pair-runtime-43E2YV2S.js} +2 -2
  10. package/dist/lib/manager-worker.js +227 -32
  11. package/dist/lib/manager-worker.js.map +1 -1
  12. package/dist/mcp/index.js +3 -3
  13. package/dist/{persistent-session-FA6AKXTO.js → persistent-session-RGMMUKVK.js} +7 -3
  14. package/dist/{responsiveness-probe-CC2HTG4P.js → responsiveness-probe-I7HNQGP4.js} +3 -3
  15. package/dist/{session-auth-dead-3GTNMEIP.js → session-auth-dead-JVDVNJR3.js} +2 -2
  16. package/package.json +1 -1
  17. package/dist/chunk-2IJ5OXZZ.js.map +0 -1
  18. package/dist/chunk-F5ZW7Q4X.js.map +0 -1
  19. /package/dist/{api-client-J7GYTC7I.js.map → api-client-INS5Y6AC.js.map} +0 -0
  20. /package/dist/{chunk-M6L4UP45.js.map → chunk-LH6GI45I.js.map} +0 -0
  21. /package/dist/{chunk-KNU3KJIM.js.map → chunk-XVGLZ3BT.js.map} +0 -0
  22. /package/dist/{claude-pair-runtime-UX23M5HV.js.map → claude-pair-runtime-43E2YV2S.js.map} +0 -0
  23. /package/dist/{persistent-session-FA6AKXTO.js.map → persistent-session-RGMMUKVK.js.map} +0 -0
  24. /package/dist/{responsiveness-probe-CC2HTG4P.js.map → responsiveness-probe-I7HNQGP4.js.map} +0 -0
  25. /package/dist/{session-auth-dead-3GTNMEIP.js.map → session-auth-dead-JVDVNJR3.js.map} +0 -0
@@ -15,7 +15,7 @@ import {
15
15
  mintRotatedHostKey,
16
16
  probeHostKey,
17
17
  setConfigHash
18
- } from "./chunk-M6L4UP45.js";
18
+ } from "./chunk-LH6GI45I.js";
19
19
  import "./chunk-FPJRE3WT.js";
20
20
  import "./chunk-DGUM43GV.js";
21
21
  export {
@@ -36,4 +36,4 @@ export {
36
36
  probeHostKey,
37
37
  setConfigHash
38
38
  };
39
- //# sourceMappingURL=api-client-J7GYTC7I.js.map
39
+ //# sourceMappingURL=api-client-INS5Y6AC.js.map
package/dist/bin/agt.js CHANGED
@@ -31,7 +31,7 @@ import {
31
31
  success,
32
32
  table,
33
33
  warn
34
- } from "../chunk-F5ZW7Q4X.js";
34
+ } from "../chunk-QUZDW6JK.js";
35
35
  import {
36
36
  ApiError,
37
37
  PROD_AGT_HOST,
@@ -42,17 +42,17 @@ import {
42
42
  getHost,
43
43
  getHostId,
44
44
  setActiveTeam
45
- } from "../chunk-M6L4UP45.js";
45
+ } from "../chunk-LH6GI45I.js";
46
46
  import {
47
47
  getProjectDir,
48
48
  isSessionResumeDisabled,
49
49
  readDirectChatSessionState
50
- } from "../chunk-2IJ5OXZZ.js";
50
+ } from "../chunk-FQOXKQXI.js";
51
51
  import {
52
52
  markDailySessionSpawn,
53
53
  sessionFileExists,
54
54
  sessionTranscriptDir
55
- } from "../chunk-KNU3KJIM.js";
55
+ } from "../chunk-XVGLZ3BT.js";
56
56
  import "../chunk-XL2HPM67.js";
57
57
  import "../chunk-6HBXEJHO.js";
58
58
  import "../chunk-XWVM4KPK.js";
@@ -5207,7 +5207,7 @@ import { execFileSync, execSync } from "child_process";
5207
5207
  import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
5208
5208
  import chalk17 from "chalk";
5209
5209
  import ora15 from "ora";
5210
- var cliVersion = true ? "0.28.1296" : "dev";
5210
+ var cliVersion = true ? "0.28.1298" : "dev";
5211
5211
  async function fetchLatestVersion() {
5212
5212
  const host2 = getHost();
5213
5213
  if (!host2) return null;
@@ -6467,7 +6467,7 @@ function handleError(err) {
6467
6467
  }
6468
6468
 
6469
6469
  // src/bin/agt.ts
6470
- var cliVersion2 = true ? "0.28.1296" : "dev";
6470
+ var cliVersion2 = true ? "0.28.1298" : "dev";
6471
6471
  var program = new Command();
6472
6472
  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");
6473
6473
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -4,7 +4,7 @@ import {
4
4
  rotateDailySession,
5
5
  sessionFileExists,
6
6
  todayLocalIso
7
- } from "./chunk-KNU3KJIM.js";
7
+ } from "./chunk-XVGLZ3BT.js";
8
8
  import {
9
9
  classifyUnanswerablePane,
10
10
  customApiKeyDialogKeys,
@@ -6132,6 +6132,15 @@ function killStragglerProcess(codeName, signal = "TERM") {
6132
6132
  return false;
6133
6133
  }
6134
6134
  }
6135
+ var pendingUnexpectedExits = /* @__PURE__ */ new Map();
6136
+ function launchStartMs(session) {
6137
+ return session && session.estimatedStartedAt == null ? session.startedAt : null;
6138
+ }
6139
+ function takeUnexpectedExit(codeName) {
6140
+ const exit = pendingUnexpectedExits.get(codeName);
6141
+ if (exit !== void 0) pendingUnexpectedExits.delete(codeName);
6142
+ return exit ?? null;
6143
+ }
6135
6144
  function takeZombieDetection(codeName) {
6136
6145
  const record = pendingZombieDetections.get(codeName);
6137
6146
  if (record) pendingZombieDetections.delete(codeName);
@@ -6145,6 +6154,7 @@ function isSessionHealthy(codeName) {
6145
6154
  const session2 = sessions2.get(codeName);
6146
6155
  if (session2 && session2.status === "running") {
6147
6156
  session2.status = "crashed";
6157
+ pendingUnexpectedExits.set(codeName, { at: Date.now(), launchedAtMs: launchStartMs(session2) });
6148
6158
  session2.lastFailureTail = readPaneLogTail(codeName);
6149
6159
  const failedUuid = session2.currentSessionId;
6150
6160
  if (failedUuid && failedUuid === session2.lastFailureSessionId) {
@@ -6565,6 +6575,8 @@ export {
6565
6575
  probeSessionProcess,
6566
6576
  probeSessionProcessOlderThan,
6567
6577
  killStragglerProcess,
6578
+ launchStartMs,
6579
+ takeUnexpectedExit,
6568
6580
  takeZombieDetection,
6569
6581
  isSessionHealthy,
6570
6582
  resetRestartCount,
@@ -6574,4 +6586,4 @@ export {
6574
6586
  stopAllSessionsAndWait,
6575
6587
  getProjectDir
6576
6588
  };
6577
- //# sourceMappingURL=chunk-2IJ5OXZZ.js.map
6589
+ //# sourceMappingURL=chunk-FQOXKQXI.js.map