{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://github.com/4shub/chunkback-monorepo/blob/main/apps/api/cbpl.definitions.schema.json", "title": "CBPL Definitions", "description": "Schema for CBPL (Chunkback Prompt Language) command definitions", "type": "object", "properties": { "$schema": { "type": "string" }, "version": { "type": "string", "pattern": "^\\d+\\.\\d+\\.\\d+$" }, "commands": { "type": "object", "propertyNames": { "type": "string", "pattern": "^[A-Z]+$" }, "additionalProperties": { "type": "object", "properties": { "name": { "type": "string", "minLength": 1 }, "description": { "type": "string", "minLength": 1 }, "parameters": { "minItems": 1, "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "minLength": 1 }, "type": { "type": "string", "enum": ["string", "number"] }, "description": { "type": "string", "minLength": 1 }, "validation": { "type": "object", "properties": { "min": { "type": "number" }, "max": { "type": "number" } }, "additionalProperties": false } }, "required": ["name", "type", "description"], "additionalProperties": false } }, "examples": { "minItems": 1, "type": "array", "items": { "type": "string" } } }, "required": ["name", "description", "parameters", "examples"], "additionalProperties": false } } }, "required": ["version", "commands"], "additionalProperties": false }