@integrity-labs/agt-cli 0.28.87 → 0.28.89
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-OZWBVM7M.js → chunk-II75Z6KB.js} +2 -2
- package/dist/{chunk-IRXTLOES.js → chunk-Q7HS3VI2.js} +3 -3
- package/dist/{chunk-E5TGFEDQ.js → chunk-UB2LZXAL.js} +24 -2
- package/dist/chunk-UB2LZXAL.js.map +1 -0
- package/dist/{claude-pair-runtime-O5PHMHMF.js → claude-pair-runtime-UYTK55XK.js} +2 -2
- package/dist/lib/manager-worker.js +26 -14
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/slack-channel.js +4 -2
- package/dist/mcp/telegram-channel.js +3 -1
- package/dist/{persistent-session-ZAKXWRX7.js → persistent-session-IODNIQ2L.js} +3 -3
- package/dist/{responsiveness-probe-NKH4VYGR.js → responsiveness-probe-SBJXVSQH.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-E5TGFEDQ.js.map +0 -1
- /package/dist/{chunk-OZWBVM7M.js.map → chunk-II75Z6KB.js.map} +0 -0
- /package/dist/{chunk-IRXTLOES.js.map → chunk-Q7HS3VI2.js.map} +0 -0
- /package/dist/{claude-pair-runtime-O5PHMHMF.js.map → claude-pair-runtime-UYTK55XK.js.map} +0 -0
- /package/dist/{persistent-session-ZAKXWRX7.js.map → persistent-session-IODNIQ2L.js.map} +0 -0
- /package/dist/{responsiveness-probe-NKH4VYGR.js.map → responsiveness-probe-SBJXVSQH.js.map} +0 -0
|
@@ -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-IODNIQ2L.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-UYTK55XK.js.map
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
requireHost,
|
|
29
29
|
safeWriteJsonAtomic,
|
|
30
30
|
setConfigHash
|
|
31
|
-
} from "../chunk-
|
|
31
|
+
} from "../chunk-Q7HS3VI2.js";
|
|
32
32
|
import {
|
|
33
33
|
getProjectDir as getProjectDir2,
|
|
34
34
|
getReadyTasks,
|
|
@@ -66,7 +66,7 @@ import {
|
|
|
66
66
|
takeWatchdogGiveUpCount,
|
|
67
67
|
takeZombieDetection,
|
|
68
68
|
transcriptActivityAgeSeconds
|
|
69
|
-
} from "../chunk-
|
|
69
|
+
} from "../chunk-II75Z6KB.js";
|
|
70
70
|
import {
|
|
71
71
|
FLAGS_SCHEMA_VERSION,
|
|
72
72
|
FLAG_REGISTRY,
|
|
@@ -80,6 +80,7 @@ import {
|
|
|
80
80
|
classifyActor,
|
|
81
81
|
classifyOutput,
|
|
82
82
|
coerceOnboardingState,
|
|
83
|
+
describeOnboardingChannel,
|
|
83
84
|
extractFrontmatter,
|
|
84
85
|
formatActorId,
|
|
85
86
|
formatMissingVar,
|
|
@@ -100,7 +101,7 @@ import {
|
|
|
100
101
|
resolveDmTarget,
|
|
101
102
|
sumTranscriptUsageInWindow,
|
|
102
103
|
wrapScheduledTaskPrompt
|
|
103
|
-
} from "../chunk-
|
|
104
|
+
} from "../chunk-UB2LZXAL.js";
|
|
104
105
|
import {
|
|
105
106
|
parsePsRows,
|
|
106
107
|
reapOrphanChannelMcps
|
|
@@ -853,11 +854,11 @@ function decideOnboardingDrive(step, marker, nowMs, reinjectIntervalMs = ONBOARD
|
|
|
853
854
|
const sameStep = marker?.step === step;
|
|
854
855
|
const stale = sameStep && nowMs - marker.injectedAtMs >= reinjectIntervalMs;
|
|
855
856
|
if (!sameStep || stale) {
|
|
856
|
-
return { inject: true, clearMarker: false, nextMarker: { step, injectedAtMs: nowMs } };
|
|
857
|
+
return { inject: true, clearMarker: false, nextMarker: { step, injectedAtMs: nowMs }, reminder: stale };
|
|
857
858
|
}
|
|
858
|
-
return { inject: false, clearMarker: false, nextMarker: marker };
|
|
859
|
+
return { inject: false, clearMarker: false, nextMarker: marker, reminder: false };
|
|
859
860
|
}
|
|
860
|
-
return { inject: false, clearMarker: marker !== null, nextMarker: null };
|
|
861
|
+
return { inject: false, clearMarker: marker !== null, nextMarker: null, reminder: false };
|
|
861
862
|
}
|
|
862
863
|
var AREA_DIRECTIVE = {
|
|
863
864
|
framing: "Frame the work \u2014 ask your manager what matters in week one and what success looks like, then record it with memory_save",
|
|
@@ -865,10 +866,16 @@ var AREA_DIRECTIVE = {
|
|
|
865
866
|
integrations: "Wire up your tools \u2014 ask your manager which integrations your role uses and request access to the ones they confirm (connecting is a human OAuth step)",
|
|
866
867
|
reporting: "Agree how you keep your manager posted \u2014 settle on a cadence and channel, then create a recurring report scheduled task for it"
|
|
867
868
|
};
|
|
868
|
-
function buildOnboardingDirective(step, completed = []) {
|
|
869
|
+
function buildOnboardingDirective(step, completed = [], opts = {}) {
|
|
870
|
+
const { channel, reminder = false } = opts;
|
|
869
871
|
const doneAreas = completed.filter(isOnboardingArea);
|
|
870
872
|
const alreadyCovered = doneAreas.length > 0 ? `You've already covered ${doneAreas.join(", ")} \u2014 re-orient, don't re-ask about those. ` : "";
|
|
871
|
-
|
|
873
|
+
const where = channel ? `your manager in ${describeOnboardingChannel(channel)} (the channel onboarding was triggered from)` : "your manager over your usual channel";
|
|
874
|
+
const askAndWait = `Ask ${where} this area's question and WAIT for their reply. Do NOT self-answer, and do NOT call \`onboarding_advance\` until they respond. ${AREA_DIRECTIVE[step]} only once they have. `;
|
|
875
|
+
if (reminder) {
|
|
876
|
+
return `\u23F3 Onboarding (${step}): still waiting on your manager's answer for this area. If you haven't asked yet, ask now; otherwise give them a gentle nudge, but don't move on without a reply. ` + askAndWait + `Advance with \`onboarding_advance\` (ADVANCE) once this area is done.`;
|
|
877
|
+
}
|
|
878
|
+
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. ` + askAndWait + `Advance with \`onboarding_advance\` (ADVANCE) once this area is done.`;
|
|
872
879
|
}
|
|
873
880
|
function onboardingNudgeReachedSession(result) {
|
|
874
881
|
return result.delivered || result.fallbackUsed;
|
|
@@ -6886,7 +6893,7 @@ var cachedMaintenanceWindow = null;
|
|
|
6886
6893
|
var lastVersionCheckAt = 0;
|
|
6887
6894
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
6888
6895
|
var lastResponsivenessProbeAt = 0;
|
|
6889
|
-
var agtCliVersion = true ? "0.28.
|
|
6896
|
+
var agtCliVersion = true ? "0.28.89" : "dev";
|
|
6890
6897
|
function resolveBrewPath(execFileSync4) {
|
|
6891
6898
|
try {
|
|
6892
6899
|
const out = execFileSync4("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -7997,7 +8004,7 @@ async function pollCycle() {
|
|
|
7997
8004
|
}
|
|
7998
8005
|
try {
|
|
7999
8006
|
const { detectHostSecurity } = await import("../host-security-6PDFG7F5.js");
|
|
8000
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
8007
|
+
const { collectDiagnostics } = await import("../persistent-session-IODNIQ2L.js");
|
|
8001
8008
|
const diagCodeNames = [...agentState.persistentSessionAgents];
|
|
8002
8009
|
const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames) : void 0;
|
|
8003
8010
|
let tailscaleHostname;
|
|
@@ -8098,7 +8105,7 @@ async function pollCycle() {
|
|
|
8098
8105
|
const {
|
|
8099
8106
|
collectResponsivenessProbes,
|
|
8100
8107
|
getResponsivenessIntervalMs
|
|
8101
|
-
} = await import("../responsiveness-probe-
|
|
8108
|
+
} = await import("../responsiveness-probe-SBJXVSQH.js");
|
|
8102
8109
|
const probeIntervalMs = getResponsivenessIntervalMs();
|
|
8103
8110
|
if (now - lastResponsivenessProbeAt > probeIntervalMs) {
|
|
8104
8111
|
const probeCodeNames = [...agentState.persistentSessionAgents];
|
|
@@ -8130,7 +8137,7 @@ async function pollCycle() {
|
|
|
8130
8137
|
collectResponsivenessProbes,
|
|
8131
8138
|
livePendingInboundOldestAgeSeconds,
|
|
8132
8139
|
parkPendingInbound
|
|
8133
|
-
} = await import("../responsiveness-probe-
|
|
8140
|
+
} = await import("../responsiveness-probe-SBJXVSQH.js");
|
|
8134
8141
|
const { getProjectDir: wedgeProjectDir } = await import("../claude-scheduler-FATCLHDM.js");
|
|
8135
8142
|
const wedgeNow = /* @__PURE__ */ new Date();
|
|
8136
8143
|
const liveAgents = agentState.persistentSessionAgents;
|
|
@@ -10398,7 +10405,12 @@ In progress for ${age} minutes \u2014 auto-failed`).catch(() => {
|
|
|
10398
10405
|
const injectResult = await injectMessageWithStatus(
|
|
10399
10406
|
agent.code_name,
|
|
10400
10407
|
"system",
|
|
10401
|
-
|
|
10408
|
+
// ENG-6583: anchor the ask to the channel onboarding was triggered
|
|
10409
|
+
// from, and phrase a staleness re-fire as a gentle reminder.
|
|
10410
|
+
buildOnboardingDirective(obStep, obState.completed, {
|
|
10411
|
+
channel: obState.channel,
|
|
10412
|
+
reminder: decision.reminder
|
|
10413
|
+
}),
|
|
10402
10414
|
{ task_name: "onboarding" },
|
|
10403
10415
|
log
|
|
10404
10416
|
).catch(() => ({ delivered: false, fallbackUsed: false }));
|
|
@@ -11599,7 +11611,7 @@ async function processClaudePairSessions(agents) {
|
|
|
11599
11611
|
killPairSession,
|
|
11600
11612
|
pairTmuxSession,
|
|
11601
11613
|
finalizeClaudePairOnboarding
|
|
11602
|
-
} = await import("../claude-pair-runtime-
|
|
11614
|
+
} = await import("../claude-pair-runtime-UYTK55XK.js");
|
|
11603
11615
|
for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
|
|
11604
11616
|
log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
|
|
11605
11617
|
const killed = await killPairSession(pairTmuxSession(pairId));
|