@integrity-labs/agt-cli 0.27.146 → 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.
|
@@ -15,10 +15,11 @@ import {
|
|
|
15
15
|
provisionAutoKanbanProgressHook,
|
|
16
16
|
provisionIsolationHook,
|
|
17
17
|
provisionOrientHook,
|
|
18
|
+
provisionSessionStateHook,
|
|
18
19
|
provisionStopHook,
|
|
19
20
|
requireHost,
|
|
20
21
|
safeWriteJsonAtomic
|
|
21
|
-
} from "../chunk-
|
|
22
|
+
} from "../chunk-7AHH37GP.js";
|
|
22
23
|
import {
|
|
23
24
|
getProjectDir as getProjectDir2,
|
|
24
25
|
getReadyTasks,
|
|
@@ -4775,7 +4776,7 @@ var cachedMaintenanceWindow = null;
|
|
|
4775
4776
|
var lastVersionCheckAt = 0;
|
|
4776
4777
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
4777
4778
|
var lastResponsivenessProbeAt = 0;
|
|
4778
|
-
var agtCliVersion = true ? "0.27.
|
|
4779
|
+
var agtCliVersion = true ? "0.27.148" : "dev";
|
|
4779
4780
|
function resolveBrewPath(execFileSync4) {
|
|
4780
4781
|
try {
|
|
4781
4782
|
const out = execFileSync4("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -6163,6 +6164,21 @@ async function pollCycle() {
|
|
|
6163
6164
|
log(
|
|
6164
6165
|
`[wedge] forced fresh respawn ${detail} \u2192 new session ${newId} (transcript preserved${deadNote})`
|
|
6165
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
|
+
}
|
|
6166
6182
|
const inProgressCardIds = (kanbanBoardCache.get(codeName) ?? []).filter((item) => item.status === "in_progress" && isHybridActionable(item)).map((item) => item.id);
|
|
6167
6183
|
const cardStates = wedgeRestartsByCard.get(codeName) ?? /* @__PURE__ */ new Map();
|
|
6168
6184
|
const { next, newlyPoisoned } = recordWedgeForCards(
|
|
@@ -9113,6 +9129,11 @@ ${truncateForLog(ctx.tail)}` : `; pane_tail_hash=sha256:${createHash3("sha256").
|
|
|
9113
9129
|
} catch (err) {
|
|
9114
9130
|
log(`[persistent-session] Failed to provision auto-progress hook for '${codeName}': ${err.message}`);
|
|
9115
9131
|
}
|
|
9132
|
+
try {
|
|
9133
|
+
provisionSessionStateHook(codeName);
|
|
9134
|
+
} catch (err) {
|
|
9135
|
+
log(`[persistent-session] Failed to provision session-state hook for '${codeName}': ${err.message}`);
|
|
9136
|
+
}
|
|
9116
9137
|
const sessionRunResult = await startRun({
|
|
9117
9138
|
agent_id: agent.agent_id,
|
|
9118
9139
|
source_type: "system",
|