Setu-TS
    Preparing search index...

    Interface IDiagnosticsPlugin

    The diagnostics connector plugin: an IPlugin that additionally answers revoke, so the composition that created it can end the local session without stopping the owning application.

    const diagnostics = DiagnosticsPlugin({ enabled: true, port: 4919, sessionId, sessionKey });
    const app = createApplication({ plugins: [RuntimePlugin(), diagnostics], diagnostics: {} });
    await app.start();
    // … later, without stopping the application:
    await diagnostics.revoke();

    0.8.0

    interface IDiagnosticsPlugin {
        consumes?: readonly string[];
        dependencies?: readonly string[];
        name: string;
        optionalDependencies?: readonly string[];
        priority?: number;
        provides?: readonly string[];
        version: string;
        register(ctx: IPluginContext): void | Promise<void>;
        revoke(): Promise<void>;
    }

    Hierarchy (View Summary)

    Index
    consumes?: readonly string[]

    Capability tokens this plugin resolves lazily at runtime via ctx.services.get. Unlike IPlugin.dependencies, these are not required before this plugin registers and impose no ordering; but if no registered plugin provides one, the kernel emits a soft warn-level startup diagnostic (through the logger capability when one is registered), because the deferred lookups would otherwise fail only later, at request time.

    dependencies?: readonly string[]

    Capability tokens that must be provided before this plugin registers.

    name: string

    Unique plugin name, lowercase kebab-case.

    optionalDependencies?: readonly string[]

    Capability tokens used when present, tolerated when absent.

    priority?: number

    Registration priority within the same dependency level; lower first.

    provides?: readonly string[]

    Capability tokens this plugin registers.

    version: string

    Plugin semver, matching its deno.json version.

    • Immediately disables authorization, discards key references, and closes the runtime-owned listener. Idempotent: repeated and concurrent calls await the same cleanup. Does NOT stop the parent application or M98a's in-process reader. A revoked instance cannot be reactivated; pairing again requires a fresh development application launch.

      Returns Promise<void>