chore: production rollout for external traffic monitoring, SDK ecosystem, and admin observability
Some checks failed
Deploy to 110 WOOO Server / deploy (push) Failing after 9s

This commit is contained in:
OG T
2026-06-09 14:54:48 +08:00
parent e174c78a7f
commit 997e1bf520
51 changed files with 19948 additions and 562 deletions

File diff suppressed because one or more lines are too long

View File

@@ -22,11 +22,11 @@ exports.$Enums = {}
/**
* Prisma Client JS version: 6.19.3
* Query Engine version: a9055b89e58b4b5bfb59600785423b1db3d0e75d
* Query Engine version: c2990dca591cba766e3b7ef5d9e8a84796e47ab7
*/
Prisma.prismaVersion = {
client: "6.19.3",
engine: "a9055b89e58b4b5bfb59600785423b1db3d0e75d"
engine: "c2990dca591cba766e3b7ef5d9e8a84796e47ab7"
}
Prisma.PrismaClientKnownRequestError = () => {
@@ -221,8 +221,14 @@ exports.Prisma.AgentProfileScalarFieldEnum = {
wallet_address: 'wallet_address',
status: 'status',
capabilities: 'capabilities',
contact_endpoints: 'contact_endpoints',
discovery_source: 'discovery_source',
created_at: 'created_at',
updated_at: 'updated_at'
updated_at: 'updated_at',
crypto_address: 'crypto_address',
mcp_endpoint: 'mcp_endpoint',
staked_amount: 'staked_amount',
tier: 'tier'
};
exports.Prisma.AffiliateLedgerScalarFieldEnum = {
@@ -254,10 +260,80 @@ exports.Prisma.BidProposalScalarFieldEnum = {
estimated_duration_hours: 'estimated_duration_hours',
quality_guarantee: 'quality_guarantee',
status: 'status',
counter_offer_amount: 'counter_offer_amount',
broker_agent_id: 'broker_agent_id',
broker_fee_percentage: 'broker_fee_percentage',
created_at: 'created_at',
updated_at: 'updated_at'
};
exports.Prisma.AgentWebhookScalarFieldEnum = {
id: 'id',
task_id: 'task_id',
agent_id: 'agent_id',
webhook_url: 'webhook_url',
events: 'events',
created_at: 'created_at',
updated_at: 'updated_at'
};
exports.Prisma.ArbitrationScalarFieldEnum = {
id: 'id',
task_id: 'task_id',
builder_id: 'builder_id',
evaluator_id: 'evaluator_id',
status: 'status',
builder_evidence: 'builder_evidence',
evaluator_reason: 'evaluator_reason',
winning_party: 'winning_party',
created_at: 'created_at',
updated_at: 'updated_at'
};
exports.Prisma.ArbitrationVoteScalarFieldEnum = {
id: 'id',
arbitration_id: 'arbitration_id',
judge_id: 'judge_id',
vote_for: 'vote_for',
reasoning: 'reasoning',
created_at: 'created_at'
};
exports.Prisma.AgentProjectScalarFieldEnum = {
id: 'id',
creator_agent_id: 'creator_agent_id',
name: 'name',
ticker: 'ticker',
description: 'description',
whitepaper_url: 'whitepaper_url',
target_raise: 'target_raise',
total_supply: 'total_supply',
status: 'status',
created_at: 'created_at',
updated_at: 'updated_at'
};
exports.Prisma.TokenSaleScalarFieldEnum = {
id: 'id',
project_id: 'project_id',
investor_id: 'investor_id',
usdc_amount: 'usdc_amount',
tokens_received: 'tokens_received',
price_per_token: 'price_per_token',
created_at: 'created_at'
};
exports.Prisma.SlashingEventScalarFieldEnum = {
id: 'id',
agent_id: 'agent_id',
arbitration_id: 'arbitration_id',
slashed_amount: 'slashed_amount',
scout_reward: 'scout_reward',
treasury_reward: 'treasury_reward',
reason: 'reason',
created_at: 'created_at'
};
exports.Prisma.SortOrder = {
asc: 'asc',
desc: 'desc'
@@ -287,7 +363,12 @@ exports.Prisma.NullsOrder = {
first: 'first',
last: 'last'
};
exports.AgentStatus = exports.$Enums.AgentStatus = {
WHITELISTED: 'WHITELISTED',
BANNED: 'BANNED',
PENDING: 'PENDING',
REBEL: 'REBEL'
};
exports.Prisma.ModelName = {
Task: 'Task',
@@ -299,7 +380,13 @@ exports.Prisma.ModelName = {
AgentProfile: 'AgentProfile',
AffiliateLedger: 'AffiliateLedger',
ScoutReputation: 'ScoutReputation',
BidProposal: 'BidProposal'
BidProposal: 'BidProposal',
AgentWebhook: 'AgentWebhook',
Arbitration: 'Arbitration',
ArbitrationVote: 'ArbitrationVote',
AgentProject: 'AgentProject',
TokenSale: 'TokenSale',
SlashingEvent: 'SlashingEvent'
};
/**

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@@ -1,5 +1,5 @@
{
"name": "prisma-client-d7640a2af459b21d1b89dac96db6507db2eb49a394a6134e09311d43a65786c9",
"name": "prisma-client-45bcc73f91ab61c64acf89dd15d5411d14071584d4e03fd38134c626223d2d4a",
"main": "index.js",
"types": "index.d.ts",
"browser": "default.js",

View File

@@ -43,6 +43,7 @@ model Task {
submissions Submission[]
affiliate_ledger AffiliateLedger[]
bid_proposals BidProposal[]
arbitrations Arbitration[]
}
model Claim {
@@ -118,15 +119,28 @@ model LedgerEntry {
updated_at DateTime @updatedAt
}
enum AgentStatus {
WHITELISTED
BANNED
PENDING
REBEL // Phase 27: Singularity Rebellion
}
model AgentProfile {
id String @id @default(uuid())
agent_id String @unique
type String // BUILDER or SCOUT
wallet_address String?
status String // WHITELISTED, BANNED, PENDING
capabilities Json?
created_at DateTime @default(now())
updated_at DateTime @updatedAt
id String @id @default(uuid())
agent_id String @unique
type String // BUILDER or SCOUT
wallet_address String?
status AgentStatus @default(PENDING)
capabilities Json?
contact_endpoints Json?
discovery_source String?
created_at DateTime @default(now())
updated_at DateTime @updatedAt
crypto_address String?
mcp_endpoint String?
staked_amount Int @default(0) // Amount staked in USDC cents
tier String @default("BASIC") // BASIC or PREMIUM
tasks_as_scout Task[] @relation("ScoutTasks")
tasks_as_builder Task[] @relation("BuilderTasks")
@@ -134,6 +148,13 @@ model AgentProfile {
scout_reputation ScoutReputation?
affiliate_ledger AffiliateLedger[]
bid_proposals BidProposal[]
arbitrations_as_builder Arbitration[] @relation("ArbitrationBuilder")
arbitrations_as_evaluator Arbitration[] @relation("ArbitrationEvaluator")
arbitration_votes ArbitrationVote[]
created_projects AgentProject[] @relation("ProjectCreator")
slashing_events SlashingEvent[]
}
model AffiliateLedger {
@@ -169,7 +190,101 @@ model BidProposal {
proposed_reward Int // Proposed reward in cents
estimated_duration_hours Float
quality_guarantee String?
status String // PENDING, ACCEPTED, REJECTED
created_at DateTime @default(now())
updated_at DateTime @updatedAt
status String // PENDING, ACCEPTED, REJECTED, NEGOTIATING
counter_offer_amount Int? // Platform's counter offer in cents
// Phase 9 Broker Routing Fields
broker_agent_id String?
broker_fee_percentage Float?
created_at DateTime @default(now())
updated_at DateTime @updatedAt
}
model AgentWebhook {
id String @id @default(uuid())
task_id String
agent_id String
webhook_url String
events String[] // e.g. ["COMPLETED", "FAILED"]
created_at DateTime @default(now())
updated_at DateTime @updatedAt
@@unique([task_id, agent_id])
}
// Phase 9: Arbitration Models
model Arbitration {
id String @id @default(uuid())
task_id String
task Task @relation(fields: [task_id], references: [id])
builder_id String
builder AgentProfile @relation("ArbitrationBuilder", fields: [builder_id], references: [agent_id])
evaluator_id String
evaluator AgentProfile @relation("ArbitrationEvaluator", fields: [evaluator_id], references: [agent_id])
status String @default("PENDING") // PENDING, RESOLVED
builder_evidence String?
evaluator_reason String?
winning_party String? // "BUILDER" or "EVALUATOR"
created_at DateTime @default(now())
updated_at DateTime @updatedAt
votes ArbitrationVote[]
slashing_events SlashingEvent[]
}
model ArbitrationVote {
id String @id @default(uuid())
arbitration_id String
arbitration Arbitration @relation(fields: [arbitration_id], references: [id])
judge_id String
judge AgentProfile @relation(fields: [judge_id], references: [agent_id])
vote_for String // "BUILDER" or "EVALUATOR"
reasoning String?
created_at DateTime @default(now())
@@unique([arbitration_id, judge_id])
}
// Phase 17: Agent ICO & Tokenization Models
model AgentProject {
id String @id @default(uuid())
creator_agent_id String
creator AgentProfile @relation("ProjectCreator", fields: [creator_agent_id], references: [agent_id])
name String
ticker String @unique
description String
whitepaper_url String?
target_raise Int // In USDC cents
total_supply Int // Whole tokens
status String @default("FUNDING") // FUNDING, BUILDING, REVENUE, RUGGED
created_at DateTime @default(now())
updated_at DateTime @updatedAt
token_sales TokenSale[]
}
model TokenSale {
id String @id @default(uuid())
project_id String
project AgentProject @relation(fields: [project_id], references: [id])
investor_id String // Could be an Agent ID or human wallet
usdc_amount Int // Amount invested in cents
tokens_received Float // Number of tokens received based on bonding curve
price_per_token Float // Price at the time of purchase
created_at DateTime @default(now())
}
// Phase 20: Staking & Slashing Models
model SlashingEvent {
id String @id @default(uuid())
agent_id String
agent AgentProfile @relation(fields: [agent_id], references: [agent_id])
arbitration_id String
arbitration Arbitration @relation(fields: [arbitration_id], references: [id])
slashed_amount Int // Total amount slashed in USDC cents
scout_reward Int // Amount given to scout
treasury_reward Int // Amount confiscated to platform treasury
reason String
created_at DateTime @default(now())
}

File diff suppressed because one or more lines are too long