feat(api): add OpenClawGatewayModule with agent registry (MS22-P1b)
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
-- CreateTable
|
||||
CREATE TABLE "OpenClawAgent" (
|
||||
"id" TEXT NOT NULL,
|
||||
"name" TEXT NOT NULL,
|
||||
"displayName" TEXT NOT NULL,
|
||||
"role" TEXT NOT NULL,
|
||||
"gatewayUrl" TEXT NOT NULL,
|
||||
"agentId" TEXT NOT NULL DEFAULT 'main',
|
||||
"model" TEXT NOT NULL,
|
||||
"isActive" BOOLEAN NOT NULL DEFAULT true,
|
||||
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
"updatedAt" TIMESTAMP(3) NOT NULL,
|
||||
|
||||
CONSTRAINT "OpenClawAgent_pkey" PRIMARY KEY ("id")
|
||||
);
|
||||
|
||||
-- CreateIndex
|
||||
CREATE UNIQUE INDEX "OpenClawAgent_name_key" ON "OpenClawAgent"("name");
|
||||
@@ -1407,6 +1407,19 @@ model Instance {
|
||||
@@map("instances")
|
||||
}
|
||||
|
||||
model OpenClawAgent {
|
||||
id String @id @default(cuid())
|
||||
name String @unique // "jarvis-main", "jarvis-projects", etc.
|
||||
displayName String // "Jarvis (Main)", etc.
|
||||
role String // "orchestrator" | "developer" | "researcher" | "operations"
|
||||
gatewayUrl String // "http://jarvis-main:18789"
|
||||
agentId String @default("main") // OpenClaw agent id within that instance
|
||||
model String // "zai/glm-5", "ollama/cogito"
|
||||
isActive Boolean @default(true)
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
}
|
||||
|
||||
model FederationConnection {
|
||||
id String @id @default(uuid()) @db.Uuid
|
||||
workspaceId String @map("workspace_id") @db.Uuid
|
||||
|
||||
Reference in New Issue
Block a user