feat: show dashboard URL on startup and add lore logs command#255
Merged
Conversation
…`lore logs` command Surface the dashboard URL (http://host:port/ui) in all startup messages (lore run, lore start, OpenCode plugin) so users know the UI exists. Add a persistent file-based log sink in core/log.ts that captures all log.info/warn/error calls to ~/.local/share/opencode-lore/lore.log regardless of LORE_DEBUG, with 5MB rotation. Add `lore logs` CLI command with -f (follow), -n (line count), and --path flags. Closes #242
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
http://host:port/ui) in all startup messages (lore run,lore start, OpenCode plugin) so users know the UI existscore/log.tsthat captures alllog.info/warn/errorcalls to~/.local/share/opencode-lore/lore.logregardless ofLORE_DEBUG, with 5MB rotationlore logsCLI command with-f(follow),-n(line count), and--pathflagsCloses #242
Details
Dashboard URL notification
Added
[lore] Dashboard: <url>/uimessages after existing "gateway listening" lines in:packages/gateway/src/cli/run.ts— both owned and reused gateway pathspackages/gateway/src/cli/start.ts— both "already running" and fresh start pathspackages/opencode/src/index.ts— OpenCode plugin stderr bannerPersistent log file
All
log.info/warn/errorcalls now write to~/.local/share/opencode-lore/lore.logregardless ofLORE_DEBUG:2025-01-15T14:32:05.123Z [INFO ] message.log.1backup, ~10MB max disk)NODE_ENV=test)lore logscommandlore logslore logs -flore logs -n 100lore logs --path