@aithorized/core 0.1.3 → 0.1.5

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.
@@ -26,6 +26,7 @@ const argPredicateSchema = z
26
26
  const ruleSchema = z
27
27
  .object({
28
28
  id: z.string().min(1),
29
+ name: z.string().trim().min(1).max(120).optional(),
29
30
  match: z
30
31
  .object({
31
32
  tool: z.string().min(1),
@@ -26,6 +26,8 @@ export interface RuleMatch {
26
26
  }
27
27
  export interface PolicyRule {
28
28
  id: string;
29
+ /** Human-readable name for the rule (displayed in app & dashboard). */
30
+ name?: string;
29
31
  match: RuleMatch;
30
32
  effect: Effect;
31
33
  /** Required for effect REQUIRE_APPROVAL. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aithorized/core",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "Deterministic crypto core and policy engine for aithorized (JCS RFC 8785, payload hashing, domain-separated ECDSA/Ed25519 signatures, fail-closed policy evaluation).",
5
5
  "type": "module",
6
6
  "license": "MIT",