Skip to main content

Class: DemoRunCapability

Defined in: packages/agentos/src/io/channels/meetings/DemoRunCapability.ts:52

One-run authority under an immutable host policy; never a paid credential or dispatch entitlement.

Constructors​

Constructor​

new DemoRunCapability(options): DemoRunCapability

Defined in: packages/agentos/src/io/channels/meetings/DemoRunCapability.ts:58

Captures server authority once; callers cannot choose another scope at issuance.

Parameters​

options​

DemoCapabilityOptions

Returns​

DemoRunCapability

Methods​

abandon()​

abandon(operationId): Promise<void>

Defined in: packages/agentos/src/io/channels/meetings/DemoRunCapability.ts:186

Host-authenticated page-away or admission-failure cleanup, also valid before run binding.

Parameters​

operationId​

string

Returns​

Promise<void>


bindRun()​

bindRun(operationId, runId): Promise<DemoCredential>

Defined in: packages/agentos/src/io/channels/meetings/DemoRunCapability.ts:117

Trusted preparation/recovery only, never a browser route. Binds one manager run and rotates the hash on response-loss recovery. Must run under the same host owner lock as cleanup and dispatch. The host checks the remaining stopAt deadline before scheduling; issuance never extends it.

Parameters​

operationId​

string

runId​

string

Returns​

Promise<DemoCredential>


claimStart()​

claimStart(nonce, visitor, address): Promise<{ operationId: string; stopAt: number; }>

Defined in: packages/agentos/src/io/channels/meetings/DemoRunCapability.ts:90

Consumes exactly once and reserves the remaining connected-time allowance. The host uses operationId as the prepared manager request's idempotency key. Browser retries never recover through a nonce.

Parameters​

nonce​

string

visitor​

string

address​

string

Returns​

Promise<{ operationId: string; stopAt: number; }>


control()​

control(authInput, action, requestId): Promise<DemoReceipt>

Defined in: packages/agentos/src/io/channels/meetings/DemoRunCapability.ts:157

Records revocation first; returns a receipt only when idempotent cleanup is acknowledged.

Parameters​

authInput​

DemoAuth

action​

"stop" | "purge"

requestId​

string

Returns​

Promise<DemoReceipt>


createNonce()​

createNonce(visitor, address): Promise<string>

Defined in: packages/agentos/src/io/channels/meetings/DemoRunCapability.ts:77

Issues a short-lived, visitor-and-address-bound start nonce; no run or spend is admitted yet.

Parameters​

visitor​

string

address​

string

Returns​

Promise<string>


sweep()​

sweep(): Promise<void>

Defined in: packages/agentos/src/io/channels/meetings/DemoRunCapability.ts:197

Recovers pending intents and enforces the captured run, control and credential deadlines.

Returns​

Promise<void>


toJSON()​

toJSON(): string

Defined in: packages/agentos/src/io/channels/meetings/DemoRunCapability.ts:213

Never serializes server dependencies or authority rows.

Returns​

string


withRead()​

withRead<T>(authInput, operation, consume): Promise<T>

Defined in: packages/agentos/src/io/channels/meetings/DemoRunCapability.ts:137

Mediates one bounded read/delivery, including every streamed event. Call assertCurrent immediately before writing output. Never retain the binding or enqueue a send after the callback returns. Transport adapters must positively cancel blocked output before releasing their transaction.

Type Parameters​

T​

T

Parameters​

authInput​

DemoAuth

operation​

"read-status" | "read-events" | "read-usage"

consume​

(binding, assertCurrent) => Promise<T>

Returns​

Promise<T>