{"version":3,"file":"server-fallback-BUKjdLS7.cjs","names":[],"sources":["../../src/playground/server-fallback.ts"],"sourcesContent":["/**\n * @fileoverview Server/JSON fallback for CLI primitives in non-TTY environments\n */\n\nimport type { IBoxOptions, ITableOptions } from '../types/core.js';\nimport type { Logger } from '../Logger.js';\n\n/**\n * Server-mode fallback: outputs CLI primitives as plain logger calls\n * when not running in an interactive terminal.\n *\n */\nexport class ServerFallback {\n    private logger: Logger;\n\n    constructor(logger: Logger) {\n        this.logger = logger;\n    }\n\n    /** Render step as plain info log */\n    step(current: number, total: number, msg: string): void {\n        this.logger.info(`[${current}/${total}] ${msg}`);\n    }\n\n    /** Render header as plain info log */\n    header(title: string, subtitle?: string): void {\n        const text = subtitle ? `${title} ${subtitle}` : title;\n        this.logger.info(text);\n    }\n\n    /** Divider is a no-op in server mode */\n    divider(): void {\n        // No-op in server/JSON mode\n    }\n\n    /** Blank line is a no-op in server mode */\n    blank(): void {\n        // No-op in server/JSON mode\n    }\n\n    /** Render box content as plain info log */\n    box(content: string, _options?: IBoxOptions): void {\n        this.logger.info(content);\n    }\n\n    /** Render table rows as plain info logs */\n    cliTable(rows: Record<string, unknown>[], _options?: ITableOptions): void {\n        for (const row of rows) {\n            this.logger.info(JSON.stringify(row));\n        }\n    }\n}\n"],"mappings":";;;;;;AAYA,IAAa,iBAAb,MAA4B;CACxB;CAEA,YAAY,QAAgB;EACxB,KAAK,SAAS;CAClB;;CAGA,KAAK,SAAiB,OAAe,KAAmB;EACpD,KAAK,OAAO,KAAK,IAAI,QAAQ,GAAG,MAAM,IAAI,KAAK;CACnD;;CAGA,OAAO,OAAe,UAAyB;EAC3C,MAAM,OAAO,WAAW,GAAG,MAAM,GAAG,aAAa;EACjD,KAAK,OAAO,KAAK,IAAI;CACzB;;CAGA,UAAgB,CAEhB;;CAGA,QAAc,CAEd;;CAGA,IAAI,SAAiB,UAA8B;EAC/C,KAAK,OAAO,KAAK,OAAO;CAC5B;;CAGA,SAAS,MAAiC,UAAgC;EACtE,KAAK,MAAM,OAAO,MACd,KAAK,OAAO,KAAK,KAAK,UAAU,GAAG,CAAC;CAE5C;AACJ"}