@integrity-labs/agt-cli 0.28.310 → 0.28.311

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
@@ -38,7 +38,7 @@ import {
38
38
  success,
39
39
  table,
40
40
  warn
41
- } from "../chunk-J7PAEPOU.js";
41
+ } from "../chunk-OSVV4VFM.js";
42
42
  import {
43
43
  CHANNEL_REGISTRY,
44
44
  DEFAULT_FRAMEWORK,
@@ -4826,7 +4826,7 @@ import { execFileSync, execSync } from "child_process";
4826
4826
  import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
4827
4827
  import chalk18 from "chalk";
4828
4828
  import ora16 from "ora";
4829
- var cliVersion = true ? "0.28.310" : "dev";
4829
+ var cliVersion = true ? "0.28.311" : "dev";
4830
4830
  async function fetchLatestVersion() {
4831
4831
  const host2 = getHost();
4832
4832
  if (!host2) return null;
@@ -5843,7 +5843,7 @@ function handleError(err) {
5843
5843
  }
5844
5844
 
5845
5845
  // src/bin/agt.ts
5846
- var cliVersion2 = true ? "0.28.310" : "dev";
5846
+ var cliVersion2 = true ? "0.28.311" : "dev";
5847
5847
  var program = new Command();
5848
5848
  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");
5849
5849
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -5900,7 +5900,7 @@ function requireHost() {
5900
5900
  }
5901
5901
 
5902
5902
  // src/lib/api-client.ts
5903
- var agtCliVersion = true ? "0.28.310" : "dev";
5903
+ var agtCliVersion = true ? "0.28.311" : "dev";
5904
5904
  var lastConfigHash = null;
5905
5905
  function setConfigHash(hash) {
5906
5906
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -8199,4 +8199,4 @@ export {
8199
8199
  managerInstallSystemUnitCommand,
8200
8200
  managerUninstallSystemUnitCommand
8201
8201
  };
8202
- //# sourceMappingURL=chunk-J7PAEPOU.js.map
8202
+ //# sourceMappingURL=chunk-OSVV4VFM.js.map
@@ -39,7 +39,7 @@ import {
39
39
  requireHost,
40
40
  safeWriteJsonAtomic,
41
41
  setConfigHash
42
- } from "../chunk-J7PAEPOU.js";
42
+ } from "../chunk-OSVV4VFM.js";
43
43
  import {
44
44
  getProjectDir as getProjectDir2,
45
45
  getReadyTasks,
@@ -6997,7 +6997,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
6997
6997
  var lastVersionCheckAt = 0;
6998
6998
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
6999
6999
  var lastResponsivenessProbeAt = 0;
7000
- var agtCliVersion = true ? "0.28.310" : "dev";
7000
+ var agtCliVersion = true ? "0.28.311" : "dev";
7001
7001
  function resolveBrewPath(execFileSync2) {
7002
7002
  try {
7003
7003
  const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
package/dist/mcp/index.js CHANGED
@@ -21029,6 +21029,64 @@ function jsonSchemaPropertyToZod(prop) {
21029
21029
  return external_exports.unknown();
21030
21030
  }
21031
21031
 
21032
+ // src/kanban-list-render.ts
21033
+ var KANBAN_LIST_DISPLAY_ORDER = [
21034
+ "in_progress",
21035
+ "waiting",
21036
+ "needs_attention",
21037
+ "todo",
21038
+ "backlog",
21039
+ "done",
21040
+ "failed"
21041
+ ];
21042
+ function kanbanStatusLabel(status) {
21043
+ const labels = {
21044
+ backlog: "Backlog",
21045
+ todo: "To Do",
21046
+ in_progress: "In Progress",
21047
+ // Named for what the reader must DO, not for the internal state. "Waiting"
21048
+ // alone reads as passive//ignorable; the whole failure mode here is a card
21049
+ // that is quietly owed something and gets skimmed past.
21050
+ waiting: "Waiting (blocked \u2014 needs a response)",
21051
+ needs_attention: "Needs Attention (stalled \u2014 nobody is driving this)",
21052
+ done: "Done",
21053
+ failed: "Failed"
21054
+ };
21055
+ return labels[status] ?? status;
21056
+ }
21057
+ function kanbanPriorityLabel(priority) {
21058
+ return priority === 1 ? "HIGH" : priority === 3 ? "LOW" : "MED";
21059
+ }
21060
+ function groupKanbanByStatus(items) {
21061
+ const groups = {};
21062
+ for (const item of items) {
21063
+ (groups[item.status] ??= []).push(item);
21064
+ }
21065
+ return groups;
21066
+ }
21067
+ function renderKanbanList(items) {
21068
+ if (!items.length) return "Board is empty.";
21069
+ const grouped = groupKanbanByStatus(items);
21070
+ const lines = [];
21071
+ const known = new Set(KANBAN_LIST_DISPLAY_ORDER);
21072
+ const unknown2 = Object.keys(grouped).filter((s) => !known.has(s));
21073
+ const order = [...KANBAN_LIST_DISPLAY_ORDER, ...unknown2];
21074
+ for (const status of order) {
21075
+ const group = grouped[status];
21076
+ if (!group?.length) continue;
21077
+ lines.push(`
21078
+ ## ${kanbanStatusLabel(status)} (${group.length})`);
21079
+ for (const item of group) {
21080
+ const pri = kanbanPriorityLabel(item.priority);
21081
+ const est = item.estimated_minutes ? ` ~${item.estimated_minutes}min` : "";
21082
+ const del = item.deliverable ? ` \u2192 ${item.deliverable}` : "";
21083
+ const res = item.result ? ` \u2713 ${item.result}` : "";
21084
+ lines.push(`- [${pri}] ${item.title}${est}${del}${res} (id: ${item.id})`);
21085
+ }
21086
+ }
21087
+ return lines.join("\n");
21088
+ }
21089
+
21032
21090
  // src/token-refresh-selection.ts
21033
21091
  var REFRESH_WINDOW_MS = 10 * 6e4;
21034
21092
  function selectIntegrationsToRefresh(input) {
@@ -21667,25 +21725,7 @@ server.tool(
21667
21725
  const data = await apiPost("/host/my-kanban", {
21668
21726
  agent_id: AGT_AGENT_ID
21669
21727
  });
21670
- if (!data.items.length) {
21671
- return { content: [{ type: "text", text: "Board is empty." }] };
21672
- }
21673
- const grouped = groupByStatus(data.items);
21674
- const lines = [];
21675
- for (const status of ["in_progress", "todo", "backlog", "done", "failed"]) {
21676
- const items = grouped[status];
21677
- if (!items?.length) continue;
21678
- lines.push(`
21679
- ## ${statusLabel(status)} (${items.length})`);
21680
- for (const item of items) {
21681
- const pri = priorityLabel(item.priority);
21682
- const est = item.estimated_minutes ? ` ~${item.estimated_minutes}min` : "";
21683
- const del = item.deliverable ? ` \u2192 ${item.deliverable}` : "";
21684
- const res = item.result ? ` \u2713 ${item.result}` : "";
21685
- lines.push(`- [${pri}] ${item.title}${est}${del}${res} (id: ${item.id})`);
21686
- }
21687
- }
21688
- return { content: [{ type: "text", text: lines.join("\n") }] };
21728
+ return { content: [{ type: "text", text: renderKanbanList(data.items) }] };
21689
21729
  }
21690
21730
  );
21691
21731
  server.tool(
@@ -23530,29 +23570,6 @@ server.tool(
23530
23570
  return { content: [{ type: "text", text: `Persisted \`${params.widget_id}\` on \`${params.slug}\` (refreshed ${result.refreshed_at}).` }] };
23531
23571
  }
23532
23572
  );
23533
- function groupByStatus(items) {
23534
- const groups = {};
23535
- for (const item of items) {
23536
- (groups[item.status] ??= []).push(item);
23537
- }
23538
- return groups;
23539
- }
23540
- function statusLabel(status) {
23541
- const labels = {
23542
- backlog: "Backlog",
23543
- todo: "To Do",
23544
- in_progress: "In Progress",
23545
- waiting: "Waiting",
23546
- done: "Done",
23547
- failed: "Failed",
23548
- // ENG-5723: reaper-only state; render it if the board carries one.
23549
- needs_attention: "Needs attention"
23550
- };
23551
- return labels[status] ?? status;
23552
- }
23553
- function priorityLabel(priority) {
23554
- return priority === 1 ? "HIGH" : priority === 3 ? "LOW" : "MED";
23555
- }
23556
23573
  async function discoverApiTools() {
23557
23574
  if (!AGT_AGENT_ID) return [];
23558
23575
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integrity-labs/agt-cli",
3
- "version": "0.28.310",
3
+ "version": "0.28.311",
4
4
  "description": "Augmented Team CLI — agent provisioning and management",
5
5
  "type": "module",
6
6
  "engines": {