Skip to content

BrunoTooling

Defined in: capabilities/tooling.ts:91

The Bruno implementation of the tooling capability: files only.

  • Tooling

new BrunoTooling(options?): BrunoTooling

Defined in: capabilities/tooling.ts:99

BrunoToolingOptions = {}

BrunoTooling

readonly key: "tooling"

Defined in: capabilities/tooling.ts:93

The capability this class provides, always "tooling".

Tooling.key


readonly providerName: "bruno" = "bruno"

Defined in: capabilities/tooling.ts:95

The provider name, "bruno".

Tooling.providerName

doctor(): Promise<ToolingDoctorReport>

Defined in: capabilities/tooling.ts:106

Check the tool is set up and working, and report what was found.

Promise<ToolingDoctorReport>

Tooling.doctor


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.

ToolingExportInput

Promise<ToolingExportResult>

Tooling.export


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.

ToolingOpenInput

Promise<ToolingOpenPlan>

Tooling.open


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.

Promise<void>

Tooling.sync


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.

ToolingWorkspaceInput

Promise<ToolingWorkspaceResult>

Tooling.workspace