agents-relay 2.0.19 → 2.0.20

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.
@@ -145,11 +145,18 @@ export async function routeExecution(workers, requirements, options = {}) {
145
145
  profile: route.model.profile ?? null,
146
146
  reasoning: route.model.reasoning ?? null,
147
147
  resourceHealthy: route.model.resourceHealthy ?? null,
148
- resourceUsedPercent: route.model.resourceUsedPercent ?? null,
149
- resourceRemainingPercent: route.model.resourceRemainingPercent ?? null,
150
- resourceResetAt: route.model.resourceResetAt ?? null,
151
- resourceResetInMinutes: route.model.resourceResetInMinutes ?? null,
152
- resourceWindows: route.model.resourceWindows ?? null,
148
+ usage: {
149
+ five_hour: route.model.resourceWindows?.fiveHour ? {
150
+ remaining_percent: route.model.resourceWindows.fiveHour.remainingPercent ?? null,
151
+ reset_at: route.model.resourceWindows.fiveHour.resetAt ?? null,
152
+ reset_in_minutes: route.model.resourceWindows.fiveHour.resetInMinutes ?? null,
153
+ } : null,
154
+ weekly: route.model.resourceWindows?.weekly ? {
155
+ remaining_percent: route.model.resourceWindows.weekly.remainingPercent ?? null,
156
+ reset_at: route.model.resourceWindows.weekly.resetAt ?? null,
157
+ reset_in_minutes: route.model.resourceWindows.weekly.resetInMinutes ?? null,
158
+ } : null,
159
+ },
153
160
  },
154
161
  })),
155
162
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agents-relay",
3
- "version": "2.0.19",
3
+ "version": "2.0.20",
4
4
  "description": "Durable async agent jobs coordinated through GitHub pull requests",
5
5
  "type": "module",
6
6
  "bin": {