@superinterface/server 1.5.0 → 1.6.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.
Files changed (58) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +2 -2
  3. package/.next/cache/.previewinfo +1 -1
  4. package/.next/cache/.rscinfo +1 -1
  5. package/.next/cache/.tsbuildinfo +1 -1
  6. package/.next/cache/eslint/.cache_btwyo7 +1 -1
  7. package/.next/fallback-build-manifest.json +2 -2
  8. package/.next/prerender-manifest.json +3 -3
  9. package/.next/server/app/_not-found.html +1 -1
  10. package/.next/server/app/_not-found.rsc +1 -1
  11. package/.next/server/app/index.html +1 -1
  12. package/.next/server/app/index.rsc +1 -1
  13. package/.next/server/chunks/[root-of-the-server]__4e536bc0._.js +1 -1
  14. package/.next/server/chunks/[root-of-the-server]__4e536bc0._.js.map +1 -1
  15. package/.next/server/chunks/[root-of-the-server]__bcdbc64b._.js +1 -1
  16. package/.next/server/chunks/[root-of-the-server]__bcdbc64b._.js.map +1 -1
  17. package/.next/server/chunks/c4f00_next_dist_esm_build_templates_app-route_828c7f3d.js +1 -1
  18. package/.next/server/chunks/c4f00_next_dist_esm_build_templates_app-route_828c7f3d.js.map +1 -1
  19. package/.next/server/chunks/supercorp_superinterface_bebd2c96._.js.map +1 -1
  20. package/.next/server/chunks/supercorp_superinterface_c6d586ec._.js +1 -1
  21. package/.next/server/chunks/supercorp_superinterface_c6d586ec._.js.map +1 -1
  22. package/.next/server/chunks/supercorp_superinterface_d30ea151._.js +1 -1
  23. package/.next/server/chunks/supercorp_superinterface_d30ea151._.js.map +1 -1
  24. package/.next/server/pages/404.html +1 -1
  25. package/.next/server/pages/500.html +1 -1
  26. package/.next/server/server-reference-manifest.js +1 -1
  27. package/.next/server/server-reference-manifest.json +1 -1
  28. package/.next/trace +1 -1
  29. package/dist/app/api/assistants/[assistantId]/buildRoute.d.ts +7 -1
  30. package/dist/app/api/assistants/[assistantId]/buildRoute.d.ts.map +1 -1
  31. package/dist/app/api/assistants/[assistantId]/buildRoute.js +6 -4
  32. package/dist/app/api/assistants/[assistantId]/route.d.ts +7 -1
  33. package/dist/app/api/assistants/[assistantId]/route.d.ts.map +1 -1
  34. package/dist/app/api/assistants/buildRoute.d.ts +22 -4
  35. package/dist/app/api/assistants/buildRoute.d.ts.map +1 -1
  36. package/dist/app/api/assistants/buildRoute.js +6 -4
  37. package/dist/app/api/assistants/route.d.ts +4 -0
  38. package/dist/app/api/assistants/route.d.ts.map +1 -1
  39. package/dist/lib/assistants/assistantClientAdapter/index.d.ts.map +1 -1
  40. package/dist/lib/assistants/serializeApiAssistant.d.ts +2 -0
  41. package/dist/lib/assistants/serializeApiAssistant.d.ts.map +1 -1
  42. package/dist/lib/assistants/serializeApiAssistant.js +2 -0
  43. package/dist/lib/computerCalls/handleComputerCall/index.d.ts +8 -8
  44. package/dist/lib/computerCalls/handleComputerCall/index.d.ts.map +1 -1
  45. package/dist/lib/computerCalls/handleComputerCall/index.js +23 -11
  46. package/dist/lib/functions/handleFunction/index.d.ts.map +1 -1
  47. package/dist/lib/functions/handleFunction/index.js +20 -1
  48. package/dist/lib/mcpServers/getToolCallMcpServer.d.ts +1 -0
  49. package/dist/lib/mcpServers/getToolCallMcpServer.d.ts.map +1 -1
  50. package/dist/lib/mcpServers/getToolCallMcpServer.js +37 -18
  51. package/dist/lib/threads/managedOpenaiThreadId.d.ts.map +1 -1
  52. package/dist/lib/threads/managedOpenaiThreadId.js +1 -2
  53. package/dist/lib/threads/storageThreadId.d.ts.map +1 -1
  54. package/dist/lib/threads/storageThreadId.js +1 -2
  55. package/package.json +1 -1
  56. /package/.next/static/{shpAFERugM2nbzUksiKem → UBq-QQGk_XvgTNFv4eLnz}/_buildManifest.js +0 -0
  57. /package/.next/static/{shpAFERugM2nbzUksiKem → UBq-QQGk_XvgTNFv4eLnz}/_clientMiddlewareManifest.json +0 -0
  58. /package/.next/static/{shpAFERugM2nbzUksiKem → UBq-QQGk_XvgTNFv4eLnz}/_ssgManifest.js +0 -0
@@ -50,13 +50,15 @@ export const handleComputerCall = async ({ assistant, toolCall, thread, prisma,
50
50
  output: 'No computer use tool configured.',
51
51
  };
52
52
  }
53
- const { mcpConnection } = await connectMcpServer({
54
- thread,
55
- assistant,
56
- mcpServer: tool.computerUseTool.mcpServer,
57
- prisma,
58
- });
53
+ let mcpConnection = null;
59
54
  try {
55
+ const connection = await connectMcpServer({
56
+ thread,
57
+ assistant,
58
+ mcpServer: tool.computerUseTool.mcpServer,
59
+ prisma,
60
+ });
61
+ mcpConnection = connection.mcpConnection;
60
62
  const mcpServerToolOutput = (await mcpConnection.client.callTool({
61
63
  name: 'computer_call',
62
64
  arguments: {
@@ -66,9 +68,6 @@ export const handleComputerCall = async ({ assistant, toolCall, thread, prisma,
66
68
  }, CallToolResultSchema, {
67
69
  timeout: 300000,
68
70
  }));
69
- await closeMcpConnection({
70
- mcpConnection,
71
- });
72
71
  const acknowledgedSafetyChecks =
73
72
  // @ts-expect-error compat
74
73
  toolCall.computer_call.pending_safety_checks.map((psc) => ({
@@ -95,6 +94,7 @@ export const handleComputerCall = async ({ assistant, toolCall, thread, prisma,
95
94
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
96
95
  }
97
96
  catch (e) {
97
+ const message = e instanceof Error ? e.message : String(e);
98
98
  createLog({
99
99
  log: {
100
100
  requestMethod: LogRequestMethod.POST,
@@ -102,7 +102,7 @@ export const handleComputerCall = async ({ assistant, toolCall, thread, prisma,
102
102
  level: LogLevel.ERROR,
103
103
  status: 500,
104
104
  // @ts-expect-error compat
105
- message: `Error calling computer_call with action ${JSON.stringify(toolCall.computer_call.action)}: ${e.message}`,
105
+ message: `Error calling computer_call with action ${JSON.stringify(toolCall.computer_call.action)}: ${message}`,
106
106
  workspaceId: assistant.workspaceId,
107
107
  assistantId: assistant.id,
108
108
  threadId: thread.id,
@@ -112,7 +112,19 @@ export const handleComputerCall = async ({ assistant, toolCall, thread, prisma,
112
112
  return {
113
113
  tool_call_id: toolCall.id,
114
114
  // @ts-expect-error compat
115
- output: `Error calling computer_call with action ${JSON.stringify(toolCall.computer_call.action)}: ${e.message}`,
115
+ output: `Error calling computer_call with action ${JSON.stringify(toolCall.computer_call.action)}: ${message}`,
116
116
  };
117
117
  }
118
+ finally {
119
+ if (mcpConnection) {
120
+ try {
121
+ await closeMcpConnection({
122
+ mcpConnection,
123
+ });
124
+ }
125
+ catch (_c) {
126
+ // Ignore close errors so the tool output is still returned.
127
+ }
128
+ }
129
+ }
118
130
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/functions/handleFunction/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAA;AAC3B,OAAO,EACL,MAAM,EAEN,MAAM,EAIN,KAAK,YAAY,EAClB,MAAM,gBAAgB,CAAA;AAgBvB,eAAO,MAAM,cAAc,GAAU,2DAOlC;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;YACD,SAAS,EAAE;gBACT,OAAO,EAAE;oBACP,OAAO,EAAE;wBACP,OAAO,EAAE;4BACP,cAAc,EAAE,IAAI,CAAA;4BACpB,gBAAgB,EAAE,IAAI,CAAA;4BACtB,gBAAgB,EAAE,IAAI,CAAA;4BACtB,iBAAiB,EAAE,IAAI,CAAA;4BACvB,gBAAgB,EAAE,IAAI,CAAA;4BACtB,iBAAiB,EAAE,IAAI,CAAA;4BACvB,gBAAgB,EAAE,IAAI,CAAA;4BACtB,iBAAiB,EAAE,IAAI,CAAA;4BACvB,iBAAiB,EAAE,IAAI,CAAA;yBACxB,CAAA;qBACF,CAAA;iBACF,CAAA;aACF,CAAA;SACF,CAAA;KACF,CAAC,CAAA;IACF,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,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,YAAY,CAAA;CACrB;;;EAkbA,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/functions/handleFunction/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAA;AAC3B,OAAO,EACL,MAAM,EAEN,MAAM,EAIN,KAAK,YAAY,EAClB,MAAM,gBAAgB,CAAA;AAgBvB,eAAO,MAAM,cAAc,GAAU,2DAOlC;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;YACD,SAAS,EAAE;gBACT,OAAO,EAAE;oBACP,OAAO,EAAE;wBACP,OAAO,EAAE;4BACP,cAAc,EAAE,IAAI,CAAA;4BACpB,gBAAgB,EAAE,IAAI,CAAA;4BACtB,gBAAgB,EAAE,IAAI,CAAA;4BACtB,iBAAiB,EAAE,IAAI,CAAA;4BACvB,gBAAgB,EAAE,IAAI,CAAA;4BACtB,iBAAiB,EAAE,IAAI,CAAA;4BACvB,gBAAgB,EAAE,IAAI,CAAA;4BACtB,iBAAiB,EAAE,IAAI,CAAA;4BACvB,iBAAiB,EAAE,IAAI,CAAA;yBACxB,CAAA;qBACF,CAAA;iBACF,CAAA;aACF,CAAA;SACF,CAAA;KACF,CAAC,CAAA;IACF,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,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,YAAY,CAAA;CACrB;;;EAucA,CAAA"}
@@ -19,13 +19,32 @@ export const handleFunction = async ({ assistant, toolCall, controller, run, thr
19
19
  assistant,
20
20
  });
21
21
  if (!fn) {
22
- const { mcpConnection } = await getToolCallMcpServer({
22
+ const { mcpConnection, error } = await getToolCallMcpServer({
23
23
  toolCall,
24
24
  assistant,
25
25
  thread,
26
26
  prisma,
27
27
  });
28
28
  if (!mcpConnection) {
29
+ if (error) {
30
+ createLog({
31
+ log: {
32
+ requestMethod: LogRequestMethod.POST,
33
+ requestRoute: LogRequestRoute.MESSAGES,
34
+ level: LogLevel.ERROR,
35
+ status: 500,
36
+ message: `Error calling function ${toolCall.function.name}: ${error.message}`,
37
+ workspaceId: assistant.workspaceId,
38
+ assistantId: assistant.id,
39
+ threadId: thread.id,
40
+ },
41
+ prisma,
42
+ });
43
+ return {
44
+ tool_call_id: toolCall.id,
45
+ output: `Error calling function ${toolCall.function.name}: ${error.message}`,
46
+ };
47
+ }
29
48
  createLog({
30
49
  log: {
31
50
  requestMethod: LogRequestMethod.POST,
@@ -18,5 +18,6 @@ export declare const getToolCallMcpServer: ({ assistant, toolCall, thread, prism
18
18
  prisma: PrismaClient;
19
19
  }) => Promise<{
20
20
  mcpConnection: McpConnection | null;
21
+ error: Error | null;
21
22
  }>;
22
23
  //# sourceMappingURL=getToolCallMcpServer.d.ts.map
@@ -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;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
+ {"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;mBAiDmC,aAAa,GAAG,IAAI;;EAGvD,CAAA"}
@@ -2,31 +2,50 @@ import { connectMcpServer } from '../../lib/mcpServers/connectMcpServer';
2
2
  import { closeMcpConnection } from '../../lib/mcpServers/closeMcpConnection';
3
3
  export const getToolCallMcpServer = async ({ assistant, toolCall, thread, prisma, }) => {
4
4
  let mcpConnection = null;
5
+ let error = null;
5
6
  for (const mcpServer of assistant.mcpServers) {
6
7
  if (mcpConnection)
7
8
  break;
8
- const { mcpConnection: innerMcpConnection } = await connectMcpServer({
9
- mcpServer,
10
- thread,
11
- assistant,
12
- prisma,
13
- });
14
- const listToolsResponse =
15
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
16
- (await innerMcpConnection.client.listTools());
17
- const tool = listToolsResponse.tools.find(
18
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
19
- (tool) => tool.name === toolCall.function.name);
20
- if (!tool) {
21
- await closeMcpConnection({
22
- mcpConnection: innerMcpConnection,
9
+ let innerMcpConnection = null;
10
+ try {
11
+ const connection = await connectMcpServer({
12
+ mcpServer,
13
+ thread,
14
+ assistant,
15
+ prisma,
23
16
  });
24
- continue;
17
+ innerMcpConnection = connection.mcpConnection;
18
+ const listToolsResponse =
19
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
20
+ (await innerMcpConnection.client.listTools());
21
+ const tool = listToolsResponse.tools.find(
22
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
23
+ (tool) => tool.name === toolCall.function.name);
24
+ if (!tool) {
25
+ await closeMcpConnection({
26
+ mcpConnection: innerMcpConnection,
27
+ });
28
+ continue;
29
+ }
30
+ mcpConnection = innerMcpConnection;
31
+ break;
32
+ }
33
+ catch (e) {
34
+ error = e instanceof Error ? e : new Error(String(e));
35
+ if (innerMcpConnection) {
36
+ try {
37
+ await closeMcpConnection({
38
+ mcpConnection: innerMcpConnection,
39
+ });
40
+ }
41
+ catch (_a) {
42
+ // Ignore close errors so tool errors propagate.
43
+ }
44
+ }
25
45
  }
26
- mcpConnection = innerMcpConnection;
27
- break;
28
46
  }
29
47
  return {
30
48
  mcpConnection: mcpConnection,
49
+ error,
31
50
  };
32
51
  };
@@ -1 +1 @@
1
- {"version":3,"file":"managedOpenaiThreadId.d.ts","sourceRoot":"","sources":["../../../src/lib/threads/managedOpenaiThreadId.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAuB,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAK/E,eAAO,MAAM,qBAAqB,GAAU,kCAIzC;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,UAAU,EAAE;gBACV,OAAO,EAAE;oBACP,eAAe,EAAE,IAAI,CAAA;oBACrB,cAAc,EAAE,IAAI,CAAA;oBACpB,YAAY,EAAE,IAAI,CAAA;oBAClB,aAAa,EAAE,IAAI,CAAA;iBACpB,CAAA;aACF,CAAA;YACD,SAAS,EAAE,IAAI,CAAA;YACf,aAAa,EAAE,IAAI,CAAA;SACpB,CAAA;KACF,CAAC,CAAA;IACF,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,YAAY,CAAA;CACrB,oBA6CA,CAAA"}
1
+ {"version":3,"file":"managedOpenaiThreadId.d.ts","sourceRoot":"","sources":["../../../src/lib/threads/managedOpenaiThreadId.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAuB,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAK/E,eAAO,MAAM,qBAAqB,GAAU,kCAIzC;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,UAAU,EAAE;gBACV,OAAO,EAAE;oBACP,eAAe,EAAE,IAAI,CAAA;oBACrB,cAAc,EAAE,IAAI,CAAA;oBACpB,YAAY,EAAE,IAAI,CAAA;oBAClB,aAAa,EAAE,IAAI,CAAA;iBACpB,CAAA;aACF,CAAA;YACD,SAAS,EAAE,IAAI,CAAA;YACf,aAAa,EAAE,IAAI,CAAA;SACpB,CAAA;KACF,CAAC,CAAA;IACF,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,YAAY,CAAA;CACrB,oBA4CA,CAAA"}
@@ -26,8 +26,7 @@ export const managedOpenaiThreadId = async ({ assistant, threadId, prisma, }) =>
26
26
  ? {
27
27
  openaiConversationId: newStorageThread.id,
28
28
  }
29
- : {})), (assistant.storageProviderType ===
30
- StorageProviderType.AZURE_RESPONSES
29
+ : {})), (assistant.storageProviderType === StorageProviderType.AZURE_RESPONSES
31
30
  ? {
32
31
  azureOpenaiConversationId: newStorageThread.id,
33
32
  }
@@ -1 +1 @@
1
- {"version":3,"file":"storageThreadId.d.ts","sourceRoot":"","sources":["../../../src/lib/threads/storageThreadId.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAuB,MAAM,gBAAgB,CAAA;AAI5D,eAAO,MAAM,eAAe,GAAI,aAE7B;IACD,MAAM,EAAE,MAAM,CAAC,gBAAgB,CAAC;QAC9B,OAAO,EAAE;YACP,SAAS,EAAE;gBACT,MAAM,EAAE;oBACN,mBAAmB,EAAE,IAAI,CAAA;iBAC1B,CAAA;aACF,CAAA;SACF,CAAA;KACF,CAAC,CAAA;CACH,kBAyCA,CAAA"}
1
+ {"version":3,"file":"storageThreadId.d.ts","sourceRoot":"","sources":["../../../src/lib/threads/storageThreadId.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAuB,MAAM,gBAAgB,CAAA;AAI5D,eAAO,MAAM,eAAe,GAAI,aAE7B;IACD,MAAM,EAAE,MAAM,CAAC,gBAAgB,CAAC;QAC9B,OAAO,EAAE;YACP,SAAS,EAAE;gBACT,MAAM,EAAE;oBACN,mBAAmB,EAAE,IAAI,CAAA;iBAC1B,CAAA;aACF,CAAA;SACF,CAAA;KACF,CAAC,CAAA;CACH,kBAwCA,CAAA"}
@@ -11,8 +11,7 @@ export const storageThreadId = ({ thread, }) => {
11
11
  StorageProviderType.OPENAI_RESPONSES) {
12
12
  return thread.openaiConversationId;
13
13
  }
14
- if (thread.assistant.storageProviderType ===
15
- StorageProviderType.AZURE_RESPONSES) {
14
+ if (thread.assistant.storageProviderType === StorageProviderType.AZURE_RESPONSES) {
16
15
  return thread.azureOpenaiConversationId;
17
16
  }
18
17
  if (thread.assistant.storageProviderType ===
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superinterface/server",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "superinterface-server": "./bin/index.cjs"