@cleocode/core 2026.4.5 → 2026.4.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (144) hide show
  1. package/dist/discovery.d.ts +69 -0
  2. package/dist/discovery.d.ts.map +1 -0
  3. package/dist/index.d.ts +3 -2
  4. package/dist/index.d.ts.map +1 -1
  5. package/dist/index.js +1643 -2349
  6. package/dist/index.js.map +4 -4
  7. package/dist/init.d.ts +51 -0
  8. package/dist/init.d.ts.map +1 -1
  9. package/dist/internal.d.ts +9 -1
  10. package/dist/internal.d.ts.map +1 -1
  11. package/dist/lifecycle/default-chain.d.ts +8 -2
  12. package/dist/lifecycle/default-chain.d.ts.map +1 -1
  13. package/dist/lifecycle/index.d.ts +1 -0
  14. package/dist/lifecycle/index.d.ts.map +1 -1
  15. package/dist/lifecycle/stage-guidance.d.ts +140 -0
  16. package/dist/lifecycle/stage-guidance.d.ts.map +1 -0
  17. package/dist/orchestration/protocol-validators.d.ts +122 -3
  18. package/dist/orchestration/protocol-validators.d.ts.map +1 -1
  19. package/dist/paths.d.ts +91 -0
  20. package/dist/paths.d.ts.map +1 -1
  21. package/dist/scaffold.d.ts +31 -1
  22. package/dist/scaffold.d.ts.map +1 -1
  23. package/dist/skills/dispatch.d.ts +1 -1
  24. package/dist/skills/skill-paths.d.ts +9 -6
  25. package/dist/skills/skill-paths.d.ts.map +1 -1
  26. package/dist/validation/protocols/_shared.d.ts +40 -0
  27. package/dist/validation/protocols/_shared.d.ts.map +1 -0
  28. package/dist/validation/protocols/architecture-decision.d.ts +23 -0
  29. package/dist/validation/protocols/architecture-decision.d.ts.map +1 -0
  30. package/dist/validation/protocols/artifact-publish.d.ts +22 -0
  31. package/dist/validation/protocols/artifact-publish.d.ts.map +1 -0
  32. package/dist/validation/protocols/consensus.d.ts +11 -17
  33. package/dist/validation/protocols/consensus.d.ts.map +1 -1
  34. package/dist/validation/protocols/contribution.d.ts +12 -17
  35. package/dist/validation/protocols/contribution.d.ts.map +1 -1
  36. package/dist/validation/protocols/decomposition.d.ts +18 -21
  37. package/dist/validation/protocols/decomposition.d.ts.map +1 -1
  38. package/dist/validation/protocols/implementation.d.ts +9 -17
  39. package/dist/validation/protocols/implementation.d.ts.map +1 -1
  40. package/dist/validation/protocols/provenance.d.ts +23 -0
  41. package/dist/validation/protocols/provenance.d.ts.map +1 -0
  42. package/dist/validation/protocols/release.d.ts +25 -0
  43. package/dist/validation/protocols/release.d.ts.map +1 -0
  44. package/dist/validation/protocols/research.d.ts +9 -17
  45. package/dist/validation/protocols/research.d.ts.map +1 -1
  46. package/dist/validation/protocols/specification.d.ts +7 -17
  47. package/dist/validation/protocols/specification.d.ts.map +1 -1
  48. package/dist/validation/protocols/testing.d.ts +22 -0
  49. package/dist/validation/protocols/testing.d.ts.map +1 -0
  50. package/dist/validation/protocols/validation.d.ts +22 -0
  51. package/dist/validation/protocols/validation.d.ts.map +1 -0
  52. package/package.json +7 -7
  53. package/src/__tests__/injection-mvi-tiers.test.js +54 -90
  54. package/src/__tests__/injection-mvi-tiers.test.js.map +1 -1
  55. package/src/discovery.ts +235 -0
  56. package/src/hooks/handlers/__tests__/hook-automation-e2e.test.js +3 -1
  57. package/src/hooks/handlers/__tests__/hook-automation-e2e.test.js.map +1 -1
  58. package/src/index.ts +16 -0
  59. package/src/init.ts +196 -0
  60. package/src/internal.ts +31 -1
  61. package/src/lifecycle/default-chain.ts +11 -2
  62. package/src/lifecycle/index.ts +10 -0
  63. package/src/lifecycle/stage-guidance.ts +282 -0
  64. package/src/metrics/__tests__/provider-detection.test.js +19 -7
  65. package/src/metrics/__tests__/provider-detection.test.js.map +1 -1
  66. package/src/orchestration/__tests__/protocol-validators.test.js +228 -8
  67. package/src/orchestration/__tests__/protocol-validators.test.js.map +1 -1
  68. package/src/orchestration/__tests__/protocol-validators.test.ts +259 -7
  69. package/src/orchestration/protocol-validators.ts +419 -4
  70. package/src/paths.ts +110 -0
  71. package/src/scaffold.ts +240 -4
  72. package/src/skills/dispatch.ts +6 -6
  73. package/src/skills/skill-paths.ts +27 -23
  74. package/src/validation/protocols/_shared.ts +88 -0
  75. package/src/validation/protocols/architecture-decision.ts +52 -0
  76. package/src/validation/protocols/artifact-publish.ts +49 -0
  77. package/src/validation/protocols/consensus.ts +44 -74
  78. package/src/validation/protocols/contribution.ts +28 -65
  79. package/src/validation/protocols/decomposition.ts +37 -64
  80. package/src/validation/protocols/implementation.ts +25 -65
  81. package/src/validation/protocols/protocols-markdown/architecture-decision.md +303 -0
  82. package/src/validation/protocols/protocols-markdown/artifact-publish.md +600 -0
  83. package/src/validation/protocols/protocols-markdown/consensus.md +322 -0
  84. package/src/validation/protocols/protocols-markdown/contribution.md +388 -0
  85. package/src/validation/protocols/protocols-markdown/decomposition.md +421 -0
  86. package/src/validation/protocols/protocols-markdown/implementation.md +357 -0
  87. package/src/validation/protocols/protocols-markdown/provenance.md +613 -0
  88. package/src/validation/protocols/protocols-markdown/release.md +783 -0
  89. package/src/validation/protocols/protocols-markdown/research.md +261 -0
  90. package/src/validation/protocols/protocols-markdown/specification.md +300 -0
  91. package/src/validation/protocols/protocols-markdown/testing.md +287 -0
  92. package/src/validation/protocols/protocols-markdown/validation.md +242 -0
  93. package/src/validation/protocols/provenance.ts +50 -0
  94. package/src/validation/protocols/release.ts +44 -0
  95. package/src/validation/protocols/research.ts +25 -87
  96. package/src/validation/protocols/specification.ts +27 -89
  97. package/src/validation/protocols/testing.ts +46 -0
  98. package/src/validation/protocols/validation.ts +46 -0
  99. package/dist/validation/protocols/release-protocol.d.ts +0 -27
  100. package/dist/validation/protocols/release-protocol.d.ts.map +0 -1
  101. package/dist/validation/protocols/testing-protocol.d.ts +0 -27
  102. package/dist/validation/protocols/testing-protocol.d.ts.map +0 -1
  103. package/dist/validation/protocols/validation-protocol.d.ts +0 -27
  104. package/dist/validation/protocols/validation-protocol.d.ts.map +0 -1
  105. package/schemas/agent-configs.schema.json +0 -120
  106. package/schemas/agent-registry.schema.json +0 -132
  107. package/schemas/archive.schema.json +0 -450
  108. package/schemas/brain-decision.schema.json +0 -69
  109. package/schemas/brain-learning.schema.json +0 -57
  110. package/schemas/brain-pattern.schema.json +0 -72
  111. package/schemas/critical-path.schema.json +0 -246
  112. package/schemas/deps-cache.schema.json +0 -97
  113. package/schemas/doctor-output.schema.json +0 -283
  114. package/schemas/error.schema.json +0 -161
  115. package/schemas/global-config.schema.json +0 -219
  116. package/schemas/grade.schema.json +0 -49
  117. package/schemas/log.schema.json +0 -250
  118. package/schemas/metrics.schema.json +0 -328
  119. package/schemas/migrations.schema.json +0 -150
  120. package/schemas/nexus-registry.schema.json +0 -90
  121. package/schemas/operation-constitution.schema.json +0 -438
  122. package/schemas/output.schema.json +0 -164
  123. package/schemas/projects-registry.schema.json +0 -107
  124. package/schemas/protocol-frontmatter.schema.json +0 -72
  125. package/schemas/rcasd-consensus-report.schema.json +0 -10
  126. package/schemas/rcasd-evidence.schema.json +0 -42
  127. package/schemas/rcasd-gate-result.schema.json +0 -46
  128. package/schemas/rcasd-hitl-resolution.schema.json +0 -10
  129. package/schemas/rcasd-index.schema.json +0 -10
  130. package/schemas/rcasd-manifest.schema.json +0 -10
  131. package/schemas/rcasd-research-output.schema.json +0 -10
  132. package/schemas/rcasd-spec-frontmatter.schema.json +0 -10
  133. package/schemas/rcasd-stage-transition.schema.json +0 -38
  134. package/schemas/releases.schema.json +0 -267
  135. package/schemas/skills-manifest.schema.json +0 -91
  136. package/schemas/spec-index.schema.json +0 -196
  137. package/schemas/system-flow-atlas.schema.json +0 -125
  138. package/src/conduit/__tests__/dual-api-e2e.test.d.ts.map +0 -1
  139. package/src/conduit/__tests__/dual-api-e2e.test.js +0 -178
  140. package/src/conduit/__tests__/dual-api-e2e.test.js.map +0 -1
  141. package/src/conduit/__tests__/dual-api-e2e.test.ts +0 -212
  142. package/src/validation/protocols/release-protocol.ts +0 -80
  143. package/src/validation/protocols/testing-protocol.ts +0 -93
  144. package/src/validation/protocols/validation-protocol.ts +0 -93
@@ -1,283 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$id": "https://cleo-dev.com/schemas/v1/doctor-output.schema.json",
4
- "schemaVersion": "1.0.0",
5
- "title": "CLEO Doctor Output Schema",
6
- "description": "JSON output structure for `cleo doctor` diagnostic command. Defines health check results, severity levels, and actionable fixes for global CLEO installation, agent configurations, and registered projects. Exit code mapping: 0 (ok), 50 (warning), 52 (failed/critical), 100 (special/no_config).",
7
- "type": "object",
8
- "required": ["_meta", "success", "severity", "checks", "summary", "projects"],
9
- "additionalProperties": false,
10
-
11
- "properties": {
12
- "_meta": {
13
- "type": "object",
14
- "description": "Standard envelope metadata for command output.",
15
- "required": ["format", "command", "timestamp", "version"],
16
- "additionalProperties": false,
17
- "properties": {
18
- "format": {
19
- "type": "string",
20
- "const": "cleo-doctor-output",
21
- "description": "Output format identifier for parsing."
22
- },
23
- "command": {
24
- "type": "string",
25
- "const": "doctor",
26
- "description": "Command that generated this output."
27
- },
28
- "timestamp": {
29
- "type": "string",
30
- "format": "date-time",
31
- "description": "ISO 8601 timestamp when diagnostic was run."
32
- },
33
- "version": {
34
- "type": "string",
35
- "pattern": "^\\d+\\.\\d+\\.\\d+$",
36
- "description": "CLEO CLI version that ran the diagnostic."
37
- },
38
- "schemaVersion": {
39
- "type": "string",
40
- "pattern": "^\\d+\\.\\d+\\.\\d+$",
41
- "default": "1.0.0",
42
- "description": "Schema version for this output format."
43
- }
44
- }
45
- },
46
-
47
- "success": {
48
- "type": "boolean",
49
- "description": "Overall success status. True only if ALL checks passed without warnings or failures."
50
- },
51
-
52
- "severity": {
53
- "type": "string",
54
- "enum": ["ok", "warning", "failed"],
55
- "description": "Overall severity level. ok=all passed (exit 0), warning=minor issues (exit 50), failed=critical problems requiring action (exit 52)."
56
- },
57
-
58
- "checks": {
59
- "type": "array",
60
- "description": "Array of individual health check results.",
61
- "items": {
62
- "$ref": "#/definitions/check"
63
- }
64
- },
65
-
66
- "summary": {
67
- "type": "object",
68
- "description": "Summary statistics across all checks.",
69
- "required": ["totalChecks", "passed", "warnings", "failed", "severity"],
70
- "additionalProperties": false,
71
- "properties": {
72
- "totalChecks": {
73
- "type": "integer",
74
- "minimum": 0,
75
- "description": "Total number of checks performed."
76
- },
77
- "passed": {
78
- "type": "integer",
79
- "minimum": 0,
80
- "description": "Number of checks that passed without issues."
81
- },
82
- "warnings": {
83
- "type": "integer",
84
- "minimum": 0,
85
- "description": "Number of checks with warnings (non-critical)."
86
- },
87
- "failed": {
88
- "type": "integer",
89
- "minimum": 0,
90
- "description": "Number of checks that failed."
91
- },
92
- "severity": {
93
- "type": "string",
94
- "enum": ["ok", "warning", "failed"],
95
- "description": "Overall severity across all checks. ok=all passed, warning=minor issues, failed=critical problems."
96
- }
97
- }
98
- },
99
-
100
- "projects": {
101
- "type": "object",
102
- "description": "Project registry validation results. Summary of all registered CLEO projects and their health status.",
103
- "required": ["total", "healthy", "warnings", "failed", "orphaned", "projects"],
104
- "additionalProperties": false,
105
- "properties": {
106
- "total": {
107
- "type": "integer",
108
- "minimum": 0,
109
- "description": "Total number of registered projects."
110
- },
111
- "healthy": {
112
- "type": "integer",
113
- "minimum": 0,
114
- "description": "Number of projects with no issues."
115
- },
116
- "warnings": {
117
- "type": "integer",
118
- "minimum": 0,
119
- "description": "Number of projects with warnings (non-critical issues)."
120
- },
121
- "failed": {
122
- "type": "integer",
123
- "minimum": 0,
124
- "description": "Number of projects with critical issues."
125
- },
126
- "orphaned": {
127
- "type": "integer",
128
- "minimum": 0,
129
- "description": "Number of projects in registry with missing paths."
130
- },
131
- "projects": {
132
- "type": "array",
133
- "description": "Array of individual project health results.",
134
- "items": {
135
- "$ref": "#/definitions/projectHealth"
136
- }
137
- }
138
- }
139
- }
140
- },
141
-
142
- "definitions": {
143
- "check": {
144
- "type": "object",
145
- "description": "Individual health check result with diagnostic data and actionable fixes.",
146
- "required": ["id", "category", "status", "message"],
147
- "additionalProperties": false,
148
- "properties": {
149
- "id": {
150
- "type": "string",
151
- "pattern": "^[a-z_][a-z0-9_]*$",
152
- "description": "Unique check identifier (snake_case, e.g., 'cli_installation', 'agent_config_exists')."
153
- },
154
- "category": {
155
- "type": "string",
156
- "enum": ["installation", "configuration", "registry", "projects"],
157
- "description": "Check category for grouping related diagnostics. installation=CLI setup, configuration=agent configs, registry=project registry, projects=per-project checks."
158
- },
159
- "status": {
160
- "type": "string",
161
- "enum": ["passed", "warning", "failed"],
162
- "description": "Check result status. passed=no issues, warning=non-critical, failed=requires action."
163
- },
164
- "message": {
165
- "type": "string",
166
- "minLength": 1,
167
- "maxLength": 500,
168
- "description": "Human-readable description of check result."
169
- },
170
- "details": {
171
- "type": "object",
172
- "description": "Structured diagnostic data specific to this check. Schema varies by check ID.",
173
- "additionalProperties": true
174
- },
175
- "fix": {
176
- "type": ["string", "null"],
177
- "maxLength": 500,
178
- "description": "Copy-paste command to resolve issue. Null if check passed or no automated fix available."
179
- }
180
- }
181
- },
182
-
183
- "projectHealth": {
184
- "type": "object",
185
- "description": "Individual project health check result. Tracks project path, status, schema versions, injection status, and issues.",
186
- "required": ["hash", "path", "name", "status"],
187
- "additionalProperties": false,
188
- "properties": {
189
- "hash": {
190
- "type": "string",
191
- "pattern": "^[a-f0-9]{8}$",
192
- "description": "Project hash identifier (first 8 chars of path hash)."
193
- },
194
- "path": {
195
- "type": "string",
196
- "minLength": 1,
197
- "description": "Absolute path to project directory."
198
- },
199
- "name": {
200
- "type": "string",
201
- "minLength": 1,
202
- "description": "Project name from todo.json or directory name."
203
- },
204
- "status": {
205
- "type": "string",
206
- "enum": ["healthy", "warning", "failed", "orphaned"],
207
- "description": "Project health status. healthy=no issues, warning=minor issues, failed=critical problems, orphaned=path missing."
208
- },
209
- "schemas": {
210
- "type": ["object", "null"],
211
- "description": "Schema version information for project files.",
212
- "additionalProperties": false,
213
- "properties": {
214
- "todo": {
215
- "type": ["string", "null"],
216
- "pattern": "^\\d+\\.\\d+\\.\\d+$",
217
- "description": "todo.json schema version."
218
- },
219
- "config": {
220
- "type": ["string", "null"],
221
- "pattern": "^\\d+\\.\\d+\\.\\d+$",
222
- "description": "config.json schema version."
223
- },
224
- "archive": {
225
- "type": ["string", "null"],
226
- "pattern": "^\\d+\\.\\d+\\.\\d+$",
227
- "description": "archive.json schema version."
228
- },
229
- "log": {
230
- "type": ["string", "null"],
231
- "pattern": "^\\d+\\.\\d+\\.\\d+$",
232
- "description": "log.json schema version."
233
- }
234
- }
235
- },
236
- "injection": {
237
- "type": ["object", "null"],
238
- "description": "Agent file injection status for this project.",
239
- "additionalProperties": false,
240
- "properties": {
241
- "status": {
242
- "type": "string",
243
- "enum": ["current", "outdated", "missing"],
244
- "description": "Injection status. current=up-to-date, outdated=old version, missing=not injected."
245
- },
246
- "version": {
247
- "type": ["string", "null"],
248
- "pattern": "^\\d+\\.\\d+\\.\\d+$",
249
- "description": "Version of injected content in agent files."
250
- }
251
- }
252
- },
253
- "issues": {
254
- "type": "array",
255
- "description": "Array of issues found in this project.",
256
- "items": {
257
- "type": "object",
258
- "required": ["severity", "message"],
259
- "additionalProperties": false,
260
- "properties": {
261
- "severity": {
262
- "type": "string",
263
- "enum": ["warning", "error"],
264
- "description": "Issue severity level."
265
- },
266
- "message": {
267
- "type": "string",
268
- "minLength": 1,
269
- "maxLength": 500,
270
- "description": "Human-readable issue description."
271
- },
272
- "fix": {
273
- "type": ["string", "null"],
274
- "maxLength": 200,
275
- "description": "Suggested fix command. Null if no automated fix available."
276
- }
277
- }
278
- }
279
- }
280
- }
281
- }
282
- }
283
- }
@@ -1,161 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "schemaVersion": "1.0.0",
4
- "$id": "https://cleo-dev.com/schemas/v1/error.schema.json",
5
- "title": "CLEO Error Envelope",
6
- "description": "Standard JSON envelope for all cleo error responses",
7
- "type": "object",
8
- "required": ["_meta", "success", "error"],
9
- "properties": {
10
- "$schema": {
11
- "type": "string",
12
- "description": "Schema URL for validation",
13
- "const": "https://cleo-dev.com/schemas/v1/error.schema.json"
14
- },
15
- "_meta": {
16
- "type": "object",
17
- "description": "Response metadata",
18
- "required": ["command", "timestamp", "version"],
19
- "properties": {
20
- "format": {
21
- "type": "string",
22
- "const": "json",
23
- "description": "Output format identifier"
24
- },
25
- "version": {
26
- "type": "string",
27
- "pattern": "^\\d+\\.\\d+\\.\\d+",
28
- "description": "cleo version (semver)"
29
- },
30
- "command": {
31
- "type": "string",
32
- "minLength": 1,
33
- "description": "Command name that generated this error"
34
- },
35
- "timestamp": {
36
- "type": "string",
37
- "format": "date-time",
38
- "description": "ISO-8601 UTC timestamp of error generation"
39
- }
40
- },
41
- "additionalProperties": false
42
- },
43
- "success": {
44
- "type": "boolean",
45
- "const": false,
46
- "description": "Always false for error responses"
47
- },
48
- "error": {
49
- "type": "object",
50
- "description": "Error details",
51
- "required": ["code", "message", "exitCode"],
52
- "properties": {
53
- "code": {
54
- "type": "string",
55
- "pattern": "^E_[A-Z_]+$",
56
- "description": "Error code (E_ prefix convention)",
57
- "enum": [
58
- "E_TASK_NOT_FOUND",
59
- "E_TASK_ALREADY_EXISTS",
60
- "E_TASK_INVALID_ID",
61
- "E_TASK_INVALID_STATUS",
62
- "E_FILE_NOT_FOUND",
63
- "E_FILE_READ_ERROR",
64
- "E_FILE_WRITE_ERROR",
65
- "E_FILE_PERMISSION",
66
- "E_VALIDATION_SCHEMA",
67
- "E_VALIDATION_CHECKSUM",
68
- "E_VALIDATION_REQUIRED",
69
- "E_INPUT_MISSING",
70
- "E_INPUT_INVALID",
71
- "E_INPUT_FORMAT",
72
- "E_DEPENDENCY_MISSING",
73
- "E_DEPENDENCY_VERSION",
74
- "E_PHASE_NOT_FOUND",
75
- "E_PHASE_INVALID",
76
- "E_SESSION_ACTIVE",
77
- "E_SESSION_NOT_ACTIVE",
78
- "E_UNKNOWN",
79
- "E_NOT_INITIALIZED",
80
- "E_PARENT_NOT_FOUND",
81
- "E_DEPTH_EXCEEDED",
82
- "E_SIBLING_LIMIT",
83
- "E_INVALID_PARENT_TYPE",
84
- "E_CIRCULAR_REFERENCE",
85
- "E_ORPHAN_DETECTED",
86
- "E_HAS_CHILDREN",
87
- "E_TASK_COMPLETED",
88
- "E_CASCADE_FAILED",
89
- "E_CANCEL_REASON_REQUIRED",
90
- "E_CHECKSUM_MISMATCH",
91
- "E_CONCURRENT_MODIFICATION",
92
- "E_ID_COLLISION",
93
- "E_SESSION_EXISTS",
94
- "E_SESSION_NOT_FOUND",
95
- "E_SCOPE_CONFLICT",
96
- "E_SCOPE_INVALID",
97
- "E_TASK_NOT_IN_SCOPE",
98
- "E_TASK_CLAIMED",
99
- "E_SESSION_REQUIRED",
100
- "E_SESSION_CLOSE_BLOCKED",
101
- "E_FOCUS_REQUIRED",
102
- "E_NOTES_REQUIRED",
103
- "E_SESSION_DISCOVERY_MODE",
104
- "E_SESSION_RESUME_ACTIVE",
105
- "E_ALREADY_INITIALIZED",
106
- "E_CONFIRMATION_REQUIRED",
107
- "E_HAS_DEPENDENTS"
108
- ]
109
- },
110
- "message": {
111
- "type": "string",
112
- "minLength": 1,
113
- "description": "Human-readable error message"
114
- },
115
- "exitCode": {
116
- "type": "integer",
117
- "minimum": 1,
118
- "maximum": 127,
119
- "description": "Shell exit code for this error"
120
- },
121
- "recoverable": {
122
- "type": "boolean",
123
- "description": "Whether the error can be recovered from"
124
- },
125
- "suggestion": {
126
- "type": ["string", "null"],
127
- "description": "Suggested action to resolve the error"
128
- },
129
- "fix": {
130
- "type": ["string", "null"],
131
- "description": "Concrete command to fix the error (copy-paste ready)"
132
- },
133
- "alternatives": {
134
- "type": "array",
135
- "description": "Alternative recovery actions with executable commands",
136
- "items": {
137
- "type": "object",
138
- "required": ["action", "command"],
139
- "properties": {
140
- "action": {
141
- "type": "string",
142
- "description": "Short description of what this alternative does"
143
- },
144
- "command": {
145
- "type": "string",
146
- "description": "Executable command (copy-paste ready)"
147
- }
148
- }
149
- }
150
- },
151
- "context": {
152
- "type": "object",
153
- "description": "Additional error context (varies by error type)",
154
- "additionalProperties": true
155
- }
156
- },
157
- "additionalProperties": false
158
- }
159
- },
160
- "additionalProperties": false
161
- }
@@ -1,219 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "schemaVersion": "1.0.0",
4
- "$id": "https://cleo-dev.com/schemas/v1/global-config.schema.json",
5
- "title": "Claude-TODO Global Configuration",
6
- "description": "User-level global configuration for cleo CLI. These settings apply across all projects unless overridden by project-specific config.",
7
- "type": "object",
8
- "required": ["version"],
9
- "properties": {
10
- "$schema": {
11
- "type": "string",
12
- "description": "JSON Schema reference"
13
- },
14
- "version": {
15
- "type": "string",
16
- "pattern": "^\\d+\\.\\d+\\.\\d+",
17
- "description": "Configuration schema version"
18
- },
19
- "output": {
20
- "type": "object",
21
- "description": "Output formatting preferences (applies to all commands)",
22
- "properties": {
23
- "defaultFormat": {
24
- "type": "string",
25
- "enum": ["text", "json", "jsonl", "csv", "tsv", "markdown", "table"],
26
- "default": "text",
27
- "description": "Default output format. Set to 'json' for LLM agent automation."
28
- },
29
- "showColor": {
30
- "type": "boolean",
31
- "default": true,
32
- "description": "Enable colored output in terminal. Respects NO_COLOR env var."
33
- },
34
- "showUnicode": {
35
- "type": "boolean",
36
- "default": true,
37
- "description": "Use Unicode symbols (checkmarks, progress bars, etc.)"
38
- },
39
- "showProgressBars": {
40
- "type": "boolean",
41
- "default": true,
42
- "description": "Display progress bars for long operations"
43
- },
44
- "dateFormat": {
45
- "type": "string",
46
- "enum": ["iso8601", "relative", "unix", "locale"],
47
- "default": "iso8601",
48
- "description": "Date display format"
49
- },
50
- "showCompactTitles": {
51
- "type": "boolean",
52
- "default": false,
53
- "description": "Truncate long task titles"
54
- },
55
- "maxTitleLength": {
56
- "type": "integer",
57
- "minimum": 20,
58
- "maximum": 200,
59
- "default": 80,
60
- "description": "Maximum title length when compact mode is enabled"
61
- }
62
- },
63
- "additionalProperties": false
64
- },
65
- "display": {
66
- "type": "object",
67
- "description": "Display preferences for status and informational output",
68
- "properties": {
69
- "showArchiveCount": {
70
- "type": "boolean",
71
- "default": true,
72
- "description": "Show count of archived tasks in status"
73
- },
74
- "showLogSummary": {
75
- "type": "boolean",
76
- "default": true,
77
- "description": "Show recent log summary in status"
78
- },
79
- "warnStaleDays": {
80
- "type": "integer",
81
- "minimum": 1,
82
- "default": 30,
83
- "description": "Warn about tasks older than this many days"
84
- }
85
- },
86
- "additionalProperties": false
87
- },
88
- "cli": {
89
- "type": "object",
90
- "description": "CLI behavior and customization",
91
- "properties": {
92
- "aliases": {
93
- "type": "object",
94
- "description": "Custom command aliases (alias → command)",
95
- "additionalProperties": {
96
- "type": "string"
97
- },
98
- "default": {},
99
- "examples": [
100
- {"ls": "list", "done": "complete", "new": "add"}
101
- ]
102
- },
103
- "plugins": {
104
- "type": "object",
105
- "description": "Plugin system configuration",
106
- "properties": {
107
- "enabled": {
108
- "type": "boolean",
109
- "default": true,
110
- "description": "Enable plugin discovery and loading"
111
- },
112
- "directories": {
113
- "type": "array",
114
- "items": {"type": "string"},
115
- "default": ["~/.cleo/plugins", "./.claude/plugins"],
116
- "description": "Directories to search for plugins"
117
- },
118
- "autoDiscover": {
119
- "type": "boolean",
120
- "default": true,
121
- "description": "Auto-discover plugins in plugin directories"
122
- }
123
- },
124
- "additionalProperties": false
125
- },
126
- "debug": {
127
- "type": "object",
128
- "description": "Debug and diagnostic settings",
129
- "properties": {
130
- "enabled": {
131
- "type": "boolean",
132
- "default": false,
133
- "description": "Enable debug output"
134
- },
135
- "validateMappings": {
136
- "type": "boolean",
137
- "default": true,
138
- "description": "Validate command mappings on startup"
139
- },
140
- "checksumVerify": {
141
- "type": "boolean",
142
- "default": true,
143
- "description": "Verify script checksums"
144
- },
145
- "showTimings": {
146
- "type": "boolean",
147
- "default": false,
148
- "description": "Show execution timing information"
149
- }
150
- },
151
- "additionalProperties": false
152
- }
153
- },
154
- "additionalProperties": false
155
- },
156
- "defaults": {
157
- "type": "object",
158
- "description": "Default values for new tasks (can be overridden per-project)",
159
- "properties": {
160
- "priority": {
161
- "type": "string",
162
- "enum": ["critical", "high", "medium", "low"],
163
- "default": "medium",
164
- "description": "Default priority for new tasks"
165
- },
166
- "labels": {
167
- "type": "array",
168
- "items": {"type": "string"},
169
- "default": [],
170
- "description": "Default labels for new tasks"
171
- }
172
- },
173
- "additionalProperties": false
174
- },
175
- "multiSession": {
176
- "type": "object",
177
- "description": "Multi-session configuration for concurrent agent work",
178
- "properties": {
179
- "enabled": {
180
- "type": "boolean",
181
- "default": true,
182
- "description": "Enable multi-session support"
183
- },
184
- "maxConcurrentSessions": {
185
- "type": "integer",
186
- "minimum": 1,
187
- "maximum": 20,
188
- "default": 5,
189
- "description": "Maximum concurrent sessions allowed"
190
- },
191
- "maxActiveTasksPerScope": {
192
- "type": "integer",
193
- "minimum": 1,
194
- "maximum": 10,
195
- "default": 1,
196
- "description": "Maximum active tasks per session scope"
197
- },
198
- "scopeValidation": {
199
- "type": "string",
200
- "enum": ["strict", "warn", "none"],
201
- "default": "strict",
202
- "description": "Scope validation level"
203
- },
204
- "allowNestedScopes": {
205
- "type": "boolean",
206
- "default": true,
207
- "description": "Allow nested session scopes"
208
- },
209
- "allowScopeOverlap": {
210
- "type": "boolean",
211
- "default": false,
212
- "description": "Allow overlapping session scopes"
213
- }
214
- },
215
- "additionalProperties": false
216
- }
217
- },
218
- "additionalProperties": false
219
- }