Skip to content

toolmark-monorepo / @toolmark/core / PendingConfirmation

Interface: PendingConfirmation ​

Defined in: packages/core/src/confirm.ts:6

A deferred confirmation waiting for tm.confirmPending (spec §7, D16).

Properties ​

caller ​

caller: Caller

Defined in: packages/core/src/confirm.ts:14

Who made the call.


changes? ​

optional changes?: FieldChange[]

Defined in: packages/core/src/confirm.ts:26

Field changes, if any.


confirmId ​

confirmId: string

Defined in: packages/core/src/confirm.ts:8

Single-use id.


createdAt ​

createdAt: number

Defined in: packages/core/src/confirm.ts:28

Creation time (ms since epoch).


expiresAt ​

expiresAt: number

Defined in: packages/core/src/confirm.ts:30

Expiry time (ms since epoch).


input ​

input: unknown

Defined in: packages/core/src/confirm.ts:22

The validated input the tool will run with (unless the approval edits it), with every value at the tool's sensitive paths replaced by '[redacted]' (the whole input when its redaction fails). The run itself gets the unredacted input. An approval that edits input may send this copy back with its changes: a sensitive path still holding '[redacted]' gets its real value back before validation, and a sensitive path the approver changed keeps the new value.


summary ​

summary: string

Defined in: packages/core/src/confirm.ts:24

User-facing summary.


title? ​

optional title?: string

Defined in: packages/core/src/confirm.ts:12

Tool title, if any.


tool ​

tool: string

Defined in: packages/core/src/confirm.ts:10

Full tool name.