chore: scaffold PYRE MVP monorepo (structure + docs)
pnpm + TypeScript workspace per design doc §13:
- apps/{web,api,worker} skeletons (Next.js 16, Fastify 5, BullMQ)
- packages/{core,solana,prometheus,db,config} (core has real types/DTOs;
solana/prometheus are stubs)
- programs/pyre-core placeholder (future Anchor, v1.0)
- docs/: PYRE_MVP_DESIGN (canonical), ARCHITECTURE, SECURITY, TOKEN_CLASSIFICATION
- CLAUDE.md, README, .env.example (no private-key var by design)
Skeleton + docs only — no Solana/business logic yet. All workspaces typecheck clean.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
26
apps/worker/src/index.ts
Normal file
26
apps/worker/src/index.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
// PYRE background worker — SKELETON ONLY.
|
||||
//
|
||||
// Minimal bootstrap stub. No queues or processors are wired up yet, and no real
|
||||
// job logic is implemented. AI services are API-based only (§11) — never run
|
||||
// local LLMs or image models on the server.
|
||||
|
||||
// TODO: construct the Redis connection (ioredis) from @pyre/config and create a
|
||||
// BullMQ Worker per queue below, each delegating to a typed processor.
|
||||
//
|
||||
// Job types to implement (§13):
|
||||
// - metadata-lookup : async token metadata enrichment for scanned accounts
|
||||
// - prometheus-generate : AI Spawn generation via @pyre/prometheus
|
||||
// - safety-check : moderation + forbidden-term + ticker/name collision checks
|
||||
// - tx-confirmation-watch : background tracking of on-chain tx confirmation
|
||||
// - receipt-enrichment : enrich stored cleanup receipts post-confirmation
|
||||
//
|
||||
// AI safety (§16): filter generated names/tickers/lore; block hate, explicit,
|
||||
// extremist, copyrighted, impersonation, and scam-like outputs; require human
|
||||
// approval before any launch.
|
||||
|
||||
function main(): void {
|
||||
// TODO: start BullMQ workers and register graceful shutdown handlers.
|
||||
console.log("@pyre/worker: skeleton bootstrap — no jobs registered yet");
|
||||
}
|
||||
|
||||
main();
|
||||
Reference in New Issue
Block a user