Expose authoring tools through an app-hosted HTTP server #16
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Issue #10 delivered a transport-neutral authoring tool module. Regular users need desktop and network clients to reach it without developer mode, ADB, or port forwarding. The app therefore needs an explicitly enabled, LAN-wide HTTPS adapter. MCP remains outside the app: a desktop bridge can consume this HTTP contract and expose MCP to local agent clients.
Scope
AuthoringToolModule.AuthoringToolRequestandAuthoringToolResponseexactly through one invocation endpoint; do not reproduce engine or registry behavior in routes.Security model
Non-goals
Acceptance
Implemented and pushed in
0d0e162.Delivered:
_https._tcp.without exposing the token.POST /v1/invokeusing the existing authoring tool protocol, limits, serialized mutations, and audit attribution.Verified:
./gradlew :app:connectedDebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.class=cloud.olsen.macros.platform.LanAuthoringHttpServerTesttask ci:qualityFollow-up fix pushed in
5f2c3cd.Token regeneration now completes synchronously, immediately revokes the prior token without restarting the HTTPS listener, copies the new token directly to the clipboard, and reports that it was copied. The Authoring settings card also has a dedicated Copy access token action, so manual HTTP/cURL clients no longer need to parse the JSON connection bundle.
Verified with the actual Compose UI, the on-device LAN HTTPS/token-rotation integration test, and
task ci:quality.