Skip to content

codev-sdk: controller subpath does not re-export the overview wire types its first consumer needs #1357

Closed

Description

@amrmelsayed

Finding (streamdeck architect's consumer-stakeholder review of the controller surface, per #1189 comment 5185972772)

The Stream Deck plugin (migrating in as apps/streamdeck under #1347) consumes four overview wire types as type-only imports: OverviewData, OverviewBuilder, OverviewPR, OverviewBacklogItem (in store.ts and actions.ts). The old @cluesmith/codev-client re-exported them from @cluesmith/codev-types so an integration got "the client + the contract from a single import".

No sdk subpath re-exports them today. codev-sdk/controller exports TowerClient, COMMAND_ROUTE, TowerClientOptions, TowerWorkspace, parseSseText, SseEnvelope, and DEFAULT_TOWER_PORT, but not the overview types, even though TowerClient.getOverview returns OverviewData.

#1347's import-boundary acceptance criterion (plugin imports only sdk subpaths + @elgato/streamdeck) is therefore unsatisfiable as the sdk stands: the migration would need a direct codev-types dependency, weakening the curated-surface posture the controller subpath exists for.

Proposed fix

controller.ts adds type-only re-exports:

export type { OverviewData, OverviewBuilder, OverviewPR, OverviewBacklogItem } from '@cluesmith/codev-types';

This matches the subpath's stated purpose (a controller READS overview state) and the old client's single-import stance. Everything else the plugin needs already maps cleanly (method surface, TowerWorkspace as a compatible superset of the old WorkspaceSummary, verbatim-lifted subscribeEvents/parseSseText, the getAuthKey+readLocalKey local-key profile).

Related wrinkle worth deciding at the same time

codev-sdk lists @cluesmith/codev-types as a devDependency, but its emitted .d.ts files reference it (import type ... from '@cluesmith/codev-types' in tower-client.ts). Workspace consumers resolve it via pnpm; a published-npm consumer running tsc will not, unless codev-types is a regular or peer dependency. This bites at the sdk's first npm publish and in #1347's published-SDK canary. Type-only, so "zero runtime deps" stays true either way; it is a packaging-metadata call.

Ownership

Sdk changes are main's lane (#1189 ownership comment); filing rather than hand-rolling locally, per #1347's gap-check instruction. #1347's plan will reference this issue; the re-export is small enough to fold into the migration PR if main prefers that over a separate change.

Refs: #1189, #1347, PR #1346.

Activity

  1. added
    area/core
    on Aug 5, 2026
  2. added 3 commits that reference this issue on Aug 5, 2026
  3. added 4 commits that reference this issue on Aug 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/core

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions