Add platform features: Preferences, SecureStorage, device info, and sensor streaming#32
Merged
Add platform features: Preferences, SecureStorage, device info, and sensor streaming#32
Conversation
…ensor streaming Agent endpoints: - Preferences CRUD (list/get/set/delete/clear) with key tracking registry - SecureStorage CRUD (get/set/delete/clear) - Platform info: app-info, device-info, display, battery, connectivity, version-tracking, permissions, geolocation - Sensor management: list/start/stop with WebSocket streaming - DELETE HTTP method support in AgentHttpServer CLI commands: - MAUI preferences list|get|set|delete|clear - MAUI secure-storage get|set|delete|clear - MAUI platform app-info|device-info|display|battery|connectivity| version-tracking|permissions|geolocation - MAUI sensors list|start|stop|stream New files: - SensorManager.cs — sensor lifecycle + WebSocket broadcast Documentation: - README.md — features, CLI examples, API endpoint table - AGENTS.md — architecture section for platform features - SKILL.md — sections 8-10 and command reference Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
SensorManager now drops readings that arrive faster than ThrottleMs (default 100ms). Clients can override via ?throttleMs= query param on the /ws/sensors WebSocket, or --throttle on the CLI stream command. Setting throttleMs=0 disables throttling for full-speed capture. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds MAUI platform integration API support to MauiDevFlow — both agent endpoints and CLI commands for interacting with app storage, querying device/platform info, and streaming sensor data.
New Agent Endpoints
Storage CRUD
/api/preferences(list/get/set/delete/clear) with typed values (string, int, bool, double, float, long, datetime) and shared container support/api/secure-storage(get/set/delete/clear)Platform Info (read-only)
/api/platform/app-info— name, version, build, theme/api/platform/device-info— manufacturer, model, OS, idiom/api/platform/device-display— screen size, density, orientation, refresh rate/api/platform/battery— charge level, state, power source/api/platform/connectivity— network access, connection profiles/api/platform/version-tracking— version/build history, first launch info/api/platform/permissions— check all or specific permission statuses/api/platform/geolocation— GPS coordinates with configurable accuracy/timeoutSensors
/api/sensors— list sensors with support/active/subscriber status/api/sensors/{name}/start/stop— manage sensor lifecycle/ws/sensors?sensor=<name>— WebSocket streaming of real-time sensor readingsNew CLI Commands
MAUI preferences list|get|set|delete|clearMAUI secure-storage get|set|delete|clearMAUI platform app-info|device-info|display|battery|connectivity|version-tracking|permissions|geolocationMAUI sensors list|start|stop|streamInfrastructure
AgentHttpServerSensorManagerclass for sensor lifecycle management and WebSocket broadcastingDocumentation
Verification
dotnet build ci.slnf✅ (0 warnings, 0 errors)dotnet test ci.slnf✅ (104 tests passed)