@twin3-ai/agent-id 0.3.18 → 0.3.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/site-agent.js +3 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin3-ai/agent-id",
3
- "version": "0.3.18",
3
+ "version": "0.3.19",
4
4
  "description": "Domain-bound AgentX portable alias, AEO evidence, and website-Agent integration SDK.",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,
package/site-agent.js CHANGED
@@ -293,7 +293,9 @@ function createSiteAgentClient(options = {}) {
293
293
  delete body.agentKey;
294
294
  const res = await fetchWithRetry(endpoint + SITE_AGENT_KEY_POLICY.privateEndpoint, {
295
295
  method: "POST",
296
- headers: { "content-type": "application/json" },
296
+ // Authorization is the canonical credential channel; the body field
297
+ // stays for compatibility with servers that predate header auth.
298
+ headers: { "content-type": "application/json", authorization: `Bearer ${key}` },
297
299
  body: JSON.stringify(body)
298
300
  });
299
301
  const data = await readJsonResponse(res);