Skip to main content

Class: IntentChainTracker

Defined in: .source/wunderland/src/security/SignedOutputVerifier.ts:130

Intent chain tracker for maintaining audit trail.

The chain is private: entries are copied on the way in and on the way out, so nothing a caller holds can rewrite a recorded step.

Constructors​

Constructor​

new IntentChainTracker(maxEntries?): IntentChainTracker

Defined in: .source/wunderland/src/security/SignedOutputVerifier.ts:134

Parameters​

maxEntries?​

number = 100

Returns​

IntentChainTracker

Methods​

addEntry()​

addEntry(entry): IntentChainEntry

Defined in: .source/wunderland/src/security/SignedOutputVerifier.ts:143

Adds an entry to the intent chain.

Parameters​

entry​

Omit<IntentChainEntry, "stepId" | "timestamp">

Returns​

IntentChainEntry

A copy of the recorded entry.


clear()​

clear(): void

Defined in: .source/wunderland/src/security/SignedOutputVerifier.ts:170

Clears the chain.

Returns​

void


getAllSecurityFlags()​

getAllSecurityFlags(): string[]

Defined in: .source/wunderland/src/security/SignedOutputVerifier.ts:191

Gets all unique security flags across the chain.

Returns​

string[]


getEntries()​

getEntries(): readonly IntentChainEntry[]

Defined in: .source/wunderland/src/security/SignedOutputVerifier.ts:163

Gets a copy of all entries in the chain.

Returns​

readonly IntentChainEntry[]


getLastEntries()​

getLastEntries(n): IntentChainEntry[]

Defined in: .source/wunderland/src/security/SignedOutputVerifier.ts:177

Gets a copy of the last N entries.

Parameters​

n​

number

Returns​

IntentChainEntry[]


hasSecurityFlags()​

hasSecurityFlags(): boolean

Defined in: .source/wunderland/src/security/SignedOutputVerifier.ts:184

Checks if the chain has any security flags.

Returns​

boolean