Operator Components
Native application path: gRPC for live data and edits; PMTiles, GeoParquet and COG through the CDN. Start there for browser gRPC-Web setup, signed private URLs and regeneration after changes. OGC API and GeoServices REST examples below are compatibility workflows.
The operator module exposes framework-neutral controllers and a workspace
orchestrator under @honua/app-platform/operator. Hosts can render the surfaces in
React, Web Components, plain DOM, or native shells while reusing the same state
and transport contract.
import { OperatorShell } from "@honua/app-platform/operator";
import { HonuaClient } from "@honua/sdk-js";
const workspace = new OperatorShell({
client: operatorClient,
mapFactory: () => ({ map }),
mapLoadOptions: {
client: new HonuaClient({ baseUrl: "https://api.example.test" }),
skipCompatibilityCheck: false,
},
});
workspace.on((event) => {
switch (event.kind) {
case "clarification-needed":
renderClarificationForm(event.intent);
break;
case "plan-loaded":
renderPlanReview(event.plan);
break;
case "map-loaded":
showMapPreview(event.pkg);
break;
case "approval-required":
renderApprovalGate(event.decision);
break;
}
});
The workspace composes seven controller surfaces:
ChatControllerstreams a freeform user request into a drafted operator intent.ClarificationControllersubmits typed clarification answers back through the shared client.PlanReviewControllerloads, revises, and accepts server-produced plans without mutating steps locally.ExecutionControlleradapts the sharedIJobRuncontract and emits every progress and terminal transition.MapControllerloads resultHonuaMapDocumentobjects through the runtime instead of owning MapLibre source/style logic.BuilderControllerexposes app package preview handles for host-owned sandbox rendering.ApprovalControllersurfaces server-rendered policy decisions and never upgrades deferred or denied outcomes locally.
The public extension points are controller subscriptions, workspace events, theme tokens, and message catalogs. The module intentionally does not expose feature editing or client-side policy override affordances.