Skip to content

Conversation

@telnet2
Copy link
Owner

@telnet2 telnet2 commented Dec 6, 2025

  • Add VCS branch watcher using fsnotify to monitor .git/HEAD changes

    • Publishes vcs.branch.updated events on branch change
    • Integrated into server lifecycle (start/shutdown)
    • Includes comprehensive unit tests
  • Fix SDK compatibility issues in types:

    • Change smallModel, toolcall, topP to camelCase for TS compatibility
    • Fix ModelCost to use nested cache object (cache.read/write)
    • Add missing part types: SnapshotPart, PatchPart, AgentPart,
      SubtaskPart, RetryPart
  • Add TUI event types:

    • tui.prompt.append, tui.command.execute, tui.toast.show
    • vcs.branch.updated, pty.* events, command.executed
    • Update TUI handlers to publish SSE events
  • Add comprehensive protocol documentation:

    • docs/opencode-server-endpoints.md - Complete endpoint reference
    • docs/tui-event-specification.md - Event protocol with AI SDK comparison

- Add VCS branch watcher using fsnotify to monitor .git/HEAD changes
  - Publishes vcs.branch.updated events on branch change
  - Integrated into server lifecycle (start/shutdown)
  - Includes comprehensive unit tests

- Fix SDK compatibility issues in types:
  - Change smallModel, toolcall, topP to camelCase for TS compatibility
  - Fix ModelCost to use nested cache object (cache.read/write)
  - Add missing part types: SnapshotPart, PatchPart, AgentPart,
    SubtaskPart, RetryPart

- Add TUI event types:
  - tui.prompt.append, tui.command.execute, tui.toast.show
  - vcs.branch.updated, pty.* events, command.executed
  - Update TUI handlers to publish SSE events

- Add comprehensive protocol documentation:
  - docs/opencode-server-endpoints.md - Complete endpoint reference
  - docs/tui-event-specification.md - Event protocol with AI SDK comparison
@telnet2 telnet2 merged commit 93f645a into main Dec 6, 2025
0 of 6 checks passed
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.

3 participants