Documentation
¶
Overview ¶
Package core provides the core business logic and infrastructure for Neru.
This package contains the fundamental building blocks of the application: domain models, error handling, and infrastructure interfaces. It follows clean architecture principles with clear separation between business logic and external dependencies.
Index ¶
- func WrapAccessibilityFailed(err error, operation string) error
- func WrapActionFailed(err error, action string) error
- func WrapConfigFailed(err error, operation string) error
- func WrapContextCanceled(ctx context.Context, operation string) error
- func WrapIOFailed(err error, operation string) error
- func WrapIPCFailed(err error, operation string) error
- func WrapInternalFailed(err error, operation string) error
- func WrapOverlayFailed(err error, operation string) error
- func WrapSerializationFailed(err error, operation string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WrapAccessibilityFailed ¶
WrapAccessibilityFailed wraps an accessibility-related error with a standardized message.
func WrapActionFailed ¶
WrapActionFailed wraps an action-related error with a standardized message.
func WrapConfigFailed ¶
WrapConfigFailed wraps a configuration-related error with a standardized message.
func WrapContextCanceled ¶
WrapContextCanceled wraps a context.Canceled error with a standardized message.
func WrapIOFailed ¶
WrapIOFailed wraps an I/O-related error with a standardized message.
func WrapIPCFailed ¶
WrapIPCFailed wraps an IPC-related error with a standardized message.
func WrapInternalFailed ¶
WrapInternalFailed wraps an internal error with a standardized message.
func WrapOverlayFailed ¶
WrapOverlayFailed wraps an overlay-related error with a standardized message.
func WrapSerializationFailed ¶
WrapSerializationFailed wraps a serialization-related error with a standardized message.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package domain defines the core domain models, constants, and shared types for the Neru application.
|
Package domain defines the core domain models, constants, and shared types for the Neru application. |
|
action
Package action defines domain models for user actions.
|
Package action defines domain models for user actions. |
|
element
Package element provides domain models for UI elements.
|
Package element provides domain models for UI elements. |
|
grid
Package grid provides domain models and logic for grid-based navigation.
|
Package grid provides domain models and logic for grid-based navigation. |
|
hint
Package hint provides hint generation algorithms for UI elements.
|
Package hint provides hint generation algorithms for UI elements. |
|
recursivegrid
Package recursivegrid provides recursive cell-based navigation for screen coordinates.
|
Package recursivegrid provides recursive cell-based navigation for screen coordinates. |
|
state
Package state provides centralized state management for the Neru application.
|
Package state provides centralized state management for the Neru application. |
|
Package derrors provides domain-specific error types and utilities.
|
Package derrors provides domain-specific error types and utilities. |
|
infra
|
|
|
accessibility
Package accessibility implements ports.AccessibilityPort, providing access to platform UI elements (clickable nodes, focused app, element trees).
|
Package accessibility implements ports.AccessibilityPort, providing access to platform UI elements (clickable nodes, focused app, element trees). |
|
apptrace
Package apptrace provides tracing utilities.
|
Package apptrace provides tracing utilities. |
|
appwatcher
Package appwatcher monitors application lifecycle events (launch, terminate, activate, deactivate, screen change) and dispatches them to registered callbacks.
|
Package appwatcher monitors application lifecycle events (launch, terminate, activate, deactivate, screen change) and dispatches them to registered callbacks. |
|
config
Package config provides configuration management implementation.
|
Package config provides configuration management implementation. |
|
electron
Package electron provides enhanced accessibility support for Electron, Chromium, and Firefox-based applications that don't expose full accessibility information by default.
|
Package electron provides enhanced accessibility support for Electron, Chromium, and Firefox-based applications that don't expose full accessibility information by default. |
|
eventtap
Package eventtap for EventTap adapter.
|
Package eventtap for EventTap adapter. |
|
hotkeys
Package hotkeys provides comprehensive functionality for registering and handling global hotkeys in the Neru application using the Carbon Event Manager API, enabling system-wide keyboard shortcuts.
|
Package hotkeys provides comprehensive functionality for registering and handling global hotkeys in the Neru application using the Carbon Event Manager API, enabling system-wide keyboard shortcuts. |
|
ipc
Package ipc implements the IPC adapter.
|
Package ipc implements the IPC adapter. |
|
keyfeed
Package keyfeed posts keyboard input directly to the host operating system.
|
Package keyfeed posts keyboard input directly to the host operating system. |
|
logger
Package logger provides comprehensive structured logging functionality for the Neru application, using the zap logging library with file rotation support to ensure reliable and efficient logging.
|
Package logger provides comprehensive structured logging functionality for the Neru application, using the zap logging library with file rotation support to ensure reliable and efficient logging. |
|
overlay
Package overlay provides an adapter for the UI overlay system.
|
Package overlay provides an adapter for the UI overlay system. |
|
platform
Package platform provides a factory for platform-specific infrastructure components.
|
Package platform provides a factory for platform-specific infrastructure components. |
|
platform/darwin
Package darwin provides macOS-specific platform implementations.
|
Package darwin provides macOS-specific platform implementations. |
|
platform/linux
Package linux provides Linux-specific implementations of infrastructure components.
|
Package linux provides Linux-specific implementations of infrastructure components. |
|
platform/linux/wlr_protocol
Package wlr_protocol compiles the wayland-scanner generated protocol implementation files (.c) exactly once.
|
Package wlr_protocol compiles the wayland-scanner generated protocol implementation files (.c) exactly once. |
|
platform/windows
Package windows provides Windows-specific implementations of infrastructure components.
|
Package windows provides Windows-specific implementations of infrastructure components. |
|
systray
Package systray provides the system tray menu implementation.
|
Package systray provides the system tray menu implementation. |
|
textinput
Package textinput provides an adapter and stub for native text input.
|
Package textinput provides an adapter and stub for native text input. |
|
Package ports defines interfaces for external dependencies.
|
Package ports defines interfaces for external dependencies. |
|
mocks
Package mocks provides mock implementations of port interfaces for testing.
|
Package mocks provides mock implementations of port interfaces for testing. |