@superinterface/server 1.0.23 → 1.0.25
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/.next/BUILD_ID +1 -1
- package/.next/build-manifest.json +2 -2
- package/.next/cache/.tsbuildinfo +1 -1
- package/.next/cache/eslint/.cache_btwyo7 +1 -1
- package/.next/fallback-build-manifest.json +2 -2
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +1 -1
- package/.next/server/app/api/files/[fileId]/contents/route.js +3 -3
- package/.next/server/app/api/files/[fileId]/contents/route.js.nft.json +1 -1
- package/.next/server/app/api/files/route.js +3 -3
- package/.next/server/app/api/files/route.js.nft.json +1 -1
- package/.next/server/app/api/messages/route.js +6 -6
- package/.next/server/app/api/messages/route.js.nft.json +1 -1
- package/.next/server/app/api/tasks/callback/route.js +6 -7
- package/.next/server/app/api/tasks/callback/route.js.nft.json +1 -1
- package/.next/server/app/api/threads/runs/submit-client-tool-outputs/route.js +1 -1
- package/.next/server/app/api/threads/runs/submit-client-tool-outputs/route.js.nft.json +1 -1
- package/.next/server/app/index.html +1 -1
- package/.next/server/app/index.rsc +1 -1
- package/.next/server/chunks/[root-of-the-server]__0c1bc5ed._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__0c1bc5ed._.js.map +1 -1
- package/.next/server/chunks/[root-of-the-server]__228bff78._.js +10 -10
- package/.next/server/chunks/[root-of-the-server]__228bff78._.js.map +1 -1
- package/.next/server/chunks/[root-of-the-server]__25ee13bc._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__25ee13bc._.js.map +1 -1
- package/.next/server/chunks/[root-of-the-server]__2945c9e9._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__2945c9e9._.js.map +1 -1
- package/.next/server/chunks/[root-of-the-server]__29635e8e._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__29635e8e._.js.map +1 -1
- package/.next/server/chunks/[root-of-the-server]__29b43490._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__29b43490._.js.map +1 -1
- package/.next/server/chunks/[root-of-the-server]__315f084a._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__315f084a._.js.map +1 -1
- package/.next/server/chunks/[root-of-the-server]__3307123c._.js +10 -10
- package/.next/server/chunks/[root-of-the-server]__3307123c._.js.map +1 -1
- package/.next/server/chunks/[root-of-the-server]__40ab45eb._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__40ab45eb._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__441cee00._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__441cee00._.js.map +1 -1
- package/.next/server/chunks/[root-of-the-server]__464a4377._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__464a4377._.js.map +1 -1
- package/.next/server/chunks/[root-of-the-server]__4e536bc0._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__4e536bc0._.js.map +1 -1
- package/.next/server/chunks/[root-of-the-server]__50c5f12c._.js +10 -10
- package/.next/server/chunks/[root-of-the-server]__50c5f12c._.js.map +1 -1
- package/.next/server/chunks/[root-of-the-server]__583a7f1c._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__583a7f1c._.js.map +1 -1
- package/.next/server/chunks/[root-of-the-server]__5abf1160._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__5abf1160._.js.map +1 -1
- package/.next/server/chunks/[root-of-the-server]__5d09614a._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__5d09614a._.js.map +1 -1
- package/.next/server/chunks/[root-of-the-server]__62d958e7._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__62d958e7._.js.map +1 -1
- package/.next/server/chunks/[root-of-the-server]__676affb1._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__676affb1._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__6b8ba839._.js +10 -10
- package/.next/server/chunks/[root-of-the-server]__6b8ba839._.js.map +1 -1
- package/.next/server/chunks/[root-of-the-server]__72b72b9e._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__72b72b9e._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__83461316._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__83461316._.js.map +1 -1
- package/.next/server/chunks/[root-of-the-server]__9a611d42._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__9a611d42._.js.map +1 -1
- package/.next/server/chunks/[root-of-the-server]__a878c913._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__a878c913._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__b10ec83e._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__b10ec83e._.js.map +1 -1
- package/.next/server/chunks/[root-of-the-server]__c1629392._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__c1629392._.js.map +1 -1
- package/.next/server/chunks/[root-of-the-server]__dd176cb5._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__dd176cb5._.js.map +1 -1
- package/.next/server/chunks/[root-of-the-server]__e7819e95._.js +10 -10
- package/.next/server/chunks/[root-of-the-server]__e7819e95._.js.map +1 -1
- package/.next/server/chunks/[root-of-the-server]__eb816e13._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__eb816e13._.js.map +1 -1
- package/.next/server/chunks/[root-of-the-server]__f0dfab03._.js +10 -10
- package/.next/server/chunks/[root-of-the-server]__f0dfab03._.js.map +1 -1
- package/.next/server/chunks/[root-of-the-server]__f845ef25._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__f845ef25._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__ff90af03._.js +10 -10
- package/.next/server/chunks/[root-of-the-server]__ff90af03._.js.map +1 -1
- package/.next/server/chunks/c4f00_next_dist_esm_build_templates_app-route_cb746cf4.js +1 -1
- package/.next/server/chunks/c4f00_next_dist_esm_build_templates_app-route_cb746cf4.js.map +1 -1
- package/.next/server/chunks/c4f00_next_dist_esm_build_templates_app-route_f952d9ab.js +1 -1
- package/.next/server/chunks/c4f00_next_dist_esm_build_templates_app-route_f952d9ab.js.map +1 -1
- package/.next/server/chunks/supercorp_superinterface_bebd2c96._.js +3 -3
- package/.next/server/chunks/supercorp_superinterface_bebd2c96._.js.map +1 -1
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/trace +1 -1
- package/dist/app/api/api-keys/[apiKeyId]/route.d.ts +3 -48
- package/dist/app/api/api-keys/[apiKeyId]/route.d.ts.map +1 -1
- package/dist/app/api/api-keys/[apiKeyId]/route.js +3 -3
- package/dist/app/api/api-keys/route.d.ts +2 -24
- package/dist/app/api/api-keys/route.d.ts.map +1 -1
- package/dist/app/api/api-keys/route.js +2 -2
- package/dist/app/api/assistants/[assistantId]/functions/[functionId]/route.d.ts +3 -165
- package/dist/app/api/assistants/[assistantId]/functions/[functionId]/route.d.ts.map +1 -1
- package/dist/app/api/assistants/[assistantId]/functions/[functionId]/route.js +3 -3
- package/dist/app/api/assistants/[assistantId]/functions/route.d.ts +2 -108
- package/dist/app/api/assistants/[assistantId]/functions/route.d.ts.map +1 -1
- package/dist/app/api/assistants/[assistantId]/functions/route.js +2 -2
- package/dist/app/api/assistants/[assistantId]/initial-messages/route.d.ts +2 -34
- package/dist/app/api/assistants/[assistantId]/initial-messages/route.d.ts.map +1 -1
- package/dist/app/api/assistants/[assistantId]/initial-messages/route.js +2 -2
- package/dist/app/api/assistants/[assistantId]/mcp-servers/[mcpServerId]/route.d.ts +3 -87
- package/dist/app/api/assistants/[assistantId]/mcp-servers/[mcpServerId]/route.d.ts.map +1 -1
- package/dist/app/api/assistants/[assistantId]/mcp-servers/[mcpServerId]/route.js +3 -3
- package/dist/app/api/assistants/[assistantId]/mcp-servers/route.d.ts +2 -56
- package/dist/app/api/assistants/[assistantId]/mcp-servers/route.d.ts.map +1 -1
- package/dist/app/api/assistants/[assistantId]/mcp-servers/route.js +2 -2
- package/dist/app/api/assistants/[assistantId]/route.d.ts +4 -117
- package/dist/app/api/assistants/[assistantId]/route.d.ts.map +1 -1
- package/dist/app/api/assistants/[assistantId]/route.js +3 -3
- package/dist/app/api/assistants/route.d.ts +2 -54
- package/dist/app/api/assistants/route.d.ts.map +1 -1
- package/dist/app/api/assistants/route.js +2 -2
- package/dist/app/api/files/[fileId]/contents/route.d.ts +1 -5
- package/dist/app/api/files/[fileId]/contents/route.d.ts.map +1 -1
- package/dist/app/api/files/[fileId]/contents/route.js +1 -1
- package/dist/app/api/files/route.d.ts +1 -7
- package/dist/app/api/files/route.d.ts.map +1 -1
- package/dist/app/api/files/route.js +1 -1
- package/dist/app/api/messages/lib/initialMessagesResponse.d.ts.map +1 -1
- package/dist/app/api/messages/lib/initialMessagesResponse.js +2 -3
- package/dist/app/api/messages/route.d.ts +2 -20
- package/dist/app/api/messages/route.d.ts.map +1 -1
- package/dist/app/api/messages/route.js +2 -2
- package/dist/app/api/providers/[modelProviderId]/assistants/route.d.ts +1 -16
- package/dist/app/api/providers/[modelProviderId]/assistants/route.d.ts.map +1 -1
- package/dist/app/api/providers/[modelProviderId]/assistants/route.js +1 -1
- package/dist/app/api/providers/[modelProviderId]/models/route.d.ts +1 -11
- package/dist/app/api/providers/[modelProviderId]/models/route.d.ts.map +1 -1
- package/dist/app/api/providers/[modelProviderId]/models/route.js +1 -1
- package/dist/app/api/providers/[modelProviderId]/route.d.ts +3 -57
- package/dist/app/api/providers/[modelProviderId]/route.d.ts.map +1 -1
- package/dist/app/api/providers/[modelProviderId]/route.js +3 -3
- package/dist/app/api/providers/route.d.ts +2 -30
- package/dist/app/api/providers/route.d.ts.map +1 -1
- package/dist/app/api/providers/route.js +2 -2
- package/dist/app/api/tasks/[taskId]/route.d.ts +3 -54
- package/dist/app/api/tasks/[taskId]/route.d.ts.map +1 -1
- package/dist/app/api/tasks/[taskId]/route.js +3 -3
- package/dist/app/api/tasks/callback/route.d.ts.map +1 -1
- package/dist/app/api/tasks/callback/route.js +2 -3
- package/dist/app/api/tasks/route.d.ts +2 -28
- package/dist/app/api/tasks/route.d.ts.map +1 -1
- package/dist/app/api/tasks/route.js +2 -2
- package/dist/app/api/threads/runs/submit-client-tool-outputs/route.d.ts +1 -5
- package/dist/app/api/threads/runs/submit-client-tool-outputs/route.d.ts.map +1 -1
- package/dist/app/api/threads/runs/submit-client-tool-outputs/route.js +3 -4
- package/dist/app/api/workspaces/[workspaceId]/route.d.ts +2 -28
- package/dist/app/api/workspaces/[workspaceId]/route.d.ts.map +1 -1
- package/dist/app/api/workspaces/[workspaceId]/route.js +2 -2
- package/dist/app/api/workspaces/route.d.ts +2 -20
- package/dist/app/api/workspaces/route.d.ts.map +1 -1
- package/dist/app/api/workspaces/route.js +2 -2
- package/dist/lib/functions/handleFunction/handleAssistant.d.ts.map +1 -1
- package/dist/lib/functions/handleFunction/handleAssistant.js +2 -3
- package/dist/lib/mcpServers/getToolCallMcpServer.d.ts.map +1 -1
- package/dist/lib/mcpServers/getToolCallMcpServer.js +5 -6
- package/dist/lib/prisma/index.d.ts.map +1 -1
- package/dist/lib/prisma/index.js +19 -5
- package/dist/lib/tools/tools/index.d.ts.map +1 -1
- package/dist/lib/tools/tools/index.js +2 -3
- package/package.json +11 -4
- package/.next/server/chunks/[root-of-the-server]__19865527._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__19865527._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__27aadac9._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__27aadac9._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__3ba06f7c._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__3ba06f7c._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__51977f30._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__51977f30._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__7f9ca1e3._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__7f9ca1e3._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__a135e388._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__a135e388._.js.map +0 -1
- package/dist/app/messages/lib/getWorkspaceId.d.ts +0 -6
- package/dist/app/messages/lib/getWorkspaceId.d.ts.map +0 -1
- package/dist/app/messages/lib/getWorkspaceId.js +0 -3
- package/dist/app/messages/lib/initialMessagesResponse.d.ts +0 -26
- package/dist/app/messages/lib/initialMessagesResponse.d.ts.map +0 -1
- package/dist/app/messages/lib/initialMessagesResponse.js +0 -59
- package/dist/app/messages/lib/serializeThread.d.ts +0 -18
- package/dist/app/messages/lib/serializeThread.d.ts.map +0 -1
- package/dist/app/messages/lib/serializeThread.js +0 -8
- package/dist/app/messages/route.d.ts +0 -31
- package/dist/app/messages/route.d.ts.map +0 -1
- package/dist/app/messages/route.js +0 -585
- package/dist/lib/prismaClient.d.ts +0 -5
- package/dist/lib/prismaClient.d.ts.map +0 -1
- package/dist/lib/prismaClient.js +0 -4
- /package/.next/static/{yTXEit1RwJfgpDwrdt6oQ → jt8inwg6nWaLQZ4qpiSJ-}/_buildManifest.js +0 -0
- /package/.next/static/{yTXEit1RwJfgpDwrdt6oQ → jt8inwg6nWaLQZ4qpiSJ-}/_clientMiddlewareManifest.json +0 -0
- /package/.next/static/{yTXEit1RwJfgpDwrdt6oQ → jt8inwg6nWaLQZ4qpiSJ-}/_ssgManifest.js +0 -0
|
@@ -8,7 +8,6 @@ import { createRunOpts } from '../../../../lib/runs/createRunOpts';
|
|
|
8
8
|
import { scheduleTask } from '../../../../lib/tasks/scheduleTask';
|
|
9
9
|
import { handleToolCall } from '../../../../lib/toolCalls/handleToolCall';
|
|
10
10
|
import { createLog } from '../../../../lib/logs/createLog';
|
|
11
|
-
import { map } from 'p-iteration';
|
|
12
11
|
import { storageThreadId as getStorageThreadId } from '../../../../lib/threads/storageThreadId';
|
|
13
12
|
import { redis } from '../../../../lib/redis';
|
|
14
13
|
import { isOpenaiAssistantsStorageProvider } from '../../../../lib/storageProviders/isOpenaiAssistantsStorageProvider';
|
|
@@ -229,11 +228,11 @@ const buildPostHandler = ({ prisma: providedPrisma } = {}) => async (request) =>
|
|
|
229
228
|
}
|
|
230
229
|
if (event.event === 'thread.run.requires_action' &&
|
|
231
230
|
((_b = (_a = event.data) === null || _a === void 0 ? void 0 : _a.required_action) === null || _b === void 0 ? void 0 : _b.type) === 'submit_client_tool_outputs') {
|
|
232
|
-
await
|
|
231
|
+
await Promise.all(event.data.required_action.submit_client_tool_outputs.tool_calls.map(
|
|
233
232
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
234
233
|
async (toolCall) => {
|
|
235
234
|
await redis.set(`submit-client-tool-outputs:output:${toolCall.id}`, 'Client tools cannot be used during tasks', { ex: 60 * 60 * 24 * 7 });
|
|
236
|
-
});
|
|
235
|
+
}));
|
|
237
236
|
}
|
|
238
237
|
}
|
|
239
238
|
await scheduleTask({ task, prisma });
|
|
@@ -16,20 +16,7 @@ export declare const buildGET: ({ prisma: providedPrisma }?: {
|
|
|
16
16
|
updatedAt: string;
|
|
17
17
|
}[];
|
|
18
18
|
}>>;
|
|
19
|
-
export declare const GET:
|
|
20
|
-
error: string;
|
|
21
|
-
}> | NextResponse<{
|
|
22
|
-
tasks: {
|
|
23
|
-
id: string;
|
|
24
|
-
title: string;
|
|
25
|
-
message: string;
|
|
26
|
-
schedule: PrismaJson.TaskSchedule;
|
|
27
|
-
threadId: string;
|
|
28
|
-
key: string;
|
|
29
|
-
createdAt: string;
|
|
30
|
-
updatedAt: string;
|
|
31
|
-
}[];
|
|
32
|
-
}>>;
|
|
19
|
+
export declare const GET: ReturnType<typeof buildGET>;
|
|
33
20
|
export declare const buildPOST: ({ prisma: providedPrisma }?: {
|
|
34
21
|
prisma?: PrismaClient;
|
|
35
22
|
}) => (request: NextRequest) => Promise<NextResponse<{
|
|
@@ -46,19 +33,6 @@ export declare const buildPOST: ({ prisma: providedPrisma }?: {
|
|
|
46
33
|
updatedAt: string;
|
|
47
34
|
};
|
|
48
35
|
}>>;
|
|
49
|
-
export declare const POST:
|
|
50
|
-
error: string;
|
|
51
|
-
}> | NextResponse<{
|
|
52
|
-
task: {
|
|
53
|
-
id: string;
|
|
54
|
-
title: string;
|
|
55
|
-
message: string;
|
|
56
|
-
schedule: PrismaJson.TaskSchedule;
|
|
57
|
-
threadId: string;
|
|
58
|
-
key: string;
|
|
59
|
-
createdAt: string;
|
|
60
|
-
updatedAt: string;
|
|
61
|
-
};
|
|
62
|
-
}>>;
|
|
36
|
+
export declare const POST: ReturnType<typeof buildPOST>;
|
|
63
37
|
export declare const OPTIONS: () => NextResponse<{}>;
|
|
64
38
|
//# sourceMappingURL=route.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../src/app/api/tasks/route.ts"],"names":[],"mappings":"AACA,OAAO,EAAc,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC9D,OAAO,EAAE,YAAY,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAA;AAS5D,eAAO,MAAM,QAAQ,GAClB,6BAA4B;IAAE,MAAM,CAAC,EAAE,YAAY,CAAA;CAAO,MACpD,SAAS,WAAW;;;;;;;;;;;;;GAqC1B,CAAA;AAEH,eAAO,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../src/app/api/tasks/route.ts"],"names":[],"mappings":"AACA,OAAO,EAAc,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC9D,OAAO,EAAE,YAAY,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAA;AAS5D,eAAO,MAAM,QAAQ,GAClB,6BAA4B;IAAE,MAAM,CAAC,EAAE,YAAY,CAAA;CAAO,MACpD,SAAS,WAAW;;;;;;;;;;;;;GAqC1B,CAAA;AAEH,eAAO,MAAM,GAAG,EACU,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAA;AAErD,eAAO,MAAM,SAAS,GACnB,6BAA4B;IAAE,MAAM,CAAC,EAAE,YAAY,CAAA;CAAO,MACpD,SAAS,WAAW;;;;;;;;;;;;;GAkE1B,CAAA;AAEH,eAAO,MAAM,IAAI,EACU,UAAU,CAAC,OAAO,SAAS,CAAC,CAAA;AAEvD,eAAO,MAAM,OAAO,wBAMjB,CAAA"}
|
|
@@ -32,7 +32,7 @@ export const buildGET = ({ prisma: providedPrisma } = {}) => async (request) =>
|
|
|
32
32
|
tasks: tasks.map((t) => serializeTask({ task: t })),
|
|
33
33
|
}, { headers: cacheHeaders });
|
|
34
34
|
};
|
|
35
|
-
export const GET = buildGET();
|
|
35
|
+
export const GET = ((...args) => buildGET()(...args));
|
|
36
36
|
export const buildPOST = ({ prisma: providedPrisma } = {}) => async (request) => {
|
|
37
37
|
var _a;
|
|
38
38
|
const prisma = resolvePrisma(providedPrisma);
|
|
@@ -84,7 +84,7 @@ export const buildPOST = ({ prisma: providedPrisma } = {}) => async (request) =>
|
|
|
84
84
|
task: serializeTask({ task }),
|
|
85
85
|
}, { headers: cacheHeaders });
|
|
86
86
|
};
|
|
87
|
-
export const POST = buildPOST();
|
|
87
|
+
export const POST = ((...args) => buildPOST()(...args));
|
|
88
88
|
export const OPTIONS = () => NextResponse.json({}, {
|
|
89
89
|
headers: cacheHeaders,
|
|
90
90
|
});
|
|
@@ -7,9 +7,5 @@ export declare const buildPOST: ({ prisma: providedPrisma }?: {
|
|
|
7
7
|
}> | NextResponse<{
|
|
8
8
|
status: string;
|
|
9
9
|
}>>;
|
|
10
|
-
export declare const POST:
|
|
11
|
-
error: string;
|
|
12
|
-
}> | NextResponse<{
|
|
13
|
-
status: string;
|
|
14
|
-
}>>;
|
|
10
|
+
export declare const POST: ReturnType<typeof buildPOST>;
|
|
15
11
|
//# sourceMappingURL=route.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../../src/app/api/threads/runs/submit-client-tool-outputs/route.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../../src/app/api/threads/runs/submit-client-tool-outputs/route.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAGvD,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAGlD,eAAO,MAAM,SAAS,GACnB,6BAA4B;IAAE,MAAM,CAAC,EAAE,YAAY,CAAA;CAAO,MACpD,SAAS,WAAW;;;;GAiD1B,CAAA;AAEH,eAAO,MAAM,IAAI,EACU,UAAU,CAAC,OAAO,SAAS,CAAC,CAAA"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { NextResponse } from 'next/server';
|
|
2
|
-
import { map } from 'p-iteration';
|
|
3
2
|
import { redis } from '../../../../../lib/redis';
|
|
4
3
|
import { resolvePrisma } from '../../../../../lib/prisma';
|
|
5
4
|
import { workspaceAccessWhere as getWorkspaceAccessWhere } from '../../../../../lib/apiKeys/workspaceAccessWhere';
|
|
@@ -27,12 +26,12 @@ export const buildPOST = ({ prisma: providedPrisma } = {}) => async (request) =>
|
|
|
27
26
|
return NextResponse.json({ error: 'No assistant found' }, { status: 400 });
|
|
28
27
|
}
|
|
29
28
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
30
|
-
await map(
|
|
29
|
+
await Promise.all(toolOutputs.map(async (toolOutput) => {
|
|
31
30
|
const isPending = await redis.get(`submit-client-tool-outputs:pending:${toolOutput.toolCallId}`);
|
|
32
31
|
if (isPending) {
|
|
33
32
|
await redis.set(`submit-client-tool-outputs:output:${toolOutput.toolCallId}`, JSON.stringify(toolOutput.output), { ex: 60 * 60 * 24 * 7 });
|
|
34
33
|
}
|
|
35
|
-
});
|
|
34
|
+
}));
|
|
36
35
|
return NextResponse.json({ status: 'success' });
|
|
37
36
|
};
|
|
38
|
-
export const POST = buildPOST();
|
|
37
|
+
export const POST = ((...args) => buildPOST()(...args));
|
|
@@ -16,20 +16,7 @@ export declare const buildGET: ({ prisma: providedPrisma }?: {
|
|
|
16
16
|
updatedAt: string;
|
|
17
17
|
};
|
|
18
18
|
}>>;
|
|
19
|
-
export declare const GET:
|
|
20
|
-
params: Promise<{
|
|
21
|
-
workspaceId: string;
|
|
22
|
-
}>;
|
|
23
|
-
}) => Promise<NextResponse<{
|
|
24
|
-
error: string;
|
|
25
|
-
}> | NextResponse<{
|
|
26
|
-
workspace: {
|
|
27
|
-
id: string;
|
|
28
|
-
name: string;
|
|
29
|
-
createdAt: string;
|
|
30
|
-
updatedAt: string;
|
|
31
|
-
};
|
|
32
|
-
}>>;
|
|
19
|
+
export declare const GET: ReturnType<typeof buildGET>;
|
|
33
20
|
export declare const buildPATCH: ({ prisma: providedPrisma }?: {
|
|
34
21
|
prisma?: PrismaClient;
|
|
35
22
|
}) => (request: NextRequest, props: {
|
|
@@ -46,19 +33,6 @@ export declare const buildPATCH: ({ prisma: providedPrisma }?: {
|
|
|
46
33
|
updatedAt: string;
|
|
47
34
|
};
|
|
48
35
|
}>>;
|
|
49
|
-
export declare const PATCH:
|
|
50
|
-
params: Promise<{
|
|
51
|
-
workspaceId: string;
|
|
52
|
-
}>;
|
|
53
|
-
}) => Promise<NextResponse<{
|
|
54
|
-
error: string;
|
|
55
|
-
}> | NextResponse<{
|
|
56
|
-
workspace: {
|
|
57
|
-
id: string;
|
|
58
|
-
name: string;
|
|
59
|
-
createdAt: string;
|
|
60
|
-
updatedAt: string;
|
|
61
|
-
};
|
|
62
|
-
}>>;
|
|
36
|
+
export declare const PATCH: ReturnType<typeof buildPATCH>;
|
|
63
37
|
export declare const OPTIONS: () => NextResponse<{}>;
|
|
64
38
|
//# sourceMappingURL=route.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../src/app/api/workspaces/[workspaceId]/route.ts"],"names":[],"mappings":"AACA,OAAO,EAAU,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC1D,OAAO,EAAE,YAAY,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAA;AAQ5D,eAAO,MAAM,QAAQ,GAClB,6BAA4B;IAAE,MAAM,CAAC,EAAE,YAAY,CAAA;CAAO,MAEzD,UAAU,WAAW,EACrB,OAAO;IACL,MAAM,EAAE,OAAO,CAAC;QAAE,WAAW,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CACzC;;;;;;;;;GAmDF,CAAA;AAEH,eAAO,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../src/app/api/workspaces/[workspaceId]/route.ts"],"names":[],"mappings":"AACA,OAAO,EAAU,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC1D,OAAO,EAAE,YAAY,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAA;AAQ5D,eAAO,MAAM,QAAQ,GAClB,6BAA4B;IAAE,MAAM,CAAC,EAAE,YAAY,CAAA;CAAO,MAEzD,UAAU,WAAW,EACrB,OAAO;IACL,MAAM,EAAE,OAAO,CAAC;QAAE,WAAW,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CACzC;;;;;;;;;GAmDF,CAAA;AAEH,eAAO,MAAM,GAAG,EACU,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAA;AAErD,eAAO,MAAM,UAAU,GACpB,6BAA4B;IAAE,MAAM,CAAC,EAAE,YAAY,CAAA;CAAO,MAEzD,SAAS,WAAW,EACpB,OAAO;IACL,MAAM,EAAE,OAAO,CAAC;QAAE,WAAW,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CACzC;;;;;;;;;GAuEF,CAAA;AAEH,eAAO,MAAM,KAAK,EACU,UAAU,CAAC,OAAO,UAAU,CAAC,CAAA;AAEzD,eAAO,MAAM,OAAO,wBAMjB,CAAA"}
|
|
@@ -37,7 +37,7 @@ export const buildGET = ({ prisma: providedPrisma } = {}) => async (_request, pr
|
|
|
37
37
|
workspace: serializeApiWorkspace({ workspace }),
|
|
38
38
|
}, { headers: cacheHeaders });
|
|
39
39
|
};
|
|
40
|
-
export const GET = buildGET();
|
|
40
|
+
export const GET = ((...args) => buildGET()(...args));
|
|
41
41
|
export const buildPATCH = ({ prisma: providedPrisma } = {}) => async (request, props) => {
|
|
42
42
|
const prisma = resolvePrisma(providedPrisma);
|
|
43
43
|
const { workspaceId } = await props.params;
|
|
@@ -83,7 +83,7 @@ export const buildPATCH = ({ prisma: providedPrisma } = {}) => async (request, p
|
|
|
83
83
|
workspace: serializeApiWorkspace({ workspace }),
|
|
84
84
|
}, { headers: cacheHeaders });
|
|
85
85
|
};
|
|
86
|
-
export const PATCH = buildPATCH();
|
|
86
|
+
export const PATCH = ((...args) => buildPATCH()(...args));
|
|
87
87
|
export const OPTIONS = () => NextResponse.json({}, {
|
|
88
88
|
headers: cacheHeaders,
|
|
89
89
|
});
|
|
@@ -20,16 +20,7 @@ export declare const buildGET: ({ prisma: providedPrisma }?: {
|
|
|
20
20
|
updatedAt: string;
|
|
21
21
|
}[];
|
|
22
22
|
}>>;
|
|
23
|
-
export declare const GET:
|
|
24
|
-
error: string;
|
|
25
|
-
}> | NextResponse<{
|
|
26
|
-
workspaces: {
|
|
27
|
-
id: string;
|
|
28
|
-
name: string;
|
|
29
|
-
createdAt: string;
|
|
30
|
-
updatedAt: string;
|
|
31
|
-
}[];
|
|
32
|
-
}>>;
|
|
23
|
+
export declare const GET: ReturnType<typeof buildGET>;
|
|
33
24
|
export declare const buildPOST: ({ prisma: providedPrisma, createWorkspace, }?: {
|
|
34
25
|
prisma?: PrismaClient;
|
|
35
26
|
createWorkspace?: ({ parsedData, organization, prisma, }: {
|
|
@@ -47,16 +38,7 @@ export declare const buildPOST: ({ prisma: providedPrisma, createWorkspace, }?:
|
|
|
47
38
|
updatedAt: string;
|
|
48
39
|
};
|
|
49
40
|
}>>;
|
|
50
|
-
export declare const POST:
|
|
51
|
-
error: string;
|
|
52
|
-
}> | NextResponse<{
|
|
53
|
-
workspace: {
|
|
54
|
-
id: string;
|
|
55
|
-
name: string;
|
|
56
|
-
createdAt: string;
|
|
57
|
-
updatedAt: string;
|
|
58
|
-
};
|
|
59
|
-
}>>;
|
|
41
|
+
export declare const POST: ReturnType<typeof buildPOST>;
|
|
60
42
|
export declare const OPTIONS: () => NextResponse<{}>;
|
|
61
43
|
export {};
|
|
62
44
|
//# sourceMappingURL=route.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../src/app/api/workspaces/route.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE3E,OAAO,EAAE,YAAY,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAA;AAC5D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAMvB,QAAA,MAAM,qBAAqB;;;;;;EAEzB,CAAA;AAEF,eAAO,MAAM,QAAQ,GAClB,6BAA4B;IAAE,MAAM,CAAC,EAAE,YAAY,CAAA;CAAO;;;;;;;;;GAuC1D,CAAA;AAEH,eAAO,MAAM,GAAG
|
|
1
|
+
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../src/app/api/workspaces/route.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE3E,OAAO,EAAE,YAAY,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAA;AAC5D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAMvB,QAAA,MAAM,qBAAqB;;;;;;EAEzB,CAAA;AAEF,eAAO,MAAM,QAAQ,GAClB,6BAA4B;IAAE,MAAM,CAAC,EAAE,YAAY,CAAA;CAAO;;;;;;;;;GAuC1D,CAAA;AAEH,eAAO,MAAM,GAAG,EACU,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAA;AAErD,eAAO,MAAM,SAAS,GACnB,+CAiBE;IACD,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,eAAe,CAAC,EAAE,CAAC,EACjB,UAAU,EACV,YAAY,EACZ,MAAM,GACP,EAAE;QACD,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;QACjD,YAAY,EAAE,YAAY,CAAA;QAC1B,MAAM,EAAE,YAAY,CAAA;KACrB,KAAK,OAAO,CAAC,SAAS,CAAC,CAAA;CACpB,MACC,SAAS,WAAW;;;;;;;;;GAwD1B,CAAA;AAEH,eAAO,MAAM,IAAI,EACY,UAAU,CAAC,OAAO,SAAS,CAAC,CAAA;AAEzD,eAAO,MAAM,OAAO,wBAMjB,CAAA"}
|
|
@@ -31,7 +31,7 @@ export const buildGET = ({ prisma: providedPrisma } = {}) => async () => {
|
|
|
31
31
|
workspaces: workspaces.map((workspace) => serializeApiWorkspace({ workspace })),
|
|
32
32
|
}, { headers: cacheHeaders });
|
|
33
33
|
};
|
|
34
|
-
export const GET = buildGET();
|
|
34
|
+
export const GET = ((...args) => buildGET()(...args));
|
|
35
35
|
export const buildPOST = ({ prisma: providedPrisma, createWorkspace = ({ parsedData, organization, prisma, }) => {
|
|
36
36
|
var _a;
|
|
37
37
|
return prisma.workspace.create({
|
|
@@ -76,7 +76,7 @@ export const buildPOST = ({ prisma: providedPrisma, createWorkspace = ({ parsedD
|
|
|
76
76
|
workspace: serializeApiWorkspace({ workspace }),
|
|
77
77
|
}, { headers: cacheHeaders });
|
|
78
78
|
};
|
|
79
|
-
export const POST = buildPOST({});
|
|
79
|
+
export const POST = ((...args) => buildPOST({})(...args));
|
|
80
80
|
export const OPTIONS = () => NextResponse.json({}, {
|
|
81
81
|
headers: cacheHeaders,
|
|
82
82
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handleAssistant.d.ts","sourceRoot":"","sources":["../../../../src/lib/functions/handleFunction/handleAssistant.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAA;AAC3B,OAAO,EACL,gBAAgB,EAIhB,SAAS,EACT,MAAM,EACN,KAAK,YAAY,EAClB,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"handleAssistant.d.ts","sourceRoot":"","sources":["../../../../src/lib/functions/handleFunction/handleAssistant.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAA;AAC3B,OAAO,EACL,gBAAgB,EAIhB,SAAS,EACT,MAAM,EACN,KAAK,YAAY,EAClB,MAAM,gBAAgB,CAAA;AAcvB,eAAO,MAAM,eAAe,GAAU,4GAQnC;IACD,gBAAgB,EAAE,gBAAgB,CAAA;IAClC,QAAQ,EAAE,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,8BAA8B,CAAA;IACjE,UAAU,EAAE,+BAA+B,CAAA;IAC3C,GAAG,EAAE,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAA;IACjC,SAAS,EAAE,SAAS,CAAA;IACpB,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,YAAY,CAAA;CACrB;;;EAoXA,CAAA"}
|
|
@@ -10,7 +10,6 @@ import { createRunOpts } from '../../../lib/runs/createRunOpts';
|
|
|
10
10
|
import { handleToolCall } from '../../../lib/toolCalls/handleToolCall';
|
|
11
11
|
import { createLog } from '../../../lib/logs/createLog';
|
|
12
12
|
import { isOpenaiAssistantsStorageProvider } from '../../../lib/storageProviders/isOpenaiAssistantsStorageProvider';
|
|
13
|
-
import { map } from 'p-iteration';
|
|
14
13
|
import { redis } from '../../../lib/redis';
|
|
15
14
|
import { waitUntil } from '@vercel/functions';
|
|
16
15
|
export const handleAssistant = async ({ assistantHandler, toolCall, controller, run, assistant: parentAssistant, thread: parentThread, prisma, }) => {
|
|
@@ -311,11 +310,11 @@ export const handleAssistant = async ({ assistantHandler, toolCall, controller,
|
|
|
311
310
|
}
|
|
312
311
|
if (event.event === 'thread.run.requires_action' &&
|
|
313
312
|
((_b = (_a = event.data) === null || _a === void 0 ? void 0 : _a.required_action) === null || _b === void 0 ? void 0 : _b.type) === 'submit_client_tool_outputs') {
|
|
314
|
-
await
|
|
313
|
+
await Promise.all(event.data.required_action.submit_client_tool_outputs.tool_calls.map(
|
|
315
314
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
316
315
|
async (toolCall) => {
|
|
317
316
|
await redis.set(`submit-client-tool-outputs:output:${toolCall.id}`, 'Client tools cannot be used during async assistant calls', { ex: 60 * 60 * 24 * 7 });
|
|
318
|
-
});
|
|
317
|
+
}));
|
|
319
318
|
}
|
|
320
319
|
}
|
|
321
320
|
console.log('Successfully done with async assistant handler.');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getToolCallMcpServer.d.ts","sourceRoot":"","sources":["../../../src/lib/mcpServers/getToolCallMcpServer.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAA;AAC3B,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"getToolCallMcpServer.d.ts","sourceRoot":"","sources":["../../../src/lib/mcpServers/getToolCallMcpServer.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAA;AAC3B,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAG5C,eAAO,MAAM,oBAAoB,GAAU,0CAKxC;IACD,SAAS,EAAE,MAAM,CAAC,mBAAmB,CAAC;QACpC,OAAO,EAAE;YACP,UAAU,EAAE;gBACV,OAAO,EAAE;oBACP,cAAc,EAAE,IAAI,CAAA;oBACpB,aAAa,EAAE,IAAI,CAAA;oBACnB,YAAY,EAAE,IAAI,CAAA;iBACnB,CAAA;aACF,CAAA;SACF,CAAA;KACF,CAAC,CAAA;IACF,QAAQ,EAAE,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,8BAA8B,CAAA;IACjE,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,YAAY,CAAA;CACrB;mBAiCmC,aAAa,GAAG,IAAI;EAEvD,CAAA"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { forEach } from 'p-iteration';
|
|
2
1
|
import { connectMcpServer } from '../../lib/mcpServers/connectMcpServer';
|
|
3
2
|
import { closeMcpConnection } from '../../lib/mcpServers/closeMcpConnection';
|
|
4
3
|
export const getToolCallMcpServer = async ({ assistant, toolCall, thread, prisma, }) => {
|
|
5
4
|
let mcpConnection = null;
|
|
6
|
-
|
|
5
|
+
for (const mcpServer of assistant.mcpServers) {
|
|
7
6
|
if (mcpConnection)
|
|
8
|
-
|
|
7
|
+
break;
|
|
9
8
|
const { mcpConnection: innerMcpConnection } = await connectMcpServer({
|
|
10
9
|
mcpServer,
|
|
11
10
|
thread,
|
|
@@ -22,11 +21,11 @@ export const getToolCallMcpServer = async ({ assistant, toolCall, thread, prisma
|
|
|
22
21
|
await closeMcpConnection({
|
|
23
22
|
mcpConnection: innerMcpConnection,
|
|
24
23
|
});
|
|
25
|
-
|
|
24
|
+
continue;
|
|
26
25
|
}
|
|
27
26
|
mcpConnection = innerMcpConnection;
|
|
28
|
-
|
|
29
|
-
}
|
|
27
|
+
break;
|
|
28
|
+
}
|
|
30
29
|
return {
|
|
31
30
|
mcpConnection: mcpConnection,
|
|
32
31
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/prisma/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/prisma/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAY7C,QAAA,MAAM,qBAAqB,sIA0B1B,CAAA;AAED,OAAO,CAAC,MAAM,CAAC;IACb,IAAI,MAAM,EAAE,SAAS,GAAG,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAA;CACjE;AAED,eAAO,MAAM,SAAS,QAAO,YAc5B,CAAA;AAQD,eAAO,MAAM,MAAM,EAsBb,YAAY,CAAA;AAElB,eAAO,MAAM,aAAa,GAAI,CAAC,SAAS,YAAY,EAAE,SAAS,CAAC,KAAG,YAWlE,CAAA;AAED,eAAO,MAAM,0BAA0B,GACrC,UAAU,MAAM,YAAY,KAC3B,IAUF,CAAA"}
|
package/dist/lib/prisma/index.js
CHANGED
|
@@ -2,6 +2,7 @@ import { PrismaNeon } from '@prisma/adapter-neon';
|
|
|
2
2
|
import { PrismaClient } from '@prisma/client';
|
|
3
3
|
const prismaGlobalKey = Symbol.for('superinterface.server.prisma');
|
|
4
4
|
let customPrismaFactory;
|
|
5
|
+
let cachedAdapter;
|
|
5
6
|
const prismaClientSingleton = () => {
|
|
6
7
|
if (customPrismaFactory) {
|
|
7
8
|
return customPrismaFactory();
|
|
@@ -10,11 +11,16 @@ const prismaClientSingleton = () => {
|
|
|
10
11
|
if (process.env.NODE_ENV === 'test') {
|
|
11
12
|
return new PrismaClient();
|
|
12
13
|
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
// Cache the adapter to prevent creating multiple connection pools
|
|
15
|
+
// Each PrismaNeon instance creates a new connection pool with event listeners
|
|
16
|
+
// Reusing the same adapter prevents EventEmitter memory leaks
|
|
17
|
+
if (!cachedAdapter) {
|
|
18
|
+
cachedAdapter = new PrismaNeon({
|
|
19
|
+
connectionString,
|
|
20
|
+
});
|
|
21
|
+
}
|
|
16
22
|
return new PrismaClient({
|
|
17
|
-
adapter,
|
|
23
|
+
adapter: cachedAdapter,
|
|
18
24
|
transactionOptions: {
|
|
19
25
|
timeout: 15000,
|
|
20
26
|
},
|
|
@@ -62,13 +68,21 @@ export const prisma = new Proxy({}, {
|
|
|
62
68
|
},
|
|
63
69
|
});
|
|
64
70
|
export const resolvePrisma = (client) => {
|
|
65
|
-
if (client)
|
|
71
|
+
if (client) {
|
|
72
|
+
const globalForPrisma = globalThis;
|
|
73
|
+
globalForPrisma[prismaGlobalKey] = client;
|
|
74
|
+
if (!globalForPrisma.prisma) {
|
|
75
|
+
globalForPrisma.prisma = client;
|
|
76
|
+
}
|
|
77
|
+
prismaInstance = client;
|
|
66
78
|
return client;
|
|
79
|
+
}
|
|
67
80
|
return getPrisma();
|
|
68
81
|
};
|
|
69
82
|
export const __setPrismaFactoryForTests = (factory) => {
|
|
70
83
|
customPrismaFactory = factory;
|
|
71
84
|
prismaInstance = undefined;
|
|
85
|
+
cachedAdapter = undefined;
|
|
72
86
|
const globalForPrisma = globalThis;
|
|
73
87
|
Reflect.deleteProperty(globalForPrisma, prismaGlobalKey);
|
|
74
88
|
if ('prisma' in globalForPrisma) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/tools/tools/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/tools/tools/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAOlE,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAA;AA4QhC,eAAO,MAAM,KAAK,GAAU,gCAIzB;IACD,SAAS,EAAE,MAAM,CAAC,mBAAmB,CAAC;QACpC,OAAO,EAAE;YACP,KAAK,EAAE;gBACL,OAAO,EAAE;oBACP,cAAc,EAAE,IAAI,CAAA;oBACpB,aAAa,EAAE,IAAI,CAAA;oBACnB,mBAAmB,EAAE,IAAI,CAAA;oBACzB,mBAAmB,EAAE,IAAI,CAAA;oBACzB,eAAe,EAAE,IAAI,CAAA;iBACtB,CAAA;aACF,CAAA;YACD,SAAS,EAAE,IAAI,CAAA;YACf,aAAa,EAAE,IAAI,CAAA;YACnB,UAAU,EAAE;gBACV,OAAO,EAAE;oBACP,eAAe,EAAE,IAAI,CAAA;oBACrB,cAAc,EAAE,IAAI,CAAA;oBACpB,aAAa,EAAE,IAAI,CAAA;oBACnB,YAAY,EAAE,IAAI,CAAA;iBACnB,CAAA;aACF,CAAA;SACF,CAAA;KACF,CAAC,CAAA;IACF,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,YAAY,CAAA;CACrB;;;WAkBQ,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE;EAE9C,CAAA"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { TransportType, ToolType, ImageGenerationToolSize, } from '@prisma/client';
|
|
2
2
|
import { flat } from 'radash';
|
|
3
|
-
import { map } from 'p-iteration';
|
|
4
3
|
import { modelProviderConfigs } from '../../../lib/modelProviders/modelProviderConfigs';
|
|
5
4
|
import { isOpenaiAssistantsStorageProvider } from '../../../lib/storageProviders/isOpenaiAssistantsStorageProvider';
|
|
6
5
|
import { connectMcpServer } from '../../../lib/mcpServers/connectMcpServer';
|
|
@@ -105,7 +104,7 @@ const serializeTool = ({ tool }) => ({
|
|
|
105
104
|
description: tool.description,
|
|
106
105
|
parameters: tool.inputSchema,
|
|
107
106
|
});
|
|
108
|
-
const mcpServerToolsAsFunction = ({ mcpServers, thread, assistant, prisma, }) => map(
|
|
107
|
+
const mcpServerToolsAsFunction = ({ mcpServers, thread, assistant, prisma, }) => Promise.all(mcpServers.map(async (mcpServer) => {
|
|
109
108
|
const { mcpConnection } = await connectMcpServer({
|
|
110
109
|
mcpServer,
|
|
111
110
|
thread,
|
|
@@ -122,7 +121,7 @@ const mcpServerToolsAsFunction = ({ mcpServers, thread, assistant, prisma, }) =>
|
|
|
122
121
|
type: 'function',
|
|
123
122
|
function: serializeTool({ tool }),
|
|
124
123
|
}));
|
|
125
|
-
});
|
|
124
|
+
}));
|
|
126
125
|
const mcpServerTools = async ({ assistant, thread, prisma, }) => {
|
|
127
126
|
const nonComputerUseMcpServers = assistant.mcpServers.filter((mcpServer) => !mcpServer.computerUseTool);
|
|
128
127
|
if (isResponsesStorageProvider({
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superinterface/server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.25",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
|
-
"superinterface-server": "
|
|
6
|
+
"superinterface-server": "bin/index.cjs"
|
|
7
7
|
},
|
|
8
8
|
"files": [
|
|
9
9
|
"bin",
|
|
@@ -161,7 +161,6 @@
|
|
|
161
161
|
"dayjs": "^1.11.18",
|
|
162
162
|
"dotenv": "^16.4.5",
|
|
163
163
|
"groq-sdk": "^0.33.0",
|
|
164
|
-
"p-iteration": "^1.1.8",
|
|
165
164
|
"prisma": "^6.16.3",
|
|
166
165
|
"prisma-json-types-generator": "^3.6.2",
|
|
167
166
|
"replicate": "^1.2.0",
|
|
@@ -187,5 +186,13 @@
|
|
|
187
186
|
"react-dom": "^19.1.0",
|
|
188
187
|
"tsc-alias": "^1.8.12",
|
|
189
188
|
"typescript": "^5"
|
|
190
|
-
}
|
|
189
|
+
},
|
|
190
|
+
"description": "This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).",
|
|
191
|
+
"main": "index.js",
|
|
192
|
+
"directories": {
|
|
193
|
+
"test": "tests"
|
|
194
|
+
},
|
|
195
|
+
"keywords": [],
|
|
196
|
+
"author": "",
|
|
197
|
+
"license": "ISC"
|
|
191
198
|
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[75247,e=>{"use strict";e.s(["isArray",()=>t,"isEmpty",()=>u,"isFunction",()=>i,"isObject",()=>r,"isPrimitive",()=>n,"isString",()=>s]);let t=Array.isArray,r=e=>!!e&&e.constructor===Object,n=e=>null==e||"object"!=typeof e&&"function"!=typeof e,i=e=>!!(e&&e.constructor&&e.call&&e.apply),s=e=>"string"==typeof e||e instanceof String,a=e=>{try{return Number(e)===e}catch{return!1}},u=e=>{if(!0===e||!1===e||null==e)return!0;if(a(e))return 0===e;if("[object Date]"===Object.prototype.toString.call(e))return isNaN(e.getTime());if(i(e)||(e=>!!e&&e.constructor===Symbol)(e))return!1;let t=e.length;if(a(t))return 0===t;let r=e.size;return a(r)?0===r:0===Object.keys(e).length}},24361,(e,t,r)=>{t.exports=e.x("util",()=>require("util"))},18622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},20635,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/action-async-storage.external.js",()=>require("next/dist/server/app-render/action-async-storage.external.js"))},93695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},66680,(e,t,r)=>{t.exports=e.x("node:crypto",()=>require("node:crypto"))},56512,(e,t,r)=>{e.e,t.exports=function(){"use strict";var e="millisecond",t="second",r="minute",n="hour",i="week",s="month",a="quarter",u="year",o="date",c="Invalid Date",l=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,f=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},d="en",y={};y[d]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}};var p="$isDayjsObject",$=function(e){return e instanceof w||!(!e||!e[p])},g=function e(t,r,n){var i;if(!t)return d;if("string"==typeof t){var s=t.toLowerCase();y[s]&&(i=s),r&&(y[s]=r,i=s);var a=t.split("-");if(!i&&a.length>1)return e(a[0])}else{var u=t.name;y[u]=t,i=u}return!n&&i&&(d=i),i||!n&&d},m=function(e,t){if($(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new w(r)},v={s:f,z:function(e){var t=-e.utcOffset(),r=Math.abs(t);return(t<=0?"+":"-")+f(Math.floor(r/60),2,"0")+":"+f(r%60,2,"0")},m:function e(t,r){if(t.date()<r.date())return-e(r,t);var n=12*(r.year()-t.year())+(r.month()-t.month()),i=t.clone().add(n,s),a=r-i<0,u=t.clone().add(n+(a?-1:1),s);return+(-(n+(r-i)/(a?i-u:u-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(c){return({M:s,y:u,w:i,d:"day",D:o,h:n,m:r,s:t,ms:e,Q:a})[c]||String(c||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}};v.l=g,v.i=$,v.w=function(e,t){return m(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var w=function(){function f(e){this.$L=g(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[p]=!0}var d=f.prototype;return d.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(v.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(l);if(n){var i=n[2]-1||0,s=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,s)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,s)}}return new Date(t)}(e),this.init()},d.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},d.$utils=function(){return v},d.isValid=function(){return this.$d.toString()!==c},d.isSame=function(e,t){var r=m(e);return this.startOf(t)<=r&&r<=this.endOf(t)},d.isAfter=function(e,t){return m(e)<this.startOf(t)},d.isBefore=function(e,t){return this.endOf(t)<m(e)},d.$g=function(e,t,r){return v.u(e)?this[t]:this.set(r,e)},d.unix=function(){return Math.floor(this.valueOf()/1e3)},d.valueOf=function(){return this.$d.getTime()},d.startOf=function(e,a){var c=this,l=!!v.u(a)||a,h=v.p(e),f=function(e,t){var r=v.w(c.$u?Date.UTC(c.$y,t,e):new Date(c.$y,t,e),c);return l?r:r.endOf("day")},d=function(e,t){return v.w(c.toDate()[e].apply(c.toDate("s"),(l?[0,0,0,0]:[23,59,59,999]).slice(t)),c)},y=this.$W,p=this.$M,$=this.$D,g="set"+(this.$u?"UTC":"");switch(h){case u:return l?f(1,0):f(31,11);case s:return l?f(1,p):f(0,p+1);case i:var m=this.$locale().weekStart||0,w=(y<m?y+7:y)-m;return f(l?$-w:$+(6-w),p);case"day":case o:return d(g+"Hours",0);case n:return d(g+"Minutes",1);case r:return d(g+"Seconds",2);case t:return d(g+"Milliseconds",3);default:return this.clone()}},d.endOf=function(e){return this.startOf(e,!1)},d.$set=function(i,a){var c,l=v.p(i),h="set"+(this.$u?"UTC":""),f=((c={}).day=h+"Date",c[o]=h+"Date",c[s]=h+"Month",c[u]=h+"FullYear",c[n]=h+"Hours",c[r]=h+"Minutes",c[t]=h+"Seconds",c[e]=h+"Milliseconds",c)[l],d="day"===l?this.$D+(a-this.$W):a;if(l===s||l===u){var y=this.clone().set(o,1);y.$d[f](d),y.init(),this.$d=y.set(o,Math.min(this.$D,y.daysInMonth())).$d}else f&&this.$d[f](d);return this.init(),this},d.set=function(e,t){return this.clone().$set(e,t)},d.get=function(e){return this[v.p(e)]()},d.add=function(e,a){var o,c=this;e=Number(e);var l=v.p(a),h=function(t){var r=m(c);return v.w(r.date(r.date()+Math.round(t*e)),c)};if(l===s)return this.set(s,this.$M+e);if(l===u)return this.set(u,this.$y+e);if("day"===l)return h(1);if(l===i)return h(7);var f=((o={})[r]=6e4,o[n]=36e5,o[t]=1e3,o)[l]||1,d=this.$d.getTime()+e*f;return v.w(d,this)},d.subtract=function(e,t){return this.add(-1*e,t)},d.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||c;var n=e||"YYYY-MM-DDTHH:mm:ssZ",i=v.z(this),s=this.$H,a=this.$m,u=this.$M,o=r.weekdays,l=r.months,f=r.meridiem,d=function(e,r,i,s){return e&&(e[r]||e(t,n))||i[r].slice(0,s)},y=function(e){return v.s(s%12||12,e,"0")},p=f||function(e,t,r){var n=e<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(h,function(e,n){return n||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return v.s(t.$y,4,"0");case"M":return u+1;case"MM":return v.s(u+1,2,"0");case"MMM":return d(r.monthsShort,u,l,3);case"MMMM":return d(l,u);case"D":return t.$D;case"DD":return v.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(r.weekdaysMin,t.$W,o,2);case"ddd":return d(r.weekdaysShort,t.$W,o,3);case"dddd":return o[t.$W];case"H":return String(s);case"HH":return v.s(s,2,"0");case"h":return y(1);case"hh":return y(2);case"a":return p(s,a,!0);case"A":return p(s,a,!1);case"m":return String(a);case"mm":return v.s(a,2,"0");case"s":return String(t.$s);case"ss":return v.s(t.$s,2,"0");case"SSS":return v.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")})},d.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},d.diff=function(e,o,c){var l,h=this,f=v.p(o),d=m(e),y=(d.utcOffset()-this.utcOffset())*6e4,p=this-d,$=function(){return v.m(h,d)};switch(f){case u:l=$()/12;break;case s:l=$();break;case a:l=$()/3;break;case i:l=(p-y)/6048e5;break;case"day":l=(p-y)/864e5;break;case n:l=p/36e5;break;case r:l=p/6e4;break;case t:l=p/1e3;break;default:l=p}return c?l:v.a(l)},d.daysInMonth=function(){return this.endOf(s).$D},d.$locale=function(){return y[this.$L]},d.locale=function(e,t){if(!e)return this.$L;var r=this.clone(),n=g(e,t,!0);return n&&(r.$L=n),r},d.clone=function(){return v.w(this.$d,this)},d.toDate=function(){return new Date(this.valueOf())},d.toJSON=function(){return this.isValid()?this.toISOString():null},d.toISOString=function(){return this.$d.toISOString()},d.toString=function(){return this.$d.toUTCString()},f}(),x=w.prototype;return m.prototype=x,[["$ms",e],["$s",t],["$m",r],["$H",n],["$W","day"],["$M",s],["$y",u],["$D",o]].forEach(function(e){x[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),m.extend=function(e,t){return e.$i||(e(t,w,m),e.$i=!0),m},m.locale=g,m.isDayjs=$,m.unix=function(e){return m(1e3*e)},m.en=y[d],m.Ls=y,m.p={},m}()},58725,(e,t,r)=>{r.forEach=async(t,r,n)=>{let i=[];for(let s=0;s<t.length;s++)if(s in t){let a=Promise.resolve(t[s]).then(i=>r.call(n||e.e,i,s,t));i.push(a)}await Promise.all(i)},r.forEachSeries=async(t,r,n)=>{for(let i=0;i<t.length;i++)i in t&&await r.call(n||e.e,await t[i],i,t)},r.map=async(t,r,n)=>{let i=[];for(let s=0;s<t.length;s++)s in t&&(i[s]=Promise.resolve(t[s]).then(i=>r.call(n||e.e,i,s,t)));return Promise.all(i)},r.mapSeries=async(t,r,n)=>{let i=[];for(let s=0;s<t.length;s++)s in t&&(i[s]=await r.call(n||e.e,await t[s],s,t));return i},r.find=(t,r,n)=>new Promise((i,s)=>{if(0===t.length)return i();let a=1;for(let u=0;u<t.length;u++){let o=e=>{e?i(t[u]):a===t.length&&i(),a++};Promise.resolve(t[u]).then(i=>r.call(n||e.e,i,u,t)).then(o).catch(s)}}),r.findSeries=async(t,r,n)=>{for(let i=0;i<t.length;i++)if(await r.call(n||e.e,await t[i],i,t))return t[i]},r.findIndex=(t,r,n)=>new Promise((i,s)=>{if(0===t.length)return i(-1);let a=1;for(let u=0;u<t.length;u++){let o=e=>{e?i(u):a===t.length&&i(-1),a++};Promise.resolve(t[u]).then(i=>r.call(n||e.e,i,u,t)).then(o).catch(s)}}),r.findIndexSeries=async(t,r,n)=>{for(let i=0;i<t.length;i++)if(await r.call(n||e.e,await t[i],i,t))return i},r.some=(t,r,n)=>new Promise((i,s)=>{if(0===t.length)return i(!1);let a=1;for(let u=0;u<t.length;u++){if(!(u in t)){a++;continue}let o=e=>{e?i(!0):a===t.length&&i(!1),a++};Promise.resolve(t[u]).then(i=>r.call(n||e.e,i,u,t)).then(o).catch(s)}}),r.someSeries=async(t,r,n)=>{for(let i=0;i<t.length;i++)if(i in t&&await r.call(n||e.e,await t[i],i,t))return!0;return!1},r.every=(t,r,n)=>new Promise((i,s)=>{if(0===t.length)return i(!0);let a=1;for(let u=0;u<t.length;u++){if(!(u in t)){a++;continue}let o=e=>{e?a===t.length&&i(!0):i(!1),a++};Promise.resolve(t[u]).then(i=>r.call(n||e.e,i,u,t)).then(o).catch(s)}}),r.everySeries=async(t,r,n)=>{for(let i=0;i<t.length;i++)if(i in t&&!await r.call(n||e.e,await t[i],i,t))return!1;return!0},r.filter=(t,r,n)=>new Promise(async(i,s)=>{let a=[];for(let i=0;i<t.length;i++)i in t&&(a[i]=Promise.resolve(t[i]).then(s=>r.call(n||e.e,s,i,t)).catch(s));let u=[];for(let e=0;e<a.length;e++)await a[e]&&u.push(await t[e]);i(u)}),r.filterSeries=async(t,r,n)=>{let i=[];for(let s=0;s<t.length;s++)s in t&&await r.call(n||e.e,await t[s],s,t)&&i.push(await t[s]);return i},r.reduce=async(e,t,r)=>{let n,i;if(0===e.length&&void 0===r)throw TypeError("Reduce of empty array with no initial value");for(void 0!==r?(i=r,n=0):(i=e[0],n=1);n<e.length;n++)n in e&&(i=await t(await i,await e[n],n,e));return i}},61301,(e,t,r)=>{let n=e.r(58725);Object.keys(n).forEach(e=>{let t=e.charAt(0).toUpperCase()+e.slice(1);r[`async${t}`]=async function(...t){return n[e](this,...t)}})},27298,(e,t,r)=>{t.exports=Object.assign(e.r(58725),{instanceMethods:e.r(61301)})}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__19865527._.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["turbopack:///[project]/supercorp/superinterface/node_modules/radash/src/typed.ts","turbopack:///[project]/supercorp/superinterface/node_modules/dayjs/dayjs.min.js","turbopack:///[project]/supercorp/superinterface/node_modules/p-iteration/lib/static-methods.js","turbopack:///[project]/supercorp/superinterface/node_modules/p-iteration/lib/instance-methods.js","turbopack:///[project]/supercorp/superinterface/node_modules/p-iteration/index.js"],"sourcesContent":["export const isSymbol = (value: any): value is symbol => {\n return !!value && value.constructor === Symbol\n}\n\nexport const isArray = Array.isArray\n\nexport const isObject = (value: any): value is object => {\n return !!value && value.constructor === Object\n}\n\n/**\n * Checks if the given value is primitive.\n *\n * Primitive Types: number , string , boolean , symbol, bigint, undefined, null\n *\n * @param {*} value value to check\n * @returns {boolean} result\n */\nexport const isPrimitive = (value: any): boolean => {\n return (\n value === undefined ||\n value === null ||\n (typeof value !== 'object' && typeof value !== 'function')\n )\n}\n\nexport const isFunction = (value: any): value is Function => {\n return !!(value && value.constructor && value.call && value.apply)\n}\n\nexport const isString = (value: any): value is string => {\n return typeof value === 'string' || value instanceof String\n}\n\nexport const isInt = (value: any): value is number => {\n return isNumber(value) && value % 1 === 0\n}\n\nexport const isFloat = (value: any): value is number => {\n return isNumber(value) && value % 1 !== 0\n}\n\nexport const isNumber = (value: any): value is number => {\n try {\n return Number(value) === value\n } catch {\n return false\n }\n}\n\nexport const isDate = (value: any): value is Date => {\n return Object.prototype.toString.call(value) === '[object Date]'\n}\n\n/**\n * This is really a _best guess_ promise checking. You\n * should probably use Promise.resolve(value) to be 100%\n * sure you're handling it correctly.\n */\nexport const isPromise = (value: any): value is Promise<any> => {\n if (!value) return false\n if (!value.then) return false\n if (!isFunction(value.then)) return false\n return true\n}\n\nexport const isEmpty = (value: any) => {\n if (value === true || value === false) return true\n if (value === null || value === undefined) return true\n if (isNumber(value)) return value === 0\n if (isDate(value)) return isNaN(value.getTime())\n if (isFunction(value)) return false\n if (isSymbol(value)) return false\n const length = (value as any).length\n if (isNumber(length)) return length === 0\n const size = (value as any).size\n if (isNumber(size)) return size === 0\n const keys = Object.keys(value).length\n return keys === 0\n}\n\nexport const isEqual = <TType>(x: TType, y: TType): boolean => {\n if (Object.is(x, y)) return true\n if (x instanceof Date && y instanceof Date) {\n return x.getTime() === y.getTime()\n }\n if (x instanceof RegExp && y instanceof RegExp) {\n return x.toString() === y.toString()\n }\n if (\n typeof x !== 'object' ||\n x === null ||\n typeof y !== 'object' ||\n y === null\n ) {\n return false\n }\n const keysX = Reflect.ownKeys(x as unknown as object) as (keyof typeof x)[]\n const keysY = Reflect.ownKeys(y as unknown as object)\n if (keysX.length !== keysY.length) return false\n for (let i = 0; i < keysX.length; i++) {\n if (!Reflect.has(y as unknown as object, keysX[i])) return false\n if (!isEqual(x[keysX[i]], y[keysX[i]])) return false\n }\n return true\n}\n","!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(e):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).dayjs=e()}(this,(function(){\"use strict\";var t=1e3,e=6e4,n=36e5,r=\"millisecond\",i=\"second\",s=\"minute\",u=\"hour\",a=\"day\",o=\"week\",c=\"month\",f=\"quarter\",h=\"year\",d=\"date\",l=\"Invalid Date\",$=/^(\\d{4})[-/]?(\\d{1,2})?[-/]?(\\d{0,2})[Tt\\s]*(\\d{1,2})?:?(\\d{1,2})?:?(\\d{1,2})?[.:]?(\\d+)?$/,y=/\\[([^\\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:\"en\",weekdays:\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"),months:\"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\"),ordinal:function(t){var e=[\"th\",\"st\",\"nd\",\"rd\"],n=t%100;return\"[\"+t+(e[(n-20)%10]||e[n]||e[0])+\"]\"}},m=function(t,e,n){var r=String(t);return!r||r.length>=e?t:\"\"+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?\"+\":\"-\")+m(r,2,\"0\")+\":\"+m(i,2,\"0\")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,c),s=n-i<0,u=e.clone().add(r+(s?-1:1),c);return+(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:h,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:f}[t]||String(t||\"\").toLowerCase().replace(/s$/,\"\")},u:function(t){return void 0===t}},g=\"en\",D={};D[g]=M;var p=\"$isDayjsObject\",S=function(t){return t instanceof _||!(!t||!t[p])},w=function t(e,n,r){var i;if(!e)return g;if(\"string\"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),n&&(D[s]=n,i=s);var u=e.split(\"-\");if(!i&&u.length>1)return t(u[0])}else{var a=e.name;D[a]=e,i=a}return!r&&i&&(g=i),i||!r&&g},O=function(t,e){if(S(t))return t.clone();var n=\"object\"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},b=v;b.l=w,b.i=S,b.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=w(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[p]=!0}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if(\"string\"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||\"0\").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return b},m.isValid=function(){return!(this.$d.toString()===l)},m.isSame=function(t,e){var n=O(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return O(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<O(t)},m.$g=function(t,e,n){return b.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!b.u(e)||e,f=b.p(t),l=function(t,e){var i=b.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},$=function(t,e){return b.w(n.toDate()[t].apply(n.toDate(\"s\"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,v=\"set\"+(this.$u?\"UTC\":\"\");switch(f){case h:return r?l(1,0):l(31,11);case c:return r?l(1,M):l(0,M+1);case o:var g=this.$locale().weekStart||0,D=(y<g?y+7:y)-g;return l(r?m-D:m+(6-D),M);case a:case d:return $(v+\"Hours\",0);case u:return $(v+\"Minutes\",1);case s:return $(v+\"Seconds\",2);case i:return $(v+\"Milliseconds\",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=b.p(t),f=\"set\"+(this.$u?\"UTC\":\"\"),l=(n={},n[a]=f+\"Date\",n[d]=f+\"Date\",n[c]=f+\"Month\",n[h]=f+\"FullYear\",n[u]=f+\"Hours\",n[s]=f+\"Minutes\",n[i]=f+\"Seconds\",n[r]=f+\"Milliseconds\",n)[o],$=o===a?this.$D+(e-this.$W):e;if(o===c||o===h){var y=this.clone().set(d,1);y.$d[l]($),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d}else l&&this.$d[l]($);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[b.p(t)]()},m.add=function(r,f){var d,l=this;r=Number(r);var $=b.p(f),y=function(t){var e=O(l);return b.w(e.date(e.date()+Math.round(t*r)),l)};if($===c)return this.set(c,this.$M+r);if($===h)return this.set(h,this.$y+r);if($===a)return y(1);if($===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[$]||1,m=this.$d.getTime()+r*M;return b.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||\"YYYY-MM-DDTHH:mm:ssZ\",i=b.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,c=n.months,f=n.meridiem,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},d=function(t){return b.s(s%12||12,t,\"0\")},$=f||function(t,e,n){var r=t<12?\"AM\":\"PM\";return n?r.toLowerCase():r};return r.replace(y,(function(t,r){return r||function(t){switch(t){case\"YY\":return String(e.$y).slice(-2);case\"YYYY\":return b.s(e.$y,4,\"0\");case\"M\":return a+1;case\"MM\":return b.s(a+1,2,\"0\");case\"MMM\":return h(n.monthsShort,a,c,3);case\"MMMM\":return h(c,a);case\"D\":return e.$D;case\"DD\":return b.s(e.$D,2,\"0\");case\"d\":return String(e.$W);case\"dd\":return h(n.weekdaysMin,e.$W,o,2);case\"ddd\":return h(n.weekdaysShort,e.$W,o,3);case\"dddd\":return o[e.$W];case\"H\":return String(s);case\"HH\":return b.s(s,2,\"0\");case\"h\":return d(1);case\"hh\":return d(2);case\"a\":return $(s,u,!0);case\"A\":return $(s,u,!1);case\"m\":return String(u);case\"mm\":return b.s(u,2,\"0\");case\"s\":return String(e.$s);case\"ss\":return b.s(e.$s,2,\"0\");case\"SSS\":return b.s(e.$ms,3,\"0\");case\"Z\":return i}return null}(t)||i.replace(\":\",\"\")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,l){var $,y=this,M=b.p(d),m=O(r),v=(m.utcOffset()-this.utcOffset())*e,g=this-m,D=function(){return b.m(y,m)};switch(M){case h:$=D()/12;break;case c:$=D();break;case f:$=D()/3;break;case o:$=(g-v)/6048e5;break;case a:$=(g-v)/864e5;break;case u:$=g/n;break;case s:$=g/e;break;case i:$=g/t;break;default:$=g}return l?$:b.a($)},m.daysInMonth=function(){return this.endOf(c).$D},m.$locale=function(){return D[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=w(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return b.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),k=_.prototype;return O.prototype=k,[[\"$ms\",r],[\"$s\",i],[\"$m\",s],[\"$H\",u],[\"$W\",a],[\"$M\",c],[\"$y\",h],[\"$D\",d]].forEach((function(t){k[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),O.extend=function(t,e){return t.$i||(t(e,_,O),t.$i=!0),O},O.locale=w,O.isDayjs=S,O.unix=function(t){return O(1e3*t)},O.en=D[g],O.Ls=D,O.p={},O}));","/**\n * Implements ES5 [`Array#forEach()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach) method.<br><br>\n * Executes the provided callback once for each element.<br>\n * Callbacks are run concurrently,\n * and are only invoked for properties of the array that have been initialized (including those initialized with *undefined*), for unassigned ones `callback` is not run.<br>\n * @param {Array} array - Array to iterate over.\n * @param {Function} callback - Function to apply each item in `array`. Accepts three arguments: `currentValue`, `index` and `array`.\n * @param {Object} [thisArg] - Value to use as *this* when executing the `callback`.\n * @return {Promise} - Returns a Promise with undefined value.\n */\nexports.forEach = async (array, callback, thisArg) => {\n const promiseArray = [];\n for (let i = 0; i < array.length; i++) {\n if (i in array) {\n const p = Promise.resolve(array[i]).then((currentValue) => {\n return callback.call(thisArg || this, currentValue, i, array);\n });\n promiseArray.push(p);\n }\n }\n await Promise.all(promiseArray);\n};\n\n/**\n * Same functionality as [`forEach()`](global.html#forEach), but runs only one callback at a time.\n * @param {Array} array - Array to iterate over.\n * @param {Function} callback - Function to apply each item in `array`. Accepts three arguments: `currentValue`, `index` and `array`.\n * @param {Object} [thisArg] - Value to use as *this* when executing the `callback`.\n * @return {Promise} - Returns a Promise with undefined value.\n */\nexports.forEachSeries = async (array, callback, thisArg) => {\n for (let i = 0; i < array.length; i++) {\n if (i in array) {\n await callback.call(thisArg || this, await array[i], i, array);\n }\n }\n};\n\n/**\n * Implements ES5 [`Array#map()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map) method.<br><br>\n * Creates a new array with the results of calling the provided callback once for each element.<br>\n * Callbacks are run concurrently,\n * and are only invoked for properties of the array that have been initialized (including those initialized with *undefined*), for unassigned ones`callback` is not run.<br>\n * Resultant *Array* is always the same *length* as the original one.\n * @param {Array} array - Array to iterate over.\n * @param {Function} callback - Function to apply each item in `array`. Accepts three arguments: `currentValue`, `index` and `array`.\n * @param {Object} [thisArg] - Value to use as *this* when executing the `callback`.\n * @return {Promise} - Returns a Promise with the resultant *Array* as value.\n */\nexports.map = async (array, callback, thisArg) => {\n const promiseArray = [];\n for (let i = 0; i < array.length; i++) {\n if (i in array) {\n promiseArray[i] = Promise.resolve(array[i]).then((currentValue) => {\n return callback.call(thisArg || this, currentValue, i, array);\n });\n }\n }\n return Promise.all(promiseArray);\n};\n\n/**\n * Same functionality as [`map()`](global.html#map), but runs only one callback at a time.\n * @param {Array} array - Array to iterate over.\n * @param {Function} callback - Function to apply each item in `array`. Accepts three arguments: `currentValue`, `index` and `array`.\n * @param {Object} [thisArg] - Value to use as *this* when executing the `callback`.\n * @return {Promise} - Returns a Promise with the resultant *Array* as value.\n */\nexports.mapSeries = async (array, callback, thisArg) => {\n const result = [];\n for (let i = 0; i < array.length; i++) {\n if (i in array) {\n result[i] = await callback.call(thisArg || this, await array[i], i, array);\n }\n }\n return result;\n};\n\n/**\n * Implements ES5 [`Array#find()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find) method.<br><br>\n * Returns the value of the element that satisfies the provided `callback`. The value returned is the one found first.<br>\n * Callbacks are run concurrently, meaning that all the callbacks are going to run even if the returned value is found in one of the first elements of `array`,\n * depending on the async calls you are going to use, consider using instead [`findSeries()`](global.html#findSeries).<br>\n * @param {Array} array - Array to iterate over.\n * @param {Function} callback - Function to apply each item in `array`. Accepts three arguments: `currentValue`, `index` and `array`.\n * @param {Object} [thisArg] - Value to use as *this* when executing the `callback`.\n * @return {Promise} - Returns a Promise with the element that passed the test as value, otherwise *undefined*.\n */\nexports.find = (array, callback, thisArg) => {\n return new Promise((resolve, reject) => {\n if (array.length === 0) {\n return resolve();\n }\n let counter = 1;\n for (let i = 0; i < array.length; i++) {\n const check = (found) => {\n if (found) {\n resolve(array[i]);\n } else if (counter === array.length) {\n resolve();\n }\n counter++;\n };\n Promise.resolve(array[i])\n .then((elem) => callback.call(thisArg || this, elem, i, array))\n .then(check)\n .catch(reject);\n }\n });\n};\n\n/**\n * Same functionality as [`find()`](global.html#find), but runs only one callback at a time.\n * @param {Array} array - Array to iterate over.\n * @param {Function} callback - Function to apply each item in `array`. Accepts three arguments: `currentValue`, `index` and `array`.\n * @param {Object} [thisArg] - Value to use as *this* when executing the `callback`.\n * @return {Promise} - Returns a Promise with the element that passed the test as value, otherwise *undefined*.\n */\nexports.findSeries = async (array, callback, thisArg) => {\n for (let i = 0; i < array.length; i++) {\n if (await callback.call(thisArg || this, await array[i], i, array)) {\n return array[i];\n }\n }\n};\n\n/**\n * Implements ES5 [`Array#findIndex()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/findIndex) method.<br><br>\n * Returns the index of the element that satisfies the provided `callback`. The index returned is the one found first.<br>\n * Callbacks are run concurrently, meaning that all the callbacks are going to run even if the returned index is found in one of the first elements of `array`,\n * depending on the async calls you are going to use, consider using instead [`findSeries()`](global.html#findSeries).<br>\n * @param {Array} array - Array to iterate over.\n * @param {Function} callback - Function to apply each item in `array`. Accepts three arguments: `currentValue`, `index` and `array`.\n * @param {Object} [thisArg] - Value to use as *this* when executing the `callback`.\n * @return {Promise} - Returns a Promise with the index that passed the test as value, otherwise *-1*.\n */\nexports.findIndex = (array, callback, thisArg) => {\n return new Promise((resolve, reject) => {\n if (array.length === 0) {\n return resolve(-1);\n }\n let counter = 1;\n for (let i = 0; i < array.length; i++) {\n const check = (found) => {\n if (found) {\n resolve(i);\n } else if (counter === array.length) {\n resolve(-1);\n }\n counter++;\n };\n Promise.resolve(array[i])\n .then((elem) => callback.call(thisArg || this, elem, i, array))\n .then(check)\n .catch(reject);\n }\n });\n};\n\n/**\n * Same functionality as [`findIndex()`](global.html#findIndex), but runs only one callback at a time.\n * @param {Array} array - Array to iterate over.\n * @param {Function} callback - Function to apply each item in `array`. Accepts three arguments: `currentValue`, `index` and `array`.\n * @param {Object} [thisArg] - Value to use as *this* when executing the `callback`.\n * @return {Promise} - Returns a Promise with the index that passed the test, otherwise *-1*.\n */\nexports.findIndexSeries = async (array, callback, thisArg) => {\n for (let i = 0; i < array.length; i++) {\n if (await callback.call(thisArg || this, await array[i], i, array)) {\n return i;\n }\n }\n};\n\n/**\n * Implements ES5 [`Array#some()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/some) method.<br><br>\n * Test if some element in `array` passes the test implemented in `callback`.<br>\n * Callbacks are run concurrently, meaning that all the callbacks are going to run even if some of the first elements pass the test,\n * depending on the async calls you are going to use, consider using instead [`someSeries()`](global.html#someSeries).<br>\n * @param {Array} array - Array to iterate over.\n * @param {Function} callback - Function to apply each item in `array`. Accepts three arguments: `currentValue`, `index` and `array`.\n * @param {Object} [thisArg] - Value to use as *this* when executing the `callback`.\n * @return {Promise} - Returns a Promise with *true* as value if some element passed the test, otherwise *false*.\n */\nexports.some = (array, callback, thisArg) => {\n return new Promise((resolve, reject) => {\n if (array.length === 0) {\n return resolve(false);\n }\n let counter = 1;\n for (let i = 0; i < array.length; i++) {\n if (!(i in array)) {\n counter++;\n continue;\n }\n const check = (found) => {\n if (found) {\n resolve(true);\n } else if (counter === array.length) {\n resolve(false);\n }\n counter++;\n };\n Promise.resolve(array[i])\n .then((elem) => callback.call(thisArg || this, elem, i, array))\n .then(check)\n .catch(reject);\n }\n });\n};\n\n/**\n * Same functionality as [`some()`](global.html#some), but runs only one callback at a time.\n * @param {Array} array - Array to iterate over.\n * @param {Function} callback - Function to apply each item in `array`. Accepts three arguments: `currentValue`, `index` and `array`.\n * @param {Object} [thisArg] - Value to use as *this* when executing the `callback`.\n * @return {Promise} - Returns a Promise with *true* as value if some element passed the test, otherwise *false*.\n */\nexports.someSeries = async (array, callback, thisArg) => {\n for (let i = 0; i < array.length; i++) {\n if (i in array && await callback.call(thisArg || this, await array[i], i, array)) {\n return true;\n }\n }\n return false;\n};\n\n/**\n * Implements ES5 [`Array#every()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/every) method.<br><br>\n * Test if all elements in `array` pass the test implemented in `callback`.<br>\n * Callbacks are run concurrently, meaning that all the callbacks are going to run even if any of the first elements do not pass the test,\n * depending on the async calls you are going to use, consider using instead [`everySeries()`](global.html#everySeries).<br>\n * @param {Array} array - Array to iterate over.\n * @param {Function} callback - Function to apply each item in `array`. Accepts three arguments: `currentValue`, `index` and `array`.\n * @param {Object} [thisArg] - Value to use as *this* when executing the `callback`.\n * @return {Promise} - Returns a Promise with *true* as value if all elements passed the test, otherwise *false*.\n */\nexports.every = (array, callback, thisArg) => {\n return new Promise((resolve, reject) => {\n if (array.length === 0) {\n return resolve(true);\n }\n let counter = 1;\n for (let i = 0; i < array.length; i++) {\n if (!(i in array)) {\n counter++;\n continue;\n }\n const check = (found) => {\n if (!found) {\n resolve(false);\n } else if (counter === array.length) {\n resolve(true);\n }\n counter++;\n };\n Promise.resolve(array[i])\n .then((elem) => callback.call(thisArg || this, elem, i, array))\n .then(check)\n .catch(reject);\n }\n });\n};\n\n/**\n * Same functionality as [`every()`](global.html#every), but runs only one callback at a time.<br><br>\n * @param {Array} array - Array to iterate over.\n * @param {Function} callback - Function to apply each item in `array`. Accepts three arguments: `currentValue`, `index` and `array`.\n * @param {Object} [thisArg] - Value to use as *this* when executing the `callback`.\n * @return {Promise} - Returns a Promise with *true* as value if all elements passed the test, otherwise *false*.\n */\nexports.everySeries = async (array, callback, thisArg) => {\n for (let i = 0; i < array.length; i++) {\n if (i in array && !await callback.call(thisArg || this, await array[i], i, array)) {\n return false;\n }\n }\n return true;\n};\n\n/**\n * Implements ES5 [`Array#filter()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter) method.<br><br>\n * Creates a new array with the elements that passed the test implemented in `callback`.<br>\n * Callbacks are run concurrently.<br>\n * @param {Array} array - Array to iterate over.\n * @param {Function} callback - Function to apply each item in `array`. Accepts three arguments: `currentValue`, `index` and `array`.\n * @param {Object} [thisArg] - Value to use as *this* when executing the `callback`.\n * @return {Promise} - Returns a Promise with the resultant filtered *Array* as value.\n */\nexports.filter = (array, callback, thisArg) => {\n /* two loops are necessary in order to do the filtering concurrently\n * while keeping the order of the elements\n * (if you find a better way to do it please send a PR!)\n */\n return new Promise(async (resolve, reject) => {\n const promiseArray = [];\n for (let i = 0; i < array.length; i++) {\n if (i in array) {\n promiseArray[i] = Promise.resolve(array[i]).then((currentValue) => {\n return callback.call(thisArg || this, currentValue, i, array);\n }).catch(reject);\n }\n }\n const filteredArray = [];\n for (let i = 0; i < promiseArray.length; i++) {\n if (await promiseArray[i]) {\n filteredArray.push(await array[i]);\n }\n }\n resolve(filteredArray);\n });\n};\n\n/**\n * Same functionality as [`filter()`](global.html#filter), but runs only one callback at a time.\n * @param {Array} array - Array to iterate over.\n * @param {Function} callback - Function to apply each item in `array`. Accepts three arguments: `currentValue`, `index` and `array`.\n * @return {Promise} - Returns a Promise with the resultant filtered *Array* as value.\n */\nexports.filterSeries = async (array, callback, thisArg) => {\n const result = [];\n for (let i = 0; i < array.length; i++) {\n if (i in array && await callback.call(thisArg || this, await array[i], i, array)) {\n result.push(await array[i]);\n }\n }\n return result;\n};\n\n/**\n * Implements ES5 [`Array#reduce()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce) method.<br><br>\n * Applies a `callback` against an accumulator and each element in `array`.\n * @param {Array} array - Array to iterate over.\n * @param {Function} callback - Function to apply each item in `array`. Accepts four arguments: `accumulator`, `currentValue`, `currentIndex` and `array`.\n * @param {Object} [initialValue] - Used as first argument to the first call of `callback`.\n * @return {Promise} - Returns a Promise with the resultant value from the reduction.\n */\nexports.reduce = async (array, callback, initialValue) => {\n if (array.length === 0 && initialValue === undefined) {\n throw TypeError('Reduce of empty array with no initial value');\n }\n let i;\n let previousValue;\n if (initialValue !== undefined) {\n previousValue = initialValue;\n i = 0;\n } else {\n previousValue = array[0];\n i = 1;\n }\n for (i; i < array.length; i++) {\n if (i in array) {\n previousValue = await callback(await previousValue, await array[i], i, array);\n }\n }\n return previousValue;\n};\n","const staticMethods = require('./static-methods');\n\nObject.keys(staticMethods).forEach((methodName) => {\n const instaceMethodName = methodName.charAt(0).toUpperCase() + methodName.slice(1);\n exports[`async${instaceMethodName}`] = async function (...args) {\n return staticMethods[methodName](this, ...args);\n };\n});\n","const staticMethods = require('./lib/static-methods');\nconst instanceMethods = require('./lib/instance-methods');\n\nmodule.exports = Object.assign(staticMethods, { instanceMethods });\n"],"names":[],"mappings":"uJAIO,IAAM,EAAU,KAAM,CAAA,OAAA,CAAA,AAEhB,EAAW,AAAC,GAChB,CAAC,CAD+C,AAC9C,CADE,EACO,EADqC,AAC/B,AAAN,GAAA,QAAsB,GAAA,MAAA,CAAA,AAW7B,EAAc,AAAC,KAAwB,IAAvC,AAET,CAFgD,EAI9B,EAFlB,KAAU,CAEQ,EAAjB,EAFS,KAEF,AADR,GAC+C,EADrC,AACQ,KADR,GACqC,CADrC,AACqC,CAAjB,OAAO,EAI5B,EAAa,AAAC,CAJwB,EAK1C,CAAC,CADmD,AACnD,CAAE,EADC,CACQ,CADwC,CACjD,AAAe,WAAe,EAAA,EAAM,GAAN,CAAM,EAAQ,EAAM,GAAA,EAAA,CAAA,CAAA,AAGjD,EAAW,AAAC,GACC,EAD+B,CAA5C,IAA4C,CAC/B,EAAjB,OAAO,GAAsB,EAAZ,GAA6B,QAAA,MAAA,CAAA,AAW1C,EAAW,AAAC,IACnB,CADmD,CAA5C,CACP,CACK,EAF8C,KAE9C,MAAA,CAAO,KAAK,AAAM,CAAA,CACzB,GADyB,CAAA,CACzB,CACO,OAAA,CAAA,CACT,AAC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