@pushwoosh/rpc-gateway-ai-assistant 0.1.399 → 0.1.400
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/data.js +22 -1
- package/package.json +1 -1
- package/pushwoosh_agentrunner_v1.d.ts +19 -1
package/data.js
CHANGED
|
@@ -168,6 +168,9 @@ export const data = {
|
|
|
168
168
|
},
|
|
169
169
|
"sessionAppend": {
|
|
170
170
|
"type": "pushwoosh.agentrunner.v1.SessionAppend"
|
|
171
|
+
},
|
|
172
|
+
"rateLimit": {
|
|
173
|
+
"type": "pushwoosh.agentrunner.v1.RateLimit"
|
|
171
174
|
}
|
|
172
175
|
},
|
|
173
176
|
"oneofs": {
|
|
@@ -177,7 +180,8 @@ export const data = {
|
|
|
177
180
|
"assistantMessage",
|
|
178
181
|
"toolCall",
|
|
179
182
|
"done",
|
|
180
|
-
"sessionAppend"
|
|
183
|
+
"sessionAppend",
|
|
184
|
+
"rateLimit"
|
|
181
185
|
]
|
|
182
186
|
}
|
|
183
187
|
}
|
|
@@ -240,6 +244,23 @@ export const data = {
|
|
|
240
244
|
}
|
|
241
245
|
}
|
|
242
246
|
},
|
|
247
|
+
"pushwoosh.agentrunner.v1.RateLimit": {
|
|
248
|
+
"type": "I",
|
|
249
|
+
"fields": {
|
|
250
|
+
"status": {
|
|
251
|
+
"type": "string"
|
|
252
|
+
},
|
|
253
|
+
"window": {
|
|
254
|
+
"type": "string"
|
|
255
|
+
},
|
|
256
|
+
"utilization": {
|
|
257
|
+
"type": "number"
|
|
258
|
+
},
|
|
259
|
+
"resetsAt": {
|
|
260
|
+
"type": "number"
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
},
|
|
243
264
|
"pushwoosh.agentrunner.v1.Usage": {
|
|
244
265
|
"type": "I",
|
|
245
266
|
"fields": {
|
package/package.json
CHANGED
|
@@ -111,7 +111,11 @@ export type TurnEvent_payload_sessionAppend = {
|
|
|
111
111
|
type: 'sessionAppend';
|
|
112
112
|
data: SessionAppend;
|
|
113
113
|
};
|
|
114
|
-
export type
|
|
114
|
+
export type TurnEvent_payload_rateLimit = {
|
|
115
|
+
type: 'rateLimit';
|
|
116
|
+
data: RateLimit;
|
|
117
|
+
};
|
|
118
|
+
export type TurnEvent_payload = TurnEvent_payload_delta | TurnEvent_payload_assistantMessage | TurnEvent_payload_toolCall | TurnEvent_payload_done | TurnEvent_payload_sessionAppend | TurnEvent_payload_rateLimit;
|
|
115
119
|
export type TurnEvent = {
|
|
116
120
|
payload: TurnEvent_payload;
|
|
117
121
|
};
|
|
@@ -143,6 +147,20 @@ export type SessionAppend = {
|
|
|
143
147
|
sessionId: string;
|
|
144
148
|
lines: string[];
|
|
145
149
|
};
|
|
150
|
+
/**
|
|
151
|
+
* RateLimit is the CLI's view of the subscription's windows — the only place the remaining
|
|
152
|
+
* allowance is visible to us at all, and it arrives only on a subscription profile.
|
|
153
|
+
*/
|
|
154
|
+
export type RateLimit = {
|
|
155
|
+
/** allowed | allowed_warning | rejected */
|
|
156
|
+
status: string;
|
|
157
|
+
/** five_hour | seven_day | seven_day_opus | … */
|
|
158
|
+
window: string;
|
|
159
|
+
/** percent of the window spent */
|
|
160
|
+
utilization: number;
|
|
161
|
+
/** unix seconds; 0 when the CLI did not say */
|
|
162
|
+
resetsAt: number;
|
|
163
|
+
};
|
|
146
164
|
export type Usage = {
|
|
147
165
|
model: string;
|
|
148
166
|
inputTokens: number;
|