@integrity-labs/agt-cli 0.27.147 → 0.27.148

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
@@ -28,7 +28,7 @@ import {
28
28
  success,
29
29
  table,
30
30
  warn
31
- } from "../chunk-T4LYV52L.js";
31
+ } from "../chunk-7AHH37GP.js";
32
32
  import {
33
33
  CHANNEL_REGISTRY,
34
34
  DEPLOYMENT_TEMPLATES,
@@ -4934,7 +4934,7 @@ import { execFileSync, execSync } from "child_process";
4934
4934
  import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
4935
4935
  import chalk18 from "chalk";
4936
4936
  import ora16 from "ora";
4937
- var cliVersion = true ? "0.27.147" : "dev";
4937
+ var cliVersion = true ? "0.27.148" : "dev";
4938
4938
  async function fetchLatestVersion() {
4939
4939
  const host2 = getHost();
4940
4940
  if (!host2) return null;
@@ -5857,7 +5857,7 @@ function handleError(err) {
5857
5857
  }
5858
5858
 
5859
5859
  // src/bin/agt.ts
5860
- var cliVersion2 = true ? "0.27.147" : "dev";
5860
+ var cliVersion2 = true ? "0.27.148" : "dev";
5861
5861
  var program = new Command();
5862
5862
  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");
5863
5863
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -7972,4 +7972,4 @@ export {
7972
7972
  managerInstallSystemUnitCommand,
7973
7973
  managerUninstallSystemUnitCommand
7974
7974
  };
7975
- //# sourceMappingURL=chunk-T4LYV52L.js.map
7975
+ //# sourceMappingURL=chunk-7AHH37GP.js.map
@@ -19,7 +19,7 @@ import {
19
19
  provisionStopHook,
20
20
  requireHost,
21
21
  safeWriteJsonAtomic
22
- } from "../chunk-T4LYV52L.js";
22
+ } from "../chunk-7AHH37GP.js";
23
23
  import {
24
24
  getProjectDir as getProjectDir2,
25
25
  getReadyTasks,
@@ -4776,7 +4776,7 @@ var cachedMaintenanceWindow = null;
4776
4776
  var lastVersionCheckAt = 0;
4777
4777
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
4778
4778
  var lastResponsivenessProbeAt = 0;
4779
- var agtCliVersion = true ? "0.27.147" : "dev";
4779
+ var agtCliVersion = true ? "0.27.148" : "dev";
4780
4780
  function resolveBrewPath(execFileSync4) {
4781
4781
  try {
4782
4782
  const out = execFileSync4("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -6164,6 +6164,21 @@ async function pollCycle() {
6164
6164
  log(
6165
6165
  `[wedge] forced fresh respawn ${detail} \u2192 new session ${newId} (transcript preserved${deadNote})`
6166
6166
  );
6167
+ const wedgeAgentId = agentState.codeNameToAgentId.get(codeName);
6168
+ if (wedgeAgentId) {
6169
+ api.post("/host/wedge-respawn", {
6170
+ agent_id: wedgeAgentId,
6171
+ code_name: codeName,
6172
+ dead_lettered_count: deadLettered,
6173
+ pane_age_seconds: signals.paneActivityAgeSeconds,
6174
+ inbound_age_seconds: signals.pendingInboundOldestAgeSeconds,
6175
+ transcript_age_seconds: transcriptAge
6176
+ }).catch((err) => {
6177
+ log(
6178
+ `[wedge] failed to record respawn event for '${codeName}' (ENG-6265): ${err.message} \u2014 respawn proceeded; CloudWatch metric will under-count this event`
6179
+ );
6180
+ });
6181
+ }
6167
6182
  const inProgressCardIds = (kanbanBoardCache.get(codeName) ?? []).filter((item) => item.status === "in_progress" && isHybridActionable(item)).map((item) => item.id);
6168
6183
  const cardStates = wedgeRestartsByCard.get(codeName) ?? /* @__PURE__ */ new Map();
6169
6184
  const { next, newlyPoisoned } = recordWedgeForCards(