Repository navigation
Closed
Labels
area/coreArea: shared core library / forge abstraction (packages/core, packages/codev/src/lib)
Description
Summary
The wire-contract layer for a controller-agnostic command relay: a controller
(an external control device or companion app) drives the active editor provider
by sending canonical verbs over Tower's existing SSE + REST. Pure, additive type
definitions in @cluesmith/codev-types; no behaviour, no policy, no runtime.
Functionality
command.ts — content-named contracts shared by the Tower relay (#1088) and the
VSCode command provider (#1089):
CommandRequest { verb, args }— a controller asks the active provider to run a
canonical verb (view-diff,forward-hunk, ...);argscarries verb operands.CommandResult { ok, error? }— the/api/commandresponse shape.COMMAND_ROUTE(/api/command) andCOMMAND_EVENT(command) — the single
source for the route path and SSE event-type name, so all three packages stay in
lockstep instead of repeating string literals.
Acceptance
- Additive only;
@cluesmith/codev-typesbuilds; existing consumers unaffected.
Deferred (kept out to avoid unused/duplicative code on main)
- Editor observation contracts (scroll / position / context, and their demand
signal): scrolling has a native keyboard equivalent (no relay needed), and zoom
navigation is driven by the overview API + controller-side state, so no editor
feed is required by the command relay. A context feed would only return to gate
the controller's buttons; it travels with the controller if that polish is wanted. resolveBuilderActions(builder-action policy): no consumer in the relay, and
duplicates the sidebar's per-protocol action gating. Lands with its first
consumer (the controller) or the sidebar-convergence work.OverviewBuilder.prUrl: the open-PR-url join already exists (the dashboard's
NeedsAttentionList matchespr.linkedIssue → builder, andoverview.tshas the
merged-PRissueToPrUrlmap). A builderprUrlfield has no consumer here, so
it travels with the controller or a dashboard-consolidation issue.
Metadata
Metadata
Assignees
Labels
area/coreArea: shared core library / forge abstraction (packages/core, packages/codev/src/lib)
Activity
[-]Editor/command wire contracts + builder-action policy (core)[/-][+]Editor/command wire contracts (types)[/+][-]Editor/command wire contracts (types)[/-][+]Command wire contracts (types)[/+]release notes: PR #1091 command relay + four new commands (post-v3.2.1)
feat: editor + command relay (Tower routes, VSCode provider, wire con…