@illuma-ai/agents 1.3.1 → 1.3.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.
|
@@ -116,6 +116,16 @@ export type ToolCallsDetails = {
|
|
|
116
116
|
export type ToolCallDelta = {
|
|
117
117
|
type: StepTypes;
|
|
118
118
|
tool_calls?: ToolCallChunk[];
|
|
119
|
+
/**
|
|
120
|
+
* Auth URL for tool calls that require interactive authentication
|
|
121
|
+
* (typically OAuth-gated MCP tools). Hosts populate this on a delta
|
|
122
|
+
* dispatch when a tool invocation surfaces an auth challenge so the
|
|
123
|
+
* client can render an approval prompt without waiting for the call
|
|
124
|
+
* to complete.
|
|
125
|
+
*/
|
|
126
|
+
auth?: string;
|
|
127
|
+
/** Auth challenge expiration (UNIX seconds). Pairs with `auth`. */
|
|
128
|
+
expires_at?: number;
|
|
119
129
|
};
|
|
120
130
|
export type AgentToolCall = {
|
|
121
131
|
id: string;
|
package/package.json
CHANGED
package/src/types/stream.ts
CHANGED
|
@@ -164,6 +164,16 @@ export type ToolCallsDetails = {
|
|
|
164
164
|
export type ToolCallDelta = {
|
|
165
165
|
type: StepTypes;
|
|
166
166
|
tool_calls?: ToolCallChunk[]; // #new
|
|
167
|
+
/**
|
|
168
|
+
* Auth URL for tool calls that require interactive authentication
|
|
169
|
+
* (typically OAuth-gated MCP tools). Hosts populate this on a delta
|
|
170
|
+
* dispatch when a tool invocation surfaces an auth challenge so the
|
|
171
|
+
* client can render an approval prompt without waiting for the call
|
|
172
|
+
* to complete.
|
|
173
|
+
*/
|
|
174
|
+
auth?: string;
|
|
175
|
+
/** Auth challenge expiration (UNIX seconds). Pairs with `auth`. */
|
|
176
|
+
expires_at?: number;
|
|
167
177
|
};
|
|
168
178
|
|
|
169
179
|
export type AgentToolCall =
|
|
@@ -70,9 +70,9 @@ describe('isContextOverflowError (strict)', () => {
|
|
|
70
70
|
});
|
|
71
71
|
|
|
72
72
|
it('matches request_too_large', () => {
|
|
73
|
-
expect(
|
|
74
|
-
|
|
75
|
-
)
|
|
73
|
+
expect(isContextOverflowError('Error code 413: request_too_large')).toBe(
|
|
74
|
+
true
|
|
75
|
+
);
|
|
76
76
|
});
|
|
77
77
|
|
|
78
78
|
it('is case-insensitive', () => {
|
|
@@ -131,6 +131,8 @@ describe('isLikelyContextOverflowError (loose)', () => {
|
|
|
131
131
|
|
|
132
132
|
it('returns false for unrelated errors', () => {
|
|
133
133
|
expect(isLikelyContextOverflowError('ECONNREFUSED')).toBe(false);
|
|
134
|
-
expect(isLikelyContextOverflowError('unexpected token in JSON')).toBe(
|
|
134
|
+
expect(isLikelyContextOverflowError('unexpected token in JSON')).toBe(
|
|
135
|
+
false
|
|
136
|
+
);
|
|
135
137
|
});
|
|
136
138
|
});
|