Services.TempFile (fnord v0.8.88)
View SourceSingleton service for creating temporary files via Briefly.
This centralizes ownership of Briefly-created temp files to a single
long-lived process, so that files can survive across multiple tool calls
within the same BEAM node. All options are passed through to
Briefly.create/1 unchanged, allowing future callers to migrate without
changing their option shapes.
Summary
Types
@type opts() :: Keyword.t()
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
Create a new temporary file via Briefly.
Accepts an optional keyword list of options and forwards them unchanged
to Briefly.create/1.
Like mktemp/1, but raises on error.
@spec start_link(any()) :: GenServer.on_start()