@intentius/chant-lexicon-cedar 0.122.0 → 0.123.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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "algorithm": "sha256",
3
3
  "artifacts": {
4
- "manifest.json": "faf9c679c5d0adf4cf961c27a9f8c567f637a8891eb8b0e894b4615efc94f3ba",
4
+ "manifest.json": "c6f3c22015b6b083dfaec8522754cf91c9c0b2b05c80f921c4421494fe8165e1",
5
5
  "meta.json": "b218779260169a193882aeee76e5ac559588f1682657a001fb0982cffb5843fc",
6
6
  "types/index.d.ts": "9e53a1cb3c9ee38f9de2f3c0db9cc28a0b67c3649be410c341e2451b9b0076cd",
7
7
  "rules/policy-shape.ts": "1654730d188b7163dbad3051c75a562198a96eda6d36ce35701f2b729bf45194",
@@ -30,5 +30,5 @@
30
30
  "skills/chant-cedar-meta-policy.md": "050b310a87196a48c827f1129698e4c6bbcd96dc963782e22bf1a640bbc20a1a",
31
31
  "skills/chant-cedar-dogwood.md": "7e52d3f045c1c34e00fdef76014a05483fb9dd58cc41037621a76bc298776d8f"
32
32
  },
33
- "composite": "fbcc2054d16b0f80709a379badcf27b22da3e9aa1f3e718492962929cbec7f99"
33
+ "composite": "315447b1f0f155481249dea9807ddee9d6b41ff773e99a5f260890ca6eed11a5"
34
34
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cedar",
3
- "version": "0.122.0",
3
+ "version": "0.123.0",
4
4
  "chantVersion": ">=0.1.0",
5
5
  "namespace": "Cedar",
6
6
  "intrinsics": [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intentius/chant-lexicon-cedar",
3
- "version": "0.122.0",
3
+ "version": "0.123.0",
4
4
  "description": "Cedar lexicon for chant — typed authoring for Cedar authorization policies",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://intentius.io/chant",
@@ -74,7 +74,7 @@
74
74
  },
75
75
  "peerDependencies": {
76
76
  "zod": "^4.3.6",
77
- "@intentius/chant": "^0.122.0",
77
+ "@intentius/chant": "^0.123.0",
78
78
  "typescript": "^5.9.3"
79
79
  }
80
80
  }
@@ -7,7 +7,7 @@
7
7
  */
8
8
  import { describe, test, expect } from "vitest";
9
9
  import {
10
- gatePlanSummary, gatePolicyRequest, loadGatePolicyEvaluator, runOpLocally, stepOutput,
10
+ gatePlanSummary, gateContextDigest, gatePolicyRequest, loadGatePolicyEvaluator, runOpLocally, stepOutput,
11
11
  type ActivityFn, type GateApproval, type GateLedgerPort, type GatePolicyDecision, type OpConfig,
12
12
  } from "@intentius/chant/op";
13
13
  import type { ChangeSetEntry, ChangeSetPart } from "@intentius/chant/change-set";
@@ -91,7 +91,7 @@ async function agentApproves(ledger: ReturnType<typeof memoryLedger>, at: string
91
91
  ...(standing.planDigest ? { planDigest: standing.planDigest } : {}),
92
92
  ...(approval.context ? { context: approval.context } : {}),
93
93
  }));
94
- const policyDecision: GatePolicyDecision = { policy: approval.policy!.name, version: approval.policy!.version, mode: approval.mode, ...answer };
94
+ const policyDecision: GatePolicyDecision = { policy: approval.policy!.name, version: approval.policy!.version, mode: approval.mode, contextDigest: gateContextDigest(approval.context), ...answer };
95
95
  ledger.resolutions.push({
96
96
  version: 1, op: standing.op, gate: standing.gate, resolvedBy: "deploy-bot", timestamp: at,
97
97
  approver: { kind: "agent" }, policyDecision, ...(standing.planDigest ? { planDigest: standing.planDigest } : {}),