@integrity-labs/agt-cli 0.28.558 → 0.28.559
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-FIOLFAYB.js";
|
|
44
44
|
import {
|
|
45
45
|
AnchorSessionClient,
|
|
46
46
|
CHANNEL_REGISTRY,
|
|
@@ -4834,7 +4834,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
4834
4834
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
4835
4835
|
import chalk18 from "chalk";
|
|
4836
4836
|
import ora16 from "ora";
|
|
4837
|
-
var cliVersion = true ? "0.28.
|
|
4837
|
+
var cliVersion = true ? "0.28.559" : "dev";
|
|
4838
4838
|
async function fetchLatestVersion() {
|
|
4839
4839
|
const host2 = getHost();
|
|
4840
4840
|
if (!host2) return null;
|
|
@@ -6009,7 +6009,7 @@ function handleError(err) {
|
|
|
6009
6009
|
}
|
|
6010
6010
|
|
|
6011
6011
|
// src/bin/agt.ts
|
|
6012
|
-
var cliVersion2 = true ? "0.28.
|
|
6012
|
+
var cliVersion2 = true ? "0.28.559" : "dev";
|
|
6013
6013
|
var program = new Command();
|
|
6014
6014
|
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");
|
|
6015
6015
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -5643,7 +5643,7 @@ function exchangeFailureKind(err) {
|
|
|
5643
5643
|
}
|
|
5644
5644
|
|
|
5645
5645
|
// src/lib/api-client.ts
|
|
5646
|
-
var agtCliVersion = true ? "0.28.
|
|
5646
|
+
var agtCliVersion = true ? "0.28.559" : "dev";
|
|
5647
5647
|
var lastConfigHash = null;
|
|
5648
5648
|
function setConfigHash(hash) {
|
|
5649
5649
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -9008,4 +9008,4 @@ export {
|
|
|
9008
9008
|
managerInstallSystemUnitCommand,
|
|
9009
9009
|
managerUninstallSystemUnitCommand
|
|
9010
9010
|
};
|
|
9011
|
-
//# sourceMappingURL=chunk-
|
|
9011
|
+
//# sourceMappingURL=chunk-FIOLFAYB.js.map
|
|
@@ -53,7 +53,7 @@ import {
|
|
|
53
53
|
safeWriteJsonAtomic,
|
|
54
54
|
setConfigHash,
|
|
55
55
|
tripClass
|
|
56
|
-
} from "../chunk-
|
|
56
|
+
} from "../chunk-FIOLFAYB.js";
|
|
57
57
|
import {
|
|
58
58
|
getProjectDir as getProjectDir2,
|
|
59
59
|
getReadyTasks,
|
|
@@ -10542,7 +10542,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
10542
10542
|
var lastVersionCheckAt = 0;
|
|
10543
10543
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
10544
10544
|
var lastResponsivenessProbeAt = 0;
|
|
10545
|
-
var agtCliVersion = true ? "0.28.
|
|
10545
|
+
var agtCliVersion = true ? "0.28.559" : "dev";
|
|
10546
10546
|
function resolveBrewPath(execFileSync2) {
|
|
10547
10547
|
try {
|
|
10548
10548
|
const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
package/dist/mcp/index.js
CHANGED
|
@@ -21083,14 +21083,47 @@ function groupKanbanByStatus(items) {
|
|
|
21083
21083
|
}
|
|
21084
21084
|
return groups;
|
|
21085
21085
|
}
|
|
21086
|
-
function
|
|
21086
|
+
function formatWaitingAge(since, nowMs) {
|
|
21087
|
+
if (!since) return null;
|
|
21088
|
+
const ms = nowMs - Date.parse(since);
|
|
21089
|
+
if (!Number.isFinite(ms)) return null;
|
|
21090
|
+
const mins = Math.max(0, Math.floor(ms / 6e4));
|
|
21091
|
+
if (mins < 1) return "<1m";
|
|
21092
|
+
if (mins < 60) return `${mins}m`;
|
|
21093
|
+
const hours = Math.floor(mins / 60);
|
|
21094
|
+
if (hours < 24) return `${hours}h`;
|
|
21095
|
+
return `${Math.floor(hours / 24)}d`;
|
|
21096
|
+
}
|
|
21097
|
+
function renderPrWaitTarget(item) {
|
|
21098
|
+
if (item.waiting_kind !== "pr-review" && item.waiting_kind !== "pr-merged") return null;
|
|
21099
|
+
const pr = item.waiting_context?.pr_number;
|
|
21100
|
+
if (!Number.isSafeInteger(pr) || pr <= 0) return null;
|
|
21101
|
+
const verb = item.waiting_kind === "pr-review" ? "Review" : "Merge";
|
|
21102
|
+
const repo = item.waiting_context?.repo;
|
|
21103
|
+
const where = repo && repo !== "Integrity-Labs/augmented" ? ` in ${repo}` : "";
|
|
21104
|
+
return `${verb} PR #${pr}${where}`;
|
|
21105
|
+
}
|
|
21106
|
+
function renderWaitingClause(item, nowMs) {
|
|
21107
|
+
if (item.status !== "waiting") return "";
|
|
21108
|
+
const parts = [];
|
|
21109
|
+
if (item.waiting_kind) parts.push(item.waiting_kind);
|
|
21110
|
+
const age = formatWaitingAge(item.waiting_since, nowMs);
|
|
21111
|
+
if (age) parts.push(`${age}`);
|
|
21112
|
+
const head = parts.length ? ` \u23F8 ${parts.join(", ")}` : "";
|
|
21113
|
+
const prTarget = renderPrWaitTarget(item);
|
|
21114
|
+
if (prTarget) return head ? `${head}: ${prTarget}` : ` \u23F8 ${prTarget}`;
|
|
21115
|
+
const ask = item.waiting_on ? `: ${item.waiting_on.length > 80 ? `${item.waiting_on.slice(0, 77)}...` : item.waiting_on}` : "";
|
|
21116
|
+
return head ? `${head}${ask}` : "";
|
|
21117
|
+
}
|
|
21118
|
+
function renderKanbanItemLine(item, nowMs) {
|
|
21087
21119
|
const pri = kanbanPriorityLabel(item.priority);
|
|
21088
21120
|
const est = item.estimated_minutes ? ` ~${item.estimated_minutes}min` : "";
|
|
21089
21121
|
const del = item.deliverable ? ` \u2192 ${item.deliverable}` : "";
|
|
21090
21122
|
const res = item.result ? ` \u2713 ${item.result}` : "";
|
|
21091
|
-
|
|
21123
|
+
const wait = renderWaitingClause(item, nowMs);
|
|
21124
|
+
return `- [${pri}] ${item.title}${wait}${est}${del}${res} (id: ${item.id})`;
|
|
21092
21125
|
}
|
|
21093
|
-
function renderKanbanList(items) {
|
|
21126
|
+
function renderKanbanList(items, nowMs = Date.now()) {
|
|
21094
21127
|
if (!items.length) return "Board is empty.";
|
|
21095
21128
|
const humanAssigned = items.filter(isHumanAssigned);
|
|
21096
21129
|
const mine = items.filter((i) => !isHumanAssigned(i));
|
|
@@ -21104,7 +21137,7 @@ function renderKanbanList(items) {
|
|
|
21104
21137
|
if (!group?.length) continue;
|
|
21105
21138
|
lines.push(`
|
|
21106
21139
|
## ${kanbanStatusLabel(status)} (${group.length})`);
|
|
21107
|
-
for (const item of group) lines.push(renderKanbanItemLine(item));
|
|
21140
|
+
for (const item of group) lines.push(renderKanbanItemLine(item, nowMs));
|
|
21108
21141
|
}
|
|
21109
21142
|
if (humanAssigned.length) {
|
|
21110
21143
|
lines.push(`
|
|
@@ -21112,7 +21145,7 @@ function renderKanbanList(items) {
|
|
|
21112
21145
|
lines.push(HUMAN_ASSIGNED_SECTION_NOTE);
|
|
21113
21146
|
for (const item of humanAssigned) {
|
|
21114
21147
|
const who = item.assignee_name ? ` [with ${item.assignee_name}]` : "";
|
|
21115
|
-
lines.push(`${renderKanbanItemLine(item)}${who}`);
|
|
21148
|
+
lines.push(`${renderKanbanItemLine(item, nowMs)}${who}`);
|
|
21116
21149
|
}
|
|
21117
21150
|
}
|
|
21118
21151
|
return lines.join("\n");
|
package/package.json
CHANGED
|
File without changes
|