docs(openrouter-typescript-sdk): sync with openrouter-web changes - #96
docs(openrouter-typescript-sdk): sync with openrouter-web changes#96devin-ai-integration[bot] wants to merge 1 commit into
Conversation
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Original prompt from Automation
|
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
Summary
Adds a Lifecycle Hooks section to the
openrouter-typescript-sdkskill, covering the new@openrouter/agenthooks capability. The skill already documents the rest of thecallModelcontrol surface (stop conditions,nextTurnParams, dynamic params, streaming) but had no mention of hooks.Triggered by openrouter-web PR #29779 (
docs: add Agent SDK lifecycle hooks guide), which documents thehooksoption oncallModelplus theHooksManagerexport and the full set of built-in hooks.What changed
## Lifecycle Hookssection inSKILL.md: inlinehooksusage oncallModel, the built-in hooks table (SessionStart,UserPromptSubmit,PostModelCall,PermissionRequest,PreToolUse,PostToolUse,PostToolUseFailure,Stop,SessionEnd), theHooksManagerpattern, and handler-chain / matcher / async-detach behavior. Links to the Lifecycle Hooks guide for full types.No frontmatter/
metadata.jsonversion bump (consistent with prior syncs).Source
Link to Devin session: https://openrouter.devinenterprise.com/sessions/965f567f910641019e2f9286da108367