@integrity-labs/agt-cli 0.28.827 → 0.28.829
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 +3 -3
- package/dist/{chunk-VOQ25S2E.js → chunk-E75YCJTE.js} +58 -16
- package/dist/chunk-E75YCJTE.js.map +1 -0
- package/dist/lib/manager-worker.js +13 -8
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/direct-chat-channel.js +28 -0
- package/dist/mcp/slack-channel.js +30 -0
- package/dist/mcp/telegram-channel.js +30 -0
- package/dist/{responsiveness-probe-TIEZW3XP.js → responsiveness-probe-5B2WA5G3.js} +30 -36
- package/dist/responsiveness-probe-5B2WA5G3.js.map +1 -0
- package/package.json +1 -1
- package/dist/chunk-VOQ25S2E.js.map +0 -1
- package/dist/responsiveness-probe-TIEZW3XP.js.map +0 -1
|
@@ -14,6 +14,7 @@ import {
|
|
|
14
14
|
decidePin,
|
|
15
15
|
defaultFlagsCachePath,
|
|
16
16
|
deriveMcpServerKey,
|
|
17
|
+
describeChannelWriteFailure,
|
|
17
18
|
describeStartupCompletion,
|
|
18
19
|
diffEnvIntegrations,
|
|
19
20
|
drainTranscriptFlushDeps,
|
|
@@ -59,7 +60,7 @@ import {
|
|
|
59
60
|
safeWriteJsonAtomic,
|
|
60
61
|
setConfigHash,
|
|
61
62
|
tripClass
|
|
62
|
-
} from "../chunk-
|
|
63
|
+
} from "../chunk-E75YCJTE.js";
|
|
63
64
|
import {
|
|
64
65
|
getProjectDir as getProjectDir2,
|
|
65
66
|
getReadyTasks,
|
|
@@ -12927,7 +12928,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
|
|
|
12927
12928
|
var dayRolloverInboundHold = /* @__PURE__ */ new Map();
|
|
12928
12929
|
var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
|
|
12929
12930
|
async function channelInboundActivityAgeSecondsFor(codeName) {
|
|
12930
|
-
const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-
|
|
12931
|
+
const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-5B2WA5G3.js");
|
|
12931
12932
|
const newest = newestPendingInboundActivityMtimeMs(dirname10(paneLogPath(codeName)));
|
|
12932
12933
|
if (newest === null) return null;
|
|
12933
12934
|
return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
|
|
@@ -13595,7 +13596,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
13595
13596
|
var lastVersionCheckAt = 0;
|
|
13596
13597
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
13597
13598
|
var lastResponsivenessProbeAt = 0;
|
|
13598
|
-
var agtCliVersion = true ? "0.28.
|
|
13599
|
+
var agtCliVersion = true ? "0.28.829" : "dev";
|
|
13599
13600
|
function resolveBrewPath(execFileSync2) {
|
|
13600
13601
|
try {
|
|
13601
13602
|
const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -15496,7 +15497,7 @@ async function pollCycleInner() {
|
|
|
15496
15497
|
collectPanelessActivityProbes,
|
|
15497
15498
|
getResponsivenessIntervalMs,
|
|
15498
15499
|
occupancyQualificationClassifications
|
|
15499
|
-
} = await import("../responsiveness-probe-
|
|
15500
|
+
} = await import("../responsiveness-probe-5B2WA5G3.js");
|
|
15500
15501
|
const probeIntervalMs = getResponsivenessIntervalMs();
|
|
15501
15502
|
if (now - lastResponsivenessProbeAt > probeIntervalMs) {
|
|
15502
15503
|
const probeCodeNames = [...agentState.persistentSessionAgents];
|
|
@@ -15613,7 +15614,7 @@ async function pollCycleInner() {
|
|
|
15613
15614
|
collectResponsivenessProbes,
|
|
15614
15615
|
livePendingInboundOldestAgeSeconds,
|
|
15615
15616
|
parkPendingInbound
|
|
15616
|
-
} = await import("../responsiveness-probe-
|
|
15617
|
+
} = await import("../responsiveness-probe-5B2WA5G3.js");
|
|
15617
15618
|
const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-NDP36U7O.js");
|
|
15618
15619
|
const wedgeNow = /* @__PURE__ */ new Date();
|
|
15619
15620
|
const liveAgents = agentState.persistentSessionAgents;
|
|
@@ -17073,7 +17074,7 @@ async function processAgent(agent, agentStates, managedToolkits) {
|
|
|
17073
17074
|
);
|
|
17074
17075
|
}
|
|
17075
17076
|
}
|
|
17076
|
-
frameworkAdapter.writeChannelCredentials(
|
|
17077
|
+
const writeOutcome = frameworkAdapter.writeChannelCredentials(
|
|
17077
17078
|
agent.code_name,
|
|
17078
17079
|
channelId,
|
|
17079
17080
|
entry.config,
|
|
@@ -17101,12 +17102,16 @@ async function processAgent(agent, agentStates, managedToolkits) {
|
|
|
17101
17102
|
const landed = frameworkAdapter.hasChannelCredentials?.(agent.code_name, channelId) ?? true;
|
|
17102
17103
|
if (!landed) {
|
|
17103
17104
|
channelConfigConverged = false;
|
|
17104
|
-
channelConfigFailureReason =
|
|
17105
|
+
channelConfigFailureReason = describeChannelWriteFailure(
|
|
17106
|
+
writeOutcome,
|
|
17107
|
+
channelId,
|
|
17108
|
+
reason
|
|
17109
|
+
);
|
|
17105
17110
|
const attempts = (channelWriteFailureCounts.get(cacheKey) ?? 0) + 1;
|
|
17106
17111
|
channelWriteFailureCounts.set(cacheKey, attempts);
|
|
17107
17112
|
if (attempts === 1 || attempts % CHANNEL_WRITE_FAILURE_ESCALATE_EVERY === 0) {
|
|
17108
17113
|
log(
|
|
17109
|
-
`ERROR: channel credentials for '${agent.code_name}/${channelId}' did NOT land on disk
|
|
17114
|
+
`ERROR: channel credentials for '${agent.code_name}/${channelId}' did NOT land on disk (attempt ${attempts}). ${channelConfigFailureReason} The channel will stay unusable until this is resolved; not re-logging every cycle.`
|
|
17110
17115
|
);
|
|
17111
17116
|
}
|
|
17112
17117
|
} else {
|