@integrity-labs/agt-cli 0.28.850 → 0.28.852

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-OQSPURDB.js";
43
+ } from "../chunk-SFKO7OVI.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.850" : "dev";
5470
+ var cliVersion = true ? "0.28.852" : "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.850" : "dev";
6661
+ var cliVersion2 = true ? "0.28.852" : "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.850" : "dev";
6569
+ var agtCliVersion = true ? "0.28.852" : "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-OQSPURDB.js.map
10927
+ //# sourceMappingURL=chunk-SFKO7OVI.js.map
@@ -60,7 +60,7 @@ import {
60
60
  safeWriteJsonAtomic,
61
61
  setConfigHash,
62
62
  tripClass
63
- } from "../chunk-OQSPURDB.js";
63
+ } from "../chunk-SFKO7OVI.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.850" : "dev";
13667
+ var agtCliVersion = true ? "0.28.852" : "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
@@ -44676,6 +44676,16 @@ var ARTEFACT_KINDS_MCP = [
44676
44676
  ];
44677
44677
 
44678
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
+ }
44679
44689
  function describeKanbanWriteFailure(failure, label) {
44680
44690
  if (!failure) return null;
44681
44691
  switch (failure.reason) {
@@ -45341,6 +45351,8 @@ function buildKanbanUpdateItem(id, fields) {
45341
45351
  const item = { id };
45342
45352
  if (fields.notes !== void 0) item.notes = fields.notes;
45343
45353
  if (fields.result !== void 0) item.result = fields.result;
45354
+ if (fields.new_title !== void 0) item.new_title = fields.new_title;
45355
+ if (fields.new_description !== void 0) item.new_description = fields.new_description;
45344
45356
  return item;
45345
45357
  }
45346
45358
 
@@ -46052,12 +46064,22 @@ server.tool(
46052
46064
  );
46053
46065
  server.tool(
46054
46066
  "kanban_update",
46055
- "Update notes or result on a kanban item without changing its status.",
46067
+ "Update notes, result, title or description on a kanban item without changing its status. CS-1682: `new_title`/`new_description` CORRECT the card itself \u2014 use them when a card was created on a premise that turned out to be wrong, so later readers see the corrected framing rather than the original error with a retraction buried in notes. Every content change is recorded append-only in the card's event history with its before and after, so a correction is visible as a correction and can never be a silent rewrite.",
46056
46068
  {
46057
46069
  id: external_exports.string().optional().describe("Item UUID (preferred)"),
46058
- title: external_exports.string().optional().describe("Item title for fuzzy match (if no id)"),
46070
+ title: external_exports.string().optional().describe(
46071
+ "SELECTOR ONLY \u2014 an existing item title to fuzzy-match when you have no id. This does NOT rename the card; to change the title use new_title."
46072
+ ),
46059
46073
  notes: external_exports.string().optional().describe("Progress notes to append"),
46060
- result: external_exports.string().optional().describe("Result/output produced")
46074
+ result: external_exports.string().optional().describe("Result/output produced"),
46075
+ new_title: external_exports.string().refine((v) => v.trim().length > 0, {
46076
+ message: "new_title cannot be empty or whitespace-only."
46077
+ }).optional().describe(
46078
+ "CS-1682: replace the card's title. Use to correct a title that states something untrue; the previous title is preserved in the card's event history."
46079
+ ),
46080
+ new_description: external_exports.string().optional().describe(
46081
+ "CS-1682: replace the card's description. Use to correct a description founded on a false premise; the previous text is preserved in the card's event history."
46082
+ )
46061
46083
  },
46062
46084
  async (params) => {
46063
46085
  if (!params.id && !params.title) {
@@ -46095,14 +46117,27 @@ server.tool(
46095
46117
  const data = await apiPost("/host/kanban", {
46096
46118
  agent_id: AGT_AGENT_ID,
46097
46119
  update: [
46098
- buildKanbanUpdateItem(match.id, { notes: params.notes, result: params.result })
46120
+ buildKanbanUpdateItem(match.id, {
46121
+ notes: params.notes,
46122
+ result: params.result,
46123
+ // CS-1682: `new_*` all the way down to the wire, NOT plain `title`.
46124
+ // `/host/kanban` resolves the card by `upd.title` when no id is sent,
46125
+ // so a rename spelled `title` would retarget the write instead of
46126
+ // renaming anything. Keeping the names distinct end-to-end is what
46127
+ // makes that impossible rather than merely unlikely.
46128
+ new_title: params.new_title,
46129
+ new_description: params.new_description
46130
+ })
46099
46131
  ]
46100
46132
  });
46101
46133
  const outcome = describeKanbanWriteOutcome(
46102
46134
  data,
46103
46135
  { id: match.id },
46104
46136
  match.title,
46105
- () => `Updated "${match.title}".`
46137
+ // CS-1683: say so when the append evicted older inline notes. `kanban_log`
46138
+ // has warned since ENG-5731; this tool did not, and it is the one whose
46139
+ // NAME does not tell you `notes` is an append at all.
46140
+ () => `Updated "${match.title}".${noteRollOffNotice(data)}`
46106
46141
  );
46107
46142
  return {
46108
46143
  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.850",
3
+ "version": "0.28.852",
4
4
  "description": "Augmented Team CLI — agent provisioning and management",
5
5
  "type": "module",
6
6
  "engines": {