@sjawhar/pi-legion-envoy 1.65.0 → 1.65.2
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/envoy.js +8 -7
- package/dist/legion.js +1 -1
- package/package.json +1 -1
package/dist/envoy.js
CHANGED
|
@@ -33590,6 +33590,11 @@ async function openArtifactMarks(client, resolved) {
|
|
|
33590
33590
|
...commentsResult.value.filter((comment) => !comment.resolved && comment.anchor?.artifact_id === resolved.artifact.id).map((comment) => `comment ${comment.id}`)
|
|
33591
33591
|
];
|
|
33592
33592
|
}
|
|
33593
|
+
function refusalWithCode(error48, suffix = "") {
|
|
33594
|
+
if (!(error48 instanceof DispatchServiceError))
|
|
33595
|
+
return error48;
|
|
33596
|
+
return new DispatchServiceError(error48.code, error48.status, `${error48.code}: ${error48.message}${suffix}`, error48.candidates, error48.current, error48.mismatches);
|
|
33597
|
+
}
|
|
33593
33598
|
async function executeDispatchTool(input) {
|
|
33594
33599
|
const configUrl = input.config.url;
|
|
33595
33600
|
const configToken = input.config.token;
|
|
@@ -33785,10 +33790,8 @@ async function executeDispatchTool(input) {
|
|
|
33785
33790
|
}
|
|
33786
33791
|
};
|
|
33787
33792
|
} catch (error48) {
|
|
33788
|
-
|
|
33789
|
-
|
|
33790
|
-
const taken = error48.status === 500 && newLinks.length > 0 ? `; one of ${newLinks.join(", ")} may already be linked from another issue (a URL links exactly one issue)` : "";
|
|
33791
|
-
throw new DispatchServiceError(error48.code, error48.status, `${error48.code}: ${error48.message}${taken}`, error48.candidates);
|
|
33793
|
+
const taken = error48 instanceof DispatchServiceError && error48.status === 500 && newLinks.length > 0 ? `; one of ${newLinks.join(", ")} may already be linked from another issue (a URL links exactly one issue)` : "";
|
|
33794
|
+
throw refusalWithCode(error48, taken);
|
|
33792
33795
|
}
|
|
33793
33796
|
}
|
|
33794
33797
|
case "dispatch_claim": {
|
|
@@ -33798,9 +33801,7 @@ async function executeDispatchTool(input) {
|
|
|
33798
33801
|
try {
|
|
33799
33802
|
after = release ? await client.releaseIssueClaim(issueKey, { actor }) : await client.claimIssue(issueKey, { actor });
|
|
33800
33803
|
} catch (error48) {
|
|
33801
|
-
|
|
33802
|
-
throw error48;
|
|
33803
|
-
throw new DispatchServiceError(error48.code, error48.status, `${error48.code}: ${error48.message}`, error48.candidates);
|
|
33804
|
+
throw refusalWithCode(error48);
|
|
33804
33805
|
}
|
|
33805
33806
|
const held = after.claim;
|
|
33806
33807
|
let text;
|
package/dist/legion.js
CHANGED
|
@@ -16142,7 +16142,7 @@ import { logger } from "@oh-my-pi/pi-utils";
|
|
|
16142
16142
|
// package.json
|
|
16143
16143
|
var package_default = {
|
|
16144
16144
|
name: "@sjawhar/pi-legion-envoy",
|
|
16145
|
-
version: "1.65.
|
|
16145
|
+
version: "1.65.2",
|
|
16146
16146
|
type: "module",
|
|
16147
16147
|
omp: {
|
|
16148
16148
|
extensions: [
|