@integrity-labs/agt-cli 0.27.127 → 0.27.128
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.
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
provisionStopHook,
|
|
18
18
|
requireHost,
|
|
19
19
|
safeWriteJsonAtomic
|
|
20
|
-
} from "../chunk-
|
|
20
|
+
} from "../chunk-TXZLQK3S.js";
|
|
21
21
|
import {
|
|
22
22
|
getProjectDir as getProjectDir2,
|
|
23
23
|
getReadyTasks,
|
|
@@ -4494,7 +4494,7 @@ var cachedMaintenanceWindow = null;
|
|
|
4494
4494
|
var lastVersionCheckAt = 0;
|
|
4495
4495
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
4496
4496
|
var lastResponsivenessProbeAt = 0;
|
|
4497
|
-
var agtCliVersion = true ? "0.27.
|
|
4497
|
+
var agtCliVersion = true ? "0.27.128" : "dev";
|
|
4498
4498
|
function resolveBrewPath(execFileSync4) {
|
|
4499
4499
|
try {
|
|
4500
4500
|
const out = execFileSync4("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
package/dist/mcp/index.js
CHANGED
|
@@ -21178,7 +21178,7 @@ var server = new McpServer({
|
|
|
21178
21178
|
});
|
|
21179
21179
|
server.tool(
|
|
21180
21180
|
"kanban_list",
|
|
21181
|
-
|
|
21181
|
+
'List kanban board items for this agent. Returns active items plus only the most recently completed work (last 24h). This is a NARROW, recency-windowed view \u2014 older done cards are NOT here (only done cards are windowed; failed and active cards always show). Before telling anyone you have "no record" of past work, use kanban_search, which covers your full history.',
|
|
21182
21182
|
{},
|
|
21183
21183
|
async () => {
|
|
21184
21184
|
const data = await apiPost("/host/my-kanban", {
|
|
@@ -21205,6 +21205,52 @@ server.tool(
|
|
|
21205
21205
|
return { content: [{ type: "text", text: lines.join("\n") }] };
|
|
21206
21206
|
}
|
|
21207
21207
|
);
|
|
21208
|
+
server.tool(
|
|
21209
|
+
"kanban_search",
|
|
21210
|
+
`Search your FULL kanban history by keyword \u2014 including done cards older than 24h that kanban_list omits. Use this BEFORE telling anyone you have "no record" of work they say you did: the board only shows the last 24h of completed cards, so "it's not on my board" does NOT mean you never did it. Each hit includes the card's result (the actual deliverable), so you can recite what you produced. An empty query returns your most recent cards across all statuses.`,
|
|
21211
|
+
{
|
|
21212
|
+
query: external_exports.string().optional().describe('Keyword to match across title, description, result, deliverable and notes (e.g. "carousels", "Caribbean Park"). Omit to get your most recent cards.'),
|
|
21213
|
+
status: external_exports.enum(["backlog", "todo", "in_progress", "done", "failed", "all"]).optional().describe('Restrict to one status. Default "all" searches every status \u2014 leave it unset to reach old done/failed work.'),
|
|
21214
|
+
since: external_exports.string().optional().describe('ISO date lower bound on created_at (e.g. "2026-06-06").'),
|
|
21215
|
+
until: external_exports.string().optional().describe("ISO date upper bound on created_at."),
|
|
21216
|
+
limit: external_exports.number().int().min(1).max(50).optional().describe("Max results (default 20, max 50).")
|
|
21217
|
+
},
|
|
21218
|
+
async (params) => {
|
|
21219
|
+
const data = await apiPost("/host/kanban/search", {
|
|
21220
|
+
agent_id: AGT_AGENT_ID,
|
|
21221
|
+
query: params.query,
|
|
21222
|
+
status: params.status,
|
|
21223
|
+
since: params.since,
|
|
21224
|
+
until: params.until,
|
|
21225
|
+
limit: params.limit
|
|
21226
|
+
});
|
|
21227
|
+
if (!data.items.length) {
|
|
21228
|
+
const scope = params.query ? `"${params.query}"` : "your history";
|
|
21229
|
+
return {
|
|
21230
|
+
content: [
|
|
21231
|
+
{
|
|
21232
|
+
type: "text",
|
|
21233
|
+
text: `No cards found for ${scope}. That means there is genuinely no kanban record \u2014 but check whether the work might have been delivered without a card (e.g. answered live in a channel) before concluding it never happened.`
|
|
21234
|
+
}
|
|
21235
|
+
]
|
|
21236
|
+
};
|
|
21237
|
+
}
|
|
21238
|
+
const lines = [`Found ${data.items.length} card(s):`];
|
|
21239
|
+
for (const item of data.items) {
|
|
21240
|
+
const when = item.completed_at ?? item.created_at;
|
|
21241
|
+
const day = typeof when === "string" ? when.slice(0, 10) : "";
|
|
21242
|
+
const via = item.source_integration ? ` via ${item.source_integration}` : "";
|
|
21243
|
+
lines.push(`
|
|
21244
|
+
- [${item.status}${via}, ${day}] ${item.title} (id: ${item.id})`);
|
|
21245
|
+
if (item.deliverable) lines.push(` \u2192 ${item.deliverable}`);
|
|
21246
|
+
if (item.result) {
|
|
21247
|
+
const more = item.result_truncated ? " \u2026(result trimmed; open the card in the console for the full text)" : "";
|
|
21248
|
+
lines.push(` \u2713 ${item.result}${more}`);
|
|
21249
|
+
}
|
|
21250
|
+
}
|
|
21251
|
+
return { content: [{ type: "text", text: lines.join("\n") }] };
|
|
21252
|
+
}
|
|
21253
|
+
);
|
|
21208
21254
|
server.tool(
|
|
21209
21255
|
"kanban_add",
|
|
21210
21256
|
"Add a new item to the kanban board.",
|
|
@@ -22299,6 +22345,7 @@ async function forwardToolCall(toolName, args) {
|
|
|
22299
22345
|
}
|
|
22300
22346
|
var LOCAL_TOOL_NAMES = /* @__PURE__ */ new Set([
|
|
22301
22347
|
"kanban_list",
|
|
22348
|
+
"kanban_search",
|
|
22302
22349
|
"kanban_add",
|
|
22303
22350
|
"kanban_move",
|
|
22304
22351
|
"kanban_update",
|