Бородин Роман
51b98e02a5
refactor: remove V1 code, plugin is V2-only now
...
- Remove isV2Context() detection and all V1 branches
- Remove sdkClient parameter and V1 SDK polling logic
- Remove extractContent/formatMessage helpers (V1-only)
- Remove sentMessageIds dedup map (V1-only)
- Remove v1Server() entry point and server() export
- Remove encodeSessionId() from session-manager
- Remove crypto dependency
- Simplify help text (no mode info)
- Session ID now uses roomId:threadRootId directly
2026-09-25 23:24:12 +03:00
Бородин Роман
2f17001f2a
chore: exclude plugins/ from git — symlinks only needed for local dev
2026-09-25 23:18:10 +03:00
Бородин Роман
6199f75c4e
fix: restore plugins/matrix-plugin/ path structure for OpenCode V2 plugin loading
...
- Add plugins/matrix-plugin/ directory with symlinks to root files
(OpenCode V2 resolver appends path suffix after symlink resolution)
- Rename plugin id from 'opencode-matrix' to 'matrix-plugin'
2026-09-25 23:15:29 +03:00
Бородин Роман
5fdb2510b4
правильная организация директории плагина
2026-09-25 22:16:45 +03:00
Бородин Роман
26e28361cc
feat: separate reasoning blocks in responses
...
- Extract reasoning/thinking parts from response parts
- Wrap reasoning in Markdown details/summary collapsible
- Add horizontal divider between reasoning and main text
- Log part types for debugging
2026-09-25 18:03:53 +03:00
Бородин Роман
cae866fec6
docs: add config comments to example, update README with ignoreRooms/ignoreUsers
...
- Add inline comments to matrix.json.example
- Add ignoreRooms and ignoreUsers to config table
- Add config priority section
- Add example config usage instructions
2026-09-25 17:34:32 +03:00
Бородин Роман
267f60a55c
docs: update README with V1/V2 support, trigger behavior, session management
2026-09-25 16:18:13 +03:00
Бородин Роман
ce4ee83ca2
fix: respect triggerPatterns config, allow all messages when empty
...
- Check all trigger patterns, not just first one
- When triggerPatterns is empty, intercept all messages
- When configured, only process trigger/mention/thread-reply messages
- Remove DM auto-intercept when triggers are set
2026-09-25 16:15:18 +03:00
Бородин Роман
7db5bc6989
refactor: remove session expiry, add syncWithOpenCode
...
- Remove expireInactive and startExpiryLoop
- Add syncWithOpenCode() to prune orphaned sessions
- Add logging for session map file path and load count
2026-09-25 15:44:33 +03:00
Бородин Роман
01bf23543a
docs: add example config files
2026-09-25 15:23:24 +03:00
Бородин Роман
63853de81f
feat: add matrix plugin with V1/V2 SDK support
...
- Dual V1/V2 plugin export pattern
- Session persistence via ~/.opencode-matrix-sessions.json
- Thread-to-session mapping with deterministic IDs
- Matrix bot integration with E2EE support
- Config from matrix.json or environment variables
2026-09-25 15:22:20 +03:00