Files
claw-code-parity/worker-protocol/schemas/worker-turn-request.schema.json
T
Wylabb 9e9d440770
Build Claw Telegram / build (push) Successful in 5m39s
Build Claw Telegram / cleanup (push) Successful in 8s
Decouple gateway protocol from Rust runtime types
Move all worker-facing record types (TaskListRecord, RuntimeTaskRecord,
TeamRecord, MailboxSummary, FeedItemRecord, LibraryAppRecord, etc.)
into protocol-owned mirrors in records.rs. The gateway and worker_client
now use these protocol types instead of importing from the runtime crate.

Add worker-protocol/ with OpenAPI spec and JSON schemas as the
language-neutral contract authority for the gateway-worker boundary.
This is the migration surface for the TS worker replacement.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-07 20:12:16 +02:00

39 lines
1.1 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://claw.local/worker-protocol/schemas/worker-turn-request.schema.json",
"title": "WorkerTurnRequest",
"type": "object",
"required": ["prompt", "source"],
"properties": {
"prompt": {
"type": "string"
},
"source": {
"type": "object",
"required": ["channel", "sender_id"],
"properties": {
"channel": { "type": "string" },
"sender_id": { "type": "string" },
"chat_id": { "type": "string" },
"display_name": { "type": "string" }
},
"additionalProperties": false
},
"attachments": {
"type": "array",
"items": {
"type": "object",
"required": ["file_name", "kind", "data_base64"],
"properties": {
"file_name": { "type": "string" },
"kind": { "type": "string", "enum": ["photo", "document"] },
"media_type": { "type": "string" },
"data_base64": { "type": "string" }
},
"additionalProperties": false
}
}
},
"additionalProperties": false
}