@rigkit/provider-freestyle
v0.2.17
Published
Freestyle provider integration for `rig`.
Readme
@rigkit/provider-freestyle
Freestyle provider integration for rig.
This package supplies:
freestyle.provider(...)for host Freestyle authenticationfreestyle.terminal()for provider-owned browser terminal sessions targeting Freestyle VMsproviders.freestyle.clientfor direct access to the authenticated Freestyle SDK clientproviders.freestyle.createSSHOptions(...)for VM SSH connection options with provider-owned auth handled internallyproviders.freestyle.cmux.createSshOptions(...)andproviders.freestyle.vscode.createUrl(...)adapter helpers- Freestyle-specific JSON state helpers backed by Rigkit provider storage
Use vm.exec(...) inside workflow tasks to install VM dependencies before taking a snapshot. Pass console.log to Freestyle SDK calls that accept logger to stream SDK progress into the CLI. Console output inside a task handler is intercepted by the Rigkit runtime and emitted as leveled log.output events.
By default the provider authenticates through a browser login and stores Freestyle credentials in Rigkit's provider host storage, outside project .rigkit/state.sqlite. Pass freestyle.provider({ apiKey }) or freestyle.provider(apiKey) to use API-key auth instead.
