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>
14 lines
362 B
Go
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"`
|
|
}
|