ISPO SDK
    Preparing search index...

    Type Alias ProjectCommandDefinition<InputSchema, ResultSchema, ResultChannels>

    Markdown
    ProjectCommandDefinition: Omit<
        ProjectCommandCatalogEntry,
        | "inputSchema"
        | "resultSchema"
        | "invocationMode"
        | "agent"
        | "resultChannels",
    > & { inputSchema: InputSchema; resultSchema: ResultSchema } & (
        | {
            agent?: never;
            invocationMode: "iframe-action";
            resultChannels: ResultChannels & ProjectCommandIframeActionResultChannel[];
        }
        | {
            agent: AgentId;
            invocationMode: "agent-task";
            resultChannels: ResultChannels & ProjectCommandAgentTaskResultChannel[];
        }
    )

    Literal command metadata retained long enough for define() to infer the handler and local runner types from the command's authored schemas.

    Type Parameters