Saxonberg Server API
    Preparing search index...

    Interface CreateCommandContextArgs

    Constructor args for CommandApi.createCommandContext. Pulled out so the factory's signature and the implementation's constructor can share one shape definition.

    interface CreateCommandContextArgs {
        barId?: string;
        bodyFields?: Record<string, unknown>;
        command: CommandDefinition;
        commandGiver: Stuff & CommandGiver;
        commandId: string;
        commandSource?: Stuff;
        commandText: string;
        executionId: string;
        interactive?: default;
        location: Stuff & Container | null;
        verb: string;
    }
    Index

    Properties

    barId?: string

    Submitting command bar; see CommandContext.barId.

    bodyFields?: Record<string, unknown>

    Structured body side-channel; see CommandContext.bodyFields.

    commandGiver: Stuff & CommandGiver
    commandId: string
    commandSource?: Stuff

    The Stuff that afforded the command. Optional here: when omitted, the context defaults it to commandGiver (the innate/giver case). Production dispatch always supplies it — the claiming match's resolved affordance source, or the giver fallback on the bound / programmatic paths. On the context itself it is always a concrete Stuff (never undefined).

    commandText: string
    executionId: string
    interactive?: default
    location: Stuff & Container | null
    verb: string