Services.TempFile (fnord v0.9.39)
View SourceTree-scoped service for creating temporary files via Briefly.
This centralizes ownership of Briefly-created temp files to a single
long-lived process per instance tree (see Services.Instance), so that
files can survive across multiple tool calls within the same session. 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()