Commit graph

8 commits

Author SHA1 Message Date
Snider
9ab9d2b235 docs: add MCP bridge & WebView service design (Spec E)
Adds two new packages to core/gui:
- pkg/webview: wraps go-webview CDP client as core.Service with IPC messages
- pkg/mcp: MCP display subsystem registering ~74 GUI tools via IPC translation

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 15:25:23 +00:00
Snider
8133e367a7 docs: add Spec D (context menus & final cleanup) design
pkg/contextmenu wraps the last Wails v3 manager API.
Display cleanup removes stale interfaces.go wrappers,
migrates remaining direct s.app.* calls to IPC.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 14:44:59 +00:00
Snider
bf685aa8d3 docs: add Spec B (new input) and Spec C (platform & events) designs
Spec B: keybinding + browser packages, window file drop enhancement.
Spec C: dock/badge + lifecycle event packages.
Both reviewed — fixes applied for safe type assertions, EventType
constants, platform mapping table, service logic clarity, JSON tags.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 14:28:35 +00:00
Snider
7c0a0eff2d docs: add Extract & Insulate design spec (Spec A)
5 new core.Service packages extracted from pkg/display:
clipboard, dialog, notification, environment, screen.
Each with Platform interface insulation, full IPC messages,
and WS bridge integration for the TypeScript SDK.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 14:05:40 +00:00
Snider
09ff28fca1 docs: add go-config wiring design spec and implementation plan (2 tasks)
Wire go-config into display orchestrator to replace the in-memory
loadConfig() stub with real .core/gui/config.yaml file loading and
persistence via handleConfigTask.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-13 13:45:46 +00:00
Snider
6bf335ac7c docs: add service conclave IPC integration design spec
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 12:34:14 +00:00
Snider
99a8dda8d2 docs: address spec review — complete interfaces, fix insulation gaps
Some checks failed
Security Scan / security (push) Failing after 9s
Test / test (push) Failing after 34s
Fixes from code review:
- Window type is own struct, not Wails alias; WindowOption rewrites
- PlatformWindow interface: add Position, Size, IsMaximised, IsFocused,
  Show, Hide, Fullscreen, UnFullscreen, OnWindowEvent
- Package-level vars (activeTray, trayMenuCallbacks) become Manager fields
- Menu click handlers live in pkg/display, pkg/menu builds structure only
- WSEventManager insulation via EventSource + PlatformWindow interfaces
- WindowStateManager accepts PlatformWindow, returns own Window struct
- AttachWindow uses display.WindowHandle, not any
- ui/ existing Angular code moves as-is, go:embed updates

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-13 11:31:16 +00:00
Snider
88c15d1a8e docs: add display package split design spec
Approved design for restructuring pkg/display/ monolith into 4 focused
packages: window, systray, menu, display (orchestrator).

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-13 11:27:42 +00:00