@integrity-labs/agt-cli 0.28.1184 → 0.28.1185
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
CHANGED
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
success,
|
|
41
41
|
table,
|
|
42
42
|
warn
|
|
43
|
-
} from "../chunk-
|
|
43
|
+
} from "../chunk-H6GFABQZ.js";
|
|
44
44
|
import {
|
|
45
45
|
getProjectDir,
|
|
46
46
|
isSessionResumeDisabled,
|
|
@@ -5200,7 +5200,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
5200
5200
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
5201
5201
|
import chalk17 from "chalk";
|
|
5202
5202
|
import ora15 from "ora";
|
|
5203
|
-
var cliVersion = true ? "0.28.
|
|
5203
|
+
var cliVersion = true ? "0.28.1185" : "dev";
|
|
5204
5204
|
async function fetchLatestVersion() {
|
|
5205
5205
|
const host2 = getHost();
|
|
5206
5206
|
if (!host2) return null;
|
|
@@ -6460,7 +6460,7 @@ function handleError(err) {
|
|
|
6460
6460
|
}
|
|
6461
6461
|
|
|
6462
6462
|
// src/bin/agt.ts
|
|
6463
|
-
var cliVersion2 = true ? "0.28.
|
|
6463
|
+
var cliVersion2 = true ? "0.28.1185" : "dev";
|
|
6464
6464
|
var program = new Command();
|
|
6465
6465
|
program.name("agt").description("Augmented CLI \u2014 agent provisioning and management").version(cliVersion2).option("--json", "Emit machine-readable JSON output (suppress spinners and colors)").option("--skip-update-check", "Skip the automatic update check on startup");
|
|
6466
6466
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -8079,7 +8079,7 @@ function exchangeFailureKind(err) {
|
|
|
8079
8079
|
}
|
|
8080
8080
|
|
|
8081
8081
|
// src/lib/api-client.ts
|
|
8082
|
-
var agtCliVersion = true ? "0.28.
|
|
8082
|
+
var agtCliVersion = true ? "0.28.1185" : "dev";
|
|
8083
8083
|
var lastConfigHash = null;
|
|
8084
8084
|
function setConfigHash(hash) {
|
|
8085
8085
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -13614,4 +13614,4 @@ export {
|
|
|
13614
13614
|
managerInstallSystemUnitCommand,
|
|
13615
13615
|
managerUninstallSystemUnitCommand
|
|
13616
13616
|
};
|
|
13617
|
-
//# sourceMappingURL=chunk-
|
|
13617
|
+
//# sourceMappingURL=chunk-H6GFABQZ.js.map
|
|
@@ -82,7 +82,7 @@ import {
|
|
|
82
82
|
tripClass,
|
|
83
83
|
writeEtcEnvironment,
|
|
84
84
|
writeProfileDScript
|
|
85
|
-
} from "../chunk-
|
|
85
|
+
} from "../chunk-H6GFABQZ.js";
|
|
86
86
|
import {
|
|
87
87
|
CLAUDE_CODE_SECURITY_FLOOR,
|
|
88
88
|
SELF_UPDATE_TIMEOUTS,
|
|
@@ -16231,7 +16231,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
16231
16231
|
var lastVersionCheckAt = 0;
|
|
16232
16232
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
16233
16233
|
var lastResponsivenessProbeAt = 0;
|
|
16234
|
-
var agtCliVersion = true ? "0.28.
|
|
16234
|
+
var agtCliVersion = true ? "0.28.1185" : "dev";
|
|
16235
16235
|
function resolveBrewPath(execFileSync3) {
|
|
16236
16236
|
try {
|
|
16237
16237
|
const out = execFileSync3("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
package/dist/mcp/index.js
CHANGED
|
@@ -48087,6 +48087,12 @@ function renderKanbanPeek(data, fallbackTeam) {
|
|
|
48087
48087
|
function oneLine(text) {
|
|
48088
48088
|
return text.replace(/[\r\n\u2028\u2029\t]+/g, " ").trim();
|
|
48089
48089
|
}
|
|
48090
|
+
function pageNoun(column) {
|
|
48091
|
+
if (column === "active") return "active";
|
|
48092
|
+
if (column === "in_progress") return "in-progress";
|
|
48093
|
+
if (column === "todo" || column === "backlog") return column;
|
|
48094
|
+
return "parked";
|
|
48095
|
+
}
|
|
48090
48096
|
function renderCard(card, target, token) {
|
|
48091
48097
|
const facts = [
|
|
48092
48098
|
card.column === "needs_attention" ? "needs attention" : card.column,
|
|
@@ -48107,11 +48113,13 @@ function renderCard(card, target, token) {
|
|
|
48107
48113
|
${frameCardText(text, `${target} or whoever filed the card`, token)}`;
|
|
48108
48114
|
}
|
|
48109
48115
|
function renderKanbanParked(data, isLaterPage = false, token = newFrameToken()) {
|
|
48116
|
+
const noun = pageNoun(data.column);
|
|
48110
48117
|
if (data.cards.length === 0) {
|
|
48111
|
-
|
|
48118
|
+
if (isLaterPage) return `${data.target_agent} has no more ${noun} cards.`;
|
|
48119
|
+
return noun === "parked" && data.column === void 0 ? `${data.target_agent} has no parked cards (needs attention or waiting).` : noun === "active" ? `${data.target_agent} has no active cards (in progress, todo or backlog).` : `${data.target_agent} has no ${noun === "parked" ? (data.column ?? "").replace("_", " ") : noun} cards.`;
|
|
48112
48120
|
}
|
|
48113
48121
|
const lines = [
|
|
48114
|
-
`${data.target_agent}: ${data.cards.length}
|
|
48122
|
+
`${data.target_agent}: ${data.cards.length} ${noun} card${data.cards.length === 1 ? "" : "s"}, oldest first.`,
|
|
48115
48123
|
"Linked tickets and PRs are the references stored on the card; their current state was not looked up.",
|
|
48116
48124
|
...data.cards.map((card) => renderCard(card, data.target_agent, token))
|
|
48117
48125
|
];
|
|
@@ -48122,15 +48130,15 @@ function renderKanbanParked(data, isLaterPage = false, token = newFrameToken())
|
|
|
48122
48130
|
}
|
|
48123
48131
|
function renderKanbanParkedError(target, message) {
|
|
48124
48132
|
if (/returned 404/.test(message)) {
|
|
48125
|
-
return `Could not read
|
|
48133
|
+
return `Could not read cards: no agent "${target}" found on your team. Check the code_name and make sure they're a teammate on the same team.`;
|
|
48126
48134
|
}
|
|
48127
48135
|
if (/returned 403/.test(message) && /CONTENT_READ_BLOCKED/.test(message)) {
|
|
48128
|
-
return `Could not read ${target}'s
|
|
48136
|
+
return `Could not read ${target}'s cards: it is a manager-only agent, so only its human manager can read its cards. kanban_peek still gives you the counts.`;
|
|
48129
48137
|
}
|
|
48130
48138
|
if (/returned 403/.test(message)) {
|
|
48131
|
-
return `Could not read ${target}'s
|
|
48139
|
+
return `Could not read ${target}'s cards: only its direct reports-to manager can. kanban_peek still gives you the counts.`;
|
|
48132
48140
|
}
|
|
48133
|
-
return `Could not read ${target}'s
|
|
48141
|
+
return `Could not read ${target}'s cards: ${message}`;
|
|
48134
48142
|
}
|
|
48135
48143
|
function parkedActParamError(params) {
|
|
48136
48144
|
if (params.action === "reassign" && !params.new_owner) return "reassign needs new_owner.";
|
|
@@ -50359,10 +50367,10 @@ server.tool(
|
|
|
50359
50367
|
);
|
|
50360
50368
|
server.tool(
|
|
50361
50369
|
"kanban_parked",
|
|
50362
|
-
"List the cards
|
|
50370
|
+
"List the cards of an agent that reports directly to you, oldest first. By default its parked cards (needs_attention and waiting); pass column for its active cards, for example to find out what a todo card sitting for hours is. Each card shows its title, column, age, why it was parked where that is recorded (origin, waiting kind, waiting-on line), and the ticket or PR reference stored on it. Read-only: it changes nothing on the board. It never returns descriptions, results or notes. References are as stored, with no live ticket or PR state, and a linked reference can be a chat thread rather than a ticket. Only the direct reports-to manager can read this, the agent must be on your own team, and a manager-only agent refuses it. Use kanban_peek for counts on any teammate. Don't know the agent's code_name? Call directory_lookup first.",
|
|
50363
50371
|
{
|
|
50364
50372
|
target_agent: external_exports.string().describe("The agent that reports to you: its agent code_name (kebab-case) or agent UUID."),
|
|
50365
|
-
column: external_exports.enum(["needs_attention", "waiting"]).optional().describe(
|
|
50373
|
+
column: external_exports.enum(["needs_attention", "waiting", "in_progress", "todo", "backlog", "active"]).optional().describe('Only this column. "active" means in_progress, todo and backlog together. Omit for needs_attention and waiting.'),
|
|
50366
50374
|
limit: external_exports.number().int().min(1).max(50).optional().describe("Cards per page. Default 25, maximum 50."),
|
|
50367
50375
|
cursor: external_exports.string().min(1).optional().describe("The cursor from the previous page, to read the next one. Keep column the same between pages.")
|
|
50368
50376
|
},
|
|
@@ -50383,7 +50391,11 @@ server.tool(
|
|
|
50383
50391
|
// Read-only: a timeout here can never have committed anything.
|
|
50384
50392
|
true
|
|
50385
50393
|
);
|
|
50386
|
-
return {
|
|
50394
|
+
return {
|
|
50395
|
+
content: [
|
|
50396
|
+
{ type: "text", text: renderKanbanParked({ ...data, column: params.column }, params.cursor !== void 0) }
|
|
50397
|
+
]
|
|
50398
|
+
};
|
|
50387
50399
|
} catch (err) {
|
|
50388
50400
|
const msg = err instanceof Error ? err.message : String(err);
|
|
50389
50401
|
return { content: [{ type: "text", text: renderKanbanParkedError(params.target_agent, msg) }], isError: true };
|
package/package.json
CHANGED
|
File without changes
|