Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/security / / ToolSecretsContext

Interface: ToolSecretsContext

Defined in: packages/security/src/secrets/acl.ts:18

Per-call context kept in AsyncLocalStorage. Carries the current tool's allowlist, identifier, and run/session bookkeeping that the audit log uses for attribution.

Stable

Properties

PropertyModifierTypeDescriptionDefined in
agentId?readonlystringIdentifier of the agent owning the scope, if known.packages/security/src/secrets/acl.ts:26
parent?readonlyToolSecretsContextLightweight pointer to the parent scope, for sub-agent isolation.packages/security/src/secrets/acl.ts:30
runId?readonlystringStable identifier of the run that initiated this scope.packages/security/src/secrets/acl.ts:22
secretsAllowedreadonlyreadonly string[]Effective allowlist for the current scope.packages/security/src/secrets/acl.ts:28
sessionId?readonlystringIdentifier of the session, if known.packages/security/src/secrets/acl.ts:24
toolNamereadonlystringStable name of the currently-executing tool.packages/security/src/secrets/acl.ts:20