@anuma/agent-runtime 1.2.0 → 1.2.2
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.
- package/dist/index.cjs +5 -1
- package/dist/index.mjs +5 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -379,7 +379,11 @@ async function runAgentRequest(opts) {
|
|
|
379
379
|
model: opts.agent.model.default,
|
|
380
380
|
token: grant.bearer,
|
|
381
381
|
tools,
|
|
382
|
-
|
|
382
|
+
// X-Anuma-Surface drives portal auth/grant keying (OAuth client_id + first-party
|
|
383
|
+
// grant surface) — keep it. X-Anuma-Feature is the provenance header the portal
|
|
384
|
+
// records into requests.feature (#1353); without it, agent-runtime LLM traffic
|
|
385
|
+
// lands feature=null and can't be told apart from chat/background in prod.
|
|
386
|
+
headers: { "X-Anuma-Surface": "agent", "X-Anuma-Feature": "agent" },
|
|
383
387
|
...opts.portalBaseUrl ? { baseUrl: opts.portalBaseUrl } : void 0,
|
|
384
388
|
...opts.transport ? { transport: opts.transport } : void 0,
|
|
385
389
|
...opts.apiType ? { apiType: opts.apiType } : void 0
|
package/dist/index.mjs
CHANGED
|
@@ -351,7 +351,11 @@ async function runAgentRequest(opts) {
|
|
|
351
351
|
model: opts.agent.model.default,
|
|
352
352
|
token: grant.bearer,
|
|
353
353
|
tools,
|
|
354
|
-
|
|
354
|
+
// X-Anuma-Surface drives portal auth/grant keying (OAuth client_id + first-party
|
|
355
|
+
// grant surface) — keep it. X-Anuma-Feature is the provenance header the portal
|
|
356
|
+
// records into requests.feature (#1353); without it, agent-runtime LLM traffic
|
|
357
|
+
// lands feature=null and can't be told apart from chat/background in prod.
|
|
358
|
+
headers: { "X-Anuma-Surface": "agent", "X-Anuma-Feature": "agent" },
|
|
355
359
|
...opts.portalBaseUrl ? { baseUrl: opts.portalBaseUrl } : void 0,
|
|
356
360
|
...opts.transport ? { transport: opts.transport } : void 0,
|
|
357
361
|
...opts.apiType ? { apiType: opts.apiType } : void 0
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anuma/agent-runtime",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"description": "Server-side runtime contract for Anuma agents — extractGrantContext, PortalClient, runAgentRequest.",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
"access": "public"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@anuma/sdk": "1.2.
|
|
33
|
+
"@anuma/sdk": "1.2.2"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"tsup": "^8.5.1",
|
|
37
37
|
"typescript": "^5.9.3",
|
|
38
38
|
"vitest": "^4.1.8",
|
|
39
|
-
"@anuma/sdk": "1.2.
|
|
39
|
+
"@anuma/sdk": "1.2.2"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"build": "tsup",
|