@integrity-labs/agt-cli 0.27.0 → 0.27.2
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 +305 -83
- package/dist/bin/agt.js.map +1 -1
- package/dist/{chunk-YWXPSVI5.js → chunk-5N3JKXMU.js} +5 -4
- package/dist/chunk-5N3JKXMU.js.map +1 -0
- package/dist/{chunk-LJZK5RL3.js → chunk-CSDKWI5V.js} +92 -11
- package/dist/chunk-CSDKWI5V.js.map +1 -0
- package/dist/{chunk-BKLEFKUZ.js → chunk-JTZZ6YB2.js} +38 -1
- package/dist/chunk-JTZZ6YB2.js.map +1 -0
- package/dist/{claude-pair-runtime-3UQKYKMO.js → claude-pair-runtime-O6ZAT7MQ.js} +2 -2
- package/dist/lib/manager-worker.js +33 -17
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/index.js +40 -1
- package/dist/mcp/slack-channel.js +57 -3
- package/dist/{persistent-session-SE3E72ET.js → persistent-session-3MXZBC5W.js} +3 -3
- package/dist/{responsiveness-probe-MTMEIXEL.js → responsiveness-probe-37336LTO.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-BKLEFKUZ.js.map +0 -1
- package/dist/chunk-LJZK5RL3.js.map +0 -1
- package/dist/chunk-YWXPSVI5.js.map +0 -1
- /package/dist/{claude-pair-runtime-3UQKYKMO.js.map → claude-pair-runtime-O6ZAT7MQ.js.map} +0 -0
- /package/dist/{persistent-session-SE3E72ET.js.map → persistent-session-3MXZBC5W.js.map} +0 -0
- /package/dist/{responsiveness-probe-MTMEIXEL.js.map → responsiveness-probe-37336LTO.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-3MXZBC5W.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-O6ZAT7MQ.js.map
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
provisionOrientHook,
|
|
14
14
|
provisionStopHook,
|
|
15
15
|
requireHost
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-5N3JKXMU.js";
|
|
17
17
|
import {
|
|
18
18
|
getProjectDir as getProjectDir2,
|
|
19
19
|
getReadyTasks,
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
stopAllSessionsAndWait,
|
|
45
45
|
stopPersistentSession,
|
|
46
46
|
takeZombieDetection
|
|
47
|
-
} from "../chunk-
|
|
47
|
+
} from "../chunk-CSDKWI5V.js";
|
|
48
48
|
import {
|
|
49
49
|
KANBAN_CHECK_COMMAND,
|
|
50
50
|
appendDmFooter,
|
|
@@ -67,7 +67,7 @@ import {
|
|
|
67
67
|
resolveConnectivityProbe,
|
|
68
68
|
resolveDmTarget,
|
|
69
69
|
wrapScheduledTaskPrompt
|
|
70
|
-
} from "../chunk-
|
|
70
|
+
} from "../chunk-JTZZ6YB2.js";
|
|
71
71
|
import {
|
|
72
72
|
parsePsRows,
|
|
73
73
|
reapOrphanChannelMcps
|
|
@@ -3161,7 +3161,7 @@ var cachedFrameworkVersion = null;
|
|
|
3161
3161
|
var lastVersionCheckAt = 0;
|
|
3162
3162
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
3163
3163
|
var lastResponsivenessProbeAt = 0;
|
|
3164
|
-
var agtCliVersion = true ? "0.27.
|
|
3164
|
+
var agtCliVersion = true ? "0.27.2" : "dev";
|
|
3165
3165
|
function resolveBrewPath(execFileSync4) {
|
|
3166
3166
|
try {
|
|
3167
3167
|
const out = execFileSync4("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -4120,7 +4120,7 @@ async function pollCycle() {
|
|
|
4120
4120
|
}
|
|
4121
4121
|
try {
|
|
4122
4122
|
const { detectHostSecurity } = await import("../host-security-6PDFG7F5.js");
|
|
4123
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
4123
|
+
const { collectDiagnostics } = await import("../persistent-session-3MXZBC5W.js");
|
|
4124
4124
|
const diagCodeNames = [...agentState.persistentSessionAgents];
|
|
4125
4125
|
const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames) : void 0;
|
|
4126
4126
|
let tailscaleHostname;
|
|
@@ -4188,7 +4188,7 @@ async function pollCycle() {
|
|
|
4188
4188
|
const {
|
|
4189
4189
|
collectResponsivenessProbes,
|
|
4190
4190
|
getResponsivenessIntervalMs
|
|
4191
|
-
} = await import("../responsiveness-probe-
|
|
4191
|
+
} = await import("../responsiveness-probe-37336LTO.js");
|
|
4192
4192
|
const probeIntervalMs = getResponsivenessIntervalMs();
|
|
4193
4193
|
if (now - lastResponsivenessProbeAt > probeIntervalMs) {
|
|
4194
4194
|
const probeCodeNames = [...agentState.persistentSessionAgents];
|
|
@@ -7555,12 +7555,22 @@ function formatBoardForPrompt(items, template) {
|
|
|
7555
7555
|
const timeLabel = (m) => m ? ` (~${m >= 60 ? `${Math.round(m / 60)}hr` : `${m}min`})` : "";
|
|
7556
7556
|
const deliverableLine = (d) => d ? `
|
|
7557
7557
|
Deliverable: ${d}` : "";
|
|
7558
|
+
const sourceLine = (channel, thread, url) => {
|
|
7559
|
+
const parts = [];
|
|
7560
|
+
if (channel && thread) parts.push(`${channel} thread ${thread}`);
|
|
7561
|
+
if (url) parts.push(url);
|
|
7562
|
+
return parts.length > 0 ? `
|
|
7563
|
+
source: ${parts.join(" \u2022 ")}` : "";
|
|
7564
|
+
};
|
|
7558
7565
|
const grouped = {};
|
|
7559
7566
|
for (const item of items) {
|
|
7560
7567
|
const key = item.status;
|
|
7561
7568
|
if (!grouped[key]) grouped[key] = [];
|
|
7562
7569
|
grouped[key].push(item);
|
|
7563
7570
|
}
|
|
7571
|
+
const hasSourceThread = items.some(
|
|
7572
|
+
(i) => (i.status === "todo" || i.status === "in_progress") && !!i.source_integration && !!i.source_external_id
|
|
7573
|
+
);
|
|
7564
7574
|
const lines = [];
|
|
7565
7575
|
if (template === "morning-plan") {
|
|
7566
7576
|
lines.push("=== CURRENT BOARD ===");
|
|
@@ -7569,7 +7579,7 @@ function formatBoardForPrompt(items, template) {
|
|
|
7569
7579
|
if (statusItems && statusItems.length > 0) {
|
|
7570
7580
|
lines.push(`${label}:`);
|
|
7571
7581
|
statusItems.forEach((item, i) => {
|
|
7572
|
-
lines.push(` ${i + 1}. [${priorityLabel(item.priority)}] ${item.title}${timeLabel(item.estimated_minutes)}${deliverableLine(item.deliverable)}`);
|
|
7582
|
+
lines.push(` ${i + 1}. [${priorityLabel(item.priority)}] ${item.title}${timeLabel(item.estimated_minutes)}${deliverableLine(item.deliverable)}${sourceLine(item.source_integration, item.source_external_id, item.source_url)}`);
|
|
7573
7583
|
});
|
|
7574
7584
|
}
|
|
7575
7585
|
}
|
|
@@ -7587,7 +7597,7 @@ function formatBoardForPrompt(items, template) {
|
|
|
7587
7597
|
if (statusItems && statusItems.length > 0) {
|
|
7588
7598
|
lines.push(`${label}:`);
|
|
7589
7599
|
statusItems.forEach((item, i) => {
|
|
7590
|
-
lines.push(` ${i + 1}. [${priorityLabel(item.priority)}] ${item.title}${timeLabel(item.estimated_minutes)}${deliverableLine(item.deliverable)}`);
|
|
7600
|
+
lines.push(` ${i + 1}. [${priorityLabel(item.priority)}] ${item.title}${timeLabel(item.estimated_minutes)}${deliverableLine(item.deliverable)}${sourceLine(item.source_integration, item.source_external_id, item.source_url)}`);
|
|
7591
7601
|
});
|
|
7592
7602
|
}
|
|
7593
7603
|
}
|
|
@@ -7606,6 +7616,14 @@ function formatBoardForPrompt(items, template) {
|
|
|
7606
7616
|
lines.push("3. Call kanban.done with a result summary when finished");
|
|
7607
7617
|
lines.push("4. If blocked, call kanban.update with notes, then pick the next item");
|
|
7608
7618
|
lines.push("");
|
|
7619
|
+
if (hasSourceThread) {
|
|
7620
|
+
lines.push("THREAD CONTINUITY: If a card shows a `source:` line, the request originated");
|
|
7621
|
+
lines.push("in that Slack/Telegram thread. When you deliver the result, reply in that");
|
|
7622
|
+
lines.push("thread (not the default channel) so the user sees the answer where they");
|
|
7623
|
+
lines.push("asked. The card's `source_channel` + `source_thread_id` are the thread");
|
|
7624
|
+
lines.push("coordinates to use.");
|
|
7625
|
+
lines.push("");
|
|
7626
|
+
}
|
|
7609
7627
|
lines.push("SELF-MANAGEMENT: When you receive a request from a channel (Slack, Telegram)");
|
|
7610
7628
|
lines.push("that takes more than a quick response, create a task first with kanban.add,");
|
|
7611
7629
|
lines.push("move to in_progress, do the work, then kanban.done with a result summary.");
|
|
@@ -8111,7 +8129,7 @@ async function processClaudePairSessions(agents) {
|
|
|
8111
8129
|
killPairSession,
|
|
8112
8130
|
pairTmuxSession,
|
|
8113
8131
|
finalizeClaudePairOnboarding
|
|
8114
|
-
} = await import("../claude-pair-runtime-
|
|
8132
|
+
} = await import("../claude-pair-runtime-O6ZAT7MQ.js");
|
|
8115
8133
|
for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
|
|
8116
8134
|
log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
|
|
8117
8135
|
const killed = await killPairSession(pairTmuxSession(pairId));
|
|
@@ -8350,14 +8368,11 @@ function generateArtifacts(agent, refreshData, adapter) {
|
|
|
8350
8368
|
};
|
|
8351
8369
|
}
|
|
8352
8370
|
}
|
|
8353
|
-
const
|
|
8354
|
-
const
|
|
8355
|
-
|
|
8356
|
-
|
|
8357
|
-
|
|
8358
|
-
`[provision/active-tasks] agent=${agent.code_name} count=${activeTasksFromRefresh?.length ?? 0} estimated_tokens=${tokens}`
|
|
8359
|
-
);
|
|
8360
|
-
}
|
|
8371
|
+
const activeTasksFromRefresh = refreshData.active_tasks ?? [];
|
|
8372
|
+
const activeTasksTokens = estimateActiveTasksTokens(activeTasksFromRefresh);
|
|
8373
|
+
log(
|
|
8374
|
+
`[provision/active-tasks] agent=${agent.code_name} count=${activeTasksFromRefresh.length} estimated_tokens=${activeTasksTokens}`
|
|
8375
|
+
);
|
|
8361
8376
|
const provisionInput = {
|
|
8362
8377
|
agent: refreshData.agent,
|
|
8363
8378
|
charterFrontmatter,
|
|
@@ -8905,6 +8920,7 @@ export {
|
|
|
8905
8920
|
deliverScheduledCardResult,
|
|
8906
8921
|
extractCharterSlackPeers,
|
|
8907
8922
|
extractCharterTelegramPeers,
|
|
8923
|
+
formatBoardForPrompt,
|
|
8908
8924
|
hasActionableItems,
|
|
8909
8925
|
hasHybridActionableItems,
|
|
8910
8926
|
hasRevokedResiduals,
|