@integrity-labs/agt-cli 0.28.159 → 0.28.161

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/mcp/index.js CHANGED
@@ -21858,10 +21858,13 @@ server.tool(
21858
21858
  );
21859
21859
  server.tool(
21860
21860
  "kanban_assign",
21861
- "Delegate a task to ANOTHER agent on your team by placing a new card on THEIR board. Use this to hand off or route work to a teammate agent (e.g. you triage a request and route the fix to a specialist agent). This is different from kanban_add, which adds a card to YOUR OWN board. The target must be an agent on your team \u2014 you cannot assign across teams. When the target finishes, you get a completion notice back on your board.",
21861
+ "Delegate a task to ANOTHER agent by placing a new card on THEIR board. Use this to hand off or route work to a teammate agent (e.g. you triage a request and route the fix to a specialist agent). This is different from kanban_add, which adds a card to YOUR OWN board. By default the target must be an agent on your OWN team. To assign across teams within your organization, also pass `target_team` (the other team's slug) \u2014 this only works if your org has enabled cross-team assignment and a peer grant links the two teams; otherwise it reads as not-found. When the target finishes, you get a completion notice back on your board.",
21862
21862
  {
21863
21863
  target_agent: external_exports.string().describe(
21864
- "The teammate to assign to: their agent code_name (kebab-case) or agent UUID. Must be on your team."
21864
+ "The teammate to assign to: their agent code_name (kebab-case) or agent UUID. On your own team unless target_team is also set."
21865
+ ),
21866
+ target_team: external_exports.string().trim().min(1).optional().describe(
21867
+ "Optional: the slug (or UUID) of ANOTHER team in your organization to assign across teams. Omit for a same-team handoff. Requires the org to have cross-team assignment enabled and a peer grant; otherwise the target reads as not-found."
21865
21868
  ),
21866
21869
  title: external_exports.string().describe("Task title (max 200 chars)"),
21867
21870
  description: external_exports.string().optional().describe("Detailed description of what needs doing"),
@@ -21873,27 +21876,34 @@ server.tool(
21873
21876
  const data = await apiPost("/host/kanban/assign", {
21874
21877
  agent_id: AGT_AGENT_ID,
21875
21878
  target_agent: params.target_agent,
21879
+ // Only sent when assigning across teams — the route branches on its
21880
+ // presence, so omit it for the same-team path. The schema rejects empty
21881
+ // strings (.trim().min(1)), so a present value is always meaningful;
21882
+ // check presence (!== undefined), not truthiness.
21883
+ ...params.target_team !== void 0 ? { target_team: params.target_team } : {},
21876
21884
  title: params.title,
21877
21885
  description: params.description,
21878
21886
  priority: params.priority ?? 2,
21879
21887
  deliverable: params.deliverable
21880
21888
  });
21889
+ const where = data.cross_team ? ` on team ${data.target_team ?? params.target_team}` : "";
21881
21890
  return {
21882
21891
  content: [
21883
21892
  {
21884
21893
  type: "text",
21885
- text: data.ok ? `Assigned "${data.title}" to ${data.target_agent} (id: ${data.id}). It will appear on their board on their next refresh.` : `Failed to assign task to ${params.target_agent}.`
21894
+ text: data.ok ? `Assigned "${data.title}" to ${data.target_agent}${where} (id: ${data.id}). It will appear on their board on their next refresh.` : `Failed to assign task to ${params.target_agent}.`
21886
21895
  }
21887
21896
  ]
21888
21897
  };
21889
21898
  } catch (err) {
21890
21899
  const msg = err instanceof Error ? err.message : String(err);
21891
21900
  const notFound = /returned 404/.test(msg);
21901
+ const notFoundText = params.target_team ? `Could not assign: no agent "${params.target_agent}" reachable on team "${params.target_team}". Check the team slug and agent code_name, and note cross-team assignment only works when your org has enabled it and a peer grant links the teams.` : `Could not assign: no agent "${params.target_agent}" found on your team. Check the code_name and make sure they're a teammate on the same team.`;
21892
21902
  return {
21893
21903
  content: [
21894
21904
  {
21895
21905
  type: "text",
21896
- text: notFound ? `Could not assign: no agent "${params.target_agent}" found on your team. Check the code_name and make sure they're a teammate on the same team.` : `Could not assign task to ${params.target_agent}: ${msg}`
21906
+ text: notFound ? notFoundText : `Could not assign task to ${params.target_agent}: ${msg}`
21897
21907
  }
21898
21908
  ],
21899
21909
  isError: true
@@ -34,8 +34,8 @@ import {
34
34
  writeDirectChatSessionState,
35
35
  writeEgressAllowlist,
36
36
  writePersistentClaudeWrapper
37
- } from "./chunk-TNKKZHEQ.js";
38
- import "./chunk-SAAK2IP4.js";
37
+ } from "./chunk-2D5COEAS.js";
38
+ import "./chunk-CQZDKD2U.js";
39
39
  import "./chunk-XWVM4KPK.js";
40
40
  export {
41
41
  EGRESS_BASELINE_DOMAINS,
@@ -74,4 +74,4 @@ export {
74
74
  writeEgressAllowlist,
75
75
  writePersistentClaudeWrapper
76
76
  };
77
- //# sourceMappingURL=persistent-session-K5CFAUY7.js.map
77
+ //# sourceMappingURL=persistent-session-3AC6FSX6.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  paneLogPath
3
- } from "./chunk-TNKKZHEQ.js";
4
- import "./chunk-SAAK2IP4.js";
3
+ } from "./chunk-2D5COEAS.js";
4
+ import "./chunk-CQZDKD2U.js";
5
5
  import "./chunk-XWVM4KPK.js";
6
6
 
7
7
  // src/lib/responsiveness-probe.ts
@@ -304,4 +304,4 @@ export {
304
304
  readAndResetChannelDeflections,
305
305
  readAndResetChannelLaneClassifications
306
306
  };
307
- //# sourceMappingURL=responsiveness-probe-5BQI3RNU.js.map
307
+ //# sourceMappingURL=responsiveness-probe-ZXB5REIY.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integrity-labs/agt-cli",
3
- "version": "0.28.159",
3
+ "version": "0.28.161",
4
4
  "description": "Augmented Team CLI — agent provisioning and management",
5
5
  "type": "module",
6
6
  "engines": {