WP7: Add AgentSession compaction (manual + auto), fix listener preservation

This commit is contained in:
Mario Zechner 2025-12-09 00:12:07 +01:00
parent 0119d7610b
commit 8d6d2dd72b
2 changed files with 177 additions and 24 deletions

View file

@ -341,8 +341,9 @@ private unsubscribeAll(): void {
1. `npm run check` passes
- [x] Add `subscribe()` method to AgentSession
- [x] Add `unsubscribeAll()` method
- [x] Add `resubscribe()` method
- [x] Add `_disconnectFromAgent()` private method (renamed from unsubscribeAll)
- [x] Add `_reconnectToAgent()` private method (renamed from resubscribe)
- [x] Add `dispose()` public method for full cleanup
- [x] Verify with `npm run check`
---
@ -808,12 +809,12 @@ get autoCompactionEnabled(): boolean {
**Verification:**
1. `npm run check` passes
- [ ] Add `CompactionResult` interface
- [ ] Add `compact()` method
- [ ] Add `abortCompaction()` method
- [ ] Add `checkAutoCompaction()` method
- [ ] Add `setAutoCompactionEnabled()` and getter
- [ ] Verify with `npm run check`
- [x] Add `CompactionResult` interface
- [x] Add `compact()` method
- [x] Add `abortCompaction()` method
- [x] Add `checkAutoCompaction()` method
- [x] Add `setAutoCompactionEnabled()` and getter
- [x] Verify with `npm run check`
---