agent_analysis_handoff_sources.schema.json 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. {
  2. "$schema": "https://json-schema.org/draft/2020-12/schema",
  3. "$id": "https://local.invalid/schemas/agent_analysis_handoff_sources.schema.json",
  4. "title": "CPLD agent analysis source configuration",
  5. "type": "object",
  6. "additionalProperties": false,
  7. "required": [
  8. "schema",
  9. "max_zip_bytes",
  10. "target_zip_bytes",
  11. "external_sources",
  12. "extra_exclusions"
  13. ],
  14. "properties": {
  15. "schema": {
  16. "const": "cpld-agent-analysis-sources-v1"
  17. },
  18. "max_zip_bytes": {
  19. "type": "integer",
  20. "minimum": 1
  21. },
  22. "target_zip_bytes": {
  23. "type": "integer",
  24. "minimum": 1
  25. },
  26. "external_sources": {
  27. "type": "array",
  28. "items": {
  29. "$ref": "#/$defs/source"
  30. }
  31. },
  32. "extra_exclusions": {
  33. "type": "array",
  34. "items": {
  35. "$ref": "#/$defs/exclusion"
  36. }
  37. }
  38. },
  39. "$defs": {
  40. "source": {
  41. "type": "object",
  42. "additionalProperties": false,
  43. "required": [
  44. "id",
  45. "category",
  46. "kind",
  47. "path_candidates",
  48. "archive_policy"
  49. ],
  50. "properties": {
  51. "id": {
  52. "type": "string",
  53. "pattern": "^[a-z0-9][a-z0-9-]{0,63}$"
  54. },
  55. "category": {
  56. "type": "string",
  57. "minLength": 1
  58. },
  59. "kind": {
  60. "enum": [
  61. "directory",
  62. "file",
  63. "git_worktree"
  64. ]
  65. },
  66. "path_candidates": {
  67. "type": "array",
  68. "minItems": 1,
  69. "items": {
  70. "type": "string",
  71. "minLength": 1
  72. }
  73. },
  74. "archive_policy": {
  75. "enum": [
  76. "inspect",
  77. "copy"
  78. ]
  79. }
  80. }
  81. },
  82. "exclusion": {
  83. "type": "object",
  84. "additionalProperties": false,
  85. "required": [
  86. "path",
  87. "reason"
  88. ],
  89. "properties": {
  90. "path": {
  91. "type": "string",
  92. "minLength": 1
  93. },
  94. "reason": {
  95. "type": "string",
  96. "minLength": 1
  97. }
  98. }
  99. }
  100. }
  101. }