Dashboard › opencode › Distillation
fc9934de-cad9-408f-a596-e1e320612575["lore_tm_v1_-QwPYfBL4gKtLC4Nk0_DPPF0HcaXxE3CMcck8e30_4E","lore_tm_v1_9YxwJWv9R3urG4zP7AXkeCchhg71kbIliFsKY0t3jJ4"]
error() messages are βAlways visible β these indicate real failures.β/home/byk/Code/opencode-lore-v2/packages/core/src/log.ts lines 408β429 implement maybeRotate(): it opens and tightens the active log via openLogFileForAppend(logPath), rotates only when stat.size > LOG_MAX_BYTES, removes the existing ${logPath}.1, renames the active file to that backup, then calls tightenExistingLogFile(backup) to validate and secure any file occupying the backup name after a possible cross-process race; missing files/stat failures degrade silently, and the descriptor is closed in finally.writeToFile() in /home/byk/Code/opencode-lore-v2/packages/core/src/log.ts lines 433β457 checks rotation whenever ++writeCount % ROTATION_CHECK_INTERVAL === 0, formats UTC ISO timestamps and uppercase 5-character padded level tags, escapes embedded newlines as literal \\n for clean tail -f, appends UTF-8 through openLogFileForAppend(path), silently degrades on logging failures, and always closes the descriptor./home/byk/Code/opencode-lore-v2/packages/core/src/log.ts: info() (lines 464β470) and warn() (lines 473β479) show sanitized stderr only when isDebug && !readStderrSilenced(), while still sending redacted messages to their corresponding sink methods and persistent file levels.notice() in /home/byk/Code/opencode-lore-v2/packages/core/src/log.ts lines 489β494 is a user-facing actionable warning that is not debug-gated; it prints unless stderr is silenced, reports through sink?.warn(msg) rather than error severity, and writes at file level "warn", preventing non-failures from inflating the error stream.error() in /home/byk/Code/opencode-lore-v2/packages/core/src/log.ts lines 497β505 prints unless stderr is silenced, calls sink?.error(msg), writes at file level "error", locates an Error with findError(args), and submits a redacted copy via sink?.captureException(sanitizedError(err))./home/byk/Code/opencode/packages/plugin/package.json defines @opencode-ai/plugin version 1.18.16, ESM ("type": "module"), MIT license, published files limited to dist, and scripts typecheck: tsgo --noEmit and build: tsc.@opencode-ai/plugin exports are "." β "./src/index.ts", "./tool" β "./src/tool.ts", "./tui" β "./src/tui.ts", "./v2/effect" β "./src/v2/effect/index.ts", "./v2/effect/integration" β "./src/v2/effect/integration.ts", "./v2/effect/plugin" β "./src/v2/effect/plugin.ts", and "./v2/promise" β "./src/v2/promise/index.ts".@opencode-ai/plugin runtime dependencies are @ai-sdk/provider 3.0.8, @opencode-ai/sdk workspace:*, effect catalog:, and zod catalog:. Optional peer dependencies are @opentui/core >=0.4.5, @opentui/keymap >=0.4.5, and @opentui/solid >=0.4.5.@opencode-ai/plugin dev dependencies are @opentui/core catalog:, @opentui/keymap catalog:, @opentui/solid catalog:, @tsconfig/node22 catalog:, @types/node catalog:, typescript catalog:, and @typescript/native-preview catalog:.