BrunoTooling
Defined in: capabilities/tooling.ts:91
The Bruno implementation of the tooling capability: files only.
Implements
Section titled “Implements”Tooling
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new BrunoTooling(
options?):BrunoTooling
Defined in: capabilities/tooling.ts:99
Parameters
Section titled “Parameters”options?
Section titled “options?”BrunoToolingOptions = {}
Returns
Section titled “Returns”BrunoTooling
Properties
Section titled “Properties”
readonlykey:"tooling"
Defined in: capabilities/tooling.ts:93
The capability this class provides, always "tooling".
Implementation of
Section titled “Implementation of”Tooling.key
providerName
Section titled “providerName”
readonlyproviderName:"bruno"="bruno"
Defined in: capabilities/tooling.ts:95
The provider name, "bruno".
Implementation of
Section titled “Implementation of”Tooling.providerName
Methods
Section titled “Methods”doctor()
Section titled “doctor()”doctor():
Promise<ToolingDoctorReport>
Defined in: capabilities/tooling.ts:106
Check the tool is set up and working, and report what was found.
Returns
Section titled “Returns”Promise<ToolingDoctorReport>
Implementation of
Section titled “Implementation of”Tooling.doctor
export()
Section titled “export()”export(
input):Promise<ToolingExportResult>
Defined in: capabilities/tooling.ts:123
Write the repo’s request collections (and environments) in this tool’s own format into input.outDir, so a
person can open them in the tool. The repo’s files stay the one source: nothing is written back, and the tool’s
account is never touched. With input.dryRun the files are converted but not written, and files lists what
would be. Optional — a tool that reads the source format as it is omits it. Used by holocron export requests.
Parameters
Section titled “Parameters”ToolingExportInput
Returns
Section titled “Returns”Promise<ToolingExportResult>
Implementation of
Section titled “Implementation of”Tooling.export
open()
Section titled “open()”open(
input):Promise<ToolingOpenPlan>
Defined in: capabilities/tooling.ts:152
Say what it takes to open the tool’s workspace with its secrets filled in from outside: which values the
workspace reads (each a variable that refers to a named entry, e.g. an entry of a vault Environment), where the
tool reads them from, how to start it and how to tell it is already running. It reads the workspace and nothing
else: no value, no network, nothing written. The caller reads the entries, writes them where the tool looks and
starts it, so the provider holds no secret. Optional — a tool with no way to be started this way omits it. Used
by holocron open requests.
Parameters
Section titled “Parameters”ToolingOpenInput
Returns
Section titled “Returns”Promise<ToolingOpenPlan>
Implementation of
Section titled “Implementation of”Tooling.open
sync()
Section titled “sync()”sync():
Promise<void>
Defined in: capabilities/tooling.ts:104
Nothing to reconcile: Bruno keeps no state of its own, and the files are written by export.
Returns
Section titled “Returns”Promise<void>
Implementation of
Section titled “Implementation of”Tooling.sync
workspace()
Section titled “workspace()”workspace(
input):Promise<ToolingWorkspaceResult>
Defined in: capabilities/tooling.ts:156
Keep a workspace of this tool’s own files, committed in the repo, in step with the repo’s request files, both
ways: the tool opens the workspace in place and saves its edits there, where export only writes a throwaway
copy. The provider owns the folder (Bruno’s is .bruno/ at the repo root) and the layout, and records for each
pair of files what both sides looked like at the last sync (a baseline it commits beside the workspace). A run
compares each side with that baseline: only the request file changed, so the workspace is regenerated from it;
only the workspace changed, so the request file is regenerated from the workspace (what the request file cannot
hold stays in the workspace and is reported as an issue); both changed to different content, a conflict
that is written to neither side unless input.prefer names the winner. Each file is reported as new,
changed, unchanged, removed (a workspace file it no longer generates) or conflict, so a caller can check
without writing. With input.dryRun it converts and compares but writes and deletes nothing, and with a
conflict it writes nothing at all. Optional — a tool with no files of its own omits it. Used by
holocron sync requests.
Parameters
Section titled “Parameters”ToolingWorkspaceInput
Returns
Section titled “Returns”Promise<ToolingWorkspaceResult>
Implementation of
Section titled “Implementation of”Tooling.workspace