@superinterface/react 2.6.0 → 2.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -492,21 +492,13 @@ var import_react_query = require("@tanstack/react-query");
492
492
  var variableParams = function(param) {
493
493
  var variables = param.variables, superinterfaceContext = param.superinterfaceContext;
494
494
  var _superinterfaceContext_threadIdCookieOptions;
495
- console.log({
496
- variables: variables,
497
- superinterfaceContext: superinterfaceContext
498
- });
499
495
  if (variables.threadId) return variables;
500
496
  if (!variables.assistantId) return variables;
501
497
  if (!((_superinterfaceContext_threadIdCookieOptions = superinterfaceContext.threadIdCookieOptions) === null || _superinterfaceContext_threadIdCookieOptions === void 0 ? void 0 : _superinterfaceContext_threadIdCookieOptions.get)) return variables;
502
- console.log("using");
503
498
  var threadId = superinterfaceContext.threadIdCookieOptions.get({
504
499
  assistantId: variables.assistantId
505
500
  });
506
501
  if (!threadId) return variables;
507
- console.log({
508
- threadId: threadId
509
- });
510
502
  return _object_spread_props(_object_spread({}, variables), {
511
503
  threadId: threadId
512
504
  });
@@ -1768,16 +1760,10 @@ var import_json_whatwg = require("@streamparser/json-whatwg");
1768
1760
  var ensure = function(param) {
1769
1761
  var superinterfaceContext = param.superinterfaceContext, variables = param.variables, value = param.value;
1770
1762
  var _superinterfaceContext_threadIdCookieOptions;
1771
- console.log({
1772
- value: value,
1773
- variables: variables,
1774
- superinterfaceContext: superinterfaceContext
1775
- });
1776
1763
  if (!((_superinterfaceContext_threadIdCookieOptions = superinterfaceContext.threadIdCookieOptions) === null || _superinterfaceContext_threadIdCookieOptions === void 0 ? void 0 : _superinterfaceContext_threadIdCookieOptions.set)) return;
1777
1764
  if (value.value.event !== "thread.run.created") return;
1778
1765
  if (variables.threadId) return;
1779
1766
  if (!variables.assistantId) return;
1780
- console.log("saving");
1781
1767
  superinterfaceContext.threadIdCookieOptions.set({
1782
1768
  assistantId: variables.assistantId,
1783
1769
  threadId: value.value.data.thread_id
@@ -2140,21 +2126,13 @@ var handleResponse = function(param) {
2140
2126
  var body = function(param) {
2141
2127
  var variables = param.variables, superinterfaceContext = param.superinterfaceContext;
2142
2128
  var _superinterfaceContext_threadIdCookieOptions;
2143
- console.log({
2144
- variables: variables,
2145
- superinterfaceContext: superinterfaceContext
2146
- });
2147
2129
  if (variables.threadId) return variables;
2148
2130
  if (!variables.assistantId) return variables;
2149
2131
  if (!((_superinterfaceContext_threadIdCookieOptions = superinterfaceContext.threadIdCookieOptions) === null || _superinterfaceContext_threadIdCookieOptions === void 0 ? void 0 : _superinterfaceContext_threadIdCookieOptions.get)) return variables;
2150
- console.log("using");
2151
2132
  var threadId = superinterfaceContext.threadIdCookieOptions.get({
2152
2133
  assistantId: variables.assistantId
2153
2134
  });
2154
2135
  if (!threadId) return variables;
2155
- console.log({
2156
- threadId: threadId
2157
- });
2158
2136
  return _object_spread_props(_object_spread({}, variables), {
2159
2137
  threadId: threadId
2160
2138
  });