RuleCtx

class

Signature

class RuleCtx

Everything a rule can see about one live ask.

Properties

NameTypeDescription
callersCaller[]Caller chain, nearest-first.
cwdstringWorking directory of the requesting process.
joinedArgvstringJoined argv of the wrapped command (e.g. `gh api --get /repos/x`).
secretsstring[]What the ask would release, by name. Env-var names for a wrap run (`GITHUB_TOKEN`); for an SSH sign, the single identity `ssh:<key_id>` — a sign resolves no secrets, but it still asks for the use of a key, and naming that subject is what lets a rule be scoped to it.
wrapstringThe wrap name being asked for (e.g. `gh`).