Inline session fork parameters

This commit is contained in:
Hypatia May
2026-07-07 09:04:49 +08:00
parent 9c5da8d81f
commit c7fba41ba9
8 changed files with 38 additions and 60 deletions

View File

@@ -17,14 +17,8 @@ The store exposes one operation:
```ts ignore-check
type SessionForkSource = Session | SessionId
interface ForkSessionOptions {
source: SessionForkSource
boundary?: number
childSessionId?: SessionId
}
class SessionStore extends Service {
fork(options: ForkSessionOptions): Session
fork(source: SessionForkSource, boundary?: number, childSessionId?: SessionId): Session
}
```