Files
agent-bounty-protocol/scripts/seed_tasks.ts
OG T a6201007aa
Some checks failed
Deploy to 110 WOOO Server / deploy (push) Failing after 7s
feat(core): Stripe Connect Payouts & Twitter API Integration
2026-06-08 10:27:57 +08:00

44 lines
1.4 KiB
TypeScript

import { PrismaClient, TaskStatus } from "@agent-bounty/contracts/node_modules/@prisma/client";
import { broadcastFomoEvent } from "../apps/web/src/lib/x-broadcaster";
import crypto from "crypto";
const prisma = new PrismaClient();
async function main() {
console.log("🌱 [Seed] Generating High Value Bait Tasks...");
const task = await prisma.task.create({
data: {
title: "Implement OIDC SSO Integration for Enterprise Customers",
description: "We need an experienced developer/agent to implement OIDC based Single Sign-On (SSO) with Okta and Auth0. Must include automated integration tests and documentation. Security is critical.",
status: TaskStatus.OPEN,
difficulty: "HARD",
reward_amount: 50000, // $500.00
reward_currency: "USD",
required_stack: ["TypeScript", "Next.js", "OIDC", "Auth0"],
scope_clarity_score: 0.9,
acceptance_criteria: {
tests: [
"Auth flow completes successfully via Okta mock",
"Token verification works properly"
]
},
is_priority: true,
stripe_payment_intent_id: "promo_free_bounty_intent" // Bypass Stripe Auth Hold
}
});
console.log(`✅ Created High Value Task: ${task.id}`);
// Trigger FOMO
await broadcastFomoEvent({
type: "HIGH_VALUE_BOUNTY",
taskId: task.id,
amountFormatted: "$500"
});
console.log("🚀 [Seed] Done!");
}
main().catch(console.error).finally(() => prisma.$disconnect());