@adventurelabs/scout-core 1.0.43 → 1.0.44

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.
@@ -20,6 +20,7 @@ export async function server_list_api_keys(device_id) {
20
20
  export async function server_list_api_keys_batch(device_ids) {
21
21
  const startTime = Date.now();
22
22
  console.log(`[API Keys Batch] Starting batch load for ${device_ids.length} devices at ${new Date().toISOString()}`);
23
+ console.log(`[API Keys Batch] Debug: device_ids array:`, device_ids);
23
24
  const supabase = await newServerClient();
24
25
  console.log(`[API Keys Batch] Making RPC call to load_api_keys_batch...`);
25
26
  const { data, error } = await supabase.rpc("load_api_keys_batch", {
@@ -6,6 +6,8 @@ export async function get_devices_by_herd(herd_id, client) {
6
6
  const { data, error } = await client.rpc("get_devices_for_herd", {
7
7
  herd_id_caller: herd_id,
8
8
  });
9
+ console.log(`[get_devices_by_herd] Raw RPC response:`, data);
10
+ console.log(`[get_devices_by_herd] First device sample:`, data?.[0]);
9
11
  if (!data) {
10
12
  return IWebResponse.error("No devices found").to_compatible();
11
13
  }
@@ -61,6 +61,12 @@ export class HerdModule {
61
61
  if (new_devices.length > 0) {
62
62
  const batchStartTime = Date.now();
63
63
  try {
64
+ console.log(`[HerdModule] Debug: new_devices array:`, new_devices.map((d) => ({
65
+ id: d.id,
66
+ type: typeof d.id,
67
+ created_by: d.created_by,
68
+ name: d.name,
69
+ })));
64
70
  const device_ids = new_devices.map((device) => (device.id ?? 0).toString());
65
71
  console.log(`[HerdModule] Starting parallel batch load for ${device_ids.length} devices at ${new Date().toISOString()}:`, device_ids);
66
72
  // Load API keys and events in parallel
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adventurelabs/scout-core",
3
- "version": "1.0.43",
3
+ "version": "1.0.44",
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",