@adaptic/utils 0.0.1022 → 0.0.1023

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
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var adaptic$1 = require('@adaptic/backend-legacy');
3
+ var adaptic$1 = require('@adaptic/backend');
4
4
  var dateFns = require('date-fns');
5
5
  var dateFnsTz = require('date-fns-tz');
6
6
  var require$$0$1 = require('events');
@@ -186,7 +186,7 @@ let authConfigured = false;
186
186
  /**
187
187
  * Configure the Apollo client authentication with a dynamic token provider.
188
188
  * This should be called once during app initialization before making any
189
- * @adaptic/backend-legacy API calls.
189
+ * @adaptic/backend API calls.
190
190
  *
191
191
  * The token provider function will be called for each GraphQL request,
192
192
  * allowing for dynamic token retrieval (e.g., from session storage, SecretsManager, etc.)
@@ -231,7 +231,7 @@ const isAuthConfigured = () => {
231
231
  };
232
232
  /**
233
233
  * Returns a shared Apollo client instance with connection pooling.
234
- * This should be used for all @adaptic/backend-legacy operations.
234
+ * This should be used for all @adaptic/backend operations.
235
235
  *
236
236
  * @returns {Promise<ApolloClientInstance>} The shared Apollo client instance.
237
237
  */
@@ -8733,7 +8733,7 @@ async function getConfiguration(account) {
8733
8733
  throw new Error(`Failed to fetch account configuration: ${alpacaResponse.statusText}`);
8734
8734
  }
8735
8735
  if (!freshAlpacaAccount) {
8736
- throw new Error("Failed to get Alpaca Account from @adaptic/backend-legacy.");
8736
+ throw new Error("Failed to get Alpaca Account from @adaptic/backend.");
8737
8737
  }
8738
8738
  const dataFromAlpaca = (await alpacaResponse.json());
8739
8739
  const accountWithAllocation = freshAlpacaAccount;
@@ -8917,7 +8917,7 @@ async function updateConfiguration(user, account, updatedConfig) {
8917
8917
  }
8918
8918
  const alpacaData = (await alpacaResponse.json());
8919
8919
  if (!updatedAlpacaAccount) {
8920
- throw new Error("Failed to update Alpaca Account in @adaptic/backend-legacy.");
8920
+ throw new Error("Failed to update Alpaca Account in @adaptic/backend.");
8921
8921
  }
8922
8922
  const updatedAccountWithAllocation = updatedAlpacaAccount;
8923
8923
  const selectedAllocation = (updatedConfig.allocation ||
@@ -64285,7 +64285,7 @@ var aliases = {
64285
64285
  model_id: "openai/gpt-oss-20b",
64286
64286
  model_id_status: "confirmed",
64287
64287
  model_id_source: "DeepInfra /v1/openai/models catalogue queried against the live account 2026-09-11; tool-calling and latency verified by direct call on the same account",
64288
- model_family: "gpt-oss-20B",
64288
+ model_family: "gpt-oss-20b",
64289
64289
  lumic_model: "openai/gpt-oss-20b",
64290
64290
  params: {
64291
64291
  temperature: null,
@@ -64354,7 +64354,7 @@ var aliases = {
64354
64354
  model_id: "openai/gpt-oss-20b",
64355
64355
  model_id_status: "confirmed",
64356
64356
  model_id_source: "DeepInfra /v1/openai/models catalogue queried against the live account 2026-09-11; tool-calling and latency verified by direct call on the same account",
64357
- model_family: "gpt-oss-20B",
64357
+ model_family: "gpt-oss-20b",
64358
64358
  lumic_model: "openai/gpt-oss-20b",
64359
64359
  params: {
64360
64360
  temperature: null,
@@ -64380,7 +64380,7 @@ var aliases = {
64380
64380
  model_id: "inclusionAI/Ling-3.0-flash-Fin",
64381
64381
  model_id_status: "confirmed",
64382
64382
  model_id_source: "DeepInfra /v1/openai/models catalogue queried against the live account 2026-09-11; tool-calling and latency verified by direct call on the same account",
64383
- model_family: "Ling 3.0 Flash Fin",
64383
+ model_family: "Ling 3.0 flash Fin",
64384
64384
  lumic_model: "inclusionAI/Ling-3.0-flash-Fin",
64385
64385
  params: {
64386
64386
  temperature: null,