@lastbrain/ai-ui-core 1.0.8 → 1.0.9

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.
@@ -1 +1 @@
1
- {"version":3,"file":"createClient.d.ts","sourceRoot":"","sources":["../../src/client/createClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,QAAQ,EACR,aAAa,EACb,cAAc,EACd,cAAc,EACd,eAAe,EACf,cAAc,EACd,eAAe,EACf,QAAQ,EACT,MAAM,UAAU,CAAC;AA6DlB,wBAAgB,YAAY,CAAC,MAAM,EAAE,YAAY;qBAsBnB,OAAO,CAAC,QAAQ,EAAE,CAAC;wBA0Cd,aAAa,KAAG,OAAO,CAAC,cAAc,CAAC;yBAmCtC,cAAc,KAAG,OAAO,CAAC,eAAe,CAAC;iBAmCjD,cAAc,KAAG,OAAO,CAAC,eAAe,CAAC;qBAkBvC,OAAO,CAAC,QAAQ,CAAC;EA4B9C"}
1
+ {"version":3,"file":"createClient.d.ts","sourceRoot":"","sources":["../../src/client/createClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,QAAQ,EACR,aAAa,EACb,cAAc,EACd,cAAc,EACd,eAAe,EACf,cAAc,EACd,eAAe,EACf,QAAQ,EACT,MAAM,UAAU,CAAC;AA6DlB,wBAAgB,YAAY,CAAC,MAAM,EAAE,YAAY;qBAsBnB,OAAO,CAAC,QAAQ,EAAE,CAAC;wBAgDd,aAAa,KAAG,OAAO,CAAC,cAAc,CAAC;yBAmCtC,cAAc,KAAG,OAAO,CAAC,eAAe,CAAC;iBAmCjD,cAAc,KAAG,OAAO,CAAC,eAAe,CAAC;qBAkBvC,OAAO,CAAC,QAAQ,CAAC;EA4B9C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lastbrain/ai-ui-core",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "Framework-agnostic core library for LastBrain AI UI Kit",
5
5
  "private": false,
6
6
  "type": "module",
@@ -96,7 +96,7 @@ export function createClient(config: ClientConfig) {
96
96
  const url = `${config.baseUrl}/provider`;
97
97
  console.log("[createClient] getModels() calling URL:", url);
98
98
  console.log("[createClient] headers:", createHeaders());
99
-
99
+
100
100
  const response = await fetchWithRetry<any>(
101
101
  url,
102
102
  {
@@ -117,13 +117,19 @@ export function createClient(config: ClientConfig) {
117
117
  allModels.push(...provider.models);
118
118
  }
119
119
  }
120
- console.log("[createClient] getModels() extracted models:", allModels.length);
120
+ console.log(
121
+ "[createClient] getModels() extracted models:",
122
+ allModels.length
123
+ );
121
124
  return allModels;
122
125
  }
123
126
 
124
127
  // Fallback: if response is already a flat array
125
128
  if (Array.isArray(response)) {
126
- console.log("[createClient] getModels() direct array:", response.length);
129
+ console.log(
130
+ "[createClient] getModels() direct array:",
131
+ response.length
132
+ );
127
133
  return response;
128
134
  }
129
135
 
@@ -226,7 +232,7 @@ export function createClient(config: ClientConfig) {
226
232
  const url = `${config.baseUrl}/status`;
227
233
  console.log("[createClient] getStatus() calling URL:", url);
228
234
  console.log("[createClient] headers:", createHeaders());
229
-
235
+
230
236
  return await fetchWithRetry<AiStatus>(
231
237
  url,
232
238
  {