@integrity-labs/agt-cli 0.28.1135 → 0.28.1136

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-5C52XNSX.js";
43
+ } from "../chunk-AMW44JCN.js";
44
44
  import {
45
45
  getProjectDir,
46
46
  isSessionResumeDisabled,
@@ -5474,7 +5474,7 @@ import { execFileSync, execSync } from "child_process";
5474
5474
  import { existsSync as existsSync11, realpathSync as realpathSync2 } from "fs";
5475
5475
  import chalk18 from "chalk";
5476
5476
  import ora16 from "ora";
5477
- var cliVersion = true ? "0.28.1135" : "dev";
5477
+ var cliVersion = true ? "0.28.1136" : "dev";
5478
5478
  async function fetchLatestVersion() {
5479
5479
  const host2 = getHost();
5480
5480
  if (!host2) return null;
@@ -6734,7 +6734,7 @@ function handleError(err) {
6734
6734
  }
6735
6735
 
6736
6736
  // src/bin/agt.ts
6737
- var cliVersion2 = true ? "0.28.1135" : "dev";
6737
+ var cliVersion2 = true ? "0.28.1136" : "dev";
6738
6738
  var program = new Command();
6739
6739
  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
6740
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -8076,7 +8076,7 @@ function exchangeFailureKind(err) {
8076
8076
  }
8077
8077
 
8078
8078
  // src/lib/api-client.ts
8079
- var agtCliVersion = true ? "0.28.1135" : "dev";
8079
+ var agtCliVersion = true ? "0.28.1136" : "dev";
8080
8080
  var lastConfigHash = null;
8081
8081
  function setConfigHash(hash) {
8082
8082
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -13227,4 +13227,4 @@ export {
13227
13227
  managerInstallSystemUnitCommand,
13228
13228
  managerUninstallSystemUnitCommand
13229
13229
  };
13230
- //# sourceMappingURL=chunk-5C52XNSX.js.map
13230
+ //# sourceMappingURL=chunk-AMW44JCN.js.map
@@ -76,7 +76,7 @@ import {
76
76
  setConfigHash,
77
77
  shellGuard,
78
78
  tripClass
79
- } from "../chunk-5C52XNSX.js";
79
+ } from "../chunk-AMW44JCN.js";
80
80
  import {
81
81
  getProjectDir as getProjectDir2,
82
82
  getReadyTasks,
@@ -15249,7 +15249,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
15249
15249
  var lastVersionCheckAt = 0;
15250
15250
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
15251
15251
  var lastResponsivenessProbeAt = 0;
15252
- var agtCliVersion = true ? "0.28.1135" : "dev";
15252
+ var agtCliVersion = true ? "0.28.1136" : "dev";
15253
15253
  function resolveBrewPath(execFileSync3) {
15254
15254
  try {
15255
15255
  const out = execFileSync3("which", ["brew"], { timeout: 5e3 }).toString().trim();
package/dist/mcp/index.js CHANGED
@@ -22443,6 +22443,25 @@ function kanbanAddResultText(data, submittedTitle, status) {
22443
22443
  ${first.duplicate_hint}` : added;
22444
22444
  }
22445
22445
 
22446
+ // src/assign-project-text.ts
22447
+ var TOOL = {
22448
+ artefact: { tool: "artefacts_assign_project", idArg: "artefact_id" },
22449
+ task: { tool: "kanban_assign_project", idArg: "kanban_item_id" }
22450
+ };
22451
+ function describeAssignProject(o) {
22452
+ const what = `${o.kind} ${o.leafId}`;
22453
+ const head = o.projectId ? `Assigned ${what} to project ${o.projectId}.` : `Cleared the project link on ${what}.`;
22454
+ if (o.previousProjectId === void 0) return head;
22455
+ const prev = o.previousProjectId;
22456
+ if (prev === o.projectId) {
22457
+ return `${head} No change: it was already ${prev ? `in project ${prev}` : "unfiled"}.`;
22458
+ }
22459
+ const { tool, idArg } = TOOL[o.kind];
22460
+ const from = prev ? `It was previously in project ${prev}.` : "It previously had no project.";
22461
+ const undoArg = prev ? `project_id="${prev}"` : "project_id=null";
22462
+ return `${head} ${from} To undo: ${tool} with ${idArg}="${o.leafId}", ${undoArg}.`;
22463
+ }
22464
+
22446
22465
  // src/kanban-assign-result.ts
22447
22466
  function kanbanAssignResultText(data, fallbackTargetAgent, fallbackTargetTeam) {
22448
22467
  if (!data.ok) return `Failed to assign task to ${fallbackTargetAgent}.`;
@@ -47077,7 +47096,9 @@ function renderKanbanItemLine(item, nowMs, suffix = "") {
47077
47096
  const res = item.result ? ` \u2713 ${item.result}` : "";
47078
47097
  const wait = renderWaitingClause(item, nowMs);
47079
47098
  const by = renderAssignerClause(item);
47080
- const head = `- [${pri}] ${item.title}${wait}${est}${del}${res}${by} (id: ${item.id})${suffix}`;
47099
+ const project = describeKanbanProject(item);
47100
+ const proj = project ? ` [project: ${project}]` : "";
47101
+ const head = `- [${pri}] ${item.title}${wait}${est}${del}${res}${by}${proj} (id: ${item.id})${suffix}`;
47081
47102
  const desc = renderDescriptionClause(item);
47082
47103
  return desc ? `${head}
47083
47104
  ${desc}` : head;
@@ -47147,6 +47168,10 @@ var BLOCKED_ON_ME_SECTION_HEADING = "You are blocking these (another agent has s
47147
47168
  var BLOCKED_ON_ME_SECTION_NOTE = "_Another agent has PARKED its own work until you act. These are not your cards and not pullable work \u2014 you cannot move, note or complete them, and they do not count toward your in-progress load. Do the thing named, then answer with `kanban_respond` (card_id + your answer) \u2014 that delivers it ON the parked card and un-parks it. Do NOT open a second card to carry the answer._";
47148
47169
  var HUMAN_ASSIGNED_SECTION_HEADING = "Assigned to a person (not yours to action)";
47149
47170
  var HUMAN_ASSIGNED_SECTION_NOTE = "_These belong to a person, not to you. You cannot move, note or complete them \u2014 every kanban write is refused. If the work is finished (or was never really theirs), use `kanban_recall` to pull the card back onto your board, then close it as normal._";
47171
+ function describeKanbanProject(item) {
47172
+ if (!item.project_id) return null;
47173
+ return item.project_name ? `${item.project_name} (${item.project_id})` : item.project_id;
47174
+ }
47150
47175
  function fullCardField(label, value) {
47151
47176
  if (value === null || value === void 0 || value === "") return null;
47152
47177
  return `${label}: ${value}`;
@@ -47192,6 +47217,10 @@ function renderKanbanFullCard(item, nowMs = Date.now(), frameToken = newFrameTok
47192
47217
  ].filter((l) => l !== null);
47193
47218
  if (source.length) lines.push(source.join(" \xB7 "));
47194
47219
  lines.push(`assigned by: ${describeKanbanAssigner(item, { always: true })}`);
47220
+ const project = describeKanbanProject(item);
47221
+ if (project) lines.push(`project: ${project}`);
47222
+ else if (Object.prototype.hasOwnProperty.call(item, "project_id")) lines.push("project: none (not filed under a project)");
47223
+ else lines.push("project: unknown (this API did not report it)");
47195
47224
  if (item.assignee_type && item.assignee_type !== "agent") {
47196
47225
  lines.push(`assigned to: ${item.assignee_type}${item.assignee_user_id ? ` (${item.assignee_user_id})` : ""}`);
47197
47226
  }
@@ -48658,6 +48687,8 @@ server.tool(
48658
48687
  - [${item.status}${via}, ${day}] ${item.title} (id: ${item.id})`);
48659
48688
  const assignedBy = renderKanbanSearchAssignerLine(item);
48660
48689
  if (assignedBy) lines.push(assignedBy);
48690
+ const project = describeKanbanProject(item);
48691
+ if (project) lines.push(` project: ${project}`);
48661
48692
  const descLines = renderKanbanSearchDescription(item, KANBAN_SEARCH_DESCRIPTION_MAX_CHARS);
48662
48693
  if (descLines) lines.push(descLines);
48663
48694
  if (item.deliverable) lines.push(` \u2192 ${item.deliverable}`);
@@ -52277,11 +52308,16 @@ async function assignArtefactProjectText(params) {
52277
52308
  `/host/artefact/${encodeURIComponent(params.artefact_id)}/assign-project`,
52278
52309
  { agent_id: AGT_AGENT_ID, project_id: params.project_id }
52279
52310
  );
52280
- return data.project_id ? `Assigned artefact ${data.artefact_id} to project ${data.project_id}.` : `Cleared the project link on artefact ${data.artefact_id}.`;
52311
+ return describeAssignProject({
52312
+ kind: "artefact",
52313
+ leafId: data.artefact_id,
52314
+ projectId: data.project_id,
52315
+ previousProjectId: data.previous_project_id
52316
+ });
52281
52317
  }
52282
52318
  server.tool(
52283
52319
  "artefacts_assign_project",
52284
- "Assign an already-published artefact to a project, or clear its project link. Pass the project_id from projects_list to assign, or null to remove the artefact from its current project. Use this to group existing work; to set a project when first publishing, pass project_id to the publish tool instead.",
52320
+ "Assign an already-published artefact to a project, or clear its project link. Pass the project_id from projects_list to assign, or null to remove the artefact from its current project. The reply names the project it was in before and the exact call to undo the move. Use this to group existing work; to set a project when first publishing, pass project_id to the publish tool instead.",
52285
52321
  {
52286
52322
  artefact_id: external_exports.string().uuid().describe("The artefact id returned by artefacts_list"),
52287
52323
  project_id: external_exports.string().uuid().nullable().describe("Project id to assign (from projects_list), or null to clear the link")
@@ -52295,11 +52331,16 @@ async function assignKanbanProjectText(params) {
52295
52331
  `/host/kanban/${encodeURIComponent(params.kanban_item_id)}/assign-project`,
52296
52332
  { agent_id: AGT_AGENT_ID, project_id: params.project_id }
52297
52333
  );
52298
- return data.project_id ? `Assigned task ${data.kanban_item_id} to project ${data.project_id}.` : `Cleared the project link on task ${data.kanban_item_id}.`;
52334
+ return describeAssignProject({
52335
+ kind: "task",
52336
+ leafId: data.kanban_item_id,
52337
+ projectId: data.project_id,
52338
+ previousProjectId: data.previous_project_id
52339
+ });
52299
52340
  }
52300
52341
  server.tool(
52301
52342
  "kanban_assign_project",
52302
- "Assign an existing kanban task to a project, or clear its project link. Pass the project_id from projects_list to assign, or null to remove the task from its current project. To set a project when first creating a task, pass project_id to kanban_add instead.",
52343
+ "Assign an existing kanban task to a project, or clear its project link. Pass the project_id from projects_list to assign, or null to remove the task from its current project. The reply names the project it was in before and the exact call to undo the move. kanban_get shows a task's current project. To set a project when first creating a task, pass project_id to kanban_add instead.",
52303
52344
  {
52304
52345
  kanban_item_id: external_exports.string().uuid().describe("The kanban task id returned by kanban_list"),
52305
52346
  project_id: external_exports.string().uuid().nullable().describe("Project id to assign (from projects_list), or null to clear the link")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integrity-labs/agt-cli",
3
- "version": "0.28.1135",
3
+ "version": "0.28.1136",
4
4
  "description": "Augmented Team CLI — agent provisioning and management",
5
5
  "type": "module",
6
6
  "engines": {