diff --git a/packages/coding-agent/CHANGELOG.md b/packages/coding-agent/CHANGELOG.md index e7b346a4..76307cc8 100644 --- a/packages/coding-agent/CHANGELOG.md +++ b/packages/coding-agent/CHANGELOG.md @@ -57,6 +57,7 @@ - `CustomToolContext` provides `sessionManager: ReadonlySessionManager`, `modelRegistry`, and `model` - `dispose()` method removed - use `onSession` with `reason: "shutdown"` for cleanup - `CustomToolFactory` return type changed to `CustomTool` for type compatibility +- **AgentSession.branch()**: Now takes `entryId: string` instead of `entryIndex: number`. `SessionBeforeBranchEvent.entryId` replaces `entryIndex`. `getUserMessagesForBranching()` returns `{ entryId, text }` instead of `{ entryIndex, text }`. - **Renamed exports**: - `messageTransformer` → `convertToLlm` - `SessionContext` alias `LoadedSession` removed (use `SessionContext` directly) diff --git a/packages/coding-agent/docs/sdk.md b/packages/coding-agent/docs/sdk.md index 6363fa1e..bd86f465 100644 --- a/packages/coding-agent/docs/sdk.md +++ b/packages/coding-agent/docs/sdk.md @@ -1,3 +1,5 @@ +> pi can help you use the SDK. Ask it to build an integration for your use case. + # SDK The SDK provides programmatic access to pi's agent capabilities. Use it to embed pi in other applications, build custom interfaces, or integrate with automated workflows.