AgentSessionManager.Adapters.FileArtifactStore (AgentSessionManager v0.8.0)

Copy Markdown View Source

File-backed artifact store for local/dev usage.

Stores artifacts as files in a configurable root directory. Keys are sanitized to safe filenames using hex encoding of the key hash combined with a readable prefix.

Usage

{:ok, store} = FileArtifactStore.start_link(root: "/tmp/asm_artifacts")
:ok = ArtifactStore.put(store, "patch-abc123", "diff content...")
{:ok, data} = ArtifactStore.get(store, "patch-abc123")

Configuration

  • :root - Required. Root directory for artifact files.
  • :name - Optional. GenServer name for registration.

Summary

Functions

Returns a specification to start this module under a supervisor.

Starts the file artifact store.

Stops the store.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(opts)

@spec start_link(keyword()) :: GenServer.on_start()

Starts the file artifact store.

Options

  • :root - Required. Root directory for artifact storage.
  • :name - Optional. GenServer name.

stop(server)

@spec stop(GenServer.server()) :: :ok

Stops the store.