mirror of
https://github.com/earendil-works/pi.git
synced 2026-06-18 15:54:04 +08:00
77fe3f1a13
- Add contextTransform option to Agent (runs before messageTransformer) - Deep copy messages before passing to contextTransform (modifications are ephemeral) - Add ContextEvent and ContextEventResult types - Add emitContext() to HookRunner (chains multiple handlers) - Wire up in sdk.ts when creating Agent with hooks Enables dynamic context pruning: hooks can modify messages sent to LLM without changing session data. See discussion #330.
77fe3f1a13
ยท
2025-12-30 22:42:20 +01:00
History