@integrity-labs/agt-cli 0.28.784 → 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/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.784",
3
+ "version": "0.28.786",
4
4
  "description": "Augmented Team CLI — agent provisioning and management",
5
5
  "type": "module",
6
6
  "engines": {