import { resolveThreadSelectionDefaults } from "./thread-defaults.js";
export function buildBackgroundCommandContinuationPayload(options) {
    const defaults = resolveThreadSelectionDefaults({
        userId: options.userId,
        sessionId: options.sessionId,
        userService: options.userService,
        sessionState: options.sessionState,
    });
    const provider = defaults.providerId ?? "jait";
    return {
        sessionId: options.sessionId,
        _systemNotification: options.notification,
        ...(provider !== "jait"
            ? {
                provider,
                ...(defaults.runtimeMode ? { runtimeMode: defaults.runtimeMode } : {}),
                ...(defaults.model ? { model: defaults.model } : {}),
            }
            : {}),
    };
}
//# sourceMappingURL=background-command-continuation.js.map