- Added BeforeSummarizeCallback type to allow injecting context before session summarization - Added onBeforeSummarize option to PreemptiveCompactionOptions - Created compaction-context-injector module that injects summarization instructions with sections: - User Requests (As-Is) - Final Goal - Work Completed - Remaining Tasks - MUST NOT Do (Critical Constraints) - Wired up callback invocation in preemptive-compaction before calling summarize API - Exported new hook from src/hooks/index.ts 🤖 GENERATED WITH ASSISTANCE OF [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode)
24 lines
1.7 KiB
TypeScript
24 lines
1.7 KiB
TypeScript
export { createTodoContinuationEnforcer, type TodoContinuationEnforcer } from "./todo-continuation-enforcer";
|
|
export { createContextWindowMonitorHook } from "./context-window-monitor";
|
|
export { createSessionNotification } from "./session-notification";
|
|
export { createSessionRecoveryHook, type SessionRecoveryHook, type SessionRecoveryOptions } from "./session-recovery";
|
|
export { createCommentCheckerHooks } from "./comment-checker";
|
|
export { createToolOutputTruncatorHook } from "./tool-output-truncator";
|
|
export { createDirectoryAgentsInjectorHook } from "./directory-agents-injector";
|
|
export { createDirectoryReadmeInjectorHook } from "./directory-readme-injector";
|
|
export { createEmptyTaskResponseDetectorHook } from "./empty-task-response-detector";
|
|
export { createAnthropicAutoCompactHook, type AnthropicAutoCompactOptions } from "./anthropic-auto-compact";
|
|
export { createPreemptiveCompactionHook, type PreemptiveCompactionOptions, type SummarizeContext, type BeforeSummarizeCallback } from "./preemptive-compaction";
|
|
export { createCompactionContextInjector } from "./compaction-context-injector";
|
|
export { createThinkModeHook } from "./think-mode";
|
|
export { createClaudeCodeHooksHook } from "./claude-code-hooks";
|
|
export { createRulesInjectorHook } from "./rules-injector";
|
|
export { createBackgroundNotificationHook } from "./background-notification"
|
|
export { createAutoUpdateCheckerHook } from "./auto-update-checker";
|
|
|
|
export { createAgentUsageReminderHook } from "./agent-usage-reminder";
|
|
export { createKeywordDetectorHook } from "./keyword-detector";
|
|
export { createNonInteractiveEnvHook } from "./non-interactive-env";
|
|
export { createInteractiveBashSessionHook } from "./interactive-bash-session";
|
|
export { createEmptyMessageSanitizerHook } from "./empty-message-sanitizer";
|