@integrity-labs/agt-cli 0.28.785 → 0.28.786

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-7DP5AYK4.js";
43
+ } from "../chunk-XV4FIKJW.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.785" : "dev";
5470
+ var cliVersion = true ? "0.28.786" : "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.785" : "dev";
6661
+ var cliVersion2 = true ? "0.28.786" : "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) => {
@@ -6518,7 +6518,7 @@ function exchangeFailureKind(err) {
6518
6518
  }
6519
6519
 
6520
6520
  // src/lib/api-client.ts
6521
- var agtCliVersion = true ? "0.28.785" : "dev";
6521
+ var agtCliVersion = true ? "0.28.786" : "dev";
6522
6522
  var lastConfigHash = null;
6523
6523
  function setConfigHash(hash) {
6524
6524
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -10755,4 +10755,4 @@ export {
10755
10755
  managerInstallSystemUnitCommand,
10756
10756
  managerUninstallSystemUnitCommand
10757
10757
  };
10758
- //# sourceMappingURL=chunk-7DP5AYK4.js.map
10758
+ //# sourceMappingURL=chunk-XV4FIKJW.js.map
@@ -58,7 +58,7 @@ import {
58
58
  safeWriteJsonAtomic,
59
59
  setConfigHash,
60
60
  tripClass
61
- } from "../chunk-7DP5AYK4.js";
61
+ } from "../chunk-XV4FIKJW.js";
62
62
  import {
63
63
  getProjectDir as getProjectDir2,
64
64
  getReadyTasks,
@@ -13575,7 +13575,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
13575
13575
  var lastVersionCheckAt = 0;
13576
13576
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
13577
13577
  var lastResponsivenessProbeAt = 0;
13578
- var agtCliVersion = true ? "0.28.785" : "dev";
13578
+ var agtCliVersion = true ? "0.28.786" : "dev";
13579
13579
  function resolveBrewPath(execFileSync2) {
13580
13580
  try {
13581
13581
  const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
package/dist/mcp/index.js CHANGED
@@ -22392,6 +22392,17 @@ function kanbanAddResultText(data, submittedTitle, status) {
22392
22392
  ${first.duplicate_hint}` : added;
22393
22393
  }
22394
22394
 
22395
+ // src/kanban-assign-result.ts
22396
+ function kanbanAssignResultText(data, fallbackTargetAgent, fallbackTargetTeam) {
22397
+ if (!data.ok) return `Failed to assign task to ${fallbackTargetAgent}.`;
22398
+ const where = data.cross_team ? ` on team ${data.target_team ?? fallbackTargetTeam}` : "";
22399
+ const inOrg = data.organization_name ? ` in ${data.organization_name}` : "";
22400
+ const confirmation = `Assigned "${data.title}" to ${data.target_agent}${where}${inOrg} (id: ${data.id}). It will appear on their board on their next refresh.`;
22401
+ return data.duplicate_hint ? `${confirmation}
22402
+
22403
+ ${data.duplicate_hint}` : confirmation;
22404
+ }
22405
+
22395
22406
  // src/index.ts
22396
22407
  import { homedir as homedir3, tmpdir } from "os";
22397
22408
  import { basename, isAbsolute, join as join4, resolve as pathResolve, sep } from "path";
@@ -45624,36 +45635,37 @@ server.tool(
45624
45635
  },
45625
45636
  async (params) => {
45626
45637
  try {
45627
- const data = await apiPost("/host/kanban/assign", {
45628
- agent_id: AGT_AGENT_ID,
45629
- target_agent: params.target_agent,
45630
- // Only sent when assigning across teams — the route branches on its
45631
- // presence, so omit it for the same-team path. The schema rejects empty
45632
- // strings (.trim().min(1)), so a present value is always meaningful;
45633
- // check presence (!== undefined), not truthiness.
45634
- ...params.target_team !== void 0 ? { target_team: params.target_team } : {},
45635
- title: params.title,
45636
- description: params.description,
45637
- priority: params.priority ?? 2,
45638
- // ENG-6967: only send status when set, so the route applies its default
45639
- // ('todo') and the same-team handoff path stays byte-for-byte unchanged.
45640
- ...params.status !== void 0 ? { status: params.status } : {},
45641
- deliverable: params.deliverable,
45642
- // CS-1438: only sent when set; the route treats absence as board-ack-only.
45643
- ...params.deliver_to !== void 0 ? { deliver_to: params.deliver_to } : {},
45644
- // ENG-8649: only sent when set, so an existing caller's request body is
45645
- // byte-for-byte unchanged and the route keeps its channel-origin path.
45646
- ...params.source_integration !== void 0 ? { source_integration: params.source_integration } : {},
45647
- ...params.source_external_id !== void 0 ? { source_external_id: params.source_external_id } : {},
45648
- ...params.source_url !== void 0 ? { source_url: params.source_url } : {}
45649
- });
45650
- const where = data.cross_team ? ` on team ${data.target_team ?? params.target_team}` : "";
45651
- const inOrg = data.organization_name ? ` in ${data.organization_name}` : "";
45638
+ const data = await apiPost(
45639
+ "/host/kanban/assign",
45640
+ {
45641
+ agent_id: AGT_AGENT_ID,
45642
+ target_agent: params.target_agent,
45643
+ // Only sent when assigning across teams — the route branches on its
45644
+ // presence, so omit it for the same-team path. The schema rejects empty
45645
+ // strings (.trim().min(1)), so a present value is always meaningful;
45646
+ // check presence (!== undefined), not truthiness.
45647
+ ...params.target_team !== void 0 ? { target_team: params.target_team } : {},
45648
+ title: params.title,
45649
+ description: params.description,
45650
+ priority: params.priority ?? 2,
45651
+ // ENG-6967: only send status when set, so the route applies its default
45652
+ // ('todo') and the same-team handoff path stays byte-for-byte unchanged.
45653
+ ...params.status !== void 0 ? { status: params.status } : {},
45654
+ deliverable: params.deliverable,
45655
+ // CS-1438: only sent when set; the route treats absence as board-ack-only.
45656
+ ...params.deliver_to !== void 0 ? { deliver_to: params.deliver_to } : {},
45657
+ // ENG-8649: only sent when set, so an existing caller's request body is
45658
+ // byte-for-byte unchanged and the route keeps its channel-origin path.
45659
+ ...params.source_integration !== void 0 ? { source_integration: params.source_integration } : {},
45660
+ ...params.source_external_id !== void 0 ? { source_external_id: params.source_external_id } : {},
45661
+ ...params.source_url !== void 0 ? { source_url: params.source_url } : {}
45662
+ }
45663
+ );
45652
45664
  return {
45653
45665
  content: [
45654
45666
  {
45655
45667
  type: "text",
45656
- text: data.ok ? `Assigned "${data.title}" to ${data.target_agent}${where}${inOrg} (id: ${data.id}). It will appear on their board on their next refresh.` : `Failed to assign task to ${params.target_agent}.`
45668
+ text: kanbanAssignResultText(data, params.target_agent, params.target_team)
45657
45669
  }
45658
45670
  ]
45659
45671
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integrity-labs/agt-cli",
3
- "version": "0.28.785",
3
+ "version": "0.28.786",
4
4
  "description": "Augmented Team CLI — agent provisioning and management",
5
5
  "type": "module",
6
6
  "engines": {