@parmanasystems/core 1.71.5 → 1.71.12
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/index.js +8 -3
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -10498,7 +10498,8 @@ import {
|
|
|
10498
10498
|
getRuntimeManifest,
|
|
10499
10499
|
evaluatePolicy,
|
|
10500
10500
|
loadPolicy,
|
|
10501
|
-
canonicalizeForSigning
|
|
10501
|
+
canonicalizeForSigning,
|
|
10502
|
+
validateSignalsStrict
|
|
10502
10503
|
} from "@parmanasystems/execution";
|
|
10503
10504
|
import crypto from "crypto";
|
|
10504
10505
|
import {
|
|
@@ -10507,13 +10508,17 @@ import {
|
|
|
10507
10508
|
import {
|
|
10508
10509
|
evaluatePolicy as evaluatePolicy2,
|
|
10509
10510
|
loadPolicy as loadPolicy2,
|
|
10510
|
-
validateSignalsStrict
|
|
10511
|
+
validateSignalsStrict as validateSignalsStrict2
|
|
10511
10512
|
} from "@parmanasystems/execution";
|
|
10512
10513
|
async function executeFromSignals(input, signer, verifier, replayStore) {
|
|
10513
10514
|
const policy = loadPolicy(
|
|
10514
10515
|
input.policyId,
|
|
10515
10516
|
input.policyVersion
|
|
10516
10517
|
);
|
|
10518
|
+
validateSignalsStrict(
|
|
10519
|
+
input.signals,
|
|
10520
|
+
policy
|
|
10521
|
+
);
|
|
10517
10522
|
const decision = evaluatePolicy(
|
|
10518
10523
|
policy,
|
|
10519
10524
|
input.signals
|
|
@@ -10530,7 +10535,7 @@ async function executeFromSignals(input, signer, verifier, replayStore) {
|
|
|
10530
10535
|
signals: input.signals
|
|
10531
10536
|
})
|
|
10532
10537
|
).digest("hex");
|
|
10533
|
-
replayStore.markExecuted(
|
|
10538
|
+
await replayStore.markExecuted(
|
|
10534
10539
|
execution_fingerprint
|
|
10535
10540
|
);
|
|
10536
10541
|
const runtimeManifest = getRuntimeManifest();
|