15 lines
528 B
TypeScript
15 lines
528 B
TypeScript
import { requireOwner } from '#lib/server/owner.js';
|
|
import { loadBots } from '#lib/server/ai-tracker.js';
|
|
import type { PageServerLoad } from './$types';
|
|
|
|
// Owner only: one row per Grok Bot agent, short summaries written by Daisy (no transcripts).
|
|
export const load: PageServerLoad = async (event) => {
|
|
requireOwner(event);
|
|
event.setHeaders({ 'cache-control': 'private, no-store' });
|
|
return {
|
|
bots: await loadBots(),
|
|
now: Date.now(),
|
|
seo: { title: 'AI tracker · bots', description: 'My bots.', index: false }
|
|
};
|
|
};
|