Files
Carlos Azaustre ab2d4cb306 feat: initial public release 🚀
- OpenClaw Mission Control dashboard
- Auth with rate limiting and secure cookie handling
- API routes protected by middleware authentication
- Terminal with safe command allowlist
- File browser, cron manager, activity feed
- Office 3D view with agent avatars
- Cost tracking and analytics
- Configurable branding via env vars
2026-02-21 12:34:54 +00:00

30 lines
719 B
TypeScript

#!/usr/bin/env tsx
/**
* Collect Usage Script
*
* Collects current OpenClaw usage data and stores it in SQLite
* Run manually or via cron
*/
import path from "path";
import { collectUsage } from "../src/lib/usage-collector";
const DB_PATH = path.join(__dirname, "..", "data", "usage-tracking.db");
async function main() {
console.log("🦞 Mission Control - Usage Collector");
console.log(`Database: ${DB_PATH}`);
console.log(`Timestamp: ${new Date().toISOString()}`);
console.log();
try {
await collectUsage(DB_PATH);
console.log("✅ Usage data collected successfully");
} catch (error) {
console.error("❌ Error collecting usage data:", error);
process.exit(1);
}
}
main();