Methods
continue()
Parameters
options?
Optional working-directory filter.cwd?
string
Returns
Promise<Session>
The selected session handle.
Throws
If no matching session is available.create()
Parameters
options?
SessionCreateOptions
Working directory, metadata and runtime policy.
Returns
Promise<Session>
A session with a ready callback dispatcher.
Throws
Configuration or transport errors.delete()
Parameters
sessionId
string
Session to delete.
Returns
Promise<void>
Completion when deletion succeeds.
Throws
Transport or cleanup errors.fork()
Parameters
sessionId
string
Source session ID.
options?
Optional message boundary, metadata and runtime overrides.messageId?
string
permission?
PermissionRuleset
runtimeConfig?
RuntimeConfig
title?
string
Returns
Promise<Session>
The independent fork.
Throws
If the source or boundary is invalid.get()
Parameters
sessionId
string
Existing runtime session ID.
Returns
Promise<Session>
The attached session.
Throws
If the session cannot be located.list()
Parameters
filter?
SessionListFilter
Directory, tags and pagination filters.
Returns
Promise<Session[]>
Matching session records.
Throws
Transport errors.resume()
Parameters
sessionId
string
options?
SessionResumeOptions
Returns
Promise<Session>