feat: add agent fallback and preemptive-compaction restoration

- Add agent visibility fallback for first-run scenarios
- Restore preemptive-compaction hook
- Update migration and schema for preemptive-compaction restoration
This commit is contained in:
YeonGyu-Kim
2026-02-02 22:40:59 +09:00
parent 1bba54c7f6
commit 39dc2ff303
10 changed files with 259 additions and 14 deletions
+4 -5
View File
@@ -280,10 +280,9 @@ describe("migrateHookNames", () => {
// then: Removed hooks should be filtered out
expect(changed).toBe(true)
expect(migrated).toEqual(["comment-checker"])
expect(removed).toContain("preemptive-compaction")
expect(migrated).toEqual(["preemptive-compaction", "comment-checker"])
expect(removed).toContain("empty-message-sanitizer")
expect(removed).toHaveLength(2)
expect(removed).toHaveLength(1)
})
test("handles mixed migration and removal", () => {
@@ -297,8 +296,8 @@ describe("migrateHookNames", () => {
expect(changed).toBe(true)
expect(migrated).toContain("anthropic-context-window-limit-recovery")
expect(migrated).toContain("atlas")
expect(migrated).not.toContain("preemptive-compaction")
expect(removed).toEqual(["preemptive-compaction"])
expect(migrated).toContain("preemptive-compaction")
expect(removed).toEqual([])
})
})
-1
View File
@@ -64,7 +64,6 @@ export const HOOK_NAME_MAP: Record<string, string | null> = {
"sisyphus-orchestrator": "atlas",
// Removed hooks (v3.0.0) - will be filtered out and user warned
"preemptive-compaction": null,
"empty-message-sanitizer": null,
}