PlatformBridge class

Platform bridge — detects current platform and provides capabilities.

Constructors

PlatformBridge.detect()
Create with auto-detection.
factory
PlatformBridge.forPlatform(NeomagePlatform platform)
Create for a specific platform (testing).
factory

Properties

canAccessFiles → bool
Whether local file operations work.
no setter
canRunLsp → bool
Whether LSP servers can be started.
no setter
canRunMcp → bool
Whether MCP servers can be started.
no setter
canRunTools → bool
Whether the tool system is available (needs process spawning).
no setter
capabilities ↔ PlatformCapabilities
latefinal
configDir → String
Config directory (~/.neomage).
no setter
defaultShell → String
Get the shell for the current platform.
no setter
environment → Map<String, String>
Environment variables.
no setter
hashCode → int
The hash code for this object.
no setterinherited
homeDir → String
Home directory.
no setter
isCli → bool
Whether running in CLI/headless mode.
no setter
isDesktop → bool
Whether running on desktop.
no setter
isMobile → bool
Whether running on mobile.
no setter
pathSeparator → String
Path separator for the current platform.
no setter
platform ↔ NeomagePlatform
latefinal
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tempDir → String
Get platform-appropriate temp directory.
no setter

Methods

env(String key) → String?
Get an environment variable.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolvePath(String path) → String
Resolve a path relative to home.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited