@sjawhar/pi-envoy 16.17.0 → 16.18.1
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/dispatch.js +6 -6
- package/dist/envoy.js +5 -5
- package/package.json +1 -1
package/dist/dispatch.js
CHANGED
|
@@ -15498,7 +15498,7 @@ var dispatchToolSpecs = [
|
|
|
15498
15498
|
verdict: "pass",
|
|
15499
15499
|
commit: "1111111111111111111111111111111111111111"
|
|
15500
15500
|
},
|
|
15501
|
-
description: "Record one result of one check of an issue's Verification document, and print the " + "pull-request body line it implies. The check is named by its block id, or, when two " + "Verification documents in reach share that id, by its canonical reference " + "(dispatch://KEY/artifact/verification-md#b-<id>); 409 CHECK_AMBIGUOUS names them, and an " + "id no Verification document of the issue or of an issue above it holds is 400 " + "UNKNOWN_CHECK. A pass counting any failed, skipped or excluded case contradicts itself " + "and is 400 RESULT_CONTRADICTS. 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 \u2014 the production " + "check after the merge \u2014 and refuses every other one with 409 ISSUE_CLOSED, as it refuses " + "every other write. Write the printed line into the pull-request body unchanged: it is " + "the one grammar every writer uses, and it carries no link to Dispatch. " + ISSUE_REFERENCE,
|
|
15501
|
+
description: "Record one result of one check of an issue's Verification document, and print the " + "pull-request body line it implies. The check is named by its block id, or, when two " + "Verification documents in reach share that id, by its canonical reference " + "(dispatch://KEY/artifact/verification-md#b-<id>); 409 CHECK_AMBIGUOUS names them, and an " + "id no Verification document of the issue or of an issue above it holds is 400 " + "UNKNOWN_CHECK. A pass counting any failed, skipped or excluded case contradicts itself " + "and is 400 RESULT_CONTRADICTS. Dispatch asks GitHub whether the repository of the " + "check's issue holds the commit: one it does not hold is 400 RESULT_COMMIT_UNKNOWN, " + "naming the commit and that owner/repo, so 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 \u2014 the production " + "check after the merge \u2014 and refuses every other one with 409 ISSUE_CLOSED, as it refuses " + "every other write. Write the printed line into the pull-request body unchanged: it is " + "the one grammar every writer uses, and it carries no link to Dispatch. " + ISSUE_REFERENCE,
|
|
15502
15502
|
arguments: (z) => ({
|
|
15503
15503
|
issue: z.string().describe(ISSUE_REFERENCE),
|
|
15504
15504
|
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."),
|
|
@@ -17432,7 +17432,7 @@ import { promisify } from "util";
|
|
|
17432
17432
|
// ../envoy-client/src/machine.ts
|
|
17433
17433
|
import { hostname as hostname3 } from "os";
|
|
17434
17434
|
function machineID() {
|
|
17435
|
-
return process.env["ENVOY_MACHINE_ID"] || hostname3();
|
|
17435
|
+
return process.env["ENVOY_MACHINE_ID"] || process.env["AGENTBOX_HOST"] || hostname3();
|
|
17436
17436
|
}
|
|
17437
17437
|
|
|
17438
17438
|
// ../envoy-client/src/dispatch-cwd.ts
|
|
@@ -19250,7 +19250,7 @@ import { randomUUID } from "crypto";
|
|
|
19250
19250
|
import { renameSync as renameSync2, rmSync as rmSync2, writeFileSync as writeFileSync2 } from "fs";
|
|
19251
19251
|
import { homedir } from "os";
|
|
19252
19252
|
import { join as join2 } from "path";
|
|
19253
|
-
var
|
|
19253
|
+
var SESSION_ID_PATH_SEGMENT = /^[A-Za-z0-9._-]{1,128}$/;
|
|
19254
19254
|
var PRIVATE_FILE = 384;
|
|
19255
19255
|
function sessionStateRoot(env) {
|
|
19256
19256
|
const stateDir = env["DISPATCH_STATE_DIR"];
|
|
@@ -19259,7 +19259,7 @@ function sessionStateRoot(env) {
|
|
|
19259
19259
|
return join2(env["XDG_STATE_HOME"] || join2(homedir(), ".local", "state"), "dispatch");
|
|
19260
19260
|
}
|
|
19261
19261
|
function sessionDirectory(env, sessionId) {
|
|
19262
|
-
if (!
|
|
19262
|
+
if (!SESSION_ID_PATH_SEGMENT.test(sessionId) || sessionId === "." || sessionId === "..") {
|
|
19263
19263
|
throw new Error(`dispatch: the session id ${JSON.stringify(sessionId)} is not 1-128 letters, digits, ".", "_" or "-"`);
|
|
19264
19264
|
}
|
|
19265
19265
|
return join2(sessionStateRoot(env), "sessions", sessionId);
|
|
@@ -20598,7 +20598,7 @@ function formatCheckResults(results) {
|
|
|
20598
20598
|
if (latest === undefined) {
|
|
20599
20599
|
return `${head}no result yet. ${check.text}`;
|
|
20600
20600
|
}
|
|
20601
|
-
return `${head}${latest.verdict} at ${latest.commit_sha
|
|
20601
|
+
return `${head}${latest.verdict} at ${latest.commit_sha} by ${latest.role}, ${latest.currency ?? "unknown"}. ${check.text}`;
|
|
20602
20602
|
});
|
|
20603
20603
|
return [`Checks of ${results.issue}:`, ...lines].join(`
|
|
20604
20604
|
`);
|
|
@@ -22345,7 +22345,7 @@ Document token: ${listed.token}`,
|
|
|
22345
22345
|
...optional
|
|
22346
22346
|
});
|
|
22347
22347
|
return {
|
|
22348
|
-
text: `Recorded ${recorded.result.verdict} for check ${recorded.result.check_block_id} of ${recorded.result.check_issue_key} at ${recorded.result.commit_sha
|
|
22348
|
+
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}.
|
|
22349
22349
|
|
|
22350
22350
|
Pull request body line:
|
|
22351
22351
|
${recorded.line}`,
|
package/dist/envoy.js
CHANGED
|
@@ -30542,7 +30542,7 @@ var dispatchToolSpecs = [
|
|
|
30542
30542
|
verdict: "pass",
|
|
30543
30543
|
commit: "1111111111111111111111111111111111111111"
|
|
30544
30544
|
},
|
|
30545
|
-
description: "Record one result of one check of an issue's Verification document, and print the " + "pull-request body line it implies. The check is named by its block id, or, when two " + "Verification documents in reach share that id, by its canonical reference " + "(dispatch://KEY/artifact/verification-md#b-<id>); 409 CHECK_AMBIGUOUS names them, and an " + "id no Verification document of the issue or of an issue above it holds is 400 " + "UNKNOWN_CHECK. A pass counting any failed, skipped or excluded case contradicts itself " + "and is 400 RESULT_CONTRADICTS. 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 \u2014 the production " + "check after the merge \u2014 and refuses every other one with 409 ISSUE_CLOSED, as it refuses " + "every other write. Write the printed line into the pull-request body unchanged: it is " + "the one grammar every writer uses, and it carries no link to Dispatch. " + ISSUE_REFERENCE,
|
|
30545
|
+
description: "Record one result of one check of an issue's Verification document, and print the " + "pull-request body line it implies. The check is named by its block id, or, when two " + "Verification documents in reach share that id, by its canonical reference " + "(dispatch://KEY/artifact/verification-md#b-<id>); 409 CHECK_AMBIGUOUS names them, and an " + "id no Verification document of the issue or of an issue above it holds is 400 " + "UNKNOWN_CHECK. A pass counting any failed, skipped or excluded case contradicts itself " + "and is 400 RESULT_CONTRADICTS. Dispatch asks GitHub whether the repository of the " + "check's issue holds the commit: one it does not hold is 400 RESULT_COMMIT_UNKNOWN, " + "naming the commit and that owner/repo, so 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 \u2014 the production " + "check after the merge \u2014 and refuses every other one with 409 ISSUE_CLOSED, as it refuses " + "every other write. Write the printed line into the pull-request body unchanged: it is " + "the one grammar every writer uses, and it carries no link to Dispatch. " + ISSUE_REFERENCE,
|
|
30546
30546
|
arguments: (z) => ({
|
|
30547
30547
|
issue: z.string().describe(ISSUE_REFERENCE),
|
|
30548
30548
|
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."),
|
|
@@ -37928,7 +37928,7 @@ function normalizeEnvoyUrl(value) {
|
|
|
37928
37928
|
// ../envoy-client/src/machine.ts
|
|
37929
37929
|
import { hostname as hostname3 } from "os";
|
|
37930
37930
|
function machineID() {
|
|
37931
|
-
return process.env["ENVOY_MACHINE_ID"] || hostname3();
|
|
37931
|
+
return process.env["ENVOY_MACHINE_ID"] || process.env["AGENTBOX_HOST"] || hostname3();
|
|
37932
37932
|
}
|
|
37933
37933
|
|
|
37934
37934
|
// ../envoy-client/src/transport.ts
|
|
@@ -39949,7 +39949,7 @@ import { randomUUID } from "crypto";
|
|
|
39949
39949
|
import { renameSync as renameSync2, rmSync as rmSync3, writeFileSync as writeFileSync2 } from "fs";
|
|
39950
39950
|
import { homedir as homedir2 } from "os";
|
|
39951
39951
|
import { join as join4 } from "path";
|
|
39952
|
-
var
|
|
39952
|
+
var SESSION_ID_PATH_SEGMENT = /^[A-Za-z0-9._-]{1,128}$/;
|
|
39953
39953
|
var PRIVATE_FILE2 = 384;
|
|
39954
39954
|
function sessionStateRoot(env) {
|
|
39955
39955
|
const stateDir = env["DISPATCH_STATE_DIR"];
|
|
@@ -39958,7 +39958,7 @@ function sessionStateRoot(env) {
|
|
|
39958
39958
|
return join4(env["XDG_STATE_HOME"] || join4(homedir2(), ".local", "state"), "dispatch");
|
|
39959
39959
|
}
|
|
39960
39960
|
function sessionDirectory(env, sessionId) {
|
|
39961
|
-
if (!
|
|
39961
|
+
if (!SESSION_ID_PATH_SEGMENT.test(sessionId) || sessionId === "." || sessionId === "..") {
|
|
39962
39962
|
throw new Error(`dispatch: the session id ${JSON.stringify(sessionId)} is not 1-128 letters, digits, ".", "_" or "-"`);
|
|
39963
39963
|
}
|
|
39964
39964
|
return join4(sessionStateRoot(env), "sessions", sessionId);
|
|
@@ -41931,7 +41931,7 @@ var import_nats2 = __toESM(require_mod4(), 1);
|
|
|
41931
41931
|
|
|
41932
41932
|
// package.json
|
|
41933
41933
|
var name = "@sjawhar/pi-envoy";
|
|
41934
|
-
var version2 = "16.
|
|
41934
|
+
var version2 = "16.18.1";
|
|
41935
41935
|
var package_default = {
|
|
41936
41936
|
name,
|
|
41937
41937
|
version: version2,
|