Skip to main content
Version: 1.2.0

feat-record-agent-headers

✨ New Features​

Record agent headers on document create​

Goal: The document stores the agent headers that were sent, not the agent name attached to the token.

Solution: On create, write bcyip:agent from a non-empty Bcyip-Agent and bcyip:agent-version from a non-empty Bcyip-Version. A missing or blank header is omitted. The stored value is not read from apiTokenAgent.

Features:

  • Non-empty Bcyip-Agent → bcyip:agent
  • Non-empty Bcyip-Version → bcyip:agent-version
  • No invented value when a header is absent

Files Modified:

  • src/domains/document/document.service.ts - Header values written as auto-attributes
  • src/domains/document/document.controller.ts - OpenAPI ingest description