Skip to main content
Version: 1.8.0

feat-record-agent-on-create

🚀 Features​

Record agent and version on document create​

Goal: POST /api/documents stores the agent headers that were actually sent, so a later neo read can see who created the document.

Solution: When Bcyip-Agent is non-empty, write auto-attribute bcyip:agent with that header value. When Bcyip-Version is non-empty, write bcyip:agent-version with that header value. A missing or blank header is omitted. The values are not taken from users.agent or apitokens.agent. fileId rules, the required-header check, and folder filters are unchanged.

Features:

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

Files Modified:

  • app/util/documentIngest.js - Build the auto-attributes from headers
  • app/routes/documents.js - Apply them on document create
  • app/database/schema/document.js - Persist autoAttributes