mirror of
https://github.com/NoeFabris/opencode-antigravity-auth.git
synced 2026-05-13 15:46:05 +00:00
fix(ci): avoid non-existent isDebugTuiEnabled import
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user