@integrity-labs/agt-cli 0.28.1141 → 0.28.1142
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 +35 -7
- package/dist/bin/agt.js.map +1 -1
- package/dist/{chunk-6WHFJSXT.js → chunk-J2PUVUK6.js} +4 -4
- package/dist/{chunk-DYFE224A.js → chunk-JM47BARM.js} +7 -1
- package/dist/chunk-JM47BARM.js.map +1 -0
- package/dist/{chunk-7U4VSBOE.js → chunk-ZJFS74H5.js} +2 -2
- package/dist/{claude-pair-runtime-BOTE3DRW.js → claude-pair-runtime-A3OWKP3K.js} +2 -2
- package/dist/lib/manager-worker.js +17 -17
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/direct-chat-channel.js +6 -0
- package/dist/mcp/index.js +103 -25
- package/dist/mcp/origami.js +6 -0
- package/dist/mcp/slack-channel.js +6 -0
- package/dist/mcp/telegram-channel.js +6 -0
- package/dist/{persistent-session-6O66QEI4.js → persistent-session-VNJDG3VN.js} +3 -3
- package/dist/{responsiveness-probe-WGD3NDWG.js → responsiveness-probe-ABQGETFV.js} +3 -3
- package/dist/{session-auth-dead-6N2AEFKX.js → session-auth-dead-DVE6OGRT.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-DYFE224A.js.map +0 -1
- /package/dist/{chunk-6WHFJSXT.js.map → chunk-J2PUVUK6.js.map} +0 -0
- /package/dist/{chunk-7U4VSBOE.js.map → chunk-ZJFS74H5.js.map} +0 -0
- /package/dist/{claude-pair-runtime-BOTE3DRW.js.map → claude-pair-runtime-A3OWKP3K.js.map} +0 -0
- /package/dist/{persistent-session-6O66QEI4.js.map → persistent-session-VNJDG3VN.js.map} +0 -0
- /package/dist/{responsiveness-probe-WGD3NDWG.js.map → responsiveness-probe-ABQGETFV.js.map} +0 -0
- /package/dist/{session-auth-dead-6N2AEFKX.js.map → session-auth-dead-DVE6OGRT.js.map} +0 -0
package/dist/bin/agt.js
CHANGED
|
@@ -40,12 +40,12 @@ import {
|
|
|
40
40
|
success,
|
|
41
41
|
table,
|
|
42
42
|
warn
|
|
43
|
-
} from "../chunk-
|
|
43
|
+
} from "../chunk-J2PUVUK6.js";
|
|
44
44
|
import {
|
|
45
45
|
getProjectDir,
|
|
46
46
|
isSessionResumeDisabled,
|
|
47
47
|
readDirectChatSessionState
|
|
48
|
-
} from "../chunk-
|
|
48
|
+
} from "../chunk-ZJFS74H5.js";
|
|
49
49
|
import {
|
|
50
50
|
AnchorSessionClient,
|
|
51
51
|
CHANNEL_REGISTRY,
|
|
@@ -79,7 +79,7 @@ import {
|
|
|
79
79
|
serializeManifestForSlackCli,
|
|
80
80
|
sessionFileExists,
|
|
81
81
|
sessionTranscriptDir
|
|
82
|
-
} from "../chunk-
|
|
82
|
+
} from "../chunk-JM47BARM.js";
|
|
83
83
|
import "../chunk-B6UYVEMD.js";
|
|
84
84
|
import "../chunk-XWVM4KPK.js";
|
|
85
85
|
import "../chunk-EL5MWGGH.js";
|
|
@@ -5207,6 +5207,29 @@ async function setupCommand(token, options = {}) {
|
|
|
5207
5207
|
// src/commands/kanban.ts
|
|
5208
5208
|
import chalk17 from "chalk";
|
|
5209
5209
|
import ora15 from "ora";
|
|
5210
|
+
function kanbanListJson(data) {
|
|
5211
|
+
return {
|
|
5212
|
+
ok: true,
|
|
5213
|
+
items: data.items,
|
|
5214
|
+
...data.owed_reply_truncated === true ? { owed_reply_truncated: true } : {},
|
|
5215
|
+
// Obi Wan c6c397b5797f on #6976: an unreadable owed list must not read as "nothing owed".
|
|
5216
|
+
...data.owed_reply_unavailable === true ? { owed_reply_unavailable: true } : {}
|
|
5217
|
+
};
|
|
5218
|
+
}
|
|
5219
|
+
function owedReplyTruncatedNotice(truncated) {
|
|
5220
|
+
return truncated === true ? "More replies are owed than are listed here (the oldest are shown first)." : null;
|
|
5221
|
+
}
|
|
5222
|
+
function owedReplyUnavailableNotice(unavailable) {
|
|
5223
|
+
return unavailable === true ? "Couldn't read the replies this agent owes, so any owed replies are missing from this list." : null;
|
|
5224
|
+
}
|
|
5225
|
+
function boardRowTitle(item) {
|
|
5226
|
+
const base = item.title.length > 50 ? item.title.slice(0, 47) + "\u2026" : item.title;
|
|
5227
|
+
if (item.blocked_agent_label) return `[blocking ${item.blocked_agent_label}] ${base}`;
|
|
5228
|
+
if (item.owed_reply_from_label) {
|
|
5229
|
+
return item.owed_reply_on_own_card === false ? `[not yours \xB7 reply owed to ${item.owed_reply_from_label}] ${base}` : `[reply owed to ${item.owed_reply_from_label}] ${base}`;
|
|
5230
|
+
}
|
|
5231
|
+
return base;
|
|
5232
|
+
}
|
|
5210
5233
|
async function resolveAgentId2(codeName) {
|
|
5211
5234
|
try {
|
|
5212
5235
|
const data = await api.get(`/agents/${codeName}`);
|
|
@@ -5245,17 +5268,19 @@ async function kanbanListCommand(opts) {
|
|
|
5245
5268
|
});
|
|
5246
5269
|
spinner.stop();
|
|
5247
5270
|
if (json) {
|
|
5248
|
-
jsonOutput(
|
|
5271
|
+
jsonOutput(kanbanListJson(data));
|
|
5249
5272
|
return;
|
|
5250
5273
|
}
|
|
5274
|
+
const owedUnavailable = owedReplyUnavailableNotice(data.owed_reply_unavailable);
|
|
5251
5275
|
if (!data.items.length) {
|
|
5252
5276
|
info(`Board for ${opts.agent} is empty.`);
|
|
5277
|
+
if (owedUnavailable) warn(owedUnavailable);
|
|
5253
5278
|
return;
|
|
5254
5279
|
}
|
|
5255
5280
|
const rows = data.items.map((item) => [
|
|
5256
5281
|
priorityLabel2(item.priority),
|
|
5257
5282
|
statusLabel(item.status),
|
|
5258
|
-
item
|
|
5283
|
+
boardRowTitle(item),
|
|
5259
5284
|
item.estimated_minutes ? `~${item.estimated_minutes}min` : "",
|
|
5260
5285
|
item.id.slice(0, 8)
|
|
5261
5286
|
]);
|
|
@@ -5263,6 +5288,9 @@ async function kanbanListCommand(opts) {
|
|
|
5263
5288
|
Kanban: ${opts.agent}
|
|
5264
5289
|
`));
|
|
5265
5290
|
table(["Pri", "Status", "Title", "Est", "ID"], rows);
|
|
5291
|
+
const owedNote = owedReplyTruncatedNotice(data.owed_reply_truncated);
|
|
5292
|
+
if (owedNote) info(owedNote);
|
|
5293
|
+
if (owedUnavailable) warn(owedUnavailable);
|
|
5266
5294
|
} catch (err) {
|
|
5267
5295
|
spinner.fail("Failed to fetch board.");
|
|
5268
5296
|
if (json) {
|
|
@@ -5474,7 +5502,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
5474
5502
|
import { existsSync as existsSync11, realpathSync as realpathSync2 } from "fs";
|
|
5475
5503
|
import chalk18 from "chalk";
|
|
5476
5504
|
import ora16 from "ora";
|
|
5477
|
-
var cliVersion = true ? "0.28.
|
|
5505
|
+
var cliVersion = true ? "0.28.1142" : "dev";
|
|
5478
5506
|
async function fetchLatestVersion() {
|
|
5479
5507
|
const host2 = getHost();
|
|
5480
5508
|
if (!host2) return null;
|
|
@@ -6734,7 +6762,7 @@ function handleError(err) {
|
|
|
6734
6762
|
}
|
|
6735
6763
|
|
|
6736
6764
|
// src/bin/agt.ts
|
|
6737
|
-
var cliVersion2 = true ? "0.28.
|
|
6765
|
+
var cliVersion2 = true ? "0.28.1142" : "dev";
|
|
6738
6766
|
var program = new Command();
|
|
6739
6767
|
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");
|
|
6740
6768
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|