create()
Create a new source view. Iffilter is provided, the view is created in query mode. Otherwise, it uses smart mode with LLM inference from guidance.
Returns
Promise<SourceView>
list()
List all source views in a workspace.
Returns
Promise<SourceView[]>
retrieve()
Get a source view by its virtual filesystem path.
Returns
Promise<SourceView>
update()
Update an existing source view’s name, guidance, or filter.
Returns
Promise<SourceView>
del()
Delete a source view.
Returns
Promise<void>
sync()
Sync a source view — re-execute its query against the live source and refresh cached files.
Returns
Promise<SyncResult>
SourceView object
All view methods return (or accept) aSourceView with these fields: