@integrity-labs/agt-cli 0.28.803 → 0.28.805

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,12 +40,12 @@ import {
40
40
  success,
41
41
  table,
42
42
  warn
43
- } from "../chunk-O6FWOMMD.js";
43
+ } from "../chunk-YNSVQMSD.js";
44
44
  import {
45
45
  getProjectDir,
46
46
  isSessionResumeDisabled,
47
47
  readDirectChatSessionState
48
- } from "../chunk-H37X4QPC.js";
48
+ } from "../chunk-DHOVIXR5.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-MJ3YHZSR.js";
82
+ } from "../chunk-2FL6V4E5.js";
83
83
  import "../chunk-XWVM4KPK.js";
84
84
 
85
85
  // src/bin/agt.ts
@@ -5467,7 +5467,7 @@ import { execFileSync, execSync } from "child_process";
5467
5467
  import { existsSync as existsSync11, realpathSync as realpathSync2 } from "fs";
5468
5468
  import chalk18 from "chalk";
5469
5469
  import ora16 from "ora";
5470
- var cliVersion = true ? "0.28.803" : "dev";
5470
+ var cliVersion = true ? "0.28.805" : "dev";
5471
5471
  async function fetchLatestVersion() {
5472
5472
  const host2 = getHost();
5473
5473
  if (!host2) return null;
@@ -6658,7 +6658,7 @@ function handleError(err) {
6658
6658
  }
6659
6659
 
6660
6660
  // src/bin/agt.ts
6661
- var cliVersion2 = true ? "0.28.803" : "dev";
6661
+ var cliVersion2 = true ? "0.28.805" : "dev";
6662
6662
  var program = new Command();
6663
6663
  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");
6664
6664
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -517,10 +517,20 @@ is the failure this rule exists to stop.
517
517
  `;
518
518
  }
519
519
  var ACTIVE_TASKS_MAX_CHARS = 800;
520
+ var ACTIVE_TASKS_TITLE_MAX_CHARS = 60;
520
521
  var ACTIVE_TASKS_TRUNCATION_SUFFIX = "\u2026 (truncated)\n\n";
521
522
  function sanitizePromptText(value) {
522
523
  return value.replace(/[\u0000-\u001F\u007F]+/g, " ").replace(/\s+/g, " ").trim();
523
524
  }
525
+ function truncateActiveTaskTitle(title) {
526
+ if (title.length <= ACTIVE_TASKS_TITLE_MAX_CHARS)
527
+ return title;
528
+ let cut = title.slice(0, ACTIVE_TASKS_TITLE_MAX_CHARS - 1);
529
+ const last = cut.charCodeAt(cut.length - 1);
530
+ if (last >= 55296 && last <= 56319)
531
+ cut = cut.slice(0, -1);
532
+ return cut + "\u2026";
533
+ }
524
534
  function buildActiveTasksSection(activeTasks) {
525
535
  if (!activeTasks || activeTasks.length === 0)
526
536
  return "";
@@ -536,13 +546,14 @@ function buildActiveTasksSection(activeTasks) {
536
546
  for (const t of activeTasks) {
537
547
  const status = sanitizePromptText(t.status);
538
548
  const id = sanitizePromptText(t.id);
539
- const title = sanitizePromptText(t.title);
549
+ const title = truncateActiveTaskTitle(sanitizePromptText(t.title));
540
550
  const sourceParts = [];
541
551
  if (t.source_channel && t.source_thread_id) {
542
552
  sourceParts.push(`${sanitizePromptText(t.source_channel)} thread ${sanitizePromptText(t.source_thread_id)}`);
543
553
  }
544
- if (t.source_url)
554
+ if (t.source_url && sourceParts.length === 0) {
545
555
  sourceParts.push(sanitizePromptText(t.source_url));
556
+ }
546
557
  const source = sourceParts.length > 0 ? ` \u2014 ${sourceParts.join(" \u2022 ")}` : "";
547
558
  lines.push(`- [${status}] ${id}: "${title}"${source}`);
548
559
  }
@@ -13644,4 +13655,4 @@ export {
13644
13655
  peekCurrentSession,
13645
13656
  readDailySessionPin
13646
13657
  };
13647
- //# sourceMappingURL=chunk-MJ3YHZSR.js.map
13658
+ //# sourceMappingURL=chunk-2FL6V4E5.js.map