pi-mono/packages/agent/test
Mario Zechner 04a93bad8f fix(ai,agent,coding-agent,durable): client identity follow-ups
- ClientAttribution is { name, url, categories? } with required name and url, so
  OpenRouter always gets an HTTP-Referer. identity.ts maps the fields to each
  provider's headers; NVIDIA gets the name with its first letter upper-cased.
  attribution: null turns it off. PI_ATTRIBUTION is pi's, including the
  cli-agent category; agent-core, durable, and the coding agent use it.
- Categories are a string array, joined for OpenRouter.
- withClientIdentity() is a typed wrapper instead of a Proxy and keeps a
  MutableModels mutable. Durable no longer caches wrappers in a WeakMap.
- The Codex originator stays pi; login agentName no longer follows attribution.
- Models and the coding agent's ModelRuntime add x-opencode-session for custom
  providers pointing at OpenCode, replacing the coding agent's transformHeaders.
2026-10-21 11:18:16 +00:00
..
utils feat(agent): add AgentHarness R2 minimal run 2026-08-14 16:18:33 +02:00
agent-loop.test.ts fix(ai): time responses with private fields; use the real stream in proxy and test mocks 2026-10-06 20:26:27 +02:00
agent.test.ts fix(ai,agent,coding-agent,durable): client identity follow-ups 2026-10-21 11:18:16 +00:00
e2e.test.ts Mid conversation system messages (#9548) 2026-09-16 15:54:07 +02:00
proxy.test.ts Mid conversation system messages (#9548) 2026-09-16 15:54:07 +02:00