Skip to content

[WIP] Add workspace and agent management APIs and WS events#21

Merged
willwashburn merged 5 commits into
ts-sdk-improvmentsfrom
copilot/sub-pr-20
Feb 16, 2026
Merged

[WIP] Add workspace and agent management APIs and WS events#21
willwashburn merged 5 commits into
ts-sdk-improvmentsfrom
copilot/sub-pr-20

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 16, 2026

  • Fix circular dependency: Move SDK_VERSION to separate version.ts file
  • Add proper type-safe WS client events (error, reconnecting, close) to types package
  • Update WsClient to use new type-safe events without casting
  • Add response validation to Relay.createWorkspace to handle non-JSON responses
  • Update dependent packages (MCP, React) to use WsClientEvent
  • Run tests to verify all changes work correctly (279 tests passing)
  • All packages build successfully

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 4 commits February 16, 2026 17:57
- Move SDK_VERSION to separate version.ts file to break circular dependency
- Add WsClientEvent union type with proper event types (open, close, error, reconnecting)
- Remove type casts in WsClient, use proper typed events instead
- Add response validation to Relay.createWorkspace for non-JSON responses
- All tests passing (151 total)

Co-authored-by: willwashburn <957608+willwashburn@users.noreply.github.com>
Update client.ts to import SDK_VERSION from version.ts instead of index.ts

Co-authored-by: willwashburn <957608+willwashburn@users.noreply.github.com>
Filter out client-only events (open, close, error, reconnecting) in ws-bridge since they don't affect MCP resources. Only process server events.

Co-authored-by: willwashburn <957608+willwashburn@users.noreply.github.com>
Update useEvent hook and provider to use WsClientEvent. Filter out client-only events (open, close, error, reconnecting) before passing to handleServerEvent.

Co-authored-by: willwashburn <957608+willwashburn@users.noreply.github.com>
@willwashburn willwashburn marked this pull request as ready for review February 16, 2026 18:03
@willwashburn willwashburn merged commit 1b84e4f into ts-sdk-improvments Feb 16, 2026
@willwashburn willwashburn deleted the copilot/sub-pr-20 branch February 16, 2026 18:03
Copilot AI requested a review from willwashburn February 16, 2026 18:03
Copilot stopped work on behalf of willwashburn due to an error February 16, 2026 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants