@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/bin/agt.js +3 -3
- package/dist/{chunk-VY6C5UIH.js → chunk-XV4FIKJW.js} +2 -2
- package/dist/lib/manager-worker.js +29 -9
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/index.js +38 -26
- package/package.json +1 -1
- /package/dist/{chunk-VY6C5UIH.js.map → chunk-XV4FIKJW.js.map} +0 -0
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(
|
|
45628
|
-
|
|
45629
|
-
|
|
45630
|
-
|
|
45631
|
-
|
|
45632
|
-
|
|
45633
|
-
|
|
45634
|
-
|
|
45635
|
-
|
|
45636
|
-
|
|
45637
|
-
|
|
45638
|
-
|
|
45639
|
-
|
|
45640
|
-
|
|
45641
|
-
|
|
45642
|
-
|
|
45643
|
-
|
|
45644
|
-
|
|
45645
|
-
|
|
45646
|
-
|
|
45647
|
-
|
|
45648
|
-
|
|
45649
|
-
|
|
45650
|
-
|
|
45651
|
-
|
|
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
|
|
45668
|
+
text: kanbanAssignResultText(data, params.target_agent, params.target_team)
|
|
45657
45669
|
}
|
|
45658
45670
|
]
|
|
45659
45671
|
};
|
package/package.json
CHANGED
|
File without changes
|