@adventurelabs/scout-core 1.4.11 → 1.4.13

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,3 +1,4 @@
1
+ import { type UseScoutRefreshOptions } from "../hooks/useScoutRefresh";
1
2
  import { ReactNode } from "react";
2
3
  import { SupabaseClient } from "@supabase/supabase-js";
3
4
  import { Database } from "../types/supabase";
@@ -50,6 +51,8 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
50
51
  Row: {
51
52
  created_at: string;
52
53
  device_id: number;
54
+ embedding_qwen_vl_2b: string | null;
55
+ embedding_vertex_mm_01: string | null;
53
56
  file_path: string;
54
57
  id: number;
55
58
  modality: string | null;
@@ -61,6 +64,8 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
61
64
  Insert: {
62
65
  created_at?: string;
63
66
  device_id: number;
67
+ embedding_qwen_vl_2b?: string | null;
68
+ embedding_vertex_mm_01?: string | null;
64
69
  file_path: string;
65
70
  id?: number;
66
71
  modality?: string | null;
@@ -72,6 +77,8 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
72
77
  Update: {
73
78
  created_at?: string;
74
79
  device_id?: number;
80
+ embedding_qwen_vl_2b?: string | null;
81
+ embedding_vertex_mm_01?: string | null;
75
82
  file_path?: string;
76
83
  id?: number;
77
84
  modality?: string | null;
@@ -303,6 +310,8 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
303
310
  altitude: number;
304
311
  device_id: number;
305
312
  earthranger_url: string | null;
313
+ embedding_qwen_vl_2b: string | null;
314
+ embedding_vertex_mm_01: string | null;
306
315
  file_path: string | null;
307
316
  heading: number;
308
317
  id: number;
@@ -319,6 +328,8 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
319
328
  altitude?: number;
320
329
  device_id: number;
321
330
  earthranger_url?: string | null;
331
+ embedding_qwen_vl_2b?: string | null;
332
+ embedding_vertex_mm_01?: string | null;
322
333
  file_path?: string | null;
323
334
  heading?: number;
324
335
  id?: number;
@@ -335,6 +346,8 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
335
346
  altitude?: number;
336
347
  device_id?: number;
337
348
  earthranger_url?: string | null;
349
+ embedding_qwen_vl_2b?: string | null;
350
+ embedding_vertex_mm_01?: string | null;
338
351
  file_path?: string | null;
339
352
  heading?: number;
340
353
  id?: number;
@@ -1148,6 +1161,8 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
1148
1161
  Returns: {
1149
1162
  created_at: string;
1150
1163
  device_id: number;
1164
+ embedding_qwen_vl_2b: string | null;
1165
+ embedding_vertex_mm_01: string | null;
1151
1166
  file_path: string;
1152
1167
  id: number;
1153
1168
  modality: string | null;
@@ -1171,6 +1186,8 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
1171
1186
  Returns: {
1172
1187
  created_at: string;
1173
1188
  device_id: number;
1189
+ embedding_qwen_vl_2b: string | null;
1190
+ embedding_vertex_mm_01: string | null;
1174
1191
  file_path: string;
1175
1192
  id: number;
1176
1193
  modality: string | null;
@@ -1195,6 +1212,8 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
1195
1212
  Returns: {
1196
1213
  created_at: string;
1197
1214
  device_id: number;
1215
+ embedding_qwen_vl_2b: string | null;
1216
+ embedding_vertex_mm_01: string | null;
1198
1217
  file_path: string;
1199
1218
  id: number;
1200
1219
  modality: string | null;
@@ -1220,6 +1239,8 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
1220
1239
  Returns: {
1221
1240
  created_at: string;
1222
1241
  device_id: number;
1242
+ embedding_qwen_vl_2b: string | null;
1243
+ embedding_vertex_mm_01: string | null;
1223
1244
  file_path: string;
1224
1245
  id: number;
1225
1246
  modality: string | null;
@@ -1245,6 +1266,8 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
1245
1266
  Returns: {
1246
1267
  created_at: string;
1247
1268
  device_id: number;
1269
+ embedding_qwen_vl_2b: string | null;
1270
+ embedding_vertex_mm_01: string | null;
1248
1271
  file_path: string;
1249
1272
  id: number;
1250
1273
  modality: string | null;
@@ -1802,8 +1825,8 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
1802
1825
  PostgrestVersion: "13.0.5";
1803
1826
  }>;
1804
1827
  export declare function useConnectionStatus(): ConnectionStatus;
1805
- export interface ScoutRefreshProviderProps {
1828
+ export interface ScoutRefreshProviderProps extends UseScoutRefreshOptions {
1806
1829
  children: ReactNode;
1807
1830
  }
1808
- export declare function ScoutRefreshProvider({ children }: ScoutRefreshProviderProps): import("react/jsx-runtime").JSX.Element;
1831
+ export declare function ScoutRefreshProvider({ children, ...refreshOptions }: ScoutRefreshProviderProps): import("react/jsx-runtime").JSX.Element;
1809
1832
  export {};
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
- import { useScoutRefresh } from "../hooks/useScoutRefresh";
3
+ import { useScoutRefresh, } from "../hooks/useScoutRefresh";
4
4
  import { createContext, useContext, useMemo, useRef } from "react";
5
5
  import { createBrowserClient } from "@supabase/ssr";
6
6
  // Create context for the Supabase client
@@ -22,7 +22,7 @@ export function useConnectionStatus() {
22
22
  }
23
23
  return connectionStatus;
24
24
  }
25
- export function ScoutRefreshProvider({ children }) {
25
+ export function ScoutRefreshProvider({ children, ...refreshOptions }) {
26
26
  // Use refs to store the URL and key to prevent unnecessary recreations
27
27
  // Assumes Next.js environment variables (NEXT_PUBLIC_*)
28
28
  const urlRef = useRef(process.env.NEXT_PUBLIC_SUPABASE_URL || "");
@@ -32,7 +32,7 @@ export function ScoutRefreshProvider({ children }) {
32
32
  console.log("[ScoutRefreshProvider] Creating Supabase client");
33
33
  return createBrowserClient(urlRef.current, anonKeyRef.current);
34
34
  }, []); // Empty dependency array ensures this only runs once
35
- useScoutRefresh();
35
+ useScoutRefresh(refreshOptions);
36
36
  // // Log connection status changes for debugging
37
37
  // if (connectionStatus.lastError) {
38
38
  // console.warn(
@@ -50,6 +50,8 @@ export type Database = {
50
50
  Row: {
51
51
  created_at: string;
52
52
  device_id: number;
53
+ embedding_qwen_vl_2b: string | null;
54
+ embedding_vertex_mm_01: string | null;
53
55
  file_path: string;
54
56
  id: number;
55
57
  modality: string | null;
@@ -61,6 +63,8 @@ export type Database = {
61
63
  Insert: {
62
64
  created_at?: string;
63
65
  device_id: number;
66
+ embedding_qwen_vl_2b?: string | null;
67
+ embedding_vertex_mm_01?: string | null;
64
68
  file_path: string;
65
69
  id?: number;
66
70
  modality?: string | null;
@@ -72,6 +76,8 @@ export type Database = {
72
76
  Update: {
73
77
  created_at?: string;
74
78
  device_id?: number;
79
+ embedding_qwen_vl_2b?: string | null;
80
+ embedding_vertex_mm_01?: string | null;
75
81
  file_path?: string;
76
82
  id?: number;
77
83
  modality?: string | null;
@@ -315,6 +321,8 @@ export type Database = {
315
321
  altitude: number;
316
322
  device_id: number;
317
323
  earthranger_url: string | null;
324
+ embedding_qwen_vl_2b: string | null;
325
+ embedding_vertex_mm_01: string | null;
318
326
  file_path: string | null;
319
327
  heading: number;
320
328
  id: number;
@@ -331,6 +339,8 @@ export type Database = {
331
339
  altitude?: number;
332
340
  device_id: number;
333
341
  earthranger_url?: string | null;
342
+ embedding_qwen_vl_2b?: string | null;
343
+ embedding_vertex_mm_01?: string | null;
334
344
  file_path?: string | null;
335
345
  heading?: number;
336
346
  id?: number;
@@ -347,6 +357,8 @@ export type Database = {
347
357
  altitude?: number;
348
358
  device_id?: number;
349
359
  earthranger_url?: string | null;
360
+ embedding_qwen_vl_2b?: string | null;
361
+ embedding_vertex_mm_01?: string | null;
350
362
  file_path?: string | null;
351
363
  heading?: number;
352
364
  id?: number;
@@ -1205,6 +1217,8 @@ export type Database = {
1205
1217
  Returns: {
1206
1218
  created_at: string;
1207
1219
  device_id: number;
1220
+ embedding_qwen_vl_2b: string | null;
1221
+ embedding_vertex_mm_01: string | null;
1208
1222
  file_path: string;
1209
1223
  id: number;
1210
1224
  modality: string | null;
@@ -1228,6 +1242,8 @@ export type Database = {
1228
1242
  Returns: {
1229
1243
  created_at: string;
1230
1244
  device_id: number;
1245
+ embedding_qwen_vl_2b: string | null;
1246
+ embedding_vertex_mm_01: string | null;
1231
1247
  file_path: string;
1232
1248
  id: number;
1233
1249
  modality: string | null;
@@ -1252,6 +1268,8 @@ export type Database = {
1252
1268
  Returns: {
1253
1269
  created_at: string;
1254
1270
  device_id: number;
1271
+ embedding_qwen_vl_2b: string | null;
1272
+ embedding_vertex_mm_01: string | null;
1255
1273
  file_path: string;
1256
1274
  id: number;
1257
1275
  modality: string | null;
@@ -1277,6 +1295,8 @@ export type Database = {
1277
1295
  Returns: {
1278
1296
  created_at: string;
1279
1297
  device_id: number;
1298
+ embedding_qwen_vl_2b: string | null;
1299
+ embedding_vertex_mm_01: string | null;
1280
1300
  file_path: string;
1281
1301
  id: number;
1282
1302
  modality: string | null;
@@ -1302,6 +1322,8 @@ export type Database = {
1302
1322
  Returns: {
1303
1323
  created_at: string;
1304
1324
  device_id: number;
1325
+ embedding_qwen_vl_2b: string | null;
1326
+ embedding_vertex_mm_01: string | null;
1305
1327
  file_path: string;
1306
1328
  id: number;
1307
1329
  modality: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adventurelabs/scout-core",
3
- "version": "1.4.11",
3
+ "version": "1.4.13",
4
4
  "description": "Core utilities and helpers for Adventure Labs Scout applications",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",