Documentation
    Preparing search index...

    A booted variant of a runtime.

    const session = await target.boot({ profile: 'minimal', shell: 'shell-present' });
    try { await session.loadProbe(spec); } finally { await session.dispose(); }
    interface TargetSession {
        controls: readonly string[];
        variant: TargetVariant;
        advertised(): { domains: readonly string[]; services: readonly string[] };
        control(name: string, payload?: unknown): Promise<unknown>;
        destroyEndpoint(id: string): Promise<void>;
        dispose(): Promise<void>;
        loadProbe(spec: ProbeSpec): Promise<ProbeEndpoint>;
        loadRogue(plan: ProbePlan): Promise<RogueEvidence>;
        openLegacyFirewall?(): Promise<TargetSession>;
        releaseEndpoints?(): Promise<void>;
        revocations(): readonly RevocationEvidence[];
        transcript(): readonly TranscriptEntry[];
    }
    Index

    Properties

    controls: readonly string[]

    Controls this target implements. A missing control skips the cases that need it.

    variant: TargetVariant

    Methods

    • Domains and services the runtime says it can expose in this variant.

      Returns { domains: readonly string[]; services: readonly string[] }

    • Run a named host-side control. Controls are how the engine triggers pushes and reads backend evidence; the vocabulary is listed in the package README.

      Parameters

      • name: string

        Control name, e.g. theme.publish.

      • Optionalpayload: unknown

        Control argument.

      Returns Promise<unknown>

      The control's result, or undefined when the target has no such control.

    • Destroy one endpoint the way the host does when a napplet closes.

      Parameters

      • id: string

      Returns Promise<void>

    • Boot a scoped session of the same variant whose runtime denies requests through a legacy behavioral Firewall gate instead of its usual one. The scoped session must offer the firewall.block ({ endpoint }) and firewall.rejections ({ endpoint }) controls plus backend.calls. Do not use this session until the scoped one is disposed. A target without the gate omits the method and the Firewall checks skip.

      Returns Promise<TargetSession>