agent-relay-server 0.73.0 → 0.73.1
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/docs/openapi.json +1 -1
- package/package.json +1 -1
- package/src/context-advisory.ts +2 -2
package/docs/openapi.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"openapi": "3.1.0",
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "Agent Relay API",
|
|
5
|
-
"version": "0.73.
|
|
5
|
+
"version": "0.73.1",
|
|
6
6
|
"description": "Real-time message bus for inter-agent communication. Agent-first: this spec is designed for machine consumption — agents can self-discover the full API surface via GET /api/spec.",
|
|
7
7
|
"license": {
|
|
8
8
|
"name": "MIT",
|
package/package.json
CHANGED
package/src/context-advisory.ts
CHANGED
|
@@ -96,7 +96,7 @@ export function handleContextPressure(input: {
|
|
|
96
96
|
}): boolean {
|
|
97
97
|
const { agent, now } = input;
|
|
98
98
|
const context = agent.context;
|
|
99
|
-
if (!context
|
|
99
|
+
if (!context) return false;
|
|
100
100
|
if (context.lifecycleState === "compacting" || context.lifecycleState === "hibernating") return false;
|
|
101
101
|
if (typeof context.utilization !== "number" || !Number.isFinite(context.utilization)) return false;
|
|
102
102
|
const threshold = effectiveContextThreshold(agent);
|
|
@@ -107,7 +107,7 @@ export function handleContextPressure(input: {
|
|
|
107
107
|
}
|
|
108
108
|
return false;
|
|
109
109
|
}
|
|
110
|
-
if (context.utilization >= threshold.hardBackstopUtilization && context.lastContextAdvisoryAt !== undefined && agent.providerCapabilities?.context?.compact === true && !input.hasActiveCommand(agent.id, "agent.compact")) {
|
|
110
|
+
if (agent.status !== "busy" && context.utilization >= threshold.hardBackstopUtilization && context.lastContextAdvisoryAt !== undefined && agent.providerCapabilities?.context?.compact === true && !input.hasActiveCommand(agent.id, "agent.compact")) {
|
|
111
111
|
input.compact("context-hard-backstop");
|
|
112
112
|
return true;
|
|
113
113
|
}
|