@integrity-labs/agt-cli 0.28.980 → 0.28.981

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-Y7FKKMA5.js";
43
+ } from "../chunk-AT643QAO.js";
44
44
  import {
45
45
  getProjectDir,
46
46
  isSessionResumeDisabled,
@@ -5472,7 +5472,7 @@ import { execFileSync, execSync } from "child_process";
5472
5472
  import { existsSync as existsSync11, realpathSync as realpathSync2 } from "fs";
5473
5473
  import chalk18 from "chalk";
5474
5474
  import ora16 from "ora";
5475
- var cliVersion = true ? "0.28.980" : "dev";
5475
+ var cliVersion = true ? "0.28.981" : "dev";
5476
5476
  async function fetchLatestVersion() {
5477
5477
  const host2 = getHost();
5478
5478
  if (!host2) return null;
@@ -6732,7 +6732,7 @@ function handleError(err) {
6732
6732
  }
6733
6733
 
6734
6734
  // src/bin/agt.ts
6735
- var cliVersion2 = true ? "0.28.980" : "dev";
6735
+ var cliVersion2 = true ? "0.28.981" : "dev";
6736
6736
  var program = new Command();
6737
6737
  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");
6738
6738
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -6967,7 +6967,7 @@ function exchangeFailureKind(err) {
6967
6967
  }
6968
6968
 
6969
6969
  // src/lib/api-client.ts
6970
- var agtCliVersion = true ? "0.28.980" : "dev";
6970
+ var agtCliVersion = true ? "0.28.981" : "dev";
6971
6971
  var lastConfigHash = null;
6972
6972
  function setConfigHash(hash) {
6973
6973
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -11709,4 +11709,4 @@ export {
11709
11709
  managerInstallSystemUnitCommand,
11710
11710
  managerUninstallSystemUnitCommand
11711
11711
  };
11712
- //# sourceMappingURL=chunk-Y7FKKMA5.js.map
11712
+ //# sourceMappingURL=chunk-AT643QAO.js.map
@@ -63,7 +63,7 @@ import {
63
63
  safeWriteJsonAtomic,
64
64
  setConfigHash,
65
65
  tripClass
66
- } from "../chunk-Y7FKKMA5.js";
66
+ } from "../chunk-AT643QAO.js";
67
67
  import {
68
68
  getProjectDir as getProjectDir2,
69
69
  getReadyTasks,
@@ -13955,7 +13955,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
13955
13955
  var lastVersionCheckAt = 0;
13956
13956
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
13957
13957
  var lastResponsivenessProbeAt = 0;
13958
- var agtCliVersion = true ? "0.28.980" : "dev";
13958
+ var agtCliVersion = true ? "0.28.981" : "dev";
13959
13959
  function resolveBrewPath(execFileSync2) {
13960
13960
  try {
13961
13961
  const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
package/dist/mcp/index.js CHANGED
@@ -46674,6 +46674,21 @@ function describeAssignHumanResult(resp, email2) {
46674
46674
  isError: false
46675
46675
  };
46676
46676
  }
46677
+ function extractApiErrorMessage(thrownMessage) {
46678
+ const sep3 = thrownMessage.indexOf(": ");
46679
+ if (sep3 === -1) return null;
46680
+ const body = thrownMessage.slice(sep3 + 2).trim();
46681
+ if (body.length === 0) return null;
46682
+ try {
46683
+ const parsed = JSON.parse(body);
46684
+ if (parsed && typeof parsed === "object") {
46685
+ const err = parsed.error;
46686
+ if (typeof err === "string" && err.trim().length > 0) return err.trim();
46687
+ }
46688
+ } catch {
46689
+ }
46690
+ return null;
46691
+ }
46677
46692
 
46678
46693
  // src/artefact-source.ts
46679
46694
  var SOURCE_READBACK_MAX_CHUNKS = 128;
@@ -46816,7 +46831,12 @@ ${mgr}` : head;
46816
46831
  });
46817
46832
  const peopleLines = people.map((p2) => {
46818
46833
  const idClause = p2.person_id ? ` [person_id: ${p2.person_id}]` : "";
46819
- return ` \u2022 ${p2.name ?? p2.email} <${p2.email}>${slackTag(p2.slack_user_id)}${idClause} \u2192 assign_kanban_to_human assignee_email="${p2.email}"`;
46834
+ const head = ` \u2022 ${p2.name ?? p2.email} <${p2.email}>${slackTag(p2.slack_user_id)}${idClause}`;
46835
+ if (p2.assignable === false) {
46836
+ const via = p2.person_id ? `kanban_move waiting_on_person="${p2.person_id}"` : "kanban_move waiting_on_person (person_id unavailable on this entry)";
46837
+ return `${head} \u2192 CONTACT ONLY (no platform account, so they cannot be given a card): ${via}`;
46838
+ }
46839
+ return `${head} \u2192 assign_kanban_to_human assignee_email="${p2.email}"`;
46820
46840
  });
46821
46841
  const sections = [];
46822
46842
  if (agents.length > 0) {
@@ -47832,8 +47852,10 @@ server.tool(
47832
47852
  } catch (err) {
47833
47853
  const msg = err instanceof Error ? err.message : String(err);
47834
47854
  let text;
47835
- if (/returned 404/.test(msg)) {
47836
- text = `Could not assign: no teammate found for "${params.assignee_email}" in your team's organization. Check the email address.`;
47855
+ if (/returned 422/.test(msg)) {
47856
+ text = `Could not assign: ${extractApiErrorMessage(msg) ?? msg}`;
47857
+ } else if (/returned 404/.test(msg)) {
47858
+ text = `Could not assign: no teammate found for "${params.assignee_email}" in your team's organization. Check the email address \u2014 or, if you took it from directory_lookup, re-read that entry: it marks who can be assigned and who can only be contacted.`;
47837
47859
  } else if (/returned 409/.test(msg)) {
47838
47860
  text = `Could not assign: "${params.assignee_email}" matches more than one person. Use a unique email address.`;
47839
47861
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integrity-labs/agt-cli",
3
- "version": "0.28.980",
3
+ "version": "0.28.981",
4
4
  "description": "Augmented Team CLI — agent provisioning and management",
5
5
  "type": "module",
6
6
  "engines": {