fix(ci): avoid non-existent isDebugTuiEnabled import

This commit is contained in:
Noe
2026-02-19 16:59:01 +00:00
parent b8284dfb81
commit 9dd268a14a

View File

@@ -4,12 +4,12 @@
* Logging behavior:
* - debug disabled → no logs anywhere
* - debug enabled → log files only (via debug.ts logWriter)
* - debug enabled + debug_tui enabled → log files + TUI log panel
* - debug enabled → log files + TUI log panel
* - OPENCODE_ANTIGRAVITY_CONSOLE_LOG=1 → console output (independent of debug flags)
*/
import type { PluginClient } from "./types";
import { isDebugEnabled, isDebugTuiEnabled } from "./debug";
import { isDebugEnabled } from "./debug";
type LogLevel = "debug" | "info" | "warn" | "error";
@@ -65,8 +65,8 @@ export function createLogger(module: string): Logger {
const service = `antigravity.${module}`;
const log = (level: LogLevel, message: string, extra?: Record<string, unknown>): void => {
// TUI logging: only when debug is enabled AND debug_tui is enabled
if (isDebugEnabled() && isDebugTuiEnabled()) {
// TUI logging: only when debug is enabled
if (isDebugEnabled()) {
const app = _client?.app;
if (app && typeof app.log === "function") {
app