supercompat 2.23.0 → 2.25.0
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 +200 -852
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -53
- package/dist/index.d.ts +2 -53
- package/dist/index.js +207 -851
- package/dist/index.js.map +1 -1
- package/dist/supercompat.cjs +0 -4
- package/dist/supercompat.cjs.map +1 -1
- package/dist/supercompat.js +0 -4
- package/dist/supercompat.js.map +1 -1
- package/package.json +1 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export { supercompat } from './supercompat.cjs';
|
|
2
2
|
import OpenAI, { AzureOpenAI } from 'openai';
|
|
3
|
-
import { AIProjectsClient } from '@azure/ai-projects';
|
|
4
3
|
import { Mistral } from '@mistralai/mistralai';
|
|
5
4
|
import Anthropic from '@anthropic-ai/sdk';
|
|
6
5
|
import { MessageWithRun, StorageAdapterArgs } from './types/index.cjs';
|
|
@@ -52,14 +51,6 @@ declare const azureOpenaiClientAdapter: ({ azureOpenai, }: {
|
|
|
52
51
|
};
|
|
53
52
|
};
|
|
54
53
|
|
|
55
|
-
declare const azureAiProjectsClientAdapter: ({ azureAiProjectsClient, }: {
|
|
56
|
-
azureAiProjectsClient: AIProjectsClient;
|
|
57
|
-
}) => {
|
|
58
|
-
type: string;
|
|
59
|
-
client: AIProjectsClient;
|
|
60
|
-
requestHandlers: {};
|
|
61
|
-
};
|
|
62
|
-
|
|
63
54
|
declare const mistralClientAdapter: ({ mistral, }: {
|
|
64
55
|
mistral: Mistral;
|
|
65
56
|
}) => {
|
|
@@ -165,53 +156,11 @@ declare const completionsRunAdapter: () => ({ client: clientAdapter, run, onEven
|
|
|
165
156
|
getMessages: () => Promise<MessageWithRun[]>;
|
|
166
157
|
}) => Promise<any>;
|
|
167
158
|
|
|
168
|
-
declare const azureAgentsStorageAdapter: ({ azureAiProjectsClient, }: {
|
|
169
|
-
azureAiProjectsClient: AIProjectsClient;
|
|
170
|
-
}) => ({ runAdapter, }: StorageAdapterArgs) => {
|
|
171
|
-
requestHandlers: {
|
|
172
|
-
"^/(?:v1|/?openai)/threads$": {
|
|
173
|
-
post: (options?: openai_core_mjs.RequestOptions<unknown> | undefined) => Promise<Response & {
|
|
174
|
-
json: () => Promise<{
|
|
175
|
-
(body?: openai_resources_beta_threads_threads_mjs.ThreadCreateParams | undefined, options?: openai_core_mjs.RequestOptions<unknown> | undefined): openai_core_mjs.APIPromise<openai_resources_beta_threads_threads_mjs.Thread>;
|
|
176
|
-
(options?: openai_core_mjs.RequestOptions<unknown> | undefined): openai_core_mjs.APIPromise<openai_resources_beta_threads_threads_mjs.Thread>;
|
|
177
|
-
}>;
|
|
178
|
-
}>;
|
|
179
|
-
};
|
|
180
|
-
"^/(?:v1|/?openai)/threads/([^/]+)/messages$": {
|
|
181
|
-
post: (urlString: string, options: any) => Promise<Response & {
|
|
182
|
-
json: () => Promise<openai_core_mjs.APIPromise<openai_resources_beta_threads_messages_mjs.Message>>;
|
|
183
|
-
}>;
|
|
184
|
-
get: (urlString: string) => Promise<Response & {
|
|
185
|
-
json: () => Promise<openai_core_mjs.APIPromise<openai_resources_beta_threads_messages_mjs.Message>>;
|
|
186
|
-
}>;
|
|
187
|
-
};
|
|
188
|
-
"^/(?:v1|/?openai)/threads/([^/]+)/runs$": {
|
|
189
|
-
get: (urlString: string) => Promise<Response & {
|
|
190
|
-
json: () => Promise<openai_core_mjs.APIPromise<openai_resources_beta_threads_messages_mjs.Message>>;
|
|
191
|
-
}>;
|
|
192
|
-
post: (urlString: string, options: any) => Promise<Response & {
|
|
193
|
-
json: () => Promise<openai_core_mjs.APIPromise<openai_resources_beta_threads_runs_runs_mjs.Run | openai_streaming_mjs.Stream<openai_resources_beta_assistants_mjs.AssistantStreamEvent>>>;
|
|
194
|
-
}>;
|
|
195
|
-
};
|
|
196
|
-
"^/(?:v1|/?openai)/threads/([^/]+)/runs/([^/]+)$": {
|
|
197
|
-
get: (urlString: string) => Promise<Response & {
|
|
198
|
-
json: () => Promise<openai_core_mjs.APIPromise<openai_resources_beta_threads_runs_runs_mjs.Run>>;
|
|
199
|
-
}>;
|
|
200
|
-
};
|
|
201
|
-
"^/(?:v1|/?openai)/threads/([^/]+)/runs/([^/]+)/steps$": {
|
|
202
|
-
get: (urlString: string) => Promise<Response>;
|
|
203
|
-
};
|
|
204
|
-
"^/(?:v1|/?openai)/threads/([^/]+)/runs/([^/]+)/submit_tool_outputs$": {
|
|
205
|
-
post: (urlString: string, options: any) => Promise<Response>;
|
|
206
|
-
};
|
|
207
|
-
};
|
|
208
|
-
};
|
|
209
|
-
|
|
210
159
|
declare const prismaStorageAdapter: ({ prisma, }: {
|
|
211
160
|
prisma: PrismaClient;
|
|
212
161
|
}) => ({ runAdapter, }: StorageAdapterArgs) => {
|
|
213
162
|
requestHandlers: {
|
|
214
|
-
|
|
163
|
+
'^/(?:v1|/?openai)/threads$': {
|
|
215
164
|
post: (options?: openai_core_mjs.RequestOptions<unknown> | undefined) => Promise<Response & {
|
|
216
165
|
json: () => Promise<{
|
|
217
166
|
(body?: openai_resources_beta_threads_threads_mjs.ThreadCreateParams | undefined, options?: openai_core_mjs.RequestOptions<unknown> | undefined): openai_core_mjs.APIPromise<openai_resources_beta_threads_threads_mjs.Thread>;
|
|
@@ -249,4 +198,4 @@ declare const prismaStorageAdapter: ({ prisma, }: {
|
|
|
249
198
|
};
|
|
250
199
|
};
|
|
251
200
|
|
|
252
|
-
export { anthropicClientAdapter,
|
|
201
|
+
export { anthropicClientAdapter, azureOpenaiClientAdapter, completionsRunAdapter, googleClientAdapter, groqClientAdapter, humirisClientAdapter, mistralClientAdapter, ollamaClientAdapter, openaiClientAdapter, perplexityClientAdapter, prismaStorageAdapter, togetherClientAdapter };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export { supercompat } from './supercompat.js';
|
|
2
2
|
import OpenAI, { AzureOpenAI } from 'openai';
|
|
3
|
-
import { AIProjectsClient } from '@azure/ai-projects';
|
|
4
3
|
import { Mistral } from '@mistralai/mistralai';
|
|
5
4
|
import Anthropic from '@anthropic-ai/sdk';
|
|
6
5
|
import { MessageWithRun, StorageAdapterArgs } from './types/index.js';
|
|
@@ -52,14 +51,6 @@ declare const azureOpenaiClientAdapter: ({ azureOpenai, }: {
|
|
|
52
51
|
};
|
|
53
52
|
};
|
|
54
53
|
|
|
55
|
-
declare const azureAiProjectsClientAdapter: ({ azureAiProjectsClient, }: {
|
|
56
|
-
azureAiProjectsClient: AIProjectsClient;
|
|
57
|
-
}) => {
|
|
58
|
-
type: string;
|
|
59
|
-
client: AIProjectsClient;
|
|
60
|
-
requestHandlers: {};
|
|
61
|
-
};
|
|
62
|
-
|
|
63
54
|
declare const mistralClientAdapter: ({ mistral, }: {
|
|
64
55
|
mistral: Mistral;
|
|
65
56
|
}) => {
|
|
@@ -165,53 +156,11 @@ declare const completionsRunAdapter: () => ({ client: clientAdapter, run, onEven
|
|
|
165
156
|
getMessages: () => Promise<MessageWithRun[]>;
|
|
166
157
|
}) => Promise<any>;
|
|
167
158
|
|
|
168
|
-
declare const azureAgentsStorageAdapter: ({ azureAiProjectsClient, }: {
|
|
169
|
-
azureAiProjectsClient: AIProjectsClient;
|
|
170
|
-
}) => ({ runAdapter, }: StorageAdapterArgs) => {
|
|
171
|
-
requestHandlers: {
|
|
172
|
-
"^/(?:v1|/?openai)/threads$": {
|
|
173
|
-
post: (options?: openai_core_mjs.RequestOptions<unknown> | undefined) => Promise<Response & {
|
|
174
|
-
json: () => Promise<{
|
|
175
|
-
(body?: openai_resources_beta_threads_threads_mjs.ThreadCreateParams | undefined, options?: openai_core_mjs.RequestOptions<unknown> | undefined): openai_core_mjs.APIPromise<openai_resources_beta_threads_threads_mjs.Thread>;
|
|
176
|
-
(options?: openai_core_mjs.RequestOptions<unknown> | undefined): openai_core_mjs.APIPromise<openai_resources_beta_threads_threads_mjs.Thread>;
|
|
177
|
-
}>;
|
|
178
|
-
}>;
|
|
179
|
-
};
|
|
180
|
-
"^/(?:v1|/?openai)/threads/([^/]+)/messages$": {
|
|
181
|
-
post: (urlString: string, options: any) => Promise<Response & {
|
|
182
|
-
json: () => Promise<openai_core_mjs.APIPromise<openai_resources_beta_threads_messages_mjs.Message>>;
|
|
183
|
-
}>;
|
|
184
|
-
get: (urlString: string) => Promise<Response & {
|
|
185
|
-
json: () => Promise<openai_core_mjs.APIPromise<openai_resources_beta_threads_messages_mjs.Message>>;
|
|
186
|
-
}>;
|
|
187
|
-
};
|
|
188
|
-
"^/(?:v1|/?openai)/threads/([^/]+)/runs$": {
|
|
189
|
-
get: (urlString: string) => Promise<Response & {
|
|
190
|
-
json: () => Promise<openai_core_mjs.APIPromise<openai_resources_beta_threads_messages_mjs.Message>>;
|
|
191
|
-
}>;
|
|
192
|
-
post: (urlString: string, options: any) => Promise<Response & {
|
|
193
|
-
json: () => Promise<openai_core_mjs.APIPromise<openai_resources_beta_threads_runs_runs_mjs.Run | openai_streaming_mjs.Stream<openai_resources_beta_assistants_mjs.AssistantStreamEvent>>>;
|
|
194
|
-
}>;
|
|
195
|
-
};
|
|
196
|
-
"^/(?:v1|/?openai)/threads/([^/]+)/runs/([^/]+)$": {
|
|
197
|
-
get: (urlString: string) => Promise<Response & {
|
|
198
|
-
json: () => Promise<openai_core_mjs.APIPromise<openai_resources_beta_threads_runs_runs_mjs.Run>>;
|
|
199
|
-
}>;
|
|
200
|
-
};
|
|
201
|
-
"^/(?:v1|/?openai)/threads/([^/]+)/runs/([^/]+)/steps$": {
|
|
202
|
-
get: (urlString: string) => Promise<Response>;
|
|
203
|
-
};
|
|
204
|
-
"^/(?:v1|/?openai)/threads/([^/]+)/runs/([^/]+)/submit_tool_outputs$": {
|
|
205
|
-
post: (urlString: string, options: any) => Promise<Response>;
|
|
206
|
-
};
|
|
207
|
-
};
|
|
208
|
-
};
|
|
209
|
-
|
|
210
159
|
declare const prismaStorageAdapter: ({ prisma, }: {
|
|
211
160
|
prisma: PrismaClient;
|
|
212
161
|
}) => ({ runAdapter, }: StorageAdapterArgs) => {
|
|
213
162
|
requestHandlers: {
|
|
214
|
-
|
|
163
|
+
'^/(?:v1|/?openai)/threads$': {
|
|
215
164
|
post: (options?: openai_core_mjs.RequestOptions<unknown> | undefined) => Promise<Response & {
|
|
216
165
|
json: () => Promise<{
|
|
217
166
|
(body?: openai_resources_beta_threads_threads_mjs.ThreadCreateParams | undefined, options?: openai_core_mjs.RequestOptions<unknown> | undefined): openai_core_mjs.APIPromise<openai_resources_beta_threads_threads_mjs.Thread>;
|
|
@@ -249,4 +198,4 @@ declare const prismaStorageAdapter: ({ prisma, }: {
|
|
|
249
198
|
};
|
|
250
199
|
};
|
|
251
200
|
|
|
252
|
-
export { anthropicClientAdapter,
|
|
201
|
+
export { anthropicClientAdapter, azureOpenaiClientAdapter, completionsRunAdapter, googleClientAdapter, groqClientAdapter, humirisClientAdapter, mistralClientAdapter, ollamaClientAdapter, openaiClientAdapter, perplexityClientAdapter, prismaStorageAdapter, togetherClientAdapter };
|