- Add deleteWorkspaceByChannelId() to DisclawDatabase - Add src/lifecycle/categories.ts: ensureCategories() + moveToCategory() - Add src/lifecycle/reconcile.ts: reconcile() assigns channels to active/inactive/archive categories on startup - Add src/lifecycle/channel-delete-handler.ts: handles channelDelete events for management, category, and agent channels - Wire lifecycle into bot.ts: state object, ensureCategories, reconcile, channelDelete listener - Extend handleNewAgent() with optional activeCategoryId to place new channels in the active category - Add 13 unit tests covering all lifecycle scenarios Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| agent | ||
| commands | ||
| config | ||
| db | ||
| discord | ||
| lifecycle | ||
| runtime | ||
| bot.ts | ||
| index.ts | ||
| router.ts | ||