@ultimat3/policy 31.30.0 → 31.32.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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/errors.ts +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ultimat3/policy",
3
- "version": "31.30.0",
3
+ "version": "31.32.0",
4
4
  "description": "The one authz rule, evaluated identically in every surface",
5
5
  "keywords": [
6
6
  "ultimate",
@@ -42,6 +42,6 @@
42
42
  "test": "bun test"
43
43
  },
44
44
  "dependencies": {
45
- "@ultimat3/core": "31.30.0"
45
+ "@ultimat3/core": "31.32.0"
46
46
  }
47
47
  }
package/src/errors.ts CHANGED
@@ -10,6 +10,7 @@ import {
10
10
  registerErrorCodes,
11
11
  registerErrorRetry,
12
12
  renderCauseValue,
13
+ renderFixShellArg,
13
14
  UltimateError,
14
15
  } from '@ultimat3/core';
15
16
 
@@ -105,7 +106,7 @@ export const policyForbidden = (label: string, reason: string): PolicyError =>
105
106
  // `x policy list --json` is what `X_DECLARATION_UNKNOWN`'s own fix falls back to, so a reader
106
107
  // who follows either one lands in the same place.
107
108
  fix: BARE_PERMISSION.test(label)
108
- ? `x policy explain ${label} --json # shows which clause decided and why`
109
+ ? `x policy explain ${renderFixShellArg(label, '<permission>')} --json # shows which clause decided and why`
109
110
  : `x policy list --json # then: x policy explain <permission> --json for the clause that decided`,
110
111
  // The remote caller's half: it holds a credential, not the policy file.
111
112
  callerFix: deniedCallerFix(BARE_PERMISSION.test(label) ? label : undefined),