@sjawhar/pi-legion 21.0.1 → 21.1.0
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/legion.js +20 -10
- package/package.json +1 -1
package/dist/legion.js
CHANGED
|
@@ -13754,6 +13754,8 @@ function namedDirectory(harness, env) {
|
|
|
13754
13754
|
return nonEmpty(env[HARNESS_DIRECTORY_VARIABLE[harness]]);
|
|
13755
13755
|
}
|
|
13756
13756
|
function harnessDirectory(harness, env) {
|
|
13757
|
+
if (harness === "codex")
|
|
13758
|
+
return;
|
|
13757
13759
|
for (const plugin of harness === "command" ? PLUGIN_HARNESSES : [harness]) {
|
|
13758
13760
|
if (harness === "command" && plugin === "claude" && env.CLAUDE_CODE_CHILD_SESSION !== "1") {
|
|
13759
13761
|
continue;
|
|
@@ -14714,7 +14716,7 @@ var dispatchToolSpecs = [
|
|
|
14714
14716
|
verdict: "pass",
|
|
14715
14717
|
commit: "1111111111111111111111111111111111111111"
|
|
14716
14718
|
},
|
|
14717
|
-
description: "Record one result of one check of an issue's Verification document, or retract a result " + "recorded before. A record prints the pull-request body line it implies. Write that line " + "into the pull-request body unchanged: it is the one grammar every writer uses, and it " + "carries no link to Dispatch. " + "Name the check by its block id. Where two Verification documents in reach hold that id, " + "name it by its canonical reference (dispatch://KEY/artifact/verification-md#b-<id>). " + "409 CHECK_AMBIGUOUS names both documents. An id no Verification document of the issue " + "or of an issue above it holds is 400 UNKNOWN_CHECK. " + `${CHECK_PROVED_BY_CI}. ` + "Dispatch reads its result from that run, so a record for it is 409 " + "CHECK_PROVED_BY_CI from every role, which names the check and the run. " + "A pass that counts a failed, a skipped or an excluded case contradicts itself, and is " + "400 RESULT_CONTRADICTS. " + "Dispatch asks GitHub whether the repository of the check's issue holds the commit. A " + "commit that repository does not hold is 400 RESULT_COMMIT_UNKNOWN, which names the " + "commit and that owner/repo. Record the result after the commit is pushed. A repository " + "Dispatch cannot read records the result as before. " + "The result is recorded against the check's own issue, so a child's run of a parent's " + "check appears under that check. A closed issue takes a result only for a check whose " + "when is after_merge or default_branch, the production check after the merge. It refuses " + "every other record with 409 ISSUE_CLOSED, as it refuses every other write. " + RESULT_RETRACT_RULE + " The retraction keeps both records: the result stays readable, and it proves nothing " + "from then on. Record a new result where the check still needs one. A retraction is " + "taken on a closed issue and for a check of any when. Three callers may retract: the " + "session that recorded the result, a session that holds the Dispatch claim of the issue " + "the result was recorded on, and a caller whose credential carries a person. Every other " + "caller is 403 RETRACTION_FORBIDDEN. A result retracted already is 409 RESULT_RETRACTED. " + ISSUE_REFERENCE,
|
|
14719
|
+
description: "Record one result of one check of an issue's Verification document, or retract a result " + "recorded before. A record prints the pull-request body line it implies. Write that line " + "into the pull-request body unchanged: it is the one grammar every writer uses, and it " + "carries no link to Dispatch. " + "Name the check by its block id. Where two Verification documents in reach hold that id, " + "name it by its canonical reference (dispatch://KEY/artifact/verification-md#b-<id>). " + "409 CHECK_AMBIGUOUS names both documents. An id no Verification document of the issue " + "or of an issue above it holds is 400 UNKNOWN_CHECK. " + `${CHECK_PROVED_BY_CI}. ` + "Dispatch reads its result from that run, so a record for it is 409 " + "CHECK_PROVED_BY_CI from every role, which names the check and the run. " + "A pass that counts a failed, a skipped or an excluded case contradicts itself, and is " + "400 RESULT_CONTRADICTS. " + "Dispatch asks GitHub whether the repository of the check's issue holds the commit. A " + "commit that repository does not hold is 400 RESULT_COMMIT_UNKNOWN, which names the " + "commit and that owner/repo. Record the result after the commit is pushed. A repository " + "Dispatch cannot read records the result as before. " + "The result is recorded against the check's own issue, so a child's run of a parent's " + "check appears under that check. A closed issue takes a result only for a check whose " + "when is after_merge or default_branch, the production check after the merge. It refuses " + "every other record with 409 ISSUE_CLOSED, as it refuses every other write. " + "A check a document version rewords while the result is being written is 409 " + "CHECK_CONTENDED, with nothing recorded: run the same command again. " + RESULT_RETRACT_RULE + " The retraction keeps both records: the result stays readable, and it proves nothing " + "from then on. Record a new result where the check still needs one. A retraction is " + "taken on a closed issue and for a check of any when. Three callers may retract: the " + "session that recorded the result, a session that holds the Dispatch claim of the issue " + "the result was recorded on, and a caller whose credential carries a person. Every other " + "caller is 403 RETRACTION_FORBIDDEN. A result retracted already is 409 RESULT_RETRACTED. " + ISSUE_REFERENCE,
|
|
14718
14720
|
arguments: (z) => ({
|
|
14719
14721
|
issue: z.string().describe(ISSUE_REFERENCE).optional(),
|
|
14720
14722
|
check: z.string().describe("The check block's id, or its canonical reference dispatch://KEY/artifact/verification-md#b-<id> when the id is not unique among the issue's Verification document and those of the issues above it.").optional(),
|
|
@@ -25511,14 +25513,22 @@ The result stays readable, and it proves nothing from now on. Record a new resul
|
|
|
25511
25513
|
...defined("excluded", optionalNumber(args, "excluded")),
|
|
25512
25514
|
...defined("screenshots", optionalStringArray(args, "screenshots"))
|
|
25513
25515
|
};
|
|
25514
|
-
|
|
25515
|
-
|
|
25516
|
-
|
|
25517
|
-
|
|
25518
|
-
|
|
25519
|
-
|
|
25520
|
-
|
|
25521
|
-
|
|
25516
|
+
let recorded;
|
|
25517
|
+
try {
|
|
25518
|
+
recorded = await client.recordResult(issue, {
|
|
25519
|
+
actor,
|
|
25520
|
+
check: stringArg(args, "check"),
|
|
25521
|
+
role: stringArg(args, "role"),
|
|
25522
|
+
verdict: stringArg(args, "verdict"),
|
|
25523
|
+
commit: stringArg(args, "commit"),
|
|
25524
|
+
...optional
|
|
25525
|
+
});
|
|
25526
|
+
} catch (error) {
|
|
25527
|
+
if (dispatchAnswered(error, 409) && error.code === "CHECK_CONTENDED") {
|
|
25528
|
+
throw refusalWithCode(error, "the check moved twice while this result was being written, and nothing was recorded: run the same dispatch result command again");
|
|
25529
|
+
}
|
|
25530
|
+
throw error;
|
|
25531
|
+
}
|
|
25522
25532
|
return {
|
|
25523
25533
|
text: `Recorded ${recorded.result.verdict} for check ${recorded.result.check_block_id} of ${recorded.result.check_issue_key} at ${recorded.result.commit_sha}, as ${recorded.result.role}.
|
|
25524
25534
|
|
|
@@ -29937,7 +29947,7 @@ import { logger as logger3 } from "@oh-my-pi/pi-utils";
|
|
|
29937
29947
|
// package.json
|
|
29938
29948
|
var package_default = {
|
|
29939
29949
|
name: "@sjawhar/pi-legion",
|
|
29940
|
-
version: "21.0
|
|
29950
|
+
version: "21.1.0",
|
|
29941
29951
|
license: "Apache-2.0",
|
|
29942
29952
|
type: "module",
|
|
29943
29953
|
omp: {
|