@integrity-labs/agt-cli 0.28.78 → 0.28.80
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 +4 -4
- package/dist/{chunk-XHKMS4UY.js → chunk-3KLQA3SC.js} +8 -1
- package/dist/chunk-3KLQA3SC.js.map +1 -0
- package/dist/{chunk-J4H4BRPQ.js → chunk-JIJ5BGO5.js} +128 -8
- package/dist/chunk-JIJ5BGO5.js.map +1 -0
- package/dist/{chunk-PEVDRQJA.js → chunk-XDZFMTY5.js} +2 -2
- package/dist/{claude-pair-runtime-IGVIKCHS.js → claude-pair-runtime-6XYMSC6B.js} +2 -2
- package/dist/lib/manager-worker.js +20 -11
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/slack-channel.js +298 -46
- package/dist/mcp/telegram-channel.js +1 -0
- package/dist/{persistent-session-Z3RHQRVC.js → persistent-session-U6P5I6TT.js} +3 -3
- package/dist/{responsiveness-probe-QWO75M34.js → responsiveness-probe-VKIJY4IC.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-J4H4BRPQ.js.map +0 -1
- package/dist/chunk-XHKMS4UY.js.map +0 -1
- /package/dist/{chunk-PEVDRQJA.js.map → chunk-XDZFMTY5.js.map} +0 -0
- /package/dist/{claude-pair-runtime-IGVIKCHS.js.map → claude-pair-runtime-6XYMSC6B.js.map} +0 -0
- /package/dist/{persistent-session-Z3RHQRVC.js.map → persistent-session-U6P5I6TT.js.map} +0 -0
- /package/dist/{responsiveness-probe-QWO75M34.js.map → responsiveness-probe-VKIJY4IC.js.map} +0 -0
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
formatMissingVar,
|
|
4
4
|
isClaudeFastMode,
|
|
5
5
|
probeMcpEnvSubstitution
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-3KLQA3SC.js";
|
|
7
7
|
import {
|
|
8
8
|
reapOrphanChannelMcps
|
|
9
9
|
} from "./chunk-XWVM4KPK.js";
|
|
@@ -1395,4 +1395,4 @@ export {
|
|
|
1395
1395
|
stopAllSessionsAndWait,
|
|
1396
1396
|
getProjectDir
|
|
1397
1397
|
};
|
|
1398
|
-
//# sourceMappingURL=chunk-
|
|
1398
|
+
//# sourceMappingURL=chunk-XDZFMTY5.js.map
|
|
@@ -100,7 +100,7 @@ async function spawnPairSession(session) {
|
|
|
100
100
|
return { ok: true };
|
|
101
101
|
} catch {
|
|
102
102
|
}
|
|
103
|
-
const { resolveClaudeBinary } = await import("./persistent-session-
|
|
103
|
+
const { resolveClaudeBinary } = await import("./persistent-session-U6P5I6TT.js");
|
|
104
104
|
const claudeBin = resolveClaudeBinary();
|
|
105
105
|
const pairEnv = {
|
|
106
106
|
...process.env,
|
|
@@ -373,4 +373,4 @@ export {
|
|
|
373
373
|
startClaudePair,
|
|
374
374
|
submitClaudePairCode
|
|
375
375
|
};
|
|
376
|
-
//# sourceMappingURL=claude-pair-runtime-
|
|
376
|
+
//# sourceMappingURL=claude-pair-runtime-6XYMSC6B.js.map
|
|
@@ -20,6 +20,7 @@ import {
|
|
|
20
20
|
getIntegration,
|
|
21
21
|
provision,
|
|
22
22
|
provisionAutoKanbanProgressHook,
|
|
23
|
+
provisionChannelProgressHook,
|
|
23
24
|
provisionIsolationHook,
|
|
24
25
|
provisionOrientHook,
|
|
25
26
|
provisionSessionStateHook,
|
|
@@ -27,7 +28,7 @@ import {
|
|
|
27
28
|
requireHost,
|
|
28
29
|
safeWriteJsonAtomic,
|
|
29
30
|
setConfigHash
|
|
30
|
-
} from "../chunk-
|
|
31
|
+
} from "../chunk-JIJ5BGO5.js";
|
|
31
32
|
import {
|
|
32
33
|
getProjectDir as getProjectDir2,
|
|
33
34
|
getReadyTasks,
|
|
@@ -65,7 +66,7 @@ import {
|
|
|
65
66
|
takeWatchdogGiveUpCount,
|
|
66
67
|
takeZombieDetection,
|
|
67
68
|
transcriptActivityAgeSeconds
|
|
68
|
-
} from "../chunk-
|
|
69
|
+
} from "../chunk-XDZFMTY5.js";
|
|
69
70
|
import {
|
|
70
71
|
FLAGS_SCHEMA_VERSION,
|
|
71
72
|
FLAG_REGISTRY,
|
|
@@ -99,7 +100,7 @@ import {
|
|
|
99
100
|
resolveDmTarget,
|
|
100
101
|
sumTranscriptUsageInWindow,
|
|
101
102
|
wrapScheduledTaskPrompt
|
|
102
|
-
} from "../chunk-
|
|
103
|
+
} from "../chunk-3KLQA3SC.js";
|
|
103
104
|
import {
|
|
104
105
|
parsePsRows,
|
|
105
106
|
reapOrphanChannelMcps
|
|
@@ -869,6 +870,9 @@ function buildOnboardingDirective(step, completed = []) {
|
|
|
869
870
|
const alreadyCovered = doneAreas.length > 0 ? `You've already covered ${doneAreas.join(", ")} \u2014 re-orient, don't re-ask about those. ` : "";
|
|
870
871
|
return `\u{1F680} Onboarding (${step}): your self-onboarding is active and waiting on you. ` + alreadyCovered + `Call the \`onboarding_get\` tool now to see this area's questions and full instructions, then proceed. ${AREA_DIRECTIVE[step]}. Advance with \`onboarding_advance\` (ADVANCE) once this area is done.`;
|
|
871
872
|
}
|
|
873
|
+
function onboardingNudgeReachedSession(result) {
|
|
874
|
+
return result.delivered || result.fallbackUsed;
|
|
875
|
+
}
|
|
872
876
|
function readOnboardingDriveMarker(path) {
|
|
873
877
|
try {
|
|
874
878
|
const raw = JSON.parse(readFileSync2(path, "utf8"));
|
|
@@ -6799,7 +6803,7 @@ var cachedMaintenanceWindow = null;
|
|
|
6799
6803
|
var lastVersionCheckAt = 0;
|
|
6800
6804
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
6801
6805
|
var lastResponsivenessProbeAt = 0;
|
|
6802
|
-
var agtCliVersion = true ? "0.28.
|
|
6806
|
+
var agtCliVersion = true ? "0.28.80" : "dev";
|
|
6803
6807
|
function resolveBrewPath(execFileSync4) {
|
|
6804
6808
|
try {
|
|
6805
6809
|
const out = execFileSync4("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -7907,7 +7911,7 @@ async function pollCycle() {
|
|
|
7907
7911
|
}
|
|
7908
7912
|
try {
|
|
7909
7913
|
const { detectHostSecurity } = await import("../host-security-6PDFG7F5.js");
|
|
7910
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
7914
|
+
const { collectDiagnostics } = await import("../persistent-session-U6P5I6TT.js");
|
|
7911
7915
|
const diagCodeNames = [...agentState.persistentSessionAgents];
|
|
7912
7916
|
const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames) : void 0;
|
|
7913
7917
|
let tailscaleHostname;
|
|
@@ -8008,7 +8012,7 @@ async function pollCycle() {
|
|
|
8008
8012
|
const {
|
|
8009
8013
|
collectResponsivenessProbes,
|
|
8010
8014
|
getResponsivenessIntervalMs
|
|
8011
|
-
} = await import("../responsiveness-probe-
|
|
8015
|
+
} = await import("../responsiveness-probe-VKIJY4IC.js");
|
|
8012
8016
|
const probeIntervalMs = getResponsivenessIntervalMs();
|
|
8013
8017
|
if (now - lastResponsivenessProbeAt > probeIntervalMs) {
|
|
8014
8018
|
const probeCodeNames = [...agentState.persistentSessionAgents];
|
|
@@ -8040,7 +8044,7 @@ async function pollCycle() {
|
|
|
8040
8044
|
collectResponsivenessProbes,
|
|
8041
8045
|
livePendingInboundOldestAgeSeconds,
|
|
8042
8046
|
parkPendingInbound
|
|
8043
|
-
} = await import("../responsiveness-probe-
|
|
8047
|
+
} = await import("../responsiveness-probe-VKIJY4IC.js");
|
|
8044
8048
|
const { getProjectDir: wedgeProjectDir } = await import("../claude-scheduler-FATCLHDM.js");
|
|
8045
8049
|
const wedgeNow = /* @__PURE__ */ new Date();
|
|
8046
8050
|
const liveAgents = agentState.persistentSessionAgents;
|
|
@@ -10305,14 +10309,14 @@ In progress for ${age} minutes \u2014 auto-failed`).catch(() => {
|
|
|
10305
10309
|
if (decision.clearMarker) {
|
|
10306
10310
|
clearOnboardingDriveMarker(markerPath);
|
|
10307
10311
|
} else if (decision.inject && isOnboardingArea(obStep) && isSessionHealthy(agent.code_name)) {
|
|
10308
|
-
const
|
|
10312
|
+
const injectResult = await injectMessageWithStatus(
|
|
10309
10313
|
agent.code_name,
|
|
10310
10314
|
"system",
|
|
10311
10315
|
buildOnboardingDirective(obStep, obState.completed),
|
|
10312
10316
|
{ task_name: "onboarding" },
|
|
10313
10317
|
log
|
|
10314
|
-
).catch(() => false);
|
|
10315
|
-
if (
|
|
10318
|
+
).catch(() => ({ delivered: false, fallbackUsed: false }));
|
|
10319
|
+
if (onboardingNudgeReachedSession(injectResult) && decision.nextMarker) {
|
|
10316
10320
|
writeOnboardingDriveMarker(markerPath, decision.nextMarker);
|
|
10317
10321
|
log(`[onboarding] nudged '${agent.code_name}' into '${obStep}'`);
|
|
10318
10322
|
}
|
|
@@ -10646,6 +10650,11 @@ ${truncateForLog(ctx.tail)}` : `; pane_tail_hash=sha256:${createHash8("sha256").
|
|
|
10646
10650
|
} catch (err) {
|
|
10647
10651
|
log(`[persistent-session] Failed to provision auto-progress hook for '${codeName}': ${err.message}`);
|
|
10648
10652
|
}
|
|
10653
|
+
try {
|
|
10654
|
+
provisionChannelProgressHook(codeName);
|
|
10655
|
+
} catch (err) {
|
|
10656
|
+
log(`[persistent-session] Failed to provision channel-progress hook for '${codeName}': ${err.message}`);
|
|
10657
|
+
}
|
|
10649
10658
|
try {
|
|
10650
10659
|
provisionSessionStateHook(codeName);
|
|
10651
10660
|
} catch (err) {
|
|
@@ -11504,7 +11513,7 @@ async function processClaudePairSessions(agents) {
|
|
|
11504
11513
|
killPairSession,
|
|
11505
11514
|
pairTmuxSession,
|
|
11506
11515
|
finalizeClaudePairOnboarding
|
|
11507
|
-
} = await import("../claude-pair-runtime-
|
|
11516
|
+
} = await import("../claude-pair-runtime-6XYMSC6B.js");
|
|
11508
11517
|
for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
|
|
11509
11518
|
log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
|
|
11510
11519
|
const killed = await killPairSession(pairTmuxSession(pairId));
|