refactor: cleanup shared constants and add async SDK support for isCallerOrchestrator

- Use shared OPENCODE_STORAGE, MESSAGE_STORAGE, PART_STORAGE constants
- Make isCallerOrchestrator async with SDK fallback for beta
- Fix cache implementation using Symbol sentinel
- Update atlas hooks and sisyphus-junior-notepad to use async isCallerOrchestrator
This commit is contained in:
YeonGyu-Kim
2026-02-14 19:24:30 +09:00
parent 1bb5a3a037
commit 068831f79e
8 changed files with 31 additions and 27 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ export function createToolExecuteAfterHandler(input: {
return
}
if (!isCallerOrchestrator(toolInput.sessionID)) {
if (!(await isCallerOrchestrator(toolInput.sessionID, ctx.client))) {
return
}