Client
Defined in: src/index.ts:140
Constructors
Constructor
new Client(
config?):Client
Defined in: src/index.ts:144
Parameters
config?
ClientConfig = {}
Returns
Client
Methods
connect()
connect(
config,onProgress?):Promise<Session>
Defined in: src/index.ts:164
Connect to a repository and create a session.
Starts a root OTel “ask” span that lives until Session.close() is called.
The caller MUST invoke session.close() (typically in a finally block)
or the root span never ends and the OTel SDK drops the whole trace on
shutdown. See Session.close() for details.
Parameters
config
Session configuration (repo, model, iterations, etc.)
onProgress?
(message) => void
Optional callback for clone progress messages
Returns
Promise<Session>
A Session for asking questions about the repository
resetSandbox()
resetSandbox():
Promise<void>
Defined in: src/index.ts:286
Reset the sandbox, deleting all cloned repositories. Only available when sandbox mode is enabled.
Returns
Promise<void>