gui/pkg/browser/messages.go
Snider 1e0b89b94e feat(browser): add browser core.Service with Platform interface and IPC
Implements pkg/browser with three-layer pattern: IPC Bus -> Service -> Platform.
Stateless service — delegates OpenURL and OpenFile to platform adapter.
No queries or actions, tasks only.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 14:35:01 +00:00

14 lines
362 B
Go

// pkg/browser/messages.go
package browser
// --- Tasks (all side-effects, no queries or actions) ---
// TaskOpenURL opens a URL in the default system browser. Result: nil
type TaskOpenURL struct {
URL string `json:"url"`
}
// TaskOpenFile opens a file with the system default application. Result: nil
type TaskOpenFile struct {
Path string `json:"path"`
}