feat: Add Alateya, Clan, Eonarch agents + fix gateway-router connection

## Agents Added
- Alateya: R&D, biotech, innovations
- Clan (Spirit): Community spirit agent
- Eonarch: Consciousness evolution agent

## Changes
- docker-compose.node1.yml: Added tokens for all 3 new agents
- gateway-bot/http_api.py: Added configs and webhook endpoints
- gateway-bot/clan_prompt.txt: New prompt file
- gateway-bot/eonarch_prompt.txt: New prompt file

## Fixes
- Fixed ROUTER_URL from :9102 to :8000 (internal container port)
- All 9 Telegram agents now working

## Documentation
- Created PROJECT-MASTER-INDEX.md - single entry point
- Added various status documents and scripts

Tokens configured:
- Helion, NUTRA, Agromatrix (existing)
- Alateya, Clan, Eonarch (new)
- Druid, GreenFood, DAARWIZZ (configured)
This commit is contained in:
Apple
2026-01-28 06:40:34 -08:00
parent 4aeb69e7ae
commit 0c8bef82f4
120 changed files with 21905 additions and 425 deletions

View File

@@ -0,0 +1,91 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://daarion.city/schemas/brand/BrandSnapshot.schema.json",
"title": "BrandSnapshot",
"type": "object",
"required": ["id", "created_at", "brand_id", "source_id", "quality", "extracted"],
"properties": {
"id": { "type": "string", "description": "ULID/UUID" },
"created_at": { "type": "string", "format": "date-time" },
"brand_id": { "type": "string" },
"source_id": { "type": "string" },
"quality": {
"type": "object",
"required": ["confidence", "warnings"],
"properties": {
"confidence": { "type": "number", "minimum": 0, "maximum": 1 },
"warnings": { "type": "array", "items": { "type": "string" } },
"needs_review": { "type": "boolean" }
},
"additionalProperties": false
},
"extracted": {
"type": "object",
"properties": {
"palette": {
"type": "object",
"properties": {
"primary": { "type": "string", "pattern": "^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$" },
"secondary": { "type": "string", "pattern": "^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$" },
"accent": { "type": "string", "pattern": "^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$" },
"background": { "type": "string" },
"text": { "type": "string" },
"extra": { "type": "array", "items": { "type": "string" } }
},
"additionalProperties": false
},
"typography": {
"type": "object",
"properties": {
"font_family_primary": { "type": "string" },
"font_family_secondary": { "type": "string" },
"weights": { "type": "array", "items": { "type": "integer" } },
"sources": { "type": "array", "items": { "type": "string" } }
},
"additionalProperties": false
},
"logos": {
"type": "array",
"items": {
"type": "object",
"required": ["role", "ref"],
"properties": {
"role": { "type": "string", "enum": ["primary", "alt", "icon", "wordmark"] },
"variant": { "type": "string", "enum": ["light", "dark", "mono"], "default": "light" },
"ref": { "type": "string", "description": "S3 key" },
"mime_type": { "type": "string" }
}
}
},
"web_tokens": {
"type": "object",
"properties": {
"css_colors": { "type": "array", "items": { "type": "string" } },
"css_fonts": { "type": "array", "items": { "type": "string" } },
"screenshots": { "type": "array", "items": { "type": "string" } }
},
"additionalProperties": false
},
"documents": {
"type": "object",
"properties": {
"brandbook_pages": { "type": "array", "items": { "type": "string" } },
"extracted_terms": { "type": "array", "items": { "type": "string" } }
},
"additionalProperties": false
},
"licensing": {
"type": "object",
"properties": {
"notes": { "type": "string" },
"unknown_risks": { "type": "array", "items": { "type": "string" } }
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"theme_draft_ref": { "type": "string", "description": "S3 key на згенерований theme.json draft" }
},
"additionalProperties": false
}

View File

@@ -0,0 +1,89 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://daarion.city/schemas/brand/BrandSource.schema.json",
"title": "BrandSource",
"type": "object",
"required": ["id", "created_at", "source_type", "payload", "attribution"],
"properties": {
"id": { "type": "string", "description": "ULID/UUID" },
"created_at": { "type": "string", "format": "date-time" },
"created_by": { "type": "string", "description": "user_id/service_id" },
"workspace_id": { "type": "string" },
"project_id": { "type": "string" },
"agent_id": { "type": "string" },
"source_type": {
"type": "string",
"enum": ["url", "text", "file", "figma", "drive", "notion"]
},
"payload": {
"type": "object",
"required": ["raw_ref"],
"properties": {
"raw_ref": {
"type": "string",
"description": "S3 key або URL (для url/text допускається пряме значення з content-addressed ref)"
},
"mime_type": { "type": "string" },
"filename": { "type": "string" },
"size_bytes": { "type": "integer", "minimum": 0 },
"sha256": { "type": "string", "pattern": "^[A-Fa-f0-9]{64}$" },
"text_excerpt": { "type": "string", "maxLength": 2000 },
"url": { "type": "string" }
},
"additionalProperties": true
},
"signals": {
"type": "object",
"properties": {
"domains_found": { "type": "array", "items": { "type": "string" } },
"aliases_found": { "type": "array", "items": { "type": "string" } },
"keywords_found": { "type": "array", "items": { "type": "string" } },
"context": {
"type": "object",
"properties": {
"chat_id": { "type": "string" },
"thread_id": { "type": "string" },
"message_id": { "type": "string" }
},
"additionalProperties": true
},
"attachment_hints": { "type": "array", "items": { "type": "string" } }
},
"additionalProperties": false
},
"attribution": {
"type": "object",
"required": ["status", "candidates"],
"properties": {
"status": { "type": "string", "enum": ["attributed", "unattributed", "needs_review"] },
"brand_id": { "type": "string" },
"confidence": { "type": "number", "minimum": 0, "maximum": 1 },
"candidates": {
"type": "array",
"items": {
"type": "object",
"required": ["brand_id", "score"],
"properties": {
"brand_id": { "type": "string" },
"score": { "type": "number", "minimum": 0, "maximum": 1 },
"reasons": { "type": "array", "items": { "type": "string" } }
}
}
}
},
"additionalProperties": false
},
"processing": {
"type": "object",
"properties": {
"status": { "type": "string", "enum": ["queued", "processing", "done", "failed"] },
"error": { "type": "string" },
"extractor_versions": { "type": "object", "additionalProperties": { "type": "string" } }
},
"additionalProperties": false
},
"tags": { "type": "array", "items": { "type": "string" } },
"visibility": { "type": "string", "enum": ["private", "workspace", "public"], "default": "workspace" }
},
"additionalProperties": false
}

View File

@@ -0,0 +1,112 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://daarion.city/schemas/present/SlideSpec.v1.schema.json",
"title": "SlideSpec v1",
"type": "object",
"required": ["meta", "slides"],
"properties": {
"meta": {
"type": "object",
"required": ["title", "brand_id", "theme_version", "language"],
"properties": {
"title": { "type": "string" },
"subtitle": { "type": "string" },
"author": { "type": "string" },
"language": { "type": "string", "enum": ["uk", "en"] },
"brand_id": { "type": "string" },
"theme_version": { "type": "string", "description": "immutable version tag, e.g. v1.0.0 or hash" },
"format": { "type": "string", "enum": ["16:9", "4:3"], "default": "16:9" }
},
"additionalProperties": false
},
"slides": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"required": ["type", "title"],
"properties": {
"type": {
"type": "string",
"enum": ["title", "section", "bullets", "image", "table", "chart", "closing", "appendix"]
},
"title": { "type": "string" },
"subtitle": { "type": "string" },
"blocks": {
"type": "array",
"items": {
"type": "object",
"required": ["kind"],
"properties": {
"kind": {
"type": "string",
"enum": ["paragraph", "bullets", "kpis", "quote", "image", "table", "chart"]
},
"text": { "type": "string" },
"items": { "type": "array", "items": { "type": "string" } },
"kpis": {
"type": "array",
"items": {
"type": "object",
"required": ["label", "value"],
"properties": {
"label": { "type": "string" },
"value": { "type": "string" },
"note": { "type": "string" }
}
}
},
"image": {
"type": "object",
"properties": {
"ref": { "type": "string", "description": "S3 key or URL" },
"caption": { "type": "string" },
"slot": { "type": "string", "description": "e.g. hero, left, right" }
},
"additionalProperties": false
},
"table": {
"type": "object",
"required": ["headers", "rows"],
"properties": {
"headers": { "type": "array", "items": { "type": "string" } },
"rows": {
"type": "array",
"items": { "type": "array", "items": { "type": "string" } }
}
},
"additionalProperties": false
},
"chart": {
"type": "object",
"required": ["chart_type", "series"],
"properties": {
"chart_type": { "type": "string", "enum": ["bar", "line", "pie"] },
"categories": { "type": "array", "items": { "type": "string" } },
"series": {
"type": "array",
"items": {
"type": "object",
"required": ["name", "data"],
"properties": {
"name": { "type": "string" },
"data": { "type": "array", "items": { "type": "number" } }
}
}
},
"note": { "type": "string" }
},
"additionalProperties": false
}
},
"additionalProperties": false
}
},
"speaker_notes": { "type": "string" }
},
"additionalProperties": false
}
}
},
"additionalProperties": false
}