docs: add PHPDoc to AgentDetection patterns #59

Merged
Snider merged 1 commit from docs/agent-detection-phpdoc into main 2026-02-23 12:04:18 +00:00
Member

Summary

  • Document each PROVIDER_PATTERNS entry with real User-Agent examples per provider and per model variant
  • Add categorised inline comments to BROWSER_INDICATORS and NON_AGENT_BOTS with example UA strings
  • Document MCP_TOKEN_HEADER with both supported token formats (opaque ak_ and structured provider:model:secret)
  • Expand class-level PHPDoc with detection priority ordering and usage examples
  • Mark DOC-001 complete in TODO.md

Test plan

  • No logic changes — existing tests continue to pass
  • PHPDoc renders correctly in IDE / static analysis

Closes #31

🤖 Generated with Claude Code

## Summary - Document each `PROVIDER_PATTERNS` entry with real User-Agent examples per provider and per model variant - Add categorised inline comments to `BROWSER_INDICATORS` and `NON_AGENT_BOTS` with example UA strings - Document `MCP_TOKEN_HEADER` with both supported token formats (opaque `ak_` and structured `provider:model:secret`) - Expand class-level PHPDoc with detection priority ordering and usage examples - Mark DOC-001 complete in `TODO.md` ## Test plan - [ ] No logic changes — existing tests continue to pass - [ ] PHPDoc renders correctly in IDE / static analysis Closes #31 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Clotho added 1 commit 2026-02-23 11:57:31 +00:00
docs: add PHPDoc to AgentDetection patterns
Some checks failed
CI / PHP 8.4 (pull_request) Failing after 1m21s
CI / PHP 8.3 (pull_request) Failing after 1m23s
e47998bc15
Document each PROVIDER_PATTERNS entry with real User-Agent examples,
add inline comments to BROWSER_INDICATORS and NON_AGENT_BOTS with
categorised UA examples, document MCP_TOKEN_HEADER with token format
details, and add class-level usage examples and detection priority
ordering.

Closes #31
Refs: DOC-001

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Snider merged commit b86714db6e into main 2026-02-23 12:04:18 +00:00
Snider deleted branch docs/agent-detection-phpdoc 2026-02-23 12:04:18 +00:00
Sign in to join this conversation.
No description provided.