@integrity-labs/agt-cli 0.28.849 → 0.28.851

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-JFCISESR.js";
43
+ } from "../chunk-IIWPWALH.js";
44
44
  import {
45
45
  getProjectDir,
46
46
  isSessionResumeDisabled,
@@ -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.849" : "dev";
5470
+ var cliVersion = true ? "0.28.851" : "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.849" : "dev";
6661
+ var cliVersion2 = true ? "0.28.851" : "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) => {
@@ -6566,7 +6566,7 @@ function exchangeFailureKind(err) {
6566
6566
  }
6567
6567
 
6568
6568
  // src/lib/api-client.ts
6569
- var agtCliVersion = true ? "0.28.849" : "dev";
6569
+ var agtCliVersion = true ? "0.28.851" : "dev";
6570
6570
  var lastConfigHash = null;
6571
6571
  function setConfigHash(hash) {
6572
6572
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -10924,4 +10924,4 @@ export {
10924
10924
  managerInstallSystemUnitCommand,
10925
10925
  managerUninstallSystemUnitCommand
10926
10926
  };
10927
- //# sourceMappingURL=chunk-JFCISESR.js.map
10927
+ //# sourceMappingURL=chunk-IIWPWALH.js.map
@@ -60,7 +60,7 @@ import {
60
60
  safeWriteJsonAtomic,
61
61
  setConfigHash,
62
62
  tripClass
63
- } from "../chunk-JFCISESR.js";
63
+ } from "../chunk-IIWPWALH.js";
64
64
  import {
65
65
  getProjectDir as getProjectDir2,
66
66
  getReadyTasks,
@@ -13664,7 +13664,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
13664
13664
  var lastVersionCheckAt = 0;
13665
13665
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
13666
13666
  var lastResponsivenessProbeAt = 0;
13667
- var agtCliVersion = true ? "0.28.849" : "dev";
13667
+ var agtCliVersion = true ? "0.28.851" : "dev";
13668
13668
  function resolveBrewPath(execFileSync2) {
13669
13669
  try {
13670
13670
  const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
package/dist/mcp/index.js CHANGED
@@ -44577,6 +44577,22 @@ function renderKanbanFullCard(item, nowMs = Date.now()) {
44577
44577
  }
44578
44578
  return lines.join("\n");
44579
44579
  }
44580
+ function renderKanbanNoteHistory(requested, history, truncated) {
44581
+ if (!requested) return "";
44582
+ const entries = history ?? [];
44583
+ if (entries.length === 0) {
44584
+ return "\n\n## Durable note history\nNo note events recorded for this card. Notes written before the durable mirror existed will not appear here.";
44585
+ }
44586
+ const ordered = entries;
44587
+ const head = `
44588
+
44589
+ ## Durable note history (${ordered.length}${truncated ? ", TRUNCATED \u2014 older entries exist beyond this page" : ""})
44590
+ The full text of every appended note, including entries that have rolled off the ~4 KB \`notes\` column.
44591
+ `;
44592
+ return head + ordered.map((e) => `
44593
+ [${e.at}]
44594
+ ${e.note}`).join("\n");
44595
+ }
44580
44596
 
44581
44597
  // src/kanban-peek-render.ts
44582
44598
  var PEEK_RENDER_COLUMNS = [
@@ -44660,6 +44676,16 @@ var ARTEFACT_KINDS_MCP = [
44660
44676
  ];
44661
44677
 
44662
44678
  // src/kanban-write-outcome.ts
44679
+ function noteRollOffNotice(data) {
44680
+ const rolled = data?.updated_items?.some((i) => i.notes_truncated) ?? false;
44681
+ if (!rolled) return "";
44682
+ const dropped = data?.updated_items?.reduce(
44683
+ (n, i) => n + (typeof i.notes_dropped_bytes === "number" ? i.notes_dropped_bytes : 0),
44684
+ 0
44685
+ );
44686
+ const size = dropped && dropped > 0 ? ` (~${dropped} bytes)` : "";
44687
+ return ` Older inline notes${size} rolled off the 4 KB column; the full text is still retained in this card's note history.`;
44688
+ }
44663
44689
  function describeKanbanWriteFailure(failure, label) {
44664
44690
  if (!failure) return null;
44665
44691
  switch (failure.reason) {
@@ -45814,12 +45840,22 @@ server.tool(
45814
45840
  "kanban_get",
45815
45841
  'Read ONE of your own kanban cards IN FULL, with no truncation anywhere - description, notes, result, deliverable, every field. kanban_list caps a description at 1,200 characters and kanban_search at 300; this is the one surface where "read the whole thing" always means the whole thing. Use it whenever a card matters enough to read completely - especially a scheduled-task card, whose description IS the routine prompt you are executing: a long one may already be silently truncated everywhere else you have seen it.',
45816
45842
  {
45817
- id: external_exports.string().describe("The card id (from kanban_list, kanban_search, or any other kanban tool's response).")
45843
+ id: external_exports.string().describe("The card id (from kanban_list, kanban_search, or any other kanban tool's response)."),
45844
+ include_note_history: external_exports.boolean().optional().describe(
45845
+ "CS-1683: also return the DURABLE note history. `notes` is capped at ~4 KB and rolls off oldest-first, but every appended breadcrumb is retained in full elsewhere. Use this when a note you remember writing is no longer in `notes` \u2014 that text is not gone, it has rolled off the inline column."
45846
+ )
45818
45847
  },
45819
- async ({ id }) => {
45848
+ async ({ id, include_note_history }) => {
45820
45849
  let data;
45821
45850
  try {
45822
- data = await apiPost("/host/kanban/get", { agent_id: AGT_AGENT_ID, id }, false, 15e3, "kanban_get", true);
45851
+ data = await apiPost(
45852
+ "/host/kanban/get",
45853
+ { agent_id: AGT_AGENT_ID, id, include_note_history: include_note_history === true },
45854
+ false,
45855
+ 15e3,
45856
+ "kanban_get",
45857
+ true
45858
+ );
45823
45859
  } catch (err) {
45824
45860
  const status = err instanceof ApiPostError ? err.status : null;
45825
45861
  return {
@@ -45829,7 +45865,19 @@ server.tool(
45829
45865
  if (!data.item) {
45830
45866
  return { content: [{ type: "text", text: kanbanGetErrorMessage(404, id, "card not found") }] };
45831
45867
  }
45832
- return { content: [{ type: "text", text: renderKanbanFullCard(data.item) }] };
45868
+ const card = renderKanbanFullCard(data.item);
45869
+ return {
45870
+ content: [
45871
+ {
45872
+ type: "text",
45873
+ text: card + renderKanbanNoteHistory(
45874
+ include_note_history === true,
45875
+ data.note_history,
45876
+ data.note_history_truncated
45877
+ )
45878
+ }
45879
+ ]
45880
+ };
45833
45881
  }
45834
45882
  );
45835
45883
  server.tool(
@@ -46064,7 +46112,10 @@ server.tool(
46064
46112
  data,
46065
46113
  { id: match.id },
46066
46114
  match.title,
46067
- () => `Updated "${match.title}".`
46115
+ // CS-1683: say so when the append evicted older inline notes. `kanban_log`
46116
+ // has warned since ENG-5731; this tool did not, and it is the one whose
46117
+ // NAME does not tell you `notes` is an append at all.
46118
+ () => `Updated "${match.title}".${noteRollOffNotice(data)}`
46068
46119
  );
46069
46120
  return {
46070
46121
  content: [{ type: "text", text: outcome.text }],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integrity-labs/agt-cli",
3
- "version": "0.28.849",
3
+ "version": "0.28.851",
4
4
  "description": "Augmented Team CLI — agent provisioning and management",
5
5
  "type": "module",
6
6
  "engines": {