@oxagen/cli 2.1.5-91 → 2.1.5-97
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/oxagen.mjs +21 -2
- package/package.json +1 -1
package/oxagen.mjs
CHANGED
|
@@ -26722,7 +26722,7 @@ import { readFileSync as readFileSync10 } from "node:fs";
|
|
|
26722
26722
|
import { dirname as dirname9, resolve as resolve3 } from "node:path";
|
|
26723
26723
|
import { fileURLToPath } from "node:url";
|
|
26724
26724
|
function readVersion() {
|
|
26725
|
-
if (true) return "2.1.5-
|
|
26725
|
+
if (true) return "2.1.5-97";
|
|
26726
26726
|
try {
|
|
26727
26727
|
const here = dirname9(fileURLToPath(import.meta.url));
|
|
26728
26728
|
const pkg = JSON.parse(
|
|
@@ -50886,6 +50886,13 @@ function asJson(value) {
|
|
|
50886
50886
|
function argumentsHashOf(args) {
|
|
50887
50887
|
return digestJcs(asJson(args));
|
|
50888
50888
|
}
|
|
50889
|
+
function launchDigestOf(launch) {
|
|
50890
|
+
return digestJcs({
|
|
50891
|
+
command: launch.command,
|
|
50892
|
+
args: [...launch.args],
|
|
50893
|
+
env: [...launch.env]
|
|
50894
|
+
});
|
|
50895
|
+
}
|
|
50889
50896
|
function envelopeSigningBytes(envelope2) {
|
|
50890
50897
|
const { signature: _signature, ...signed } = envelope2;
|
|
50891
50898
|
return new TextEncoder().encode(jcs(asJson(signed)));
|
|
@@ -50926,6 +50933,7 @@ var init_wire2 = __esm({
|
|
|
50926
50933
|
definition_hash: sha256Schema,
|
|
50927
50934
|
package_digest: sha256Schema,
|
|
50928
50935
|
arguments_hash: sha256Schema,
|
|
50936
|
+
launch_digest: sha256Schema,
|
|
50929
50937
|
deadline_ms: external_exports.number().int().min(1).max(3e5).optional(),
|
|
50930
50938
|
machine: machineIdSchema,
|
|
50931
50939
|
nonce: nonceSchema,
|
|
@@ -51448,6 +51456,14 @@ function verifyCallDelivery(delivery, options) {
|
|
|
51448
51456
|
)
|
|
51449
51457
|
);
|
|
51450
51458
|
}
|
|
51459
|
+
const launchDigest = launchDigestOf(delivery.launch);
|
|
51460
|
+
if (launchDigest !== envelope2.launch_digest) {
|
|
51461
|
+
return refuse2(
|
|
51462
|
+
launchMismatch(
|
|
51463
|
+
`the launch's command, args, and env names hash to ${launchDigest}, and the envelope signs ${envelope2.launch_digest}`
|
|
51464
|
+
)
|
|
51465
|
+
);
|
|
51466
|
+
}
|
|
51451
51467
|
if (argumentsHashOf(delivery.arguments) !== envelope2.arguments_hash) {
|
|
51452
51468
|
return refuse2(argumentsMismatch());
|
|
51453
51469
|
}
|
|
@@ -63510,7 +63526,7 @@ var init_package = __esm({
|
|
|
63510
63526
|
"package.json"() {
|
|
63511
63527
|
package_default = {
|
|
63512
63528
|
name: "@oxagen/cli",
|
|
63513
|
-
version: "2.1.5-
|
|
63529
|
+
version: "2.1.5-97",
|
|
63514
63530
|
description: "Oxagen governance CLI \u2014 spend, lineage, grounding, credentials, and audit (agentic coding lives in the stella CLI)",
|
|
63515
63531
|
type: "module",
|
|
63516
63532
|
main: "./dist/index.js",
|
|
@@ -92732,6 +92748,9 @@ var init_local_call_envelope = __esm({
|
|
|
92732
92748
|
arguments_hash: sha256Schema2.describe(
|
|
92733
92749
|
"SHA-256 over the RFC 8785 form of the upstream arguments, after the input was shaped."
|
|
92734
92750
|
),
|
|
92751
|
+
launch_digest: sha256Schema2.describe(
|
|
92752
|
+
"SHA-256 over the RFC 8785 form of the launch's command, args with each ${NAME} unfilled, and env names. The local gateway refuses a launch that does not match."
|
|
92753
|
+
),
|
|
92735
92754
|
deadline_ms: envelopeDeadlineSchema.describe(
|
|
92736
92755
|
`How long the local gateway lets the call run before it stops it. ${DEFAULT_DEADLINE_MS2} when omitted.`
|
|
92737
92756
|
),
|
package/package.json
CHANGED