co-mono/packages/mom/src
Mario Zechner 6f94e24629 Session tree: simplify types, add branching API, comprehensive tests
Types:
- SessionEntryBase with type field, extended by all entry types
- CustomEntry for hooks (type: 'custom', customType, data)
- Remove XXXContent types and TreeNode (redundant)

API:
- Rename saveXXX to appendXXX with JSDoc explaining tree semantics
- Rename branchInPlace to branch() with better docs
- Add createBranchedSession(leafId) replacing index-based version
- Add getTree() returning SessionTreeNode[] for tree traversal
- Add appendCustomEntry(customType, data) for hooks

Tests:
- tree-traversal.test.ts: 28 tests covering append, getPath, getTree,
  branch, branchWithSummary, createBranchedSession
- save-entry.test.ts: custom entry integration

Docs:
- Class-level JSDoc explaining append-only tree model
- Method docs explaining leaf advancement and branching
- CHANGELOG.md entry for all changes
2025-12-30 22:42:18 +01:00
..
tools Port truncation logic from coding-agent to mom 2025-12-09 16:05:08 +01:00
agent.ts Session tree: simplify types, add branching API, comprehensive tests 2025-12-30 22:42:18 +01:00
context.ts Session tree: simplify types, add branching API, comprehensive tests 2025-12-30 22:42:18 +01:00
download.ts Release v0.18.5 2025-12-12 10:00:57 +01:00
events.ts mom: add events system for scheduled wake-ups 2025-12-12 22:45:34 +01:00
log.ts Enable more biome lints and fix things 2025-12-21 22:56:20 +01:00
main.ts make mom fetch apiKey from authStorage instead of env vars 2025-12-29 12:50:43 +09:00
sandbox.ts mom: Docker sandbox support with --sandbox=docker:container-name option 2025-11-26 01:06:00 +01:00
slack.ts Enable more biome lints and fix things 2025-12-21 22:56:20 +01:00
store.ts Enable more biome lints and fix things 2025-12-21 22:56:20 +01:00