@integrity-labs/agt-cli 0.28.980 → 0.28.982
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-Y7FKKMA5.js → chunk-CD42ZALM.js} +2 -2
- package/dist/lib/manager-worker.js +73 -15
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/index.js +25 -3
- package/package.json +1 -1
- /package/dist/{chunk-Y7FKKMA5.js.map → chunk-CD42ZALM.js.map} +0 -0
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
|
-
|
|
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
|
|
47836
|
-
text = `Could not assign:
|
|
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
|
File without changes
|