@adaptic/utils 0.0.1021 → 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.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import adaptic$1, { stopClient, setTokenProvider, getApolloClient } from '@adaptic/backend-legacy';
1
+ import adaptic$1, { stopClient, setTokenProvider, getApolloClient } from '@adaptic/backend';
2
2
  import { format, sub, set, add, startOfDay, endOfDay, isBefore, differenceInMilliseconds } from 'date-fns';
3
3
  import { formatInTimeZone, toZonedTime, fromZonedTime } from 'date-fns-tz';
4
4
  import require$$0$4, { EventEmitter } from 'events';
@@ -184,7 +184,7 @@ let authConfigured = false;
184
184
  /**
185
185
  * Configure the Apollo client authentication with a dynamic token provider.
186
186
  * This should be called once during app initialization before making any
187
- * @adaptic/backend-legacy API calls.
187
+ * @adaptic/backend API calls.
188
188
  *
189
189
  * The token provider function will be called for each GraphQL request,
190
190
  * allowing for dynamic token retrieval (e.g., from session storage, SecretsManager, etc.)
@@ -229,7 +229,7 @@ const isAuthConfigured = () => {
229
229
  };
230
230
  /**
231
231
  * Returns a shared Apollo client instance with connection pooling.
232
- * This should be used for all @adaptic/backend-legacy operations.
232
+ * This should be used for all @adaptic/backend operations.
233
233
  *
234
234
  * @returns {Promise<ApolloClientInstance>} The shared Apollo client instance.
235
235
  */
@@ -8731,7 +8731,7 @@ async function getConfiguration(account) {
8731
8731
  throw new Error(`Failed to fetch account configuration: ${alpacaResponse.statusText}`);
8732
8732
  }
8733
8733
  if (!freshAlpacaAccount) {
8734
- throw new Error("Failed to get Alpaca Account from @adaptic/backend-legacy.");
8734
+ throw new Error("Failed to get Alpaca Account from @adaptic/backend.");
8735
8735
  }
8736
8736
  const dataFromAlpaca = (await alpacaResponse.json());
8737
8737
  const accountWithAllocation = freshAlpacaAccount;
@@ -8915,7 +8915,7 @@ async function updateConfiguration(user, account, updatedConfig) {
8915
8915
  }
8916
8916
  const alpacaData = (await alpacaResponse.json());
8917
8917
  if (!updatedAlpacaAccount) {
8918
- throw new Error("Failed to update Alpaca Account in @adaptic/backend-legacy.");
8918
+ throw new Error("Failed to update Alpaca Account in @adaptic/backend.");
8919
8919
  }
8920
8920
  const updatedAccountWithAllocation = updatedAlpacaAccount;
8921
8921
  const selectedAllocation = (updatedConfig.allocation ||
@@ -64283,7 +64283,7 @@ var aliases = {
64283
64283
  model_id: "openai/gpt-oss-20b",
64284
64284
  model_id_status: "confirmed",
64285
64285
  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",
64286
- model_family: "gpt-oss-20B",
64286
+ model_family: "gpt-oss-20b",
64287
64287
  lumic_model: "openai/gpt-oss-20b",
64288
64288
  params: {
64289
64289
  temperature: null,
@@ -64352,7 +64352,7 @@ var aliases = {
64352
64352
  model_id: "openai/gpt-oss-20b",
64353
64353
  model_id_status: "confirmed",
64354
64354
  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",
64355
- model_family: "gpt-oss-20B",
64355
+ model_family: "gpt-oss-20b",
64356
64356
  lumic_model: "openai/gpt-oss-20b",
64357
64357
  params: {
64358
64358
  temperature: null,
@@ -64378,7 +64378,7 @@ var aliases = {
64378
64378
  model_id: "inclusionAI/Ling-3.0-flash-Fin",
64379
64379
  model_id_status: "confirmed",
64380
64380
  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",
64381
- model_family: "Ling 3.0 Flash Fin",
64381
+ model_family: "Ling 3.0 flash Fin",
64382
64382
  lumic_model: "inclusionAI/Ling-3.0-flash-Fin",
64383
64383
  params: {
64384
64384
  temperature: null,